Class ABlock
java.lang.Object
org.checkerframework.afu.scenelib.el.AElement
org.checkerframework.afu.scenelib.el.AExpression
org.checkerframework.afu.scenelib.el.ABlock
- All Implemented Interfaces:
Cloneable
ABlock has local variables in scope. We currently directly use them only for static initializer
blocks, which are not methods, but can declare local variables.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal VivifyingMap
<LocalLocation, AField> The method's annotated local variables; map key contains local variable location numbers.Fields inherited from class org.checkerframework.afu.scenelib.el.AExpression
calls, funs, id, instanceofs, news, refs, typecasts
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.AExpression
equalsExpression
Methods inherited from class org.checkerframework.afu.scenelib.el.AElement
equals, lookup, tlAnnotationsHereFormatted
-
Field Details
-
locals
The method's annotated local variables; map key contains local variable location numbers.
-
-
Method Details
-
clone
- Overrides:
clone
in classAExpression
-
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
.- Overrides:
equals
in classAExpression
- Parameters:
o
- the AElement to compare to- Returns:
- true if this is equal to
o
-
equalsBlock
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAExpression
-
isEmpty
public boolean isEmpty()Description copied from class:AElement
Returns true if thisAElement
is empty.- Overrides:
isEmpty
in classAExpression
- Returns:
- true iff this is empty
-
prune
public void prune()Description copied from class:AElement
Removes empty subelements of thisAElement
depth-first.- Overrides:
prune
in classAExpression
-
toString
- Overrides:
toString
in classAExpression
-
accept
- Overrides:
accept
in classAExpression
-