Class TypePool.Default.LazyTypeDescription.LazyFieldDescription

    • Field Detail

      • name

        private final java.lang.String name
        The name of the field.
      • modifiers

        private final int modifiers
        The modifiers of the field.
      • descriptor

        private final java.lang.String descriptor
        The descriptor of this field's type.
      • genericSignature

        private final java.lang.String genericSignature
        The field's generic signature as found in the class file or null if the field is not generic.
    • Constructor Detail

      • LazyFieldDescription

        private LazyFieldDescription​(java.lang.String name,
                                     int modifiers,
                                     java.lang.String descriptor,
                                     java.lang.String genericSignature,
                                     TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField signatureResolution,
                                     java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens,
                                     java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens)
        Creates a new lazy field description.
        Parameters:
        name - The name of the field.
        modifiers - The modifiers of the field.
        descriptor - The descriptor of this field's type.
        genericSignature - The field's generic signature as found in the class file or null if the field is not generic.
        signatureResolution - A resolution of this field's generic type.
        typeAnnotationTokens - A mapping of the field type's type annotation tokens.
        annotationTokens - A list of annotation descriptions of this field.
    • Method Detail

      • getType

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

        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.