|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.j2ee.CommandInterpreter
public class CommandInterpreter
Logic to interpret dynacache commands in context
| Nested Class Summary | |
|---|---|
protected class |
CommandInterpreter.SpecializedExecuteMethod
|
| Constructor Summary | |
|---|---|
CommandInterpreter(ClassHierarchy cha,
WarningSet warnings)
|
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.Object> |
getCaughtExceptions(CGNode node,
WarningSet warnings)
|
ControlFlowGraph |
getCFG(CGNode N,
WarningSet warnings)
|
DefUse |
getDU(CGNode node,
WarningSet warnings)
|
java.util.Iterator<SSAInstruction> |
getInvokeStatements(CGNode node)
Evaluate a new-instance method in a given Context |
IR |
getIR(CGNode node,
WarningSet warnings)
|
int |
getNumberOfStatements(CGNode node,
WarningSet warnings)
|
boolean |
hasObjectArrayLoad(CGNode node,
WarningSet warnings)
|
boolean |
hasObjectArrayStore(CGNode node,
WarningSet warnings)
|
java.util.Iterator<CallSiteReference> |
iterateCallSites(CGNode node,
WarningSet warnings)
|
java.util.Iterator<IClass> |
iterateCastTypes(CGNode node,
WarningSet warnings)
|
java.util.Iterator<IField> |
iterateFieldsRead(CGNode node,
WarningSet warnings)
|
java.util.Iterator<IField> |
iterateFieldsWritten(CGNode node,
WarningSet warnings)
|
java.util.Iterator<NewSiteReference> |
iterateNewSites(CGNode node,
WarningSet warnings)
|
boolean |
recordFactoryType(CGNode node,
IClass klass)
record that the "factory" method of a node should be interpreted to allocate a particular klass. |
void |
setWarnings(WarningSet newWarnings)
Bind this object to a new object to track warnings |
boolean |
understands(CGNode node)
Does this object understand the given method? The caller had better check this before inquiring on other properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandInterpreter(ClassHierarchy cha,
WarningSet warnings)
cha - governing class hierarchywarnings - object to track analysis warnings| Method Detail |
|---|
public IR getIR(CGNode node,
WarningSet warnings)
getIR in interface SSAContextInterpreter
public int getNumberOfStatements(CGNode node,
WarningSet warnings)
getNumberOfStatements in interface SSAContextInterpreterpublic boolean understands(CGNode node)
RTAContextInterpreter
understands in interface RTAContextInterpreter
public java.util.Iterator<NewSiteReference> iterateNewSites(CGNode node,
WarningSet warnings)
iterateNewSites in interface RTAContextInterpreterpublic java.util.Iterator<SSAInstruction> getInvokeStatements(CGNode node)
public java.util.Iterator<CallSiteReference> iterateCallSites(CGNode node,
WarningSet warnings)
iterateCallSites in interface RTAContextInterpreter
public java.util.Iterator<IField> iterateFieldsRead(CGNode node,
WarningSet warnings)
iterateFieldsRead in interface RTAContextInterpreter
public java.util.Iterator<IField> iterateFieldsWritten(CGNode node,
WarningSet warnings)
iterateFieldsWritten in interface RTAContextInterpreter
public java.util.Set<java.lang.Object> getCaughtExceptions(CGNode node,
WarningSet warnings)
public boolean hasObjectArrayLoad(CGNode node,
WarningSet warnings)
public boolean hasObjectArrayStore(CGNode node,
WarningSet warnings)
public java.util.Iterator<IClass> iterateCastTypes(CGNode node,
WarningSet warnings)
public boolean recordFactoryType(CGNode node,
IClass klass)
RTAContextInterpreter
recordFactoryType in interface RTAContextInterpreterpublic void setWarnings(WarningSet newWarnings)
RTAContextInterpreter
setWarnings in interface RTAContextInterpreter
public ControlFlowGraph getCFG(CGNode N,
WarningSet warnings)
getCFG in interface CFGProviderN - a call graph node
public DefUse getDU(CGNode node,
WarningSet warnings)
getDU in interface SSAContextInterpreter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||