Package org.sonar.java.resolve
Class JavaSymbol.TypeVariableJavaSymbol
- java.lang.Object
-
- org.sonar.java.resolve.JavaSymbol
-
- org.sonar.java.resolve.JavaSymbol.TypeJavaSymbol
-
- org.sonar.java.resolve.JavaSymbol.TypeVariableJavaSymbol
-
- All Implemented Interfaces:
Symbol,Symbol.TypeSymbol
- Enclosing class:
- JavaSymbol
public static class JavaSymbol.TypeVariableJavaSymbol extends JavaSymbol.TypeJavaSymbol
Represents type variable of a parametrized type ie: T in class Foo{}
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.resolve.JavaSymbol
JavaSymbol.JavaLabelSymbol, JavaSymbol.MethodJavaSymbol, JavaSymbol.PackageJavaSymbol, JavaSymbol.TypeJavaSymbol, JavaSymbol.TypeVariableJavaSymbol, JavaSymbol.VariableJavaSymbol, JavaSymbol.WildcardSymbol
-
Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.semantic.Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbol
-
-
Constructor Summary
Constructors Constructor Description TypeVariableJavaSymbol(String name, JavaSymbol owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassTreedeclaration()Declaration node of this symbol.StringgetFullyQualifiedName()List<JavaType>getInterfaces()JavaTypegetSuperclass()-
Methods inherited from class org.sonar.java.resolve.JavaSymbol.TypeJavaSymbol
addTypeParameter, directSuperTypes, interfaces, lookupSymbols, members, memberSymbols, superClass, superTypes, toString, typeParameters
-
Methods inherited from class org.sonar.java.resolve.JavaSymbol
addUsage, callbackOnceComplete, complete, enclosingClass, flags, getName, getType, isAbstract, isAnnotation, isDefault, isDeprecated, isEnum, isFinal, isFlag, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, outermostClass, owner, packge, type, usages
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.java.api.semantic.Symbol
enclosingClass, isAbstract, isDeprecated, isEnum, isFinal, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, owner, type, usages
-
-
-
-
Constructor Detail
-
TypeVariableJavaSymbol
public TypeVariableJavaSymbol(String name, JavaSymbol owner)
-
-
Method Detail
-
getSuperclass
@Nullable public JavaType getSuperclass()
- Overrides:
getSuperclassin classJavaSymbol.TypeJavaSymbol
-
getInterfaces
public List<JavaType> getInterfaces()
- Overrides:
getInterfacesin classJavaSymbol.TypeJavaSymbol
-
declaration
public ClassTree 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 classJavaSymbol.TypeJavaSymbol- Returns:
- the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
-
getFullyQualifiedName
public String getFullyQualifiedName()
- Overrides:
getFullyQualifiedNamein classJavaSymbol.TypeJavaSymbol
-
-