Package EDU.purdue.jtb.parser
Class RStringLiteral
- java.lang.Object
-
- EDU.purdue.jtb.parser.Expansion_
-
- EDU.purdue.jtb.parser.RegularExpression_
-
- EDU.purdue.jtb.parser.RStringLiteral
-
public class RStringLiteral extends RegularExpression_
Describes string literals.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class EDU.purdue.jtb.parser.Expansion_
Expansion_.EXP_TYPE
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
allImages
java.lang.String
image
The string image of the literal-
Fields inherited from class EDU.purdue.jtb.parser.RegularExpression_
label, lhsTokens, private_rexp, rhsToken, tpContext
-
Fields inherited from class EDU.purdue.jtb.parser.Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
-
Constructor Summary
Constructors Constructor Description RStringLiteral()
Standard constructorRStringLiteral(Token t, java.lang.String im)
Constructor with parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
dump(int indent, java.util.Set<java.lang.Object> alreadyDumped)
static void
ReInit()
Initialize all the static variables, so that there is no interference between the various states of the lexer.java.lang.String
toString()
-
Methods inherited from class EDU.purdue.jtb.parser.RegularExpression_
CanMatchAnyChar
-
Methods inherited from class EDU.purdue.jtb.parser.Expansion_
dumpPrefix
-
-
-
-
Constructor Detail
-
RStringLiteral
public RStringLiteral()
Standard constructor
-
RStringLiteral
public RStringLiteral(Token t, java.lang.String im)
Constructor with parameters.- Parameters:
t
- - the tokenim
- - the token image
-
-
Method Detail
-
ReInit
public static void ReInit()
Initialize all the static variables, so that there is no interference between the various states of the lexer. Need to call this method after generating code for each lexical state.
-
dump
public java.lang.StringBuilder dump(int indent, java.util.Set<java.lang.Object> alreadyDumped)
- Overrides:
dump
in classRegularExpression_
- Parameters:
indent
- - the number of spaces for indentingalreadyDumped
- - a Set of objects already dumped (unused)- Returns:
- the formatted string dumping the class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classExpansion_
-
-