Class MethodTree


  • public class MethodTree
    extends Object
    • 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()