org.eclipse.jdt.internal.compiler.apt.model
Class VariableElementImpl

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
      extended by org.eclipse.jdt.internal.compiler.apt.model.VariableElementImpl
All Implemented Interfaces:
Element, VariableElement, IElementInfo

public class VariableElementImpl
extends ElementImpl
implements VariableElement

Implementation of VariableElement, which represents a a field, enum constant, method or constructor parameter, local variable, or exception parameter.


Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
_binding, _env
 
Method Summary
<R,P> R
accept(ElementVisitor<R,P> v, P p)
           
protected  AnnotationBinding[] getAnnotationBindings()
           
 Object getConstantValue()
           
 List<? extends Element> getEnclosedElements()
           
 Element getEnclosingElement()
           
 ElementKind getKind()
           
 Set<Modifier> getModifiers()
           
 Name getSimpleName()
           
 boolean hides(Element hiddenElement)
          Subclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl.
 String toString()
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
asType, equals, getAnnotation, getAnnotationMirrors, getFileName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.lang.model.element.Element
asType, equals, getAnnotation, getAnnotationMirrors, hashCode
 

Method Detail

accept

public <R,P> R accept(ElementVisitor<R,P> v,
                      P p)
Specified by:
accept in interface Element

getAnnotationBindings

protected AnnotationBinding[] getAnnotationBindings()
Specified by:
getAnnotationBindings in class ElementImpl
Returns:
the set of compiler annotation bindings on this element

getConstantValue

public Object getConstantValue()
Specified by:
getConstantValue in interface VariableElement

getEnclosedElements

public List<? extends Element> getEnclosedElements()
Specified by:
getEnclosedElements in interface Element

getEnclosingElement

public Element getEnclosingElement()
Specified by:
getEnclosingElement in interface Element

getKind

public ElementKind getKind()
Specified by:
getKind in interface Element

getModifiers

public Set<Modifier> getModifiers()
Specified by:
getModifiers in interface Element
Overrides:
getModifiers in class ElementImpl

getSimpleName

public Name getSimpleName()
Specified by:
getSimpleName in interface Element
Overrides:
getSimpleName in class ElementImpl

hides

public boolean hides(Element hiddenElement)
Description copied from class: ElementImpl
Subclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl. This base implementation suffices for other types.

Overrides:
hides in class ElementImpl
Returns:
true if this element hides hidden
See Also:
Elements#hides()

toString

public String toString()
Overrides:
toString in class ElementImpl


Copyright © 2012. All Rights Reserved.