|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.parser.ParserConfiguration
public class ParserConfiguration
Constructor Summary | |
---|---|
ParserConfiguration(int lineNumber,
boolean inlineSource)
|
|
ParserConfiguration(int lineNumber,
boolean extraPositionInformation,
boolean inlineSource)
|
|
ParserConfiguration(int lineNumber,
boolean extraPositionInformation,
boolean inlineSource,
boolean isFileParse)
|
Method Summary | |
---|---|
int |
getLineNumber()
|
DynamicScope |
getScope()
This method returns the appropriate first scope for the parser. |
boolean |
hasExtraPositionInformation()
Should positions of nodes provide addition information? |
boolean |
isDubyExtensionsEnabled()
|
boolean |
isEvalParse()
Is the requested parse for an eval()? |
boolean |
isInlineSource()
Are we parsing source provided as part of the '-e' option to Ruby. |
void |
parseAsBlock(DynamicScope existingScope)
If we are performing an eval we should pass existing scope in. |
void |
setEvalParse(boolean isEvalParse)
Set whether this is an parsing of an eval() or not. |
void |
setExtraPositionInformation(boolean extraPositionInformation)
Should positions of nodes provide additional information in them (like character offsets). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParserConfiguration(int lineNumber, boolean inlineSource)
public ParserConfiguration(int lineNumber, boolean extraPositionInformation, boolean inlineSource)
public ParserConfiguration(int lineNumber, boolean extraPositionInformation, boolean inlineSource, boolean isFileParse)
Method Detail |
---|
public void setEvalParse(boolean isEvalParse)
isEvalParse
- says how we should look at itpublic void setExtraPositionInformation(boolean extraPositionInformation)
extraPositionInformation
- public boolean hasExtraPositionInformation()
public boolean isEvalParse()
public int getLineNumber()
public void parseAsBlock(DynamicScope existingScope)
existingScope
- is the scope that captures new vars, etc...public DynamicScope getScope()
public boolean isInlineSource()
public boolean isDubyExtensionsEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |