public abstract class VirtualInvocation extends InstanceInvocation
argSize, arguments, cname, invokedMethod, lastObj, mname, signature
attr, insnIndex, mi, position
Modifier | Constructor and Description |
---|---|
protected |
VirtualInvocation() |
protected |
VirtualInvocation(String clsDescriptor,
String methodName,
String signature) |
Modifier and Type | Method and Description |
---|---|
void |
accept(InstructionVisitor insVisitor) |
Instruction |
execute(ThreadInfo ti)
this is the real workhorse
returns next instruction to enter in this thread
<2do> it's unfortunate we roll every side effect into this method, because
it diminishes the value of the 'executeInstruction' notification: all
insns that require some sort of late binding (InvokeVirtual, GetField, ..)
are not yet fully analyzable (e.g.
|
Object |
getFieldValue(String id,
ThreadInfo ti) |
MethodInfo |
getInvokedMethod(ThreadInfo ti) |
MethodInfo |
getInvokedMethod(ThreadInfo ti,
int objRef) |
protected boolean |
isLastUnlock(ElementInfo ei)
If the object will still be owned, then the current thread can go on.
|
protected boolean |
isLockOwner(ThreadInfo ti,
ElementInfo ei)
If the current thread already owns the lock, then the current thread can go on.
|
Instruction |
typeSafeClone(MethodInfo clonedMethod)
this is overridden by any Instruction that use a cache for class or
method to provide a type safe cloning
|
getCalleeThis, getThisElementInfo
checkSyncCG, getArgSize, getArgumentAttrs, getArgumentValue, getArgumentValues, getFieldOrArgumentValue, getInvokedMethod, getInvokedMethodClassName, getInvokedMethodName, getInvokedMethodSignature, getLastObjRef, getLength, getReturnType, getReturnTypeName, hasArgumentAttr, hasAttrRefArgument, isCompleted, isReferenceReturnType, setInvokedMethod, setupCallee
addAttr, attrIterator, attrIterator, cleanupTransients, getAttr, getAttr, getByteCode, getFileLocation, getFilePos, getInstructionIndex, getLineNumber, getMethodInfo, getMnemonic, getNext, getNext, getNextAttr, getPosition, getPrev, getSourceLine, getSourceLocation, getSourceOrLocation, hasAttr, hasAttr, init, isBackJump, isExtendedInstruction, isFirstInstruction, isSchedulingRelevant, removeAttr, replaceAttr, requiresClinitExecution, setAttr, setContext, setLocation, setMethodInfo, toString
public Instruction execute(ThreadInfo ti)
Instruction
execute
in class Instruction
protected boolean isLockOwner(ThreadInfo ti, ElementInfo ei)
protected boolean isLastUnlock(ElementInfo ei)
public MethodInfo getInvokedMethod(ThreadInfo ti)
getInvokedMethod
in class InvokeInstruction
public MethodInfo getInvokedMethod(ThreadInfo ti, int objRef)
public Object getFieldValue(String id, ThreadInfo ti)
getFieldValue
in class InvokeInstruction
public void accept(InstructionVisitor insVisitor)
accept
in interface InstructionVisitorAcceptor
accept
in class InstanceInvocation
public Instruction typeSafeClone(MethodInfo clonedMethod)
Instruction
typeSafeClone
in class InvokeInstruction