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, typecastsFields 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()booleanReturns true if thisAElementequalso.protected booleaninthashCode()booleanisEmpty()Returns true if thisAElementis empty.voidprune()Removes empty subelements of thisAElementdepth-first.toString()Methods inherited from class org.checkerframework.afu.scenelib.el.AExpression
equalsExpressionMethods 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:
clonein classAExpression
-
equals
Description copied from class:AElementReturns true if thisAElementequalso. This is a slightly faster variant ofAElement.equals(Object)for when the argument is statically known to be another nonnullAElement.- Overrides:
equalsin classAExpression- Parameters:
o- the AElement to compare to- Returns:
- true if this is equal to
o
-
equalsBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAExpression
-
isEmpty
public boolean isEmpty()Description copied from class:AElementReturns true if thisAElementis empty.- Overrides:
isEmptyin classAExpression- Returns:
- true iff this is empty
-
prune
public void prune()Description copied from class:AElementRemoves empty subelements of thisAElementdepth-first.- Overrides:
prunein classAExpression
-
toString
- Overrides:
toStringin classAExpression
-
accept
- Overrides:
acceptin classAExpression
-