public class DefUse extends BytecodeInstruction
| Modifier and Type | Field and Description |
|---|---|
protected int |
defId |
protected int |
defuseId |
protected boolean |
isFieldMethodCall |
protected boolean |
isFieldMethodCallDefinition |
protected boolean |
isFieldMethodCallUse |
protected boolean |
isInStaticMethod |
protected boolean |
isParameterUse |
protected int |
useId |
protected String |
varName |
bytecodeOffset, classLoader, className, instructionId, methodNameasmNode, frame| Modifier | Constructor and Description |
|---|---|
protected |
DefUse(BytecodeInstruction wrap)
Constructor for DefUse.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBecomeActiveDefinition(BytecodeInstruction instruction)
Determines whether the given BytecodeInstruction constitutes a Definition
that can potentially become an active Definition for this DefUse
in the sense that if control flow passes through the instruction of the
given Definition that Definition becomes active for this DefUse's
variable
This is the case if the given Definition defines the same variable as
this DefUse So a Definition canBecomeActive for itself
|
boolean |
equals(Object obj) |
int |
getDefId()
Getter for the field
defId. |
int |
getDefUseId()
getDefUseId
|
String |
getDUVariableType()
getDUVariableType
|
int |
getUseId()
Getter for the field
useId. |
String |
getVariableName()
getDUVariableName
|
int |
hashCode() |
boolean |
isFieldMethodCallDefinition() |
boolean |
isFieldMethodCallUse() |
boolean |
isParameterUse()
isParameterUse
|
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 |
sharesVariableWith(BytecodeInstruction instruction)
sharesVariableWith
|
boolean |
sharesVariableWith(DefUse du)
Determines whether the given DefUse reads or writes the same variable as
this DefUse
|
String |
toString() |
canBeExitPoint, canBeInstrumented, compareTo, explain, getActualCFG, getASMNodeString, getBasicBlock, getBranchExpressionValue, getBytecodeOffset, getCalledCFG, getCDG, getCDGDepth, getClassName, getControlDependencies, getControlDependency, getControlDependentBranch, getControlDependentBranchExpressionValue, getControlDependentBranchId, getControlDependentBranchIds, getFieldMethodCallName, getInstructionId, getLineNumber, getMethodName, getName, getRawCFG, getSourceOfArrayReference, getSourceOfMethodInvocationInstruction, getSourceOfStackInstruction, hasBasicBlockSet, hasLineNumberSet, isCallToPublicMethod, isCallToStaticMethod, isDirectlyControlDependentOn, isLastInstructionInMethod, isMethodCallOfField, isMethodCallOnSameObject, isRootBranchDependent, isWithinConstructor, printFrameInformation, proceedsOwnConstructorInvocation, setBasicBlock, setCFGFrame, setLineNumber, toBranchcanReturnFromMethod, getArrayVariableName, getASMNode, getCalledMethod, getCalledMethodName, getCalledMethodsArgumentCount, getCalledMethodsClass, getFieldName, getFieldSimpleName, getFieldType, getInstructionType, getLocalVariableName, getLocalVariableSlot, getMethodCallDescriptor, getType, isActualBranch, isArrayLoadInstruction, isArrayStoreInstruction, isBranch, isBranchLabel, isConstant, isConstructorInvocation, isConstructorInvocation, isDefinition, isDefinitionForVariable, isDefUse, isFieldArrayDefinition, isFieldDefinition, isFieldDU, isFieldNodeDefinition, isFieldNodeDU, isFieldNodeUse, isFieldUse, isFrame, isGoto, isIfNull, isIINC, isInvokeSpecial, isInvokeStatic, isJump, isLabel, isLineNumber, isLoadConstant, isLocalArrayDefinition, isLocalDU, isLocalVariableDefinition, isLocalVariableUse, isLookupSwitch, isMethodCall, isMethodCallForClass, isReturn, isStaticArrayUsage, isStaticDefUse, isSwitch, isTableSwitch, isThrow, isUse, sanityCheckAbstractInsnNodeprotected int defuseId
protected int defId
protected int useId
protected boolean isParameterUse
protected boolean isFieldMethodCall
protected boolean isFieldMethodCallDefinition
protected boolean isFieldMethodCallUse
protected boolean isInStaticMethod
protected String varName
protected DefUse(BytecodeInstruction wrap)
Constructor for DefUse.
wrap - a BytecodeInstruction object.defuseId - a int.defId - a int.useId - a int.isParameterUse - a boolean.public boolean isFieldMethodCallDefinition()
isFieldMethodCallDefinition in class BytecodeInstructionpublic boolean isFieldMethodCallUse()
isFieldMethodCallUse in class BytecodeInstructionpublic boolean canBecomeActiveDefinition(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.public boolean sharesVariableWith(DefUse du)
du - a DefUse object.public boolean sharesVariableWith(BytecodeInstruction instruction)
sharesVariableWith
instruction - a BytecodeInstruction object.public String getVariableName()
getDUVariableName
getVariableName in class ASMWrapperString object.public int getDefUseId()
getDefUseId
public int getUseId()
Getter for the field useId.
public int getDefId()
Getter for the field defId.
public boolean isParameterUse()
isParameterUse
public String toString()
toString in class BytecodeInstructionpublic boolean loadsReferenceToThis()
loadsReferenceToThis in class ASMWrapperpublic int hashCode()
BytecodeInstructionhashCode in class BytecodeInstructionpublic boolean equals(Object obj)
BytecodeInstructionequals in class BytecodeInstructionCopyright © 2010–2017 EvoSuite. All rights reserved.