Class Symbols.UnkownTypeSymbol
java.lang.Object
org.sonar.java.model.Symbols.DefaultSymbol
org.sonar.java.model.Symbols.UnknownSymbol
org.sonar.java.model.Symbols.UnkownTypeSymbol
- All Implemented Interfaces:
Symbol, Symbol.TypeSymbol
- Enclosing class:
Symbols
public static final class Symbols.UnkownTypeSymbol
extends Symbols.UnknownSymbol
implements Symbol.TypeSymbol
-
Nested Class Summary
Nested classes/interfaces inherited from interface Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbolModifier and TypeInterfaceDescriptionstatic interfaceLabel symbol.static interfaceSymbol for methods.static interfaceSymbol for a type : class, enum, interface or annotation.static interfaceSymbol for field, method parameters and local variables. -
Field Summary
Fields inherited from interface Symbol
ROOT_PACKAGE, UNKNOWN_SYMBOLFields inherited from interface Symbol.TypeSymbol
UNKNOWN_TYPEModifier and TypeFieldDescriptionstatic final Symbol.TypeSymbolAn instance ofSymbol.TypeSymbolrepresenting an unknown type symbol -
Constructor Summary
Constructors -
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 class Symbols.UnknownSymbol
enclosingClass, isUnknown, name, owner, type, usagesModifier and TypeMethodDescriptionfinal Symbol.TypeSymbolThe closest enclosing class.booleanname()Name of this symbol.owner()The owner of this symbol.final Typetype()Type of symbol.final List<IdentifierTree> usages()The identifier trees that reference this symbol.Methods inherited from class Symbols.DefaultSymbol
isAbstract, isDeprecated, isEnum, isFinal, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isVariableSymbol, isVolatile, metadataModifier and TypeMethodDescriptionfinal booleanfinal booleanfinal booleanisEnum()booleanisFinal()final booleanbooleanbooleanfinal booleanfinal booleanfinal booleanfinal booleanisPublic()final booleanisStatic()final booleanbooleanfinal booleanmetadata()Symbol metadata informations, annotations for instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Symbol
isLocalVariable, isParameterModifier and TypeMethodDescriptiondefault booleandefault boolean
-
Constructor Details
-
UnkownTypeSymbol
public UnkownTypeSymbol()
-
-
Method Details
-
declaration
Description copied from interface:SymbolDeclaration node of this symbol. Currently, only works for declaration within the same file.- Specified by:
declarationin interfaceSymbol- Specified by:
declarationin interfaceSymbol.TypeSymbol- Overrides:
declarationin classSymbols.UnknownSymbol- Returns:
- the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
-
superTypes
- Specified by:
superTypesin interfaceSymbol.TypeSymbol- Returns:
- the set of types that are super types of this type (extended classes and implemented interfaces).
-
outermostClass
- Specified by:
outermostClassin interfaceSymbol.TypeSymbol- Returns:
- the most outer class containing this symbol.
-
isAnnotation
public boolean isAnnotation()- Specified by:
isAnnotationin interfaceSymbol.TypeSymbol- Returns:
- true if this type is an annotation.
-
superClass
Description copied from interface:Symbol.TypeSymbolReturns the superclass of this type symbol.- Specified by:
superClassin interfaceSymbol.TypeSymbol- Returns:
- null for java.lang.Object, the superclass for every other type.
-
interfaces
Description copied from interface:Symbol.TypeSymbolInterfaces implemented by this type.- Specified by:
interfacesin interfaceSymbol.TypeSymbol- Returns:
- an empty list if this type does not implement any interface.
-
memberSymbols
Description copied from interface:Symbol.TypeSymbolList of symbols defined by this type symbols. This will not return any inherited symbol.- Specified by:
memberSymbolsin interfaceSymbol.TypeSymbol- Returns:
- The collection of symbols defined by this type.
-
lookupSymbols
Description copied from interface:Symbol.TypeSymbolLookup symbols accessible from this type with the name passed in parameter.- Specified by:
lookupSymbolsin interfaceSymbol.TypeSymbol- Parameters:
name- name of searched symbol.- Returns:
- A collection of symbol matching the looked up name.
-