Class AstTranslator.AstLexicalInformation
java.lang.Object
com.ibm.wala.cast.ir.translator.AstTranslator.AstLexicalInformation
- All Implemented Interfaces:
AstMethod.LexicalInformation
- Enclosing class:
AstTranslator
public static class AstTranslator.AstLexicalInformation
extends Object
implements AstMethod.LexicalInformation
lexical access information for some entity scope. used during call graph construction to handle
lexical accesses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn all value numbers appearing as entries in eitherAstMethod.LexicalInformation.getExposedUses(int)orAstMethod.LexicalInformation.getExitExposedUses()int[]maps each exposed name (via its index inAstMethod.LexicalInformation.getExposedNames()) 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 inAstMethod.LexicalInformation.getExposedNames()) 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 entitystatic booleanhasExposedUses(CGNode caller, CallSiteReference site) booleanisReadOnly(String name) returns true if name may be read in nested lexical scopes but cannot be written
-
Constructor Details
-
AstLexicalInformation
-
-
Method Details
-
getExitExposedUses
public int[] getExitExposedUses()Description copied from interface:AstMethod.LexicalInformationmaps each exposed name (via its index inAstMethod.LexicalInformation.getExposedNames()) to its value number at method exit.- Specified by:
getExitExposedUsesin interfaceAstMethod.LexicalInformation
-
getExposedUses
public int[] getExposedUses(int instructionOffset) Description copied from interface:AstMethod.LexicalInformationget a map from exposed name (via its index inAstMethod.LexicalInformation.getExposedNames()) to its value number at the instruction at offset instructionOffset.- Specified by:
getExposedUsesin interfaceAstMethod.LexicalInformation
-
getAllExposedUses
Description copied from interface:AstMethod.LexicalInformationreturn all value numbers appearing as entries in eitherAstMethod.LexicalInformation.getExposedUses(int)orAstMethod.LexicalInformation.getExitExposedUses()- Specified by:
getAllExposedUsesin interfaceAstMethod.LexicalInformation
-
getExposedNames
Description copied from interface:AstMethod.LexicalInformationnames possibly accessed in a nested lexical scope, represented as pairs (name,nameOfDefiningEntity)- Specified by:
getExposedNamesin interfaceAstMethod.LexicalInformation
-
getScopingParents
Description copied from interface:AstMethod.LexicalInformationreturn the names of the enclosing methods declaring names that are lexically accessed by the entity- Specified by:
getScopingParentsin interfaceAstMethod.LexicalInformation
-
isReadOnly
Description copied from interface:AstMethod.LexicalInformationreturns true if name may be read in nested lexical scopes but cannot be written- Specified by:
isReadOnlyin interfaceAstMethod.LexicalInformation
-
getScopingName
Description copied from interface:AstMethod.LexicalInformationget the name of this entity, as it appears in the definer portion of a lexical name- Specified by:
getScopingNamein interfaceAstMethod.LexicalInformation
-
hasExposedUses
-