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

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


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()
           
 List<? extends Element> getEnclosedElements()
           
 Element getEnclosingElement()
           
 String getFileName()
          Get the project-relative path to the source file that contains this element.
 List<? extends TypeMirror> getInterfaces()
           
 ElementKind getKind()
           
 Set<Modifier> getModifiers()
           
 NestingKind getNestingKind()
           
 Name getQualifiedName()
           
 Name getSimpleName()
           
 TypeMirror getSuperclass()
           
 List<? extends TypeParameterElement> getTypeParameters()
           
 boolean hides(Element hidden)
          Subclassed by VariableElementImpl, TypeElementImpl, and ExecutableElementImpl.
 String toString()
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.apt.model.ElementImpl
asType, equals, getAnnotation, getAnnotationMirrors, 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

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.