Class AExpression
java.lang.Object
org.checkerframework.afu.scenelib.el.AElement
org.checkerframework.afu.scenelib.el.AExpression
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ABlock
Manages all annotations within expressions, that is, annotations on typecasts, instanceofs, and
object creations. We can use this class for methods, field initializers, and static initializers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionA method invocation's annotated type arguments; map key is the offset of the invokestatic bytecodefinal VivifyingMap
<RelativeLocation, AMethod> The method's annotated lambda expressions; map key is the offset of the invokedynamic bytecodeprotected String
A unique identifier.The method's annotated "instanceof" tests; map key is the offset of the instanceof bytecode.The method's annotated "new" invocations; map key is the offset of the new bytecode.A member reference's annotated type parameters; map key is the offset of the invokestatic bytecodeThe method's annotated typecasts; map key is the offset of the checkcast bytecode.Fields inherited from class org.checkerframework.afu.scenelib.el.AElement
description, tlAnnotationsHere, type
-
Method Summary
Modifier and TypeMethodDescription<R,
T> R accept
(ElementVisitor<R, T> v, T t) clone()
boolean
Returns true if thisAElement
equalso
.protected boolean
int
hashCode()
boolean
isEmpty()
Returns true if thisAElement
is empty.void
prune()
Removes empty subelements of thisAElement
depth-first.toString()
Methods inherited from class org.checkerframework.afu.scenelib.el.AElement
equals, lookup, tlAnnotationsHereFormatted
-
Field Details
-
typecasts
The method's annotated typecasts; map key is the offset of the checkcast bytecode. -
instanceofs
The method's annotated "instanceof" tests; map key is the offset of the instanceof bytecode. -
news
The method's annotated "new" invocations; map key is the offset of the new bytecode. -
calls
A method invocation's annotated type arguments; map key is the offset of the invokestatic bytecode -
refs
A member reference's annotated type parameters; map key is the offset of the invokestatic bytecode -
funs
The method's annotated lambda expressions; map key is the offset of the invokedynamic bytecode -
id
A unique identifier.
-
-
Method Details
-
clone
-
equals
Description copied from class:AElement
Returns true if thisAElement
equalso
. This is a slightly faster variant ofAElement.equals(Object)
for when the argument is statically known to be another nonnullAElement
. -
equalsExpression
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty()Description copied from class:AElement
Returns true if thisAElement
is empty. -
prune
public void prune()Description copied from class:AElement
Removes empty subelements of thisAElement
depth-first. -
toString
-
accept
-