| java.lang.Object org.jruby.lexer.yacc.StrTerm
All known Subclasses: org.jruby.lexer.yacc.HeredocTerm, org.jruby.lexer.yacc.StringTerm,
StrTerm | abstract public class StrTerm (Code) | | |
EMBEDDED_DEXPR | final static int EMBEDDED_DEXPR(Code) | | Flag set in embeddedCode when we are processing an embedded code expression: #{foo}
|
EMBEDDED_DVAR | final static int EMBEDDED_DVAR(Code) | | Flag set in embeddedCode when we are processing an embedded variable: #@foo
|
IGNORE_EMBEDDED | final static int IGNORE_EMBEDDED(Code) | | Default; ignore embedded fragments
|
LOOKING_FOR_EMBEDDED | final static int LOOKING_FOR_EMBEDDED(Code) | | Flag set in embeddedCode when we are processing an embedded code expression: #{foo}
|
processingEmbedded | protected int processingEmbedded(Code) | | Flag set while we're processing embedded Ruby expressions. It will be 0 when we are not,
or otherwise set to the the relevant embedded type (EMBEDDED_DVAR or EMBEDDED_DEXPR)
|
getMutableState | abstract public Object getMutableState()(Code) | | Record any mutable state from this StrTerm such that it can
be set back to this exact state through a call to
StrTerm.setMutableState 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}".
|
isSubstituting | abstract public boolean isSubstituting()(Code) | | Report whether this string should be substituting things like \n into newlines (double
quoting rules).
E.g. are we dealing with a "" string or a '' string (or their alternate representations)
|
splitEmbeddedTokens | abstract public void splitEmbeddedTokens()(Code) | | Tell this string term to return separate tokens for embedded ruby code (#$foo, #@foo, #{foo})
|
|
|