Package org.sonar.python.tree
Class StringLiteralImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.StringLiteralImpl
-
- All Implemented Interfaces:
Expression,StringLiteral,Tree
public class StringLiteralImpl extends PyTree implements StringLiteral
-
-
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()List<StringElement>stringElements()StringtrimmedQuotesValue()InferredTypetype()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Method Detail
-
accept
public void accept(TreeVisitor visitor)
-
stringElements
public List<StringElement> stringElements()
- Specified by:
stringElementsin interfaceStringLiteral
-
trimmedQuotesValue
public String trimmedQuotesValue()
- Specified by:
trimmedQuotesValuein interfaceStringLiteral
-
type
public InferredType type()
- Specified by:
typein interfaceExpression
-
-