Class FieldDescription.ForLoadedField

    • Field Detail

      • field

        private final java.lang.reflect.Field field
        The represented loaded field.
    • Constructor Detail

      • ForLoadedField

        public ForLoadedField​(java.lang.reflect.Field field)
        Creates an immutable field description for a loaded field.
        Parameters:
        field - The represented field.
    • Method Detail

      • getType

        public TypeDescription.Generic getType()
        Returns the type of the described field.
        Returns:
        The type of the described field.
      • getDeclaredAnnotations

        @Enhance("declaredAnnotations")
        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.
      • getName

        public java.lang.String getName()
        Returns the internalName of this byte code element.
        Returns:
        The internalName of this byte code element as visible from within a running Java application.
      • getDeclaringType

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

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