Class Transformer.ForField.TransformedField

    • Constructor Detail

      • TransformedField

        protected TransformedField​(TypeDescription instrumentedType,
                                   TypeDefinition declaringType,
                                   FieldDescription.Token token,
                                   FieldDescription.InDefinedShape fieldDescription)
        Creates a new transformed field.
        Parameters:
        instrumentedType - The instrumented type for which this field is transformed.
        declaringType - The field's declaring type.
        token - A field token representing the transformed field.
        fieldDescription - The field's defined shape.
    • Method Detail

      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Description copied from interface: AnnotationSource
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.
      • getDeclaringType

        public TypeDefinition getDeclaringType()
        Description copied from interface: DeclaredByType
        Returns the declaring type of this instance.
        Returns:
        The declaring type or null if no such type exists.
      • getModifiers

        public int getModifiers()
        Description copied from interface: ModifierReviewable
        Returns the modifier that is described by this object.
        Returns:
        The modifier that is described by this object.
      • asDefined

        public FieldDescription.InDefinedShape asDefined()
        Description copied from interface: ByteCodeElement.TypeDependant
        Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved.
        Returns:
        This type dependant in its defined shape.
      • getName

        public java.lang.String getName()
        Description copied from interface: NamedElement.WithRuntimeName
        Returns the internalName of this byte code element.
        Returns:
        The internalName of this byte code element as visible from within a running Java application.