Package org.sonar.python.semantic
Class SymbolImpl
- java.lang.Object
-
- org.sonar.python.semantic.SymbolImpl
-
- All Implemented Interfaces:
Symbol
- Direct Known Subclasses:
AmbiguousSymbolImpl,ClassSymbolImpl,FunctionSymbolImpl
public class SymbolImpl extends Object implements Symbol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.symbols.Symbol
Symbol.Kind
-
-
Constructor Summary
Constructors Constructor Description SymbolImpl(String name, String fullyQualifiedName)SymbolImpl(String name, String fullyQualifiedName, String annotatedTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringannotatedTypeName()Returns fully qualified name of the type if anyStringfullyQualifiedName()InferredTypeinferredType()booleanis(Symbol.Kind... kinds)Symbol.Kindkind()Stringname()voidremoveUsages()voidsetAnnotatedTypeName(TypeAnnotation typeAnnotation)voidsetInferredType(InferredType inferredType)voidsetKind(Symbol.Kind kind)List<Usage>usages()
-
-
-
Method Detail
-
fullyQualifiedName
@CheckForNull public String fullyQualifiedName()
- Specified by:
fullyQualifiedNamein interfaceSymbol
-
is
public boolean is(Symbol.Kind... kinds)
-
kind
public Symbol.Kind kind()
-
setKind
public void setKind(Symbol.Kind kind)
-
inferredType
public InferredType inferredType()
-
setInferredType
public void setInferredType(InferredType inferredType)
-
annotatedTypeName
public String annotatedTypeName()
Description copied from interface:SymbolReturns fully qualified name of the type if any- Specified by:
annotatedTypeNamein interfaceSymbol
-
setAnnotatedTypeName
public void setAnnotatedTypeName(TypeAnnotation typeAnnotation)
-
removeUsages
public void removeUsages()
-
-