org.eclipse.jdt.internal.compiler.apt.model
Class VariableElementImpl
java.lang.Object
org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
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.
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.