public class DefUseFactory extends Object
| Constructor and Description |
|---|
DefUseFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Definition |
makeDefinition(BytecodeInstruction instruction)
Returns a Definition instance given a BytecodeInstruction for which
isDefinition() is true
|
static DefUse |
makeInstance(BytecodeInstruction instruction)
Convenience method to offer DefUse-Functionality for when
it doesn't matter whether a Definition or Use is returned
Returns a Definition instance
given a BytecodeInstruction for which isDefinition() is true
Otherwise returns a Use instance
given a BytecodeInstruction for which isUse() is true
WARNING: when given the wrap for an IINC this method will return a Definition
|
static Use |
makeUse(BytecodeInstruction instruction)
Returns a Use instance given a BytecodeInstruction for which isUse() is
true
|
public static Use makeUse(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.Use object.public static Definition makeDefinition(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.Definition object.public static DefUse makeInstance(BytecodeInstruction instruction)
instruction - a BytecodeInstruction object.DefUse object.Copyright © 2010–2017 EvoSuite. All rights reserved.