Interface AstMethod.LexicalInformation
- All Known Implementing Classes:
AstTranslator.AstLexicalInformation
- Enclosing class:
AstMethod
public static interface AstMethod.LexicalInformation
lexical access information for some entity scope. used during call graph construction to handle
lexical accesses.
-
Method Summary
Modifier and TypeMethodDescriptionreturn all value numbers appearing as entries in eithergetExposedUses(int)
orgetExitExposedUses()
int[]
maps each exposed name (via its index ingetExposedNames()
) to its value number at method exit.names possibly accessed in a nested lexical scope, represented as pairs (name,nameOfDefiningEntity)int[]
getExposedUses
(int instructionOffset) get a map from exposed name (via its index ingetExposedNames()
) to its value number at the instruction at offset instructionOffset.get the name of this entity, as it appears in the definer portion of a lexical nameString[]
return the names of the enclosing methods declaring names that are lexically accessed by the entityboolean
isReadOnly
(String name) returns true if name may be read in nested lexical scopes but cannot be written
-
Method Details
-
getExposedNames
-
getExitExposedUses
int[] getExitExposedUses()maps each exposed name (via its index ingetExposedNames()
) to its value number at method exit. -
getExposedUses
int[] getExposedUses(int instructionOffset) get a map from exposed name (via its index ingetExposedNames()
) to its value number at the instruction at offset instructionOffset. -
getAllExposedUses
IntSet getAllExposedUses()return all value numbers appearing as entries in eithergetExposedUses(int)
orgetExitExposedUses()
-
getScopingParents
String[] getScopingParents()return the names of the enclosing methods declaring names that are lexically accessed by the entity -
isReadOnly
returns true if name may be read in nested lexical scopes but cannot be written -
getScopingName
String getScopingName()get the name of this entity, as it appears in the definer portion of a lexical name
-