|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.parser.ParserSupport
Ruby 1.6.7 compatible.
Constructor Summary | |
ParserSupport()
|
Method Summary | |
INode |
appendPrintToBlock(INode block)
|
INode |
appendToBlock(INode head,
INode tail)
|
INode |
appendWhileLoopToBlock(INode block,
boolean chop,
boolean split)
|
INode |
arg_blk_pass(IListNode firstNode,
BlockPassNode secondNode)
|
void |
backrefAssignError(INode node)
|
void |
checkExpression(INode node)
|
void |
checkUselessStatement(INode node)
|
void |
checkUselessStatements(BlockNode blockNode)
|
INode |
getAccessNode(java.lang.String id,
ISourcePosition iPosition)
Returns a Node representing the access of the variable or constant named id. |
INode |
getAssignmentNode(java.lang.String name,
INode valueNode,
ISourcePosition position)
Returns a Node representing the assignment of value to the variable or constant named id. |
INode |
getAttributeAssignmentNode(INode recv,
java.lang.String name)
|
BlockNamesStack |
getBlockNames()
Gets the blockNames. |
int |
getClassNest()
Getter for property classNest. |
INode |
getConditionNode(INode node)
|
IRubyParserConfiguration |
getConfiguration()
Gets the configuration. |
INode |
getElementAssignmentNode(INode recv,
IListNode idx)
|
int |
getInSingle()
Getter for property inSingle. |
LocalNamesStack |
getLocalNames()
Gets the localNames. |
INode |
getMatchNode(INode firstNode,
INode secondNode)
|
INode |
getOperatorCallNode(INode firstNode,
java.lang.String operator)
|
INode |
getOperatorCallNode(INode firstNode,
java.lang.String operator,
INode secondNode)
|
java.lang.String |
getOperatorName(int operatorName)
|
RubyParserResult |
getResult()
Gets the result. |
INode |
getReturnArgsNode(INode node)
|
void |
initTopLocalVariables()
Description of the Method |
boolean |
isCompileForEval()
|
boolean |
isInDef()
|
boolean |
isInDefined()
Getter for property inDefined. |
boolean |
isInSingle()
Getter for property inSingle. |
INode |
new_call(INode receiverNode,
java.lang.String name,
INode args)
|
INode |
new_fcall(java.lang.String name,
INode args,
ISourcePosition iPosition)
|
INode |
new_super(INode args,
ISourcePosition iPosition)
|
AndNode |
newAndNode(INode left,
INode right)
|
INode |
newline_node(INode node,
ISourcePosition iPosition)
Wraps node with NEWLINE node. |
OrNode |
newOrNode(INode left,
INode right)
|
INode |
node_assign(INode lhs,
INode rhs)
|
void |
reset()
|
void |
setClassNest(int classNest)
Setter for property classNest. |
void |
setConfiguration(IRubyParserConfiguration configuration)
Sets the configuration. |
void |
setErrorHandler(IErrorHandler errorHandler)
Sets the errorHandler. |
void |
setInDef(boolean inDef)
|
void |
setInDefined(boolean inDefined)
Setter for property inDefined. |
void |
setInSingle(int inSingle)
Setter for property inSingle. |
void |
setResult(RubyParserResult result)
Sets the result. |
void |
updateTopLocalVariables()
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParserSupport()
Method Detail |
public void reset()
public java.lang.String getOperatorName(int operatorName)
public INode arg_blk_pass(IListNode firstNode, BlockPassNode secondNode)
public INode appendPrintToBlock(INode block)
public INode appendWhileLoopToBlock(INode block, boolean chop, boolean split)
public INode getAccessNode(java.lang.String id, ISourcePosition iPosition)
id
- The name of the variable or constant.
public INode getAssignmentNode(java.lang.String name, INode valueNode, ISourcePosition position)
name
- The name of the variable or constant.valueNode
- A Node representing the value which should be assigned.
public INode newline_node(INode node, ISourcePosition iPosition)
node
-
public INode appendToBlock(INode head, INode tail)
public INode getOperatorCallNode(INode firstNode, java.lang.String operator)
public INode getOperatorCallNode(INode firstNode, java.lang.String operator, INode secondNode)
public INode getMatchNode(INode firstNode, INode secondNode)
public INode getElementAssignmentNode(INode recv, IListNode idx)
public INode getAttributeAssignmentNode(INode recv, java.lang.String name)
public void backrefAssignError(INode node)
public INode node_assign(INode lhs, INode rhs)
public void checkExpression(INode node)
public void checkUselessStatement(INode node)
public void checkUselessStatements(BlockNode blockNode)
public INode getConditionNode(INode node)
public AndNode newAndNode(INode left, INode right)
public OrNode newOrNode(INode left, INode right)
public INode getReturnArgsNode(INode node)
public INode new_call(INode receiverNode, java.lang.String name, INode args)
public INode new_fcall(java.lang.String name, INode args, ISourcePosition iPosition)
public INode new_super(INode args, ISourcePosition iPosition)
public void initTopLocalVariables()
public void updateTopLocalVariables()
public boolean isInSingle()
public void setInSingle(int inSingle)
inSingle
- New value of property inSingle.public boolean isInDef()
public void setInDef(boolean inDef)
public int getInSingle()
public boolean isInDefined()
public void setInDefined(boolean inDefined)
inDefined
- New value of property inDefined.public boolean isCompileForEval()
public int getClassNest()
public void setClassNest(int classNest)
classNest
- New value of property classNest.public BlockNamesStack getBlockNames()
public LocalNamesStack getLocalNames()
public RubyParserResult getResult()
public void setResult(RubyParserResult result)
result
- The result to setpublic IRubyParserConfiguration getConfiguration()
public void setConfiguration(IRubyParserConfiguration configuration)
configuration
- The configuration to setpublic void setErrorHandler(IErrorHandler errorHandler)
errorHandler
- The errorHandler to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |