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

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl
      extended by org.eclipse.jdt.internal.compiler.apt.model.DeclaredTypeImpl
All Implemented Interfaces:
DeclaredType, ReferenceType, TypeMirror
Direct Known Subclasses:
ErrorTypeImpl

public class DeclaredTypeImpl
extends TypeMirrorImpl
implements DeclaredType

Implementation of DeclaredType, which refers to a particular usage or instance of a type. Contrast with TypeElement, which is an element that potentially defines a family of DeclaredTypes.


Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl
_binding, _env
 
Method Summary
<R,P> R
accept(TypeVisitor<R,P> v, P p)
           
 Element asElement()
           
 TypeMirror getEnclosingType()
           
 TypeKind getKind()
           
 List<? extends TypeMirror> getTypeArguments()
           
 String toString()
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.lang.model.type.TypeMirror
equals, hashCode
 

Method Detail

asElement

public Element asElement()
Specified by:
asElement in interface DeclaredType

getEnclosingType

public TypeMirror getEnclosingType()
Specified by:
getEnclosingType in interface DeclaredType

getTypeArguments

public List<? extends TypeMirror> getTypeArguments()
Specified by:
getTypeArguments in interface DeclaredType

accept

public <R,P> R accept(TypeVisitor<R,P> v,
                      P p)
Specified by:
accept in interface TypeMirror
Overrides:
accept in class TypeMirrorImpl

getKind

public TypeKind getKind()
Specified by:
getKind in interface TypeMirror
Overrides:
getKind in class TypeMirrorImpl

toString

public String toString()
Specified by:
toString in interface TypeMirror
Overrides:
toString in class TypeMirrorImpl


Copyright © 2012. All Rights Reserved.