org.eclipse.jdt.internal.compiler.apt.model
Class TypeElementImpl
java.lang.Object
org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
org.eclipse.jdt.internal.compiler.apt.model.TypeElementImpl
- All Implemented Interfaces:
- Element, TypeElement, IElementInfo
- Direct Known Subclasses:
- ErrorTypeElement
public class TypeElementImpl
- extends ElementImpl
- implements TypeElement
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
getEnclosedElements
public List<? extends Element> getEnclosedElements()
- Specified by:
getEnclosedElements
in interface Element
getEnclosingElement
public Element getEnclosingElement()
- Specified by:
getEnclosingElement
in interface Element
getFileName
public String getFileName()
- Description copied from interface:
IElementInfo
- Get the project-relative path to the source file that contains this element.
If the element is a PackageElement, the "source file" is package-info.java.
If the element is not recognized or does not exist in the project for some
reason, returns null.
- Specified by:
getFileName
in interface IElementInfo
- Overrides:
getFileName
in class ElementImpl
- Returns:
- the project-relative path, or null.
getInterfaces
public List<? extends TypeMirror> getInterfaces()
- Specified by:
getInterfaces
in interface TypeElement
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
getNestingKind
public NestingKind getNestingKind()
- Specified by:
getNestingKind
in interface TypeElement
getQualifiedName
public Name getQualifiedName()
- Specified by:
getQualifiedName
in interface TypeElement
getSimpleName
public Name getSimpleName()
- Specified by:
getSimpleName
in interface Element
- Overrides:
getSimpleName
in class ElementImpl
getSuperclass
public TypeMirror getSuperclass()
- Specified by:
getSuperclass
in interface TypeElement
getTypeParameters
public List<? extends TypeParameterElement> getTypeParameters()
- Specified by:
getTypeParameters
in interface TypeElement
hides
public boolean hides(Element hidden)
- 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.