Package com.ibm.wala.cast.ir.ssa
Class AstLexicalAccess
- java.lang.Object
-
- com.ibm.wala.ssa.SSAInstruction
-
- com.ibm.wala.cast.ir.ssa.AstLexicalAccess
-
- Direct Known Subclasses:
AstLexicalRead
,AstLexicalWrite
public abstract class AstLexicalAccess extends SSAInstruction
This abstract class provides helper functionality for recording lexical uses and/or definitions. It is used in lexical read and write instructions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AstLexicalAccess.Access
A single lexical access.-
Nested classes/interfaces inherited from class com.ibm.wala.ssa.SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.ssa.SSAInstruction
iindex, NO_INDEX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AstLexicalAccess.Access
getAccess(int i)
int
getAccessCount()
AstLexicalAccess.Access[]
getAccesses()
Collection<TypeReference>
getExceptionTypes()
This method should never return null.int
hashCode()
boolean
isFallThrough()
void
setAccesses(AstLexicalAccess.Access[] accesses)
-
Methods inherited from class com.ibm.wala.ssa.SSAInstruction
copyForSSA, equals, getDef, getDef, getNumberOfDefs, getNumberOfUses, getUse, getValueString, hasDef, isPEI, toString, toString, visit
-
-
-
-
Method Detail
-
setAccesses
public void setAccesses(AstLexicalAccess.Access[] accesses)
-
getAccesses
public AstLexicalAccess.Access[] getAccesses()
-
getAccess
public AstLexicalAccess.Access getAccess(int i)
-
getAccessCount
public int getAccessCount()
-
isFallThrough
public boolean isFallThrough()
- Specified by:
isFallThrough
in classSSAInstruction
- Returns:
- true iff this instruction may fall through to the next
-
getExceptionTypes
public Collection<TypeReference> getExceptionTypes()
Description copied from class:SSAInstruction
This method should never return null.- Overrides:
getExceptionTypes
in classSSAInstruction
- Returns:
- the set of exception types that an instruction might throw ... disregarding athrows and invokes.
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classSSAInstruction
-
-