Package org.sonar.python.tree
Class NameImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.NameImpl
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>computeChildren()Tree.KindgetKind()booleanisVariable()Stringname()voidsetSymbol(Symbol symbol)voidsetUsage(Usage usage)Symbolsymbol()InferredTypetype()Usageusage()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
NameImpl
public NameImpl(Token token, boolean isVariable)
-
-
Method Detail
-
isVariable
public boolean isVariable()
- Specified by:
isVariablein interfaceName
-
accept
public void accept(TreeVisitor visitor)
-
symbol
@CheckForNull public Symbol symbol()
-
usage
@CheckForNull public Usage usage()
-
setSymbol
public void setSymbol(Symbol symbol)
-
setUsage
public void setUsage(Usage usage)
-
type
public InferredType type()
- Specified by:
typein interfaceExpression
-
-