Package org.pitest.bytecode.analysis
Class MethodTree
- java.lang.Object
-
- org.pitest.bytecode.analysis.MethodTree
-
public class MethodTree extends Object
-
-
Constructor Summary
Constructors Constructor Description MethodTree(ClassName owner, org.objectweb.asm.tree.MethodNode rawNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.objectweb.asm.tree.AnnotationNode>annotations()LocationasLocation()org.objectweb.asm.tree.AbstractInsnNodeinstruction(int index)List<org.objectweb.asm.tree.AbstractInsnNode>instructions()booleanisBridge()booleanisGeneratedLambdaMethod()booleanisPrivate()booleanisSynthetic()org.objectweb.asm.tree.MethodNoderawNode()org.objectweb.asm.tree.AbstractInsnNoderealInstructionBefore(int index)Looks backwards for the next real instruction node (i.e.booleanreturns(ClassName clazz)
-
-
-
Constructor Detail
-
MethodTree
public MethodTree(ClassName owner, org.objectweb.asm.tree.MethodNode rawNode)
-
-
Method Detail
-
rawNode
public org.objectweb.asm.tree.MethodNode rawNode()
-
asLocation
public Location asLocation()
-
realInstructionBefore
public org.objectweb.asm.tree.AbstractInsnNode realInstructionBefore(int index)
Looks backwards for the next real instruction node (i.e. not a label or line number)- Parameters:
index- index to work backwards from- Returns:
- The previous instruction
-
instruction
public org.objectweb.asm.tree.AbstractInsnNode instruction(int index)
-
instructions
public List<org.objectweb.asm.tree.AbstractInsnNode> instructions()
-
isSynthetic
public boolean isSynthetic()
-
isGeneratedLambdaMethod
public boolean isGeneratedLambdaMethod()
-
isBridge
public boolean isBridge()
-
isPrivate
public boolean isPrivate()
-
returns
public boolean returns(ClassName clazz)
-
annotations
public List<org.objectweb.asm.tree.AnnotationNode> annotations()
-
-