|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrubyparser.lexer.StrTerm
public abstract class StrTerm
| Field Summary | |
|---|---|
protected int |
processingEmbedded
Flag set while we're processing embedded Ruby expressions. |
| Constructor Summary | |
|---|---|
StrTerm()
|
|
| Method Summary | |
|---|---|
abstract Object |
getMutableState()
Record any mutable state from this StrTerm such that it can be set back to this exact state through a call to setMutableState(java.lang.Object)
later on. |
abstract boolean |
isSubstituting()
Report whether this string should be substituting things like \n into newlines (double quoting rules). |
abstract int |
parseString(Lexer lexer,
LexerSource src)
|
abstract void |
setMutableState(Object o)
Support for incremental lexing: set current state of the term. |
abstract void |
splitEmbeddedTokens()
Tell this string term to return separate tokens for embedded ruby code (#$foo, #@foo, #{foo}) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int processingEmbedded
| Constructor Detail |
|---|
public StrTerm()
| Method Detail |
|---|
public abstract int parseString(Lexer lexer,
LexerSource src)
throws IOException
IOExceptionpublic abstract void splitEmbeddedTokens()
public abstract boolean isSubstituting()
public abstract Object getMutableState()
setMutableState(java.lang.Object)
later on. Necessary for incremental lexing where we may restart
lexing parts of a string (since they can be split up due to
Ruby embedding like "Evaluated by Ruby: #{foo}".
public abstract void setMutableState(Object o)
getMutableState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||