public static class Symbol.ClassSymbol extends Symbol.TypeSymbol implements TypeElement
Symbol.ClassSymbol, Symbol.Completer, Symbol.CompletionFailure, Symbol.DelegatedSymbol<T extends Symbol>, Symbol.DynamicMethodSymbol, Symbol.MethodSymbol, Symbol.OperatorSymbol, Symbol.PackageSymbol, Symbol.TypeSymbol, Symbol.TypeVariableSymbol, Symbol.VarSymbol, Symbol.Visitor<R,P>
Modifier and Type | Field and Description |
---|---|
JavaFileObject |
classfile
the classfile from where to load this class
this will have extension .class or .java
|
Name |
flatname
the fully qualified name of the class after converting to flat
representation, i.e.
|
Name |
fullname
the fully qualified name of the class, i.e.
|
Scope |
members_field
a scope for all class members; variables, methods and inner classes
type parameters are not part of this scope
|
Pool |
pool
the constant pool of the class
|
JavaFileObject |
sourcefile
the sourcefile where the class came from
|
List<Symbol.ClassSymbol> |
trans_local
the list of translated local classes (used for generating
InnerClasses attribute)
|
completer, erasure_field, flags_field, kind, metadata, name, owner, type
Constructor and Description |
---|
ClassSymbol(long flags,
Name name,
Symbol owner) |
ClassSymbol(long flags,
Name name,
Type type,
Symbol owner) |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
<R,P> R |
accept(Symbol.Visitor<R,P> v,
P p) |
String |
className() |
void |
complete()
Complete the elaboration of this symbol's definition.
|
Type |
erasure(Types types)
The symbol's erased type.
|
long |
flags()
An accessor method for the flags of this symbol.
|
Name |
flatName()
The fully qualified name of this symbol after converting to flat
representation.
|
protected <A extends Annotation> |
getAttribute(Class<A> annoType) |
protected <A extends Annotation> |
getInheritedAnnotations(Class<A> annoType) |
List<Type> |
getInterfaces() |
ElementKind |
getKind() |
Set<Modifier> |
getModifiers() |
NestingKind |
getNestingKind() |
Name |
getQualifiedName()
The fully qualified name of this symbol.
|
List<Attribute.Compound> |
getRawAttributes()
An accessor method for the attributes of this symbol.
|
List<Attribute.TypeCompound> |
getRawTypeAttributes()
An accessor method for the type attributes of this symbol.
|
Type |
getSuperclass() |
boolean |
isSubClass(Symbol base,
Types types)
Is this symbol a subclass of `base'? Only defined for ClassSymbols.
|
Scope |
members()
If this is a class or package, its members, otherwise null.
|
String |
toString()
The Java source which this symbol represents.
|
formFlatName, formFullName, getEnclosedElements, precedes
annotationsPendingCompletion, appendAttributes, appendClassInitTypeAttributes, appendInitTypeAttributes, appendTypeAttributesWithCompletion, appendUniqueTypeAttributes, asMemberOf, asType, attribute, baseSymbol, clone, enclClass, exists, externalType, getAnnotationMirrors, getClassInitTypeAttributes, getDeclarationAttributes, getEnclosingElement, getInitTypeAttributes, getMetadata, getSimpleName, getTypeParameters, hasAnnotations, hasOuterInstance, hasTypeAnnotations, isAnonymous, isConstructor, isDeprecated, isEnclosedBy, isEnum, isInheritedIn, isInner, isInterface, isLocal, isMemberOf, isPrivate, isStatic, location, location, outermostClass, overrides, packge, prependAttributes, resetAnnotations, setAttributes, setDeclarationAttributes, setDeclarationAttributesWithCompletion, setTypeAttributes
getAnnotation, getAnnotationsByType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnclosedElements, getEnclosingElement, getSimpleName, getTypeParameters
asType, equals, getAnnotation, getAnnotationMirrors, hashCode
getAnnotationsByType
public Scope members_field
public Name fullname
public Name flatname
public JavaFileObject sourcefile
public JavaFileObject classfile
public List<Symbol.ClassSymbol> trans_local
public Pool pool
public String toString()
public long flags()
Symbol
public Scope members()
Symbol
public List<Attribute.Compound> getRawAttributes()
Symbol
getRawAttributes
in class Symbol
public List<Attribute.TypeCompound> getRawTypeAttributes()
Symbol
getRawTypeAttributes
in class Symbol
public Type erasure(Types types)
Symbol
public String className()
public Name getQualifiedName()
Symbol
getQualifiedName
in interface QualifiedNameable
getQualifiedName
in interface TypeElement
getQualifiedName
in class Symbol
public Name flatName()
Symbol
public boolean isSubClass(Symbol base, Types types)
Symbol
isSubClass
in class Symbol
public void complete() throws Symbol.CompletionFailure
complete
in class Symbol
Symbol.CompletionFailure
public List<Type> getInterfaces()
getInterfaces
in interface TypeElement
public Type getSuperclass()
getSuperclass
in interface TypeElement
protected <A extends Annotation> A[] getInheritedAnnotations(Class<A> annoType)
getInheritedAnnotations
in class AnnoConstruct
public ElementKind getKind()
public Set<Modifier> getModifiers()
getModifiers
in interface Element
getModifiers
in class Symbol
public NestingKind getNestingKind()
getNestingKind
in interface TypeElement
protected <A extends Annotation> Attribute.Compound getAttribute(Class<A> annoType)
getAttribute
in class AnnoConstruct
public <R,P> R accept(ElementVisitor<R,P> v, P p)
public <R,P> R accept(Symbol.Visitor<R,P> v, P p)
accept
in class Symbol.TypeSymbol
Copyright © 2017 earcam. All rights reserved.