Class VariableElementImpl

  • All Implemented Interfaces:
    javax.lang.model.AnnotatedConstruct, javax.lang.model.element.Element, javax.lang.model.element.VariableElement, UpdateableElement

    public class VariableElementImpl
    extends ElementImpl
    implements javax.lang.model.element.VariableElement
    • Field Detail

      • type

        private javax.lang.model.type.TypeMirror type
      • constantValue

        private java.lang.Object constantValue
    • Constructor Detail

      • VariableElementImpl

        private VariableElementImpl​(javax.lang.model.element.Element enclosingElement,
                                    java.lang.String name)
      • VariableElementImpl

        VariableElementImpl​(java.lang.reflect.Field field)
      • VariableElementImpl

        VariableElementImpl​(java.lang.Enum en)
      • VariableElementImpl

        VariableElementImpl​(java.lang.reflect.Type param,
                            java.lang.annotation.Annotation[] annotation)
    • Method Detail

      • asType

        public javax.lang.model.type.TypeMirror asType()
        Specified by:
        asType in interface javax.lang.model.element.Element
      • getEnclosedElements

        public java.util.List<? extends javax.lang.model.element.Element> getEnclosedElements()
        Specified by:
        getEnclosedElements in interface javax.lang.model.element.Element
      • accept

        public <R,​P> R accept​(javax.lang.model.element.ElementVisitor<R,​P> v,
                                    P p)
        Specified by:
        accept in interface javax.lang.model.element.Element
      • getConstantValue

        public java.lang.Object getConstantValue()
        Specified by:
        getConstantValue in interface javax.lang.model.element.VariableElement
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface javax.lang.model.element.Element
        Overrides:
        hashCode in class ElementImpl
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface javax.lang.model.element.Element
        Overrides:
        equals in class ElementImpl
      • getAnnotationsByType

        public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType​(java.lang.Class<A> annotationType)
        Specified by:
        getAnnotationsByType in interface javax.lang.model.AnnotatedConstruct