public abstract class ASMWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.objectweb.asm.tree.AbstractInsnNode |
asmNode |
protected CFGFrame |
frame |
| Constructor and Description |
|---|
ASMWrapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReturnFromMethod()
canReturnFromMethod
|
protected String |
getArrayVariableName() |
org.objectweb.asm.tree.AbstractInsnNode |
getASMNode()
getASMNode
|
String |
getCalledMethod()
Returns the conjunction of the name and method descriptor of the method
called by this instruction
|
String |
getCalledMethodName()
Returns the conjunction of the name of the method called by this
instruction
|
int |
getCalledMethodsArgumentCount()
Returns the number of arguments of the method called by this instruction
|
String |
getCalledMethodsClass()
Returns the class of the method called by this instruction
|
abstract String |
getClassName()
getClassName
|
abstract String |
getFieldMethodCallName() |
protected String |
getFieldName()
getFieldName
|
protected String |
getFieldSimpleName()
getFieldName
|
String |
getFieldType()
getFieldName
|
abstract int |
getInstructionId()
getInstructionId
|
String |
getInstructionType()
getInstructionType
|
int |
getLineNumber()
getLineNumber
|
protected String |
getLocalVariableName()
getLocalVarName
|
int |
getLocalVariableSlot()
getLocalVar
|
String |
getMethodCallDescriptor() |
abstract String |
getMethodName()
getMethodName
|
abstract RawControlFlowGraph |
getRawCFG() |
abstract BytecodeInstruction |
getSourceOfArrayReference() |
String |
getType()
getType
|
String |
getVariableName()
getDUVariableName
|
boolean |
isActualBranch()
isActualBranch
|
boolean |
isArrayLoadInstruction() |
boolean |
isArrayStoreInstruction() |
boolean |
isBranch()
isBranch
|
boolean |
isBranchLabel()
isBranchLabel
|
boolean |
isConstant()
isConstant
|
boolean |
isConstructorInvocation()
Checks whether this instruction is an INVOKESPECIAL instruction that
calls a constructor.
|
boolean |
isConstructorInvocation(String className)
Checks whether this instruction is an INVOKESPECIAL instruction that
calls a constructor of the given class.
|
boolean |
isDefinition()
isDefinition
|
boolean |
isDefinitionForVariable(String var)
isDefinitionForVariable
|
boolean |
isDefUse()
isDefUse
|
boolean |
isFieldArrayDefinition() |
boolean |
isFieldDefinition()
isFieldDefinition
|
boolean |
isFieldDU()
isFieldDU
|
abstract boolean |
isFieldMethodCallDefinition() |
abstract boolean |
isFieldMethodCallUse() |
boolean |
isFieldNodeDefinition()
isFieldDefinition
|
boolean |
isFieldNodeDU() |
boolean |
isFieldNodeUse()
isFieldUse
|
boolean |
isFieldUse()
isFieldUse
|
boolean |
isFrame()
isFrame
|
boolean |
isGoto()
isGoto
|
boolean |
isIfNull()
isIfNull
|
boolean |
isIINC() |
boolean |
isInvokeSpecial()
isInvokeSpecial
|
boolean |
isInvokeStatic()
isInvokeStatic
|
boolean |
isJump()
isJump
|
boolean |
isLabel()
isLabel
|
boolean |
isLineNumber()
Determines if this instruction is a line number instruction
More precisely this method checks if the underlying asmNode is a
LineNumberNode
|
boolean |
isLoadConstant()
isLoadConstant
|
boolean |
isLocalArrayDefinition() |
boolean |
isLocalDU()
isLocalDU
|
boolean |
isLocalVariableDefinition()
isLocalVarDefinition
|
boolean |
isLocalVariableUse()
isLocalVarUse
|
boolean |
isLookupSwitch()
isLookupSwitch
|
boolean |
isMethodCall()
isMethodCall
|
boolean |
isMethodCallForClass(String className)
Returns true if and only if the class of the method called by this
instruction is the same as the given className
|
abstract boolean |
isMethodCallOfField() |
boolean |
isReturn()
isReturn
|
boolean |
isStaticArrayUsage() |
boolean |
isStaticDefUse()
isStaticDefUse
|
boolean |
isSwitch()
isSwitch
|
boolean |
isTableSwitch()
isTableSwitch
|
boolean |
isThrow()
isThrow
|
boolean |
isUse()
isUse
|
boolean |
loadsReferenceToThis()
Determines whether this is the special ALOAD that pushes 'this' onto the
stack
In non static methods the variable slot 0 holds the reference to "this".
|
boolean |
sanityCheckAbstractInsnNode(org.objectweb.asm.tree.AbstractInsnNode node)
sanityCheckAbstractInsnNode
|
protected org.objectweb.asm.tree.AbstractInsnNode asmNode
protected CFGFrame frame
public org.objectweb.asm.tree.AbstractInsnNode getASMNode()
getASMNode
AbstractInsnNode object.public String getMethodCallDescriptor()
public abstract int getInstructionId()
getInstructionId
public abstract boolean isMethodCallOfField()
public abstract String getFieldMethodCallName()
public boolean isActualBranch()
isActualBranch
public boolean isSwitch()
isSwitch
public boolean canReturnFromMethod()
canReturnFromMethod
public boolean isReturn()
isReturn
public boolean isThrow()
isThrow
public boolean isTableSwitch()
isTableSwitch
public boolean isLookupSwitch()
isLookupSwitch
public boolean isBranchLabel()
isBranchLabel
public boolean isJump()
isJump
public boolean isInvokeStatic()
isInvokeStatic
public boolean isGoto()
isGoto
public boolean isBranch()
isBranch
public boolean isIfNull()
isIfNull
public boolean isFrame()
isFrame
public boolean isMethodCall()
isMethodCall
public String getCalledMethod()
String object.public String getCalledMethodName()
String object.public boolean isMethodCallForClass(String className)
className - a String object.public String getCalledMethodsClass()
String object.public int getCalledMethodsArgumentCount()
public boolean isLoadConstant()
isLoadConstant
public boolean isConstant()
isConstant
public boolean isDefUse()
isDefUse
public boolean isFieldDU()
isFieldDU
public boolean isFieldNodeDU()
public boolean isLocalDU()
isLocalDU
public boolean isDefinition()
isDefinition
public boolean isUse()
isUse
public abstract boolean isFieldMethodCallDefinition()
public abstract boolean isFieldMethodCallUse()
public boolean isFieldDefinition()
isFieldDefinition
public boolean isFieldNodeDefinition()
isFieldDefinition
public boolean isFieldUse()
isFieldUse
public boolean isFieldNodeUse()
isFieldUse
public boolean isStaticDefUse()
isStaticDefUse
protected String getLocalVariableName()
getLocalVarName
String object.public int getLocalVariableSlot()
getLocalVar
public boolean isLocalVariableDefinition()
isLocalVarDefinition
public boolean isLocalVariableUse()
isLocalVarUse
public boolean isIINC()
public boolean loadsReferenceToThis()
public abstract RawControlFlowGraph getRawCFG()
public boolean isLocalArrayDefinition()
public boolean isFieldArrayDefinition()
public boolean isStaticArrayUsage()
public boolean isArrayStoreInstruction()
public boolean isArrayLoadInstruction()
protected String getArrayVariableName()
public abstract BytecodeInstruction getSourceOfArrayReference()
public boolean isDefinitionForVariable(String var)
isDefinitionForVariable
var - a String object.public boolean isInvokeSpecial()
isInvokeSpecial
public boolean isConstructorInvocation()
public boolean isConstructorInvocation(String className)
className - a String object.public boolean isLineNumber()
public int getLineNumber()
getLineNumber
public boolean isLabel()
isLabel
public boolean sanityCheckAbstractInsnNode(org.objectweb.asm.tree.AbstractInsnNode node)
sanityCheckAbstractInsnNode
node - a AbstractInsnNode object.Copyright © 2010–2017 EvoSuite. All rights reserved.