Package org.javacc.parser
Class RStringLiteral
- java.lang.Object
-
- org.javacc.parser.Expansion
-
- org.javacc.parser.RegularExpression
-
- org.javacc.parser.RStringLiteral
-
public class RStringLiteral extends RegularExpression
Describes string literals.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]allImagesjava.lang.StringimageThe string image of the literal.-
Fields inherited from class org.javacc.parser.RegularExpression
label, lhsTokens, private_rexp, rhsToken, tpContext
-
Fields inherited from class org.javacc.parser.Expansion
eol, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
-
Constructor Summary
Constructors Constructor Description RStringLiteral()RStringLiteral(Token t, java.lang.String image)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidBuildTokenizerData(TokenizerData tokenizerData)java.lang.StringBufferdump(int indent, java.util.Set alreadyDumped)static voidDumpStrLiteralImages(CodeGenerator codeGenerator)static voidDumpStrLiteralImagesForJava(CodeGenerator codeGenerator)voidGenerateDfa(CodeGenerator codeGenerator, int kind)Used for top level string literals.NfaGenerateNfa(boolean ignoreCase)static voidreInit()Return to original state.static voidReInit()Initialize all the static variables, so that there is no interference between the various states of the lexer.java.lang.StringtoString()static voidUpdateStringLiteralData(int generatedNfaStates, int lexStateIndex)-
Methods inherited from class org.javacc.parser.RegularExpression
CanMatchAnyChar
-
Methods inherited from class org.javacc.parser.Expansion
dumpPrefix, getProductionName, hashCode
-
-
-
-
Constructor Detail
-
RStringLiteral
public RStringLiteral()
-
RStringLiteral
public RStringLiteral(Token t, java.lang.String 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.
-
DumpStrLiteralImages
public static void DumpStrLiteralImages(CodeGenerator codeGenerator)
-
DumpStrLiteralImagesForJava
public static void DumpStrLiteralImagesForJava(CodeGenerator codeGenerator)
-
GenerateDfa
public void GenerateDfa(CodeGenerator codeGenerator, int kind)
Used for top level string literals.
-
GenerateNfa
public Nfa GenerateNfa(boolean ignoreCase)
- Specified by:
GenerateNfain classRegularExpression
-
reInit
public static void reInit()
Return to original state.
-
dump
public java.lang.StringBuffer dump(int indent, java.util.Set alreadyDumped)- Overrides:
dumpin classRegularExpression
-
UpdateStringLiteralData
public static void UpdateStringLiteralData(int generatedNfaStates, int lexStateIndex)
-
BuildTokenizerData
public static void BuildTokenizerData(TokenizerData tokenizerData)
-
-