Package org.sonar.plugins.jcl.api.tree
Interface QuotedStringTree
- All Superinterfaces:
ExpressionTree,HasTextRange,JclTree
A string value enclosed in apostrophes, such as
'HELLO'.
As quoted strings may be continued across several lines (see
IBM Reference - Continuing parameter fields enclosed in apostrophes
), the tree may contain multiple syntax tokens, one for each continued line.
The method stringValue() returns the value of all parts of the quoted string joined together.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.plugins.jcl.api.tree.JclTree
JclTree.Kind -
Method Summary
Methods inherited from interface org.sonar.plugins.jcl.api.tree.HasTextRange
textRange
-
Method Details
-
openingQuote
SyntaxToken openingQuote()- Returns:
- the opening quote token.
-
values
List<SyntaxToken> values()- Returns:
- the list of tokens that make up the value of the quoted string.
-
stringValue
String stringValue()- Returns:
- the value of all parts of the quoted string joined together.
-
closingQuote
SyntaxToken closingQuote()- Returns:
- the closing quote token.
-