|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--fri.patterns.interpreter.parsergenerator.util.SymbolToName
The contained methods are needed to generate nonterminal names for spawned rules, e.g. for a repeatable nullable rule "(a | b | c)" from the rule "e ::= (a | b | c)* d;".
| Method Summary | |
static java.lang.String |
convert(char c)
Returns a symbolic name for passed symbol, e.g. |
static java.lang.String |
makeIdentifier(java.lang.String symbol)
Converts the passed character sequence (symbol) to a name that can be used as identifier (but not as Java identifier). |
static java.lang.String |
makeIdentifier(java.lang.String symbol,
boolean startIsSignificant)
Converts the passed character sequence (symbol) to a name that can be used as identifier, optionally as Java identifier. |
static java.lang.String |
makeIdentifier(java.lang.String symbol,
java.lang.String enclosingQuoteSubstitute)
Converts the passed character sequence (symbol) to a name that can be used as identifier (but not as Java identifier). |
static java.lang.String |
makeIdentifier(java.lang.String symbol,
java.lang.String enclosingQuoteSubstitute,
boolean startIsSignificant)
Converts the passed character sequence (symbol) to a name that can be used as identifier, optionally as Java identifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String makeIdentifier(java.lang.String symbol)
symbol - character sequence to be converted to identifier
public static java.lang.String makeIdentifier(java.lang.String symbol,
boolean startIsSignificant)
symbol - character sequence to be converted to identifierstartIsSignificant - when true a Java identifier is produced
public static java.lang.String makeIdentifier(java.lang.String symbol,
java.lang.String enclosingQuoteSubstitute)
symbol - character sequence to be converted to identifierenclosingQuoteSubstitute - the string to be used for enclosing quotes
public static java.lang.String makeIdentifier(java.lang.String symbol,
java.lang.String enclosingQuoteSubstitute,
boolean startIsSignificant)
symbol - character sequence to be converted to identifierenclosingQuoteSubstitute - the string to be used for enclosing quotesstartIsSignificant - when true a Java identifier is producedpublic static java.lang.String convert(char c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||