Interface Symbol.TypeSymbol
- All Superinterfaces:
Symbol
- All Known Implementing Classes:
Symbols.UnkownTypeSymbol
- Enclosing interface:
Symbol
Symbol for a type : class, enum, interface or annotation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbol -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Symbol.TypeSymbolAn instance ofSymbol.TypeSymbolrepresenting an unknown type symbolFields inherited from interface Symbol
ROOT_PACKAGE, UNKNOWN_SYMBOL -
Method Summary
Modifier and TypeMethodDescriptionDeclaration node of this symbol.Interfaces implemented by this type.booleanlookupSymbols(String name) Lookup symbols accessible from this type with the name passed in parameter.List of symbols defined by this type symbols.Returns the superclass of this type symbol.Methods inherited from interface Symbol
enclosingClass, isAbstract, isDeprecated, isEnum, isFinal, isInterface, isLocalVariable, isMethodSymbol, isPackageSymbol, isPackageVisibility, isParameter, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, owner, type, usages
-
Field Details
-
UNKNOWN_TYPE
An instance ofSymbol.TypeSymbolrepresenting an unknown type symbol
-
-
Method Details
-
superClass
Returns the superclass of this type symbol.- Returns:
- null for java.lang.Object, the superclass for every other type.
-
interfaces
-
memberSymbols
Collection<Symbol> memberSymbols()List of symbols defined by this type symbols. This will not return any inherited symbol.- Returns:
- The collection of symbols defined by this type.
-
lookupSymbols
Lookup symbols accessible from this type with the name passed in parameter.- Parameters:
name- name of searched symbol.- Returns:
- A collection of symbol matching the looked up name.
-
declaration
Description copied from interface:SymbolDeclaration node of this symbol. Currently, only works for declaration within the same file.- Specified by:
declarationin interfaceSymbol- Returns:
- the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
-
superTypes
-
outermostClass
Symbol.TypeSymbol outermostClass()- Returns:
- the most outer class containing this symbol.
-
isAnnotation
boolean isAnnotation()- Returns:
- true if this type is an annotation.
-