Modifier and Type | Method and Description |
---|---|
Node |
Ruby.parse(org.jruby.util.ByteList content,
String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation) |
Node |
Ruby.parse(String content,
String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation)
Deprecated.
|
Node |
Ruby.parseEval(org.jruby.util.ByteList content,
String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseEval(String content,
String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseFile(InputStream in,
String file,
DynamicScope scope) |
Node |
Ruby.parseFile(InputStream in,
String file,
DynamicScope scope,
int lineNumber) |
Node |
Ruby.parseFileFromMain(InputStream in,
String file,
DynamicScope scope) |
Node |
Ruby.parseFromMain(InputStream inputStream,
String filename)
Parse the script contained in the given input stream, using the given
filename as the name of the script, and return the root Node.
|
Node |
Ruby.parseInline(InputStream in,
String file,
DynamicScope scope) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
Ruby.runInterpreter(Node scriptNode) |
IRubyObject |
Ruby.runInterpreter(ThreadContext context,
Node rootNode,
IRubyObject self) |
IRubyObject |
Ruby.runInterpreterBody(Node scriptNode)
This is used for the "gets" loop, and we bypass 'load' to use an
already-prepared, already-pushed scope for the script body.
|
IRubyObject |
Ruby.runNormally(Node scriptNode)
Run the specified script without any of the loop-processing wrapper
code.
|
IRubyObject |
Ruby.runNormally(Node scriptNode,
boolean unused)
Deprecated.
|
IRubyObject |
Ruby.runWithGetsLoop(Node scriptNode,
boolean printing,
boolean processLineEnds,
boolean split)
Run the given script with a "while gets; end" loop wrapped around it.
|
IRubyObject |
Ruby.runWithGetsLoop(Node scriptNode,
boolean printing,
boolean processLineEnds,
boolean split,
boolean unused)
Deprecated.
|
Script |
Ruby.tryCompile(Node node)
Try to compile the code associated with the given Node, returning an
instance of the successfully-compiled Script or null if the script could
not be compiled.
|
Modifier and Type | Class and Description |
---|---|
class |
AliasNode
Represents an alias statement (
alias newName oldName ). |
class |
AndNode
Represents a && (and) operator.
|
class |
ArgsCatNode |
class |
ArgsNode
Represents the argument declarations of a method.
|
class |
ArgsPushNode |
class |
ArgumentNode
Simple Node for named entities.
|
class |
ArrayNode
Represents an array.
|
class |
AssignableNode
Base class of any node which can be assigned to.
|
class |
AttrAssignNode
Node that represents an assignment of either an array element or attribute.
|
class |
BackRefNode
Regexp back reference:
- $& last successful match
- $+ highest numbered group matched in last successful match.
|
class |
BeginNode
Begin/End block.
|
class |
BignumNode
Represents a big integer literal.
|
class |
BlockArgNode
An explicit block argument (&my_block) in parameter list.
|
class |
BlockNode
Represents a block of nodes (read that as list).
|
class |
BlockPassNode
Explicit block argument (on caller side):
foobar(1, 2, &foo)
foobar(1, 2, &lhs_which_returns_something_block/proc_like)
bodyNode is any expression which can return something which is ultimately
coercible to a proc.
|
class |
BreakNode
Represents a 'break' statement.
|
class |
CallNode
A method or operator call.
|
class |
CaseNode
A Case statement.
|
class |
ClassNode
A class statement (name, superClass, body).
|
class |
ClassVarAsgnNode
Class variable assignment node.
|
class |
ClassVarDeclNode
Class variable declaration.
|
class |
ClassVarNode
Access to a class variable.
|
class |
Colon2ConstNode |
class |
Colon2ImplicitNode
Represents a bare class declaration (e.g.
|
class |
Colon2Node
Represents a '::' constant access or method call (Java::JavaClass).
|
class |
Colon3Node
Global scope node (::FooBar).
|
class |
ComplexNode |
class |
ConstDeclNode
Declaration (and assignment) of a Constant.
|
class |
ConstNode
The access to a Constant.
|
class |
DAsgnNode
An assignment to a dynamic variable (e.g.
|
class |
DefinedNode
a defined statement.
|
class |
DefnNode
method definition node.
|
class |
DefsNode
Represents a singleton method definition.
|
class |
DNode
Base class for all D (e.g.
|
class |
DotNode
Represents a range literal.
|
class |
DRegexpNode
A regexp which contains some expressions which will need to be evaluated everytime the regexp
is used for a match.
|
class |
DStrNode
A string which contains some dynamic elements which needs to be evaluated (introduced by #).
|
class |
DSymbolNode
Node representing symbol in a form like ':"3jane"'.
|
class |
DVarNode
Access a dynamic variable (e.g.
|
class |
DXStrNode
Dynamic backquote string.
|
class |
EncodingNode
Represents __ENCODING__.
|
class |
EnsureNode
An 'ensure' statement.
|
class |
EvStrNode
Represents an #{} expression in a string.
|
class |
FalseNode
Represents a false literal.
|
class |
FCallNode
Represents a method call with self as an implicit receiver.
|
class |
FileNode
Represents __FILE__ nodes
|
class |
FixnumNode
Represents an integer literal.
|
class |
FlipNode
A Range in a boolean expression (named after a FlipFlop component in electronic?).
|
class |
FloatNode
Represents a float literal.
|
class |
ForNode
A 'for' statement.
|
class |
GlobalAsgnNode
Represents an assignment to a global variable.
|
class |
GlobalVarNode
access to a global variable.
|
class |
HashNode
A Literal Hash that can represent either a {a=&b, c=&d} type expression or the list
of default values in a method call.
|
class |
IfNode
an 'if' statement.
|
class |
InstAsgnNode
Represents an instance variable assignment.
|
class |
InstVarNode
Represents an instance variable accessor.
|
class |
IterNode
Represents a block.
|
class |
KeywordArgNode |
class |
KeywordRestArgNode |
class |
LambdaNode
Stubby lambda node (1.9 only)
|
class |
ListNode
All Nodes which have a list representation inherit this.
|
class |
LiteralNode
This is not a node in the classic sense in that it has no defined or
interpret method which can be called.
|
class |
LocalAsgnNode
An assignment to a local variable.
|
class |
LocalVarNode
Access a local variable
|
class |
Match2CaptureNode |
class |
Match2Node |
class |
Match3Node |
class |
MatchNode |
class |
MethodDefNode |
class |
ModuleNode
Represents a module definition.
|
class |
MultipleAsgn19Node |
class |
MultipleAsgnNode |
class |
NewlineNode
A new (logical) source code line.
|
class |
NextNode
Represents a 'next' statement.
|
class |
NilImplicitNode
A node which behaves like a nil node, but is not actually present in the AST as a syntactical
element (e.g.
|
class |
NilNode
represents 'nil'
|
class |
NthRefNode
Represents a $number ($0..$9) variable.
|
class |
NumericNode
Any node representing a numeric value.
|
class |
OpAsgnAndNode |
class |
OpAsgnNode |
class |
OpAsgnOrNode |
class |
OpElementAsgnNode
Represents an operator assignment to an element.
|
class |
OpElementOneArgAndAsgnNode
Represents an operator assignment to an element.
|
class |
OpElementOneArgAsgnNode
Represents an operator assignment to an element.
|
class |
OpElementOneArgOrAsgnNode
Represents an operator assignment to an element.
|
class |
OptArgNode |
class |
OrNode
represents '||' (or) statements
|
class |
PostExeNode
Captures END statements (END {...})
|
class |
PreExe19Node
A pre-execution construction (BEGIN { ...
|
class |
PreExeNode
A pre-execution construction (BEGIN { ...
|
class |
RationalNode |
class |
RedoNode
Represents a 'redo'
|
class |
RegexpNode
Represents a simple regular expression literal.
|
class |
RequiredKeywordArgumentValueNode
Marker to indicate that rather than assigning nil (where in multiple
places we have nulls getting implicitly converted to nils) we should
raise an error.
|
class |
RescueBodyNode
Represents the contents of a rescue to be evaluated
|
class |
RescueNode
Represents a rescue statement
|
class |
RestArgNode |
class |
RetryNode
Represents a 'retry' statement.
|
class |
ReturnNode
Represents a return statement.
|
class |
RootNode
Represents the top of the AST.
|
class |
SClassNode
Singleton class definition.
|
class |
SelfNode
Represents 'self' keyword
|
class |
SplatNode |
class |
StarNode
Represents the unassignable star in a multiple assignent (e.g.
|
class |
StrNode
Representing a simple String literal.
|
class |
SuperNode
A call to super(...) with arguments to a method.
|
class |
SValueNode |
class |
SymbolNode
Represents a symbol (:symbol_name).
|
class |
TrueNode
Represents 'true'.
|
class |
UndefNode
Represents an 'undef' statement.
|
class |
UnnamedRestArgNode
a bare '*' or nothing.
|
class |
UntilNode
Represents an until statement.
|
class |
VAliasNode
Represents an alias of a global variable.
|
class |
VCallNode
RubyMethod call without any arguments
|
class |
WhenNode
Represents a when condition
|
class |
WhenOneArgNode |
class |
WhileNode
Represents a while statement.
|
class |
XStrNode
A Backtick(`) string
|
class |
Yield19Node |
class |
YieldNode
Represents a yield statement.
|
class |
ZArrayNode
zero length list
|
class |
ZSuperNode
a call to 'super' with no arguments in a method.
|
class |
ZYieldNode |
Modifier and Type | Field and Description |
---|---|
protected Node |
FCallNode.argsNode |
protected Node |
WhenNode.bodyNode |
protected Node |
MethodDefNode.bodyNode |
protected Node |
WhenNode.expressionNodes |
protected Node |
FCallNode.iterNode |
protected Node |
CallNode.iterNode |
protected Node |
Colon2Node.leftNode |
protected Node |
SValueNode.node |
protected Node |
SplatNode.node |
protected Node |
AttrAssignNode.receiverNode |
Modifier and Type | Method and Description |
---|---|
<T extends Node> |
Node.findFirstChild(Class<T> nodeClass) |
Modifier and Type | Method and Description |
---|---|
Node |
ListNode.get(int idx) |
Node |
YieldNode.getArgsNode()
Gets the argsNode.
|
Node |
SuperNode.getArgsNode()
Gets the argsNode.
|
Node |
OpElementAsgnNode.getArgsNode()
Gets the argsNode.
|
Node |
MultipleAsgnNode.getArgsNode()
Gets the argsNode.
|
Node |
IArgumentNode.getArgsNode() |
Node |
FCallNode.getArgsNode()
Gets the argsNode.
|
Node |
CallNode.getArgsNode()
Gets the argsNode representing the method's arguments' value for this call.
|
Node |
BlockPassNode.getArgsNode()
Gets the argsNode.
|
Node |
AttrAssignNode.getArgsNode()
Gets the argsNode.
|
Node |
FlipNode.getBeginNode()
Gets the beginNode.
|
Node |
DotNode.getBeginNode()
Gets the beginNode.
|
Node |
LambdaNode.getBody() |
Node |
EvStrNode.getBody()
Gets the evaluatedNode.
|
Node |
WhileNode.getBodyNode()
Gets the bodyNode.
|
Node |
WhenNode.getBodyNode()
Gets the bodyNode.
|
Node |
UntilNode.getBodyNode()
Gets the bodyNode.
|
Node |
SClassNode.getBodyNode()
Gets the body of this class.
|
Node |
RootNode.getBodyNode()
First real AST node to be interpreted
|
Node |
RescueNode.getBodyNode()
Gets the bodyNode.
|
Node |
RescueBodyNode.getBodyNode()
Gets the bodyNode.
|
Node |
ModuleNode.getBodyNode()
Gets the body of this class.
|
Node |
MethodDefNode.getBodyNode()
Gets the body of this class.
|
Node |
IterNode.getBodyNode()
Gets the bodyNode.
|
Node |
EnsureNode.getBodyNode()
Gets the bodyNode.
|
Node |
ClassNode.getBodyNode()
Gets the body of this class.
|
Node |
BlockPassNode.getBodyNode()
Gets the bodyNode.
|
Node |
BeginNode.getBodyNode()
Gets the bodyNode.
|
Node |
CaseNode.getCaseNode()
Gets the caseNode.
|
Node |
IfNode.getCondition()
Gets the condition.
|
Node |
WhileNode.getConditionNode()
Gets the conditionNode.
|
Node |
UntilNode.getConditionNode()
Gets the conditionNode.
|
Node |
ConstDeclNode.getConstNode()
Get the full path, including the name of the new constant (in Foo::BAR it is Foo::BAR) or null.
|
Node |
IfNode.getElseBody()
Gets the elseBody.
|
Node |
RescueNode.getElseNode()
Gets the elseNode.
|
Node |
CaseNode.getElseNode() |
Node |
FlipNode.getEndNode()
Gets the endNode.
|
Node |
DotNode.getEndNode()
Gets the endNode.
|
Node |
EnsureNode.getEnsureNode()
Gets the ensureNode.
|
Node |
RescueBodyNode.getExceptionNodes()
Gets the exceptionNodes.
|
Node |
DefinedNode.getExpressionNode()
Gets the expressionNode.
|
Node |
WhenNode.getExpressionNodes()
Get the expressionNode(s).
|
Node |
OrNode.getFirstNode()
Gets the firstNode.
|
Node |
OpAsgnOrNode.getFirstNode()
Gets the firstNode.
|
Node |
OpAsgnAndNode.getFirstNode()
Gets the firstNode.
|
Node |
BinaryOperatorNode.getFirstNode()
Gets the firstNode.
|
Node |
ArgsPushNode.getFirstNode() |
Node |
ArgsCatNode.getFirstNode() |
Node |
AndNode.getFirstNode()
Gets the firstNode.
|
Node |
ZSuperNode.getIterNode() |
Node |
SuperNode.getIterNode() |
Node |
ForNode.getIterNode() |
Node |
FCallNode.getIterNode()
Get the node that represents a block or a block variable.
|
Node |
CallNode.getIterNode() |
Node |
BlockAcceptingNode.getIterNode() |
Node |
ListNode.getLast() |
Node |
Colon2Node.getLeftNode()
Gets the leftNode.
|
Node |
UndefNode.getName()
Gets the name.
|
Node |
AliasNode.getNewName()
Gets the newName.
|
Node |
WhenNode.getNextCase()
Gets the next case node (if any).
|
Node |
NewlineNode.getNextNode()
Gets the nextNode.
|
Node |
AliasNode.getOldName()
Gets the oldName.
|
Node |
SClassNode.getReceiverNode()
Gets the receiverNode.
|
Node |
OpElementAsgnNode.getReceiverNode()
Gets the receiverNode.
|
Node |
OpAsgnNode.getReceiverNode()
Gets the receiverNode.
|
Node |
Match3Node.getReceiverNode()
Gets the receiverNode.
|
Node |
Match2Node.getReceiverNode()
Gets the receiverNode.
|
Node |
DefsNode.getReceiverNode()
Gets the receiverNode.
|
Node |
CallNode.getReceiverNode()
Gets the receiverNode.
|
Node |
AttrAssignNode.getReceiverNode()
Gets the receiverNode.
|
Node |
MatchNode.getRegexpNode()
Gets the regexpNode.
|
Node |
MultipleAsgnNode.getRest() |
Node |
MultipleAsgn19Node.getRest() |
Node |
OrNode.getSecondNode()
Gets the secondNode.
|
Node |
OpAsgnOrNode.getSecondNode()
Gets the secondNode.
|
Node |
OpAsgnAndNode.getSecondNode()
Gets the secondNode.
|
Node |
BinaryOperatorNode.getSecondNode()
Gets the secondNode.
|
Node |
ArgsPushNode.getSecondNode() |
Node |
ArgsCatNode.getSecondNode() |
Node |
AndNode.getSecondNode()
Gets the secondNode.
|
Node |
ClassNode.getSuperNode()
Gets the superNode.
|
Node |
IfNode.getThenBody()
Gets the thenBody.
|
Node |
SValueNode.getValue() |
Node |
SplatNode.getValue() |
Node |
OptArgNode.getValue() |
Node |
ReturnNode.getValueNode() |
Node |
RetryNode.getValueNode() |
Node |
RedoNode.getValueNode() |
Node |
OpElementAsgnNode.getValueNode()
Gets the valueNode.
|
Node |
OpAsgnNode.getValueNode()
Gets the valueNode.
|
Node |
NonLocalControlFlowNode.getValueNode() |
Node |
NextNode.getValueNode()
Gets the valueNode.
|
Node |
Match3Node.getValueNode()
Gets the valueNode.
|
Node |
Match2Node.getValueNode()
Gets the valueNode.
|
Node |
BreakNode.getValueNode()
Gets the valueNode.
|
Node |
AssignableNode.getValueNode()
Gets the valueNode.
|
Node |
IterNode.getVarNode()
Gets the varNode.
|
Node |
IArgumentNode.setArgsNode(Node argsNode) |
Node |
FCallNode.setArgsNode(Node argsNode)
Set the argsNode.
|
Node |
CallNode.setArgsNode(Node argsNode)
Set the argsNode.
|
Node |
AttrAssignNode.setArgsNode(Node argsNode)
Set the argsNode
|
Node |
ZSuperNode.setIterNode(Node iterNode) |
Node |
SuperNode.setIterNode(Node iterNode) |
Node |
FCallNode.setIterNode(Node iterNode) |
Node |
CallNode.setIterNode(Node iterNode) |
Node |
BlockAcceptingNode.setIterNode(Node iterNode) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
ZSuperNode.childNodes() |
List<Node> |
ZArrayNode.childNodes() |
List<Node> |
YieldNode.childNodes() |
List<Node> |
XStrNode.childNodes() |
List<Node> |
WhileNode.childNodes() |
List<Node> |
WhenNode.childNodes() |
List<Node> |
VCallNode.childNodes() |
List<Node> |
VAliasNode.childNodes() |
List<Node> |
UntilNode.childNodes() |
List<Node> |
UndefNode.childNodes() |
List<Node> |
TrueNode.childNodes() |
List<Node> |
SymbolNode.childNodes() |
List<Node> |
SValueNode.childNodes() |
List<Node> |
SuperNode.childNodes() |
List<Node> |
StrNode.childNodes() |
List<Node> |
StarNode.childNodes() |
List<Node> |
SplatNode.childNodes() |
List<Node> |
SelfNode.childNodes() |
List<Node> |
SClassNode.childNodes() |
List<Node> |
RootNode.childNodes() |
List<Node> |
ReturnNode.childNodes() |
List<Node> |
RetryNode.childNodes() |
List<Node> |
RescueNode.childNodes() |
List<Node> |
RescueBodyNode.childNodes() |
List<Node> |
RequiredKeywordArgumentValueNode.childNodes() |
List<Node> |
RegexpNode.childNodes() |
List<Node> |
RedoNode.childNodes() |
List<Node> |
RationalNode.childNodes() |
List<Node> |
OrNode.childNodes() |
List<Node> |
OptArgNode.childNodes() |
List<Node> |
OpElementAsgnNode.childNodes() |
List<Node> |
OpAsgnOrNode.childNodes() |
List<Node> |
OpAsgnNode.childNodes() |
List<Node> |
OpAsgnAndNode.childNodes() |
List<Node> |
NthRefNode.childNodes() |
abstract List<Node> |
Node.childNodes() |
List<Node> |
NilNode.childNodes() |
List<Node> |
NextNode.childNodes() |
List<Node> |
NewlineNode.childNodes() |
List<Node> |
MultipleAsgnNode.childNodes() |
List<Node> |
MultipleAsgn19Node.childNodes() |
List<Node> |
ModuleNode.childNodes() |
List<Node> |
MatchNode.childNodes() |
List<Node> |
Match3Node.childNodes() |
List<Node> |
Match2Node.childNodes() |
List<Node> |
LocalVarNode.childNodes() |
List<Node> |
LocalAsgnNode.childNodes() |
List<Node> |
LiteralNode.childNodes() |
List<Node> |
ListNode.childNodes() |
List<Node> |
LambdaNode.childNodes() |
List<Node> |
KeywordArgNode.childNodes() |
List<Node> |
IterNode.childNodes() |
List<Node> |
InstVarNode.childNodes() |
List<Node> |
InstAsgnNode.childNodes() |
List<Node> |
IfNode.childNodes() |
List<Node> |
HashNode.childNodes() |
List<Node> |
GlobalVarNode.childNodes() |
List<Node> |
GlobalAsgnNode.childNodes() |
List<Node> |
ForNode.childNodes() |
List<Node> |
FloatNode.childNodes() |
List<Node> |
FlipNode.childNodes() |
List<Node> |
FixnumNode.childNodes() |
List<Node> |
FCallNode.childNodes() |
List<Node> |
FalseNode.childNodes() |
List<Node> |
EvStrNode.childNodes() |
List<Node> |
EnsureNode.childNodes() |
List<Node> |
EncodingNode.childNodes() |
List<Node> |
DVarNode.childNodes() |
List<Node> |
DotNode.childNodes() |
List<Node> |
DefsNode.childNodes() |
List<Node> |
DefnNode.childNodes() |
List<Node> |
DefinedNode.childNodes() |
List<Node> |
DAsgnNode.childNodes() |
List<Node> |
ConstNode.childNodes() |
List<Node> |
ConstDeclNode.childNodes() |
List<Node> |
ComplexNode.childNodes() |
List<Node> |
Colon3Node.childNodes() |
List<Node> |
Colon2Node.childNodes() |
List<Node> |
ClassVarNode.childNodes() |
List<Node> |
ClassVarDeclNode.childNodes() |
List<Node> |
ClassVarAsgnNode.childNodes() |
List<Node> |
ClassNode.childNodes() |
List<Node> |
CaseNode.childNodes() |
List<Node> |
CallNode.childNodes() |
List<Node> |
BreakNode.childNodes() |
List<Node> |
BlockPassNode.childNodes() |
List<Node> |
BlockArgNode.childNodes() |
List<Node> |
BignumNode.childNodes() |
List<Node> |
BeginNode.childNodes() |
List<Node> |
BackRefNode.childNodes() |
List<Node> |
AttrAssignNode.childNodes() |
List<Node> |
ArgumentNode.childNodes() |
List<Node> |
ArgsPushNode.childNodes() |
List<Node> |
ArgsNode.childNodes() |
List<Node> |
ArgsCatNode.childNodes() |
List<Node> |
AndNode.childNodes() |
List<Node> |
AliasNode.childNodes() |
protected static List<Node> |
Node.createList(Node... nodes) |
protected static List<Node> |
Node.createList(Node node) |
protected static List<Node> |
Node.createList(Node node1,
Node node2) |
protected static List<Node> |
Node.createList(Node node1,
Node node2,
Node node3) |
List<KeyValuePair<Node,Node>> |
HashNode.getPairs() |
List<KeyValuePair<Node,Node>> |
HashNode.getPairs() |
Modifier and Type | Method and Description |
---|---|
ListNode |
ListNode.add(Node node) |
ListNode |
ListNode.addAll(Node other)
Add other element to this list
|
protected static List<Node> |
Node.createList(Node... nodes) |
protected static List<Node> |
Node.createList(Node node) |
protected static List<Node> |
Node.createList(Node node1,
Node node2) |
protected static List<Node> |
Node.createList(Node node1,
Node node2,
Node node3) |
ListNode |
ListNode.prepend(Node node) |
Node |
IArgumentNode.setArgsNode(Node argsNode) |
Node |
FCallNode.setArgsNode(Node argsNode)
Set the argsNode.
|
Node |
CallNode.setArgsNode(Node argsNode)
Set the argsNode.
|
void |
BlockPassNode.setArgsNode(Node argsNode)
Sets the argsNode.
|
Node |
AttrAssignNode.setArgsNode(Node argsNode)
Set the argsNode
|
void |
CaseNode.setElseNode(Node elseNode) |
Node |
ZSuperNode.setIterNode(Node iterNode) |
Node |
SuperNode.setIterNode(Node iterNode) |
Node |
FCallNode.setIterNode(Node iterNode) |
Node |
CallNode.setIterNode(Node iterNode) |
Node |
BlockAcceptingNode.setIterNode(Node iterNode) |
void |
AssignableNode.setValueNode(Node valueNode)
Sets the valueNode.
|
Modifier and Type | Method and Description |
---|---|
HashNode |
HashNode.add(KeyValuePair<Node,Node> pair) |
HashNode |
HashNode.add(KeyValuePair<Node,Node> pair) |
Constructor and Description |
---|
AliasNode(ISourcePosition position,
Node newName,
Node oldName) |
AndNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
ArgsCatNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
ArgsPushNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
ArrayNode(ISourcePosition position,
Node firstNode) |
AssignableNode(ISourcePosition position,
Node valueNode,
boolean containsAssignment) |
AttrAssignNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode) |
BeginNode(ISourcePosition position,
Node bodyNode) |
BlockPassNode(ISourcePosition position,
Node bodyNode) |
BreakNode(ISourcePosition position,
Node valueNode) |
CallNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode,
Node iterNode) |
CaseNode(ISourcePosition position,
Node caseNode,
ListNode cases) |
ClassNode(ISourcePosition position,
Colon3Node cpath,
StaticScope scope,
Node bodyNode,
Node superNode) |
ClassVarAsgnNode(ISourcePosition position,
String name,
Node valueNode) |
ClassVarDeclNode(ISourcePosition position,
String name,
Node valueNode) |
Colon2ConstNode(ISourcePosition position,
Node leftNode,
String name) |
Colon2Node(ISourcePosition position,
Node leftNode,
String name) |
ConstDeclNode(ISourcePosition position,
String name,
INameNode constNode,
Node valueNode) |
DAsgnNode(ISourcePosition position,
String name,
int location,
Node valueNode) |
DefinedNode(ISourcePosition position,
Node expressionNode) |
DefnNode(ISourcePosition position,
ArgumentNode nameNode,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode) |
DefsNode(ISourcePosition position,
Node receiverNode,
ArgumentNode nameNode,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode) |
DotNode(ISourcePosition position,
Node beginNode,
Node endNode,
boolean exclusive,
boolean isLiteral) |
EnsureNode(ISourcePosition position,
Node bodyNode,
Node ensureNode) |
EvStrNode(ISourcePosition position,
Node body) |
FCallNode(ISourcePosition position,
String name,
Node argsNode,
Node iterNode) |
FlipNode(ISourcePosition position,
Node beginNode,
Node endNode,
boolean exclusive,
int location) |
ForNode(ISourcePosition position,
Node varNode,
Node bodyNode,
Node iterNode,
StaticScope scope) |
GlobalAsgnNode(ISourcePosition position,
String name,
Node valueNode) |
IfNode(ISourcePosition position,
Node condition,
Node thenBody,
Node elseBody) |
InstAsgnNode(ISourcePosition position,
String name,
Node valueNode) |
IterNode(ISourcePosition position,
ArgsNode args,
Node body,
StaticScope scope)
Used for all non-for types of blocks.
|
IterNode(ISourcePosition position,
Node args,
StaticScope scope,
Node body)
Used by Truffle 'for' and by ForNode only.
|
LambdaNode(ISourcePosition position,
ArgsNode args,
Node body,
StaticScope scope) |
ListNode(ISourcePosition position,
Node firstNode)
Create a new ListNode.
|
LocalAsgnNode(ISourcePosition position,
String name,
int location,
Node valueNode) |
Match2CaptureNode(ISourcePosition position,
Node receiverNode,
Node valueNode,
int[] scopeOffsets) |
Match2Node(ISourcePosition position,
Node receiverNode,
Node valueNode) |
Match3Node(ISourcePosition position,
Node receiverNode,
Node valueNode) |
MatchNode(ISourcePosition position,
Node regexpNode) |
MethodDefNode(ISourcePosition position,
ArgumentNode nameNode,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode) |
ModuleNode(ISourcePosition position,
Colon3Node cpath,
StaticScope scope,
Node bodyNode) |
MultipleAsgn19Node(ISourcePosition position,
ListNode pre,
Node rest,
ListNode post) |
MultipleAsgnNode(ISourcePosition position,
ListNode pre,
Node rest) |
NewlineNode(ISourcePosition position,
Node nextNode) |
NextNode(ISourcePosition position,
Node valueNode) |
OpAsgnAndNode(ISourcePosition position,
Node headNode,
Node valueNode) |
OpAsgnNode(ISourcePosition position,
Node receiverNode,
Node valueNode,
String variableName,
String operatorName) |
OpAsgnOrNode(ISourcePosition position,
Node headNode,
Node valueNode) |
OpElementAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
OpElementOneArgAndAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
ArrayNode args,
Node valueNode) |
OpElementOneArgAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
ArrayNode args,
Node valueNode) |
OpElementOneArgOrAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
ArrayNode args,
Node valueNode) |
OptArgNode(ISourcePosition position,
Node value) |
OrNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
PostExeNode(ISourcePosition position,
Node body) |
PreExe19Node(ISourcePosition position,
StaticScope scope,
Node body) |
PreExeNode(ISourcePosition position,
StaticScope scope,
Node body) |
RescueBodyNode(ISourcePosition position,
Node exceptionNodes,
Node bodyNode,
RescueBodyNode optRescueNode) |
RescueNode(ISourcePosition position,
Node bodyNode,
RescueBodyNode rescueNode,
Node elseNode) |
ReturnNode(ISourcePosition position,
Node valueNode) |
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode) |
SClassNode(ISourcePosition position,
Node recvNode,
StaticScope scope,
Node bodyNode) |
SplatNode(ISourcePosition position,
Node node) |
SuperNode(ISourcePosition position,
Node argsNode) |
SuperNode(ISourcePosition position,
Node argsNode,
Node iterNode) |
SValueNode(ISourcePosition position,
Node node) |
UndefNode(ISourcePosition position,
Node name) |
UntilNode(ISourcePosition position,
Node conditionNode,
Node bodyNode) |
UntilNode(ISourcePosition position,
Node conditionNode,
Node bodyNode,
boolean evaluateAtStart) |
WhenNode(ISourcePosition position,
Node expressionNodes,
Node bodyNode,
Node nextCase) |
WhenOneArgNode(ISourcePosition position,
Node expressionNode,
Node bodyNode,
Node nextCase) |
WhileNode(ISourcePosition position,
Node conditionNode,
Node bodyNode) |
WhileNode(ISourcePosition position,
Node conditionNode,
Node bodyNode,
boolean evalAtStart) |
Yield19Node(ISourcePosition position,
Node node) |
YieldNode(ISourcePosition position,
Node argsNode,
boolean expandedArguments)
Construct a new YieldNode.
|
Constructor and Description |
---|
HashNode(ISourcePosition position,
KeyValuePair<Node,Node> pair) |
HashNode(ISourcePosition position,
KeyValuePair<Node,Node> pair) |
Modifier and Type | Method and Description |
---|---|
static String |
SexpMaker.create(Node node) |
static String |
SexpMaker.create(String methodName,
Node argsNode,
Node body) |
static String |
SexpMaker.sha1(String methodName,
Node argsNode,
Node body) |
Modifier and Type | Method and Description |
---|---|
protected Void |
InstanceVariableFinder.defaultVisit(Node iVisited) |
protected abstract T |
AbstractNodeVisitor.defaultVisit(Node node) |
static Set<String> |
InstanceVariableFinder.findVariables(Node node)
Walk a node and its children looking for instance variables using a new
InstanceVariableFinder.
|
protected void |
AbstractNodeVisitor.visitChildren(Node node) |
protected T |
AbstractNodeVisitor.visitFirstChild(Node node) |
T |
NodeVisitor.visitOther(Node iVisited) |
T |
AbstractNodeVisitor.visitOther(Node node) |
Modifier and Type | Method and Description |
---|---|
Node |
EmbedEvalUnit.getNode()
Returns a root node of parsed Ruby script.
|
Modifier and Type | Method and Description |
---|---|
Node |
EmbedEvalUnitImpl.getNode()
Returns a root node of parsed Ruby script.
|
Constructor and Description |
---|
EmbedEvalUnitImpl(ScriptingContainer container,
Node node,
ManyVarsDynamicScope scope) |
EmbedEvalUnitImpl(ScriptingContainer container,
Node node,
ManyVarsDynamicScope scope,
Script script) |
Modifier and Type | Method and Description |
---|---|
static Block |
ASTInterpreter.getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block currentBlock,
Node blockNode) |
static IRubyObject |
ASTInterpreter.INTERPRET_METHOD(Ruby runtime,
ThreadContext context,
String file,
int line,
RubyModule implClass,
Node node,
String name,
IRubyObject self,
Block block,
boolean isTraceable) |
Modifier and Type | Method and Description |
---|---|
Node |
MethodNodes.getBodyNode() |
Constructor and Description |
---|
MethodNodes(ArgsNode argsNode,
Node bodyNode) |
Modifier and Type | Method and Description |
---|---|
static Node |
IRBuilder.buildAST(boolean isCommandLineScript,
String arg) |
Node |
IRBuilder.skipOverNewlines(Node n) |
Modifier and Type | Method and Description |
---|---|
Operand |
IRBuilder.build(Node node) |
void |
IRBuilder.buildArgsMasgn(Node node,
Operand argsArray,
boolean isMasgnRoot,
int preArgsCount,
int postArgsCount,
int index,
boolean isSplat) |
void |
IRBuilder.buildAssignment(Node node,
Variable rhsVal) |
Operand |
IRBuilder.buildAttrAssignAssignment(Node node,
Operand value) |
protected Operand |
IRBuilder.buildAttrAssignCallArgs(List<Operand> argsList,
Node args,
boolean containsAssignment) |
void |
IRBuilder.buildBlockArgsAssignment(Node node,
Operand argsArray,
int argIndex,
boolean isSplat) |
protected Operand[] |
IRBuilder.buildCallArgs(Node args) |
Operand |
IRBuilder.buildGetArgumentDefinition(Node node,
String type) |
Operand |
IRBuilder.buildGetDefinition(Node node) |
Operand |
IRBuilder.buildUndef(Node node) |
void |
IRBuilder.buildVersionSpecificAssignment(Node node,
Variable v) |
void |
IRBuilder.buildVersionSpecificBlockArgsAssignment(Node node) |
protected Operand |
IRBuilder.buildWithOrder(Node node,
boolean preserveOrder) |
void |
IRBuilder.receiveRequiredArg(Node node,
int argIndex,
boolean post,
int numPreReqd,
int numPostRead) |
Operand[] |
IRBuilder.setupCallArgs(Node args) |
Node |
IRBuilder.skipOverNewlines(Node n) |
Modifier and Type | Method and Description |
---|---|
void |
IRScopeListener.endBuildOperand(Node node,
IRScope scope,
Operand operand) |
void |
IRScopeListener.startBuildOperand(Node node,
IRScope scope) |
Constructor and Description |
---|
JavaEmbedUtils.InterpretedEvalUnit(Ruby runtime,
Node node) |
Modifier and Type | Field and Description |
---|---|
static List<Node> |
RubyParserResult.EMPTY_BEGIN_LIST |
Modifier and Type | Method and Description |
---|---|
Node |
ParserSupport.addRootNode(Node topOfAST) |
Node |
ParserSupport.appendToBlock(Node head,
Node tail) |
Node |
ParserSupport.arg_add(ISourcePosition position,
Node node1,
Node node2) |
Node |
ParserSupport.arg_append(Node node1,
Node node2) |
Node |
ParserSupport.arg_blk_pass(Node firstNode,
BlockPassNode secondNode) |
Node |
ParserSupport.arg_concat(ISourcePosition position,
Node node1,
Node node2) |
Node |
ParserSupport.aryset(Node receiver,
Node index)
Define an array set condition so we can return lhs
|
Node |
ParserSupport.asSymbol(ISourcePosition position,
Node value) |
Node |
ParserSupport.attrset(Node receiver,
String name)
Define an attribute set condition so we can return lhs
|
Node |
StaticScope.declare(ISourcePosition position,
String name)
Make a DVar or LocalVar node based on scoping logic
|
Node |
StaticScope.declare(ISourcePosition position,
String name,
int depth) |
Node |
ParserSupport.declareIdentifier(String name) |
Node |
RubyParserResult.getAST() |
Node |
ParserSupport.getConditionNode(Node node) |
Node |
ParserSupport.getMatchNode(Node firstNode,
Node secondNode) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator,
Node secondNode) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator,
Node secondNode,
ISourcePosition defaultPosition) |
Node |
ParserSupport.gettable2(Node node)
We know for callers of this that it cannot be any of the specials checked in gettable.
|
Node |
ParserSupport.literal_concat(ISourcePosition position,
Node head,
Node tail) |
protected Node |
ParserSupport.makeNullNil(Node node) |
Node |
ParserSupport.new_args(ISourcePosition position,
ListNode pre,
ListNode optional,
RestArgNode rest,
ListNode post,
ArgsTailHolder tail) |
Node |
ParserSupport.new_attrassign(ISourcePosition position,
Node receiver,
String name,
Node args) |
Node |
ParserSupport.new_bv(String identifier) |
Node |
ParserSupport.new_call(Node receiver,
String name,
Node argsNode,
Node iter) |
Node |
ParserSupport.new_defined(ISourcePosition position,
Node something) |
Node |
ParserSupport.new_fcall(String operation) |
Node |
ParserSupport.new_opElementAsgnNode(Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
Node |
ParserSupport.new_super(ISourcePosition position,
Node args) |
Node |
ParserSupport.new_yield(ISourcePosition position,
Node node) |
Node |
ParserSupport.newAlias(ISourcePosition position,
Node newNode,
Node oldNode) |
Node |
ParserSupport.newEvStrNode(ISourcePosition position,
Node node) |
Node |
ParserSupport.newline_node(Node node,
ISourcePosition position)
Wraps node with NEWLINE node.
|
Node |
ParserSupport.newRegexpNode(ISourcePosition position,
Node contents,
RegexpNode end) |
Node |
ParserSupport.newUndef(ISourcePosition position,
Node nameNode) |
Node |
ParserSupport.node_assign(Node lhs,
Node rhs) |
Node |
Parser.parse(String file,
byte[] content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(String file,
org.jruby.util.ByteList content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(String file,
InputStream content,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
Parser.parse(String file,
LexerSource lexerSource,
DynamicScope blockScope,
ParserConfiguration configuration) |
Node |
ParserSupport.ret_args(Node node,
ISourcePosition position) |
Node |
ParserSupport.splat_array(Node node)
If node is a splat and it is splatting a literal array then return the literal array.
|
Node |
ParserSupport.unwrapNewlineNode(Node node) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
RubyParserResult.getBeginNodes() |
Modifier and Type | Method and Description |
---|---|
AssignableNode |
StaticScope.addAssign(ISourcePosition position,
String name,
Node value) |
Node |
ParserSupport.addRootNode(Node topOfAST) |
Node |
ParserSupport.appendToBlock(Node head,
Node tail) |
Node |
ParserSupport.arg_add(ISourcePosition position,
Node node1,
Node node2) |
Node |
ParserSupport.arg_append(Node node1,
Node node2) |
Node |
ParserSupport.arg_blk_pass(Node firstNode,
BlockPassNode secondNode) |
Node |
ParserSupport.arg_concat(ISourcePosition position,
Node node1,
Node node2) |
Node |
ParserSupport.aryset(Node receiver,
Node index)
Define an array set condition so we can return lhs
|
AssignableNode |
StaticScope.assign(ISourcePosition position,
String name,
Node value)
Make a DASgn or LocalAsgn node based on scope logic
|
AssignableNode |
StaticScope.assign(ISourcePosition position,
String name,
Node value,
StaticScope topScope,
int depth) |
AssignableNode |
ParserSupport.assignableLabel(String name,
Node value) |
AssignableNode |
ParserSupport.assignableLabelOrIdentifier(String name,
Node value) |
Node |
ParserSupport.asSymbol(ISourcePosition position,
Node value) |
Node |
ParserSupport.attrset(Node receiver,
String name)
Define an attribute set condition so we can return lhs
|
void |
ParserSupport.backrefAssignError(Node node) |
boolean |
ParserSupport.checkExpression(Node node) |
void |
ParserSupport.checkUselessStatement(Node node)
Check to see if current node is an useless statement.
|
void |
ParserSupport.fixpos(Node node,
Node orig) |
void |
ParserSupport.frobnicate_fcall_args(FCallNode fcall,
Node args,
Node iter) |
Node |
ParserSupport.getConditionNode(Node node) |
Node |
ParserSupport.getMatchNode(Node firstNode,
Node secondNode) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator,
Node secondNode) |
Node |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator,
Node secondNode,
ISourcePosition defaultPosition) |
Node |
ParserSupport.gettable2(Node node)
We know for callers of this that it cannot be any of the specials checked in gettable.
|
boolean |
ParserSupport.isBreakStatement(Node node)
Is the supplied node a break/control statement?
|
boolean |
ParserSupport.isLiteral(Node node)
Is this a literal in the sense that MRI has a NODE_LIT for.
|
ListNode |
ParserSupport.list_append(Node list,
Node item) |
ListNode |
ParserSupport.list_concat(Node first,
Node second) |
Node |
ParserSupport.literal_concat(ISourcePosition position,
Node head,
Node tail) |
protected Node |
ParserSupport.makeNullNil(Node node) |
Node |
ParserSupport.new_attrassign(ISourcePosition position,
Node receiver,
String name,
Node args) |
Node |
ParserSupport.new_call(Node receiver,
String name,
Node argsNode,
Node iter) |
Colon2Node |
ParserSupport.new_colon2(ISourcePosition position,
Node leftNode,
String name) |
Node |
ParserSupport.new_defined(ISourcePosition position,
Node something) |
Node |
ParserSupport.new_opElementAsgnNode(Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
Node |
ParserSupport.new_super(ISourcePosition position,
Node args) |
Node |
ParserSupport.new_yield(ISourcePosition position,
Node node) |
Node |
ParserSupport.newAlias(ISourcePosition position,
Node newNode,
Node oldNode) |
AndNode |
ParserSupport.newAndNode(ISourcePosition position,
Node left,
Node right) |
ArrayNode |
ParserSupport.newArrayNode(ISourcePosition position,
Node firstNode) |
CaseNode |
ParserSupport.newCaseNode(ISourcePosition position,
Node expression,
Node firstWhenNode)
Ok I admit that this is somewhat ugly.
|
Node |
ParserSupport.newEvStrNode(ISourcePosition position,
Node node) |
Node |
ParserSupport.newline_node(Node node,
ISourcePosition position)
Wraps node with NEWLINE node.
|
OrNode |
ParserSupport.newOrNode(ISourcePosition position,
Node left,
Node right) |
Node |
ParserSupport.newRegexpNode(ISourcePosition position,
Node contents,
RegexpNode end) |
SplatNode |
ParserSupport.newSplatNode(ISourcePosition position,
Node node) |
SValueNode |
ParserSupport.newSValueNode(ISourcePosition position,
Node node) |
Node |
ParserSupport.newUndef(ISourcePosition position,
Node nameNode) |
WhenNode |
ParserSupport.newWhenNode(ISourcePosition position,
Node expressionNodes,
Node bodyNode,
Node nextCase) |
Node |
ParserSupport.node_assign(Node lhs,
Node rhs) |
Node |
ParserSupport.ret_args(Node node,
ISourcePosition position) |
void |
RubyParserResult.setAST(Node ast)
Sets the ast.
|
Node |
ParserSupport.splat_array(Node node)
If node is a splat and it is splatting a literal array then return the literal array.
|
Node |
ParserSupport.unwrapNewlineNode(Node node) |
void |
ParserSupport.warningUnlessEOption(IRubyWarnings.ID id,
Node node,
String message) |
void |
ParserSupport.warnUnlessEOption(IRubyWarnings.ID id,
Node node,
String message) |
Modifier and Type | Method and Description |
---|---|
static Block |
Helpers.getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Node node,
Block aBlock) |
static Block |
Helpers.getBlock(ThreadContext context,
IRubyObject self,
Node node) |
Copyright © 2001-2015 JRuby. All Rights Reserved.