Class MultiReturnValueInvokeInstruction
java.lang.Object
com.ibm.wala.ssa.SSAInstruction
com.ibm.wala.ssa.SSAAbstractInvokeInstruction
com.ibm.wala.cast.ir.ssa.MultiReturnValueInvokeInstruction
- Direct Known Subclasses:
FixedParametersInvokeInstruction, JavaScriptInvoke
-
Nested Class Summary
Nested classes/interfaces inherited from class SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.VisitorModifier and TypeClassDescriptionstatic interfaceThis interface is used by Instruction.visit to dispatch based on the instruction type.static classA base visitor implementation that does nothing. -
Field Summary
FieldsFields inherited from class SSAAbstractInvokeInstruction
exception, siteModifier and TypeFieldDescriptionprotected final intThe value number which represents the exception object which the call may throw.protected final CallSiteReferenceThe call site, containing the program counter location and the method being called.Fields inherited from class SSAInstruction
NO_INDEX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultiReturnValueInvokeInstruction(int iindex, int[] results, int exception, CallSiteReference site) -
Method Summary
Modifier and TypeMethodDescriptionintHow many distinct values does this call return?intgetReturnValue(int i) What is the the value number of the ith value returned by this callMethods inherited from class SSAAbstractInvokeInstruction
getCallSite, getDeclaredResultType, getDeclaredTarget, getDef, getDef, getException, getInvocationCode, getNumberOfDefs, getNumberOfPositionalParameters, getProgramCounter, getReceiver, hasDef, isDispatch, isFallThrough, isPEI, isSpecial, isStatic, toStringModifier and TypeMethodDescriptionWhat is the declared return type of the called methodWhat method is the declared callee?intgetDef()intgetDef(int i) Return the ith defintReturn the value number which is def'fed by this call instruction if the call returns exceptionally.intabstract intHow many parameters does this call specify?intintbooleanhasDef()Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g.booleanMight this call dispatch to one of several possible methods? i.e., in Java, is it an invokeinterface or invokevirtualbooleanbooleanisPEI()booleanIs this a 'special' call? (invokespecial in Java)booleanisStatic()Is this a 'static' call? (invokestatic in Java)toString(SymbolTable symbolTable) Methods inherited from class SSAInstruction
copyForSSA, equals, getExceptionTypes, getNumberOfUses, getUse, getValueString, hashCode, iIndex, setInstructionIndex, toString, visitModifier and TypeMethodDescriptionabstract SSAInstructioncopyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses) This method is meant to be used during SSA conversion for an IR that is not in SSA form.final booleanWe assume these instructions are canonical and managed by a governing IR object.This method should never return null.intintgetUse(int j) protected StringgetValueString(SymbolTable symbolTable, int valueNumber) abstract inthashCode()intiIndex()voidsetInstructionIndex(int instructionIndex) toString()abstract voidApply an IVisitor to this instruction.
-
Field Details
-
results
protected final int[] results
-
-
Constructor Details
-
MultiReturnValueInvokeInstruction
protected MultiReturnValueInvokeInstruction(int iindex, int[] results, int exception, CallSiteReference site)
-
-
Method Details
-
getNumberOfReturnValues
public int getNumberOfReturnValues()Description copied from class:SSAAbstractInvokeInstructionHow many distinct values does this call return?- Specified by:
getNumberOfReturnValuesin classSSAAbstractInvokeInstruction
-
getReturnValue
public int getReturnValue(int i) Description copied from class:SSAAbstractInvokeInstructionWhat is the the value number of the ith value returned by this call- Specified by:
getReturnValuein classSSAAbstractInvokeInstruction
-