Class TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget

    • Field Detail

      • bridgeTarget

        private final MethodDescription bridgeTarget
        The target method of the bridge.
      • instrumentedType

        private final TypeDescription instrumentedType
        The instrumented type defining the bridge target.
    • Constructor Detail

      • BridgeTarget

        protected BridgeTarget​(MethodDescription bridgeTarget,
                               TypeDescription instrumentedType)
        Creates a new bridge target.
        Parameters:
        bridgeTarget - The target method of the bridge.
        instrumentedType - The instrumented type defining the bridge target.
    • Method Detail

      • getDeclaringType

        public TypeDescription getDeclaringType()
        Returns the declaring type of this instance.
        Returns:
        The declaring type or null if no such type exists.
      • getReturnType

        public TypeDescription.Generic getReturnType()
        Returns the return type of the described method.
        Returns:
        The return type of the described method.
      • getExceptionTypes

        public TypeList.Generic getExceptionTypes()
        Returns the exception types of the described method.
        Returns:
        The exception types of the described method.
      • getDefaultValue

        public AnnotationValue<?,​?> getDefaultValue()
        Returns the method's default annotation value or null if no default value is defined for this method.
        Returns:
        The method's default annotation value or null if no default value is defined for this method.
      • getTypeVariables

        public TypeList.Generic getTypeVariables()
        Returns the type variables that are declared by this element.
        Returns:
        The type variables that are declared by this element.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.
      • getModifiers

        public int getModifiers()
        Returns the modifier that is described by this object.
        Returns:
        The modifier that is described by this object.
      • getInternalName

        public java.lang.String getInternalName()
        Returns the internal internalName of this byte code element.
        Returns:
        The internal internalName of this byte code element as used within the Java class file format.