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.
|
Script |
Ruby.tryCompile(Node node,
ASTInspector inspector)
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 |
ArgAuxillaryNode |
class |
ArgsCatNode |
class |
ArgsNoArgNode |
class |
ArgsNode
Represents the argument declarations of a method.
|
class |
ArgsPreOneArgNode |
class |
ArgsPreTwoArgNode |
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 |
AttrAssignOneArgNode |
class |
AttrAssignThreeArgNode |
class |
AttrAssignTwoArgNode |
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 |
BlockArg18Node
Similiar to BlockArg, but with idiosyncracies that 1.8.7 allows:
proc { |a,&b| }
proc { |a,&FOO| }
proc { |a,b.c| }
proc { |a,b[0]| }
|
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 |
CallManyArgsBlockNode
A method or operator call.
|
class |
CallManyArgsBlockPassNode
A method or operator call.
|
class |
CallManyArgsNode
A method or operator call.
|
class |
CallNoArgBlockNode
A method or operator call.
|
class |
CallNoArgBlockPassNode
A method or operator call.
|
class |
CallNoArgNode
A method or operator call.
|
class |
CallNode
A method or operator call.
|
class |
CallOneArgBlockNode
A method or operator call.
|
class |
CallOneArgBlockPassNode
A method or operator call.
|
class |
CallOneArgFixnumNode
A method or operator call.
|
class |
CallOneArgNode
A method or operator call.
|
class |
CallSpecialArgBlockNode
A method or operator call.
|
class |
CallSpecialArgBlockPassNode
A method or operator call.
|
class |
CallSpecialArgNode
A method or operator call.
|
class |
CallThreeArgBlockNode
A method or operator call.
|
class |
CallThreeArgBlockPassNode
A method or operator call.
|
class |
CallThreeArgNode
A method or operator call.
|
class |
CallTwoArgBlockNode
A method or operator call.
|
class |
CallTwoArgBlockPassNode
A method or operator call.
|
class |
CallTwoArgNode
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 |
Colon2MethodNode
Represents a constant path which ends in a method (e.g.
|
class |
Colon2Node
Represents a '::' constant access or method call (Java::JavaClass).
|
class |
Colon3Node
Global scope node (::FooBar).
|
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 |
FCallManyArgsBlockNode |
class |
FCallManyArgsBlockPassNode
For SplatNode and ArgsCatNode calls.
|
class |
FCallManyArgsNode
Represents a method call with self as an implicit receiver.
|
class |
FCallNoArgBlockNode |
class |
FCallNoArgBlockPassNode |
class |
FCallNoArgNode |
class |
FCallNode
Represents a method call with self as an implicit receiver.
|
class |
FCallOneArgBlockNode |
class |
FCallOneArgBlockPassNode |
class |
FCallOneArgNode |
class |
FCallSpecialArgBlockNode
For SplatNode and ArgsCatNode calls.
|
class |
FCallSpecialArgBlockPassNode |
class |
FCallSpecialArgNode
For SplatNode and ArgsCatNode calls.
|
class |
FCallThreeArgBlockNode |
class |
FCallThreeArgBlockPassNode |
class |
FCallThreeArgNode |
class |
FCallTwoArgBlockNode |
class |
FCallTwoArgBlockPassNode |
class |
FCallTwoArgNode |
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 |
Hash19Node
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 |
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 |
NotNode
not is !
|
class |
NthRefNode
Represents a $number ($0..$9) variable.
|
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 |
RedoNode
Represents a 'redo'
|
class |
RegexpNode
Represents a simple regular expression literal.
|
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 |
Splat19Node |
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 |
SValue19Node |
class |
SValueNode |
class |
SymbolNode
Represents a symbol (:symbol_name).
|
class |
ToAryNode |
class |
TrueNode
Represents 'true'.
|
class |
TypedArgumentNode |
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 |
YieldOneNode |
class |
YieldThreeNode |
class |
YieldTwoNode |
class |
ZArrayNode
zero length list
|
class |
ZeroArgNode
Represents a zero arg in a block.
|
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 |
---|---|
Node |
ListNode.get(int idx) |
Node |
BlockArg18Node.getArgs() |
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 |
BlockArg18Node.getBlockArg() |
Node |
IterNode.getBlockVarNode() |
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 |
NotNode.getConditionNode()
Gets the conditionNode.
|
Node |
ConstDeclNode.getConstNode()
Get the path the name is associated with or null (in Foo::BAR it is Foo).
|
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 |
CaseNode.getFirstWhenNode()
Deprecated.
|
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 |
TypedArgumentNode.getTypeNode() |
Node |
ToAryNode.getValue() |
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.
|
protected Node |
AttrAssignNode.newAttrAssignNode(ArrayNode argsNode) |
protected Node |
AttrAssignNode.newMutatedAttrAssignNode(ArrayNode argsNode) |
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 |
FCallTwoArgNode.setIterNode(Node iterNode) |
Node |
FCallThreeArgNode.setIterNode(Node iterNode) |
Node |
FCallSpecialArgNode.setIterNode(Node iterNode) |
Node |
FCallOneArgNode.setIterNode(Node iterNode) |
Node |
FCallNode.setIterNode(Node iterNode) |
Node |
FCallNoArgNode.setIterNode(Node iterNode) |
Node |
FCallManyArgsNode.setIterNode(Node iterNode) |
Node |
CallTwoArgNode.setIterNode(Node iterNode) |
Node |
CallThreeArgNode.setIterNode(Node iterNode) |
Node |
CallSpecialArgNode.setIterNode(Node iterNode) |
Node |
CallOneArgNode.setIterNode(Node iterNode) |
Node |
CallOneArgFixnumNode.setIterNode(Node iterNode) |
Node |
CallNode.setIterNode(Node iterNode) |
Node |
CallNoArgNode.setIterNode(Node iterNode) |
Node |
CallManyArgsNode.setIterNode(Node iterNode) |
Node |
BlockAcceptingNode.setIterNode(Node iterNode) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
ZSuperNode.childNodes() |
List<Node> |
ZeroArgNode.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> |
TypedArgumentNode.childNodes() |
List<Node> |
TrueNode.childNodes() |
List<Node> |
ToAryNode.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> |
RegexpNode.childNodes() |
List<Node> |
RedoNode.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() |
List<Node> |
NotNode.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> |
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> |
BlockArg18Node.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> |
ArgAuxillaryNode.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) |
Modifier and Type | Method and Description |
---|---|
ListNode |
ListNode.add(Node node) |
ListNode |
ListNode.addAll(Node other)
Add other element to this list
|
void |
DNode.appendToString(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
RubyString string,
Node node) |
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) |
RubyString |
DRegexpNode.getString(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
RubyString string,
Node node) |
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 |
FCallTwoArgNode.setIterNode(Node iterNode) |
Node |
FCallThreeArgNode.setIterNode(Node iterNode) |
Node |
FCallSpecialArgNode.setIterNode(Node iterNode) |
Node |
FCallOneArgNode.setIterNode(Node iterNode) |
Node |
FCallNode.setIterNode(Node iterNode) |
Node |
FCallNoArgNode.setIterNode(Node iterNode) |
Node |
FCallManyArgsNode.setIterNode(Node iterNode) |
Node |
CallTwoArgNode.setIterNode(Node iterNode) |
Node |
CallThreeArgNode.setIterNode(Node iterNode) |
Node |
CallSpecialArgNode.setIterNode(Node iterNode) |
Node |
CallOneArgNode.setIterNode(Node iterNode) |
Node |
CallOneArgFixnumNode.setIterNode(Node iterNode) |
Node |
CallNode.setIterNode(Node iterNode) |
Node |
CallNoArgNode.setIterNode(Node iterNode) |
Node |
CallManyArgsNode.setIterNode(Node iterNode) |
Node |
BlockAcceptingNode.setIterNode(Node iterNode) |
void |
AssignableNode.setValueNode(Node valueNode)
Sets the valueNode.
|
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 |
---|---|
static Set<String> |
InstanceVariableFinder.findVariables(Node node)
Walk a node and its children looking for instance variables using a new
InstanceVariableFinder.
|
Modifier and Type | Method and Description |
---|---|
void |
ASTCompiler19.compile(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compile(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileAnd(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileArgs(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArgs(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArgsCat(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileArgsCatArguments(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArgsCatArguments(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileArgsPush(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArgsPush(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArgsPushArguments(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArguments(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileArray(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileArrayArguments(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileAttrAssignAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileBackref(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileBegin(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileBignum(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileBlock(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileBody(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileBreak(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileCall(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileCase(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileClass(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileClassVar(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileClassVarAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileClassVarAsgnAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileClassVarDecl(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileClassVarDeclAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileColon2(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileColon3(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileCondition(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileConst(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileConstDecl(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileConstDeclAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileDAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDAsgnAssignment(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDefined(Node node,
BodyCompiler context,
boolean expr) |
protected void |
ASTCompiler19.compileDefinedAndOrDStrDRegexp(Node node,
BodyCompiler context) |
protected void |
ASTCompiler.compileDefinedAndOrDStrDRegexp(Node node,
BodyCompiler context) |
protected void |
ASTCompiler19.compileDefinedBackref(Node node,
BodyCompiler context) |
protected void |
ASTCompiler.compileDefinedBackref(Node node,
BodyCompiler context) |
protected void |
ASTCompiler.compileDefinedCall(Node node,
BodyCompiler context) |
protected void |
ASTCompiler19.compileDefinedDVar(Node node,
BodyCompiler context) |
protected void |
ASTCompiler.compileDefinedDVar(Node node,
BodyCompiler context) |
protected void |
ASTCompiler19.compileDefinedNthref(Node node,
BodyCompiler context) |
protected void |
ASTCompiler.compileDefinedNthref(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileDefn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDefs(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDNode(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDot(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileDRegexp(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDRegexp(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDStr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDSymbol(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDVar(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileDXStr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileEncoding(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileEnsureNode(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileEvStr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileFalse(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileFCall(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileFixnum(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileFlip(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileFloat(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileFor(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileForIter(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileGetArgumentDefinition(Node node,
BodyCompiler context,
String type) |
void |
ASTCompiler.compileGetDefinition(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileGetDefinitionBase(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileGlobalAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileGlobalAsgnAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileGlobalVar(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileHash(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileHash(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileIf(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileInstAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileInstAsgnAssignment(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileInstVar(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileIter(Node node,
BodyCompiler context) |
void |
ASTCompiler.compileIter(Node node,
BodyCompiler context) |
void |
ASTCompiler19.compileLambda(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileLocalAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileLocalAsgnAssignment(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileLocalVar(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileMatch(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileMatch2(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileMatch2(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileMatch3(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileMethodArgs(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileModule(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileMultipleAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileMultipleAsgn19(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileMultipleAsgn19Assignment(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileMultipleAsgnAssignment(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileNewline(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileNext(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileNil(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileNot(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileNthRef(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpAsgnAnd(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpAsgnOr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpAsgnWithAnd(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpAsgnWithMethod(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpAsgnWithOr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpElementAsgn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpElementAsgnWithAnd(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpElementAsgnWithMethod(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOpElementAsgnWithOr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileOr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compilePostExe(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compilePreExe(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileRedo(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileRegexp(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileRescue(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileRetry(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileReturn(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileRoot(Node node,
ScriptCompiler context,
ASTInspector inspector) |
void |
ASTCompiler.compileRoot(Node node,
ScriptCompiler context,
ASTInspector inspector,
boolean load,
boolean main) |
void |
ASTCompiler.compileSClass(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileSelf(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileSplat(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileSplatArguments(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileSplatArguments(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileStr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileSuper(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileSValue(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileSValue(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileSymbol(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileToAry(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileTrue(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileUntil(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileVAlias(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileVCall(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileWhen(Node value,
List<Node> whenNodes,
Node elseNode,
BodyCompiler context,
boolean expr,
boolean outline) |
void |
ASTCompiler.compileWhile(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileXStr(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler19.compileYield(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileYield(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileZArray(Node node,
BodyCompiler context,
boolean expr) |
void |
ASTCompiler.compileZSuper(Node node,
BodyCompiler context,
boolean expr) |
ArgumentsCallback |
ASTCompiler.getArgsCallback(Node node) |
void |
ASTInspector.inspect(Node node) |
void |
ASTInspector.setFlag(Node node,
org.jruby.compiler.ASTInspector.Flag modifier) |
ASTInspector |
ASTInspector.subInspect(Node... nodes)
Perform an inspection of a subtree or set of subtrees separate from the
parent inspection, to make independent decisions based on that subtree(s).
|
Modifier and Type | Method and Description |
---|---|
void |
ASTCompiler.compileWhen(Node value,
List<Node> whenNodes,
Node elseNode,
BodyCompiler context,
boolean expr,
boolean outline) |
Constructor and Description |
---|
ASTCompiler.SpecificArityArguments(Node node) |
ASTCompiler.VariableArityArguments(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 IRubyObject |
AssignmentVisitor.assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
Node node,
IRubyObject value,
Block block,
boolean checkArity)
Deprecated.
|
static IRubyObject |
ASTInterpreter.evalClassDefinitionBody(Ruby runtime,
ThreadContext context,
StaticScope scope,
Node bodyNode,
RubyModule type,
IRubyObject self,
Block block)
Evaluates the body in a class or module definition statement.
|
static RubyString |
ASTInterpreter.getArgumentDefinition(Ruby runtime,
ThreadContext context,
Node node,
RubyString type,
IRubyObject self,
Block block) |
static Block |
ASTInterpreter.getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block currentBlock,
Node blockNode) |
static IRubyObject |
ASTInterpreter.INTERPRET_BLOCK(Ruby runtime,
ThreadContext context,
String file,
int line,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
ASTInterpreter.INTERPRET_CLASS(Ruby runtime,
ThreadContext context,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
ASTInterpreter.INTERPRET_EVAL(Ruby runtime,
ThreadContext context,
Node node,
String name,
IRubyObject self,
Block block) |
static IRubyObject |
ASTInterpreter.INTERPRET_EVAL(Ruby runtime,
ThreadContext context,
String file,
int line,
Node node,
String name,
IRubyObject self,
Block block) |
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) |
static IRubyObject |
ASTInterpreter.INTERPRET_ROOT(Ruby runtime,
ThreadContext context,
Node node,
IRubyObject self,
Block block) |
static IRubyObject[] |
ASTInterpreter.setupArgs(Ruby runtime,
ThreadContext context,
Node node,
IRubyObject self,
Block aBlock) |
Modifier and Type | Method and Description |
---|---|
Node |
InterpretedMethod.getBodyNode() |
Node |
DefaultMethod.getBodyNode() |
Modifier and Type | Method and Description |
---|---|
static DynamicMethod |
DynamicMethodFactory.newDefaultMethod(Ruby runtime,
RubyModule container,
String name,
StaticScope scope,
Node body,
ArgsNode argsNode,
Visibility visibility,
ISourcePosition position) |
static InterpretedMethod |
DynamicMethodFactory.newInterpretedMethod(Ruby runtime,
RubyModule container,
StaticScope scope,
Node body,
String name,
ArgsNode argsNode,
Visibility visibility,
ISourcePosition position) |
Constructor and Description |
---|
DefaultMethod(RubyModule implementationClass,
StaticScope staticScope,
Node body,
String name,
ArgsNode argsNode,
Visibility visibility,
ISourcePosition position) |
InterpretedMethod(RubyModule implementationClass,
StaticScope staticScope,
Node body,
String name,
ArgsNode argsNode,
Visibility visibility,
ISourcePosition position) |
TraceableInterpretedMethod(RubyModule implementationClass,
StaticScope staticScope,
Node body,
String name,
ArgsNode argsNode,
Visibility visibility,
ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
static Node |
IRBuilder.buildAST(boolean isCommandLineScript,
String arg) |
Node |
IRBuilder.skipOverNewlines(IRScope s,
Node n) |
Modifier and Type | Method and Description |
---|---|
Operand |
IRBuilder.build(Node node,
IRScope s) |
void |
IRBuilder19.buildArgsMasgn(Node node,
IRScope s,
Operand argsArray,
boolean isMasgnRoot,
int preArgsCount,
int postArgsCount,
int index,
boolean isSplat) |
Operand |
IRBuilder.buildArray(Node node,
IRScope s) |
void |
IRBuilder.buildAssignment(Node node,
IRScope s,
Variable rhsVal) |
Operand |
IRBuilder.buildAttrAssignAssignment(Node node,
IRScope s,
Operand value) |
void |
IRBuilder.buildBlockArgsAssignment(Node node,
IRScope s,
Operand argsArray,
int argIndex,
boolean isMasgnRoot,
boolean isClosureArg,
boolean isSplat) |
protected Operand |
IRBuilder.buildCallArgs(List<Operand> argsList,
Node args,
IRScope s) |
Operand |
IRBuilder.buildFalse(Node node,
IRScope s) |
protected Operand |
IRBuilder.buildGenericGetDefinitionIR(Node node,
IRScope s) |
Operand |
IRBuilder.buildGetArgumentDefinition(Node node,
IRScope s,
String type) |
Operand |
IRBuilder.buildGetDefinition(Node defnNode,
IRScope s) |
Operand |
IRBuilder.buildGetDefinitionBase(Node node,
IRScope s) |
Operand |
IRBuilder.buildNil(Node node,
IRScope s) |
Operand |
IRBuilder.buildRedo(Node node,
IRScope s) |
Operand |
IRBuilder.buildRetry(Node node,
IRScope s) |
Operand |
IRBuilder.buildSelf(Node node,
IRScope s) |
Operand |
IRBuilder.buildTrue(Node node,
IRScope s) |
String |
IRBuilder.buildType(Node typeNode) |
Operand |
IRBuilder.buildUndef(Node node,
IRScope s) |
Operand |
IRBuilder.buildVAlias(Node node,
IRScope s) |
void |
IRBuilder19.buildVersionSpecificAssignment(Node node,
IRScope s,
Variable v) |
void |
IRBuilder.buildVersionSpecificAssignment(Node node,
IRScope s,
Variable v) |
void |
IRBuilder19.buildVersionSpecificBlockArgsAssignment(Node node,
IRScope s,
Operand argsArray,
int argIndex,
boolean isMasgnRoot,
boolean isClosureArg,
boolean isSplat) |
void |
IRBuilder.buildVersionSpecificBlockArgsAssignment(Node node,
IRScope s,
Operand argsArray,
int argIndex,
boolean isMasgnRoot,
boolean isClosureArg,
boolean isSplat) |
Operand |
IRBuilder19.buildVersionSpecificGetDefinitionIR(Node node,
IRScope s) |
protected Operand |
IRBuilder.buildVersionSpecificGetDefinitionIR(Node node,
IRScope s) |
protected Operand |
IRBuilder19.buildVersionSpecificNodes(Node node,
IRScope s) |
protected Operand |
IRBuilder.buildVersionSpecificNodes(Node node,
IRScope s) |
Operand |
IRBuilder.buildZArray(Node node,
IRScope s) |
void |
IRBuilder19.receiveBlockClosureArg(Node node,
IRScope s) |
void |
IRBuilder.receiveBlockClosureArg(Node node,
IRScope s) |
void |
IRBuilder19.receiveRequiredArg(Node node,
IRScope s,
int argIndex,
boolean post,
int numPreReqd,
int numPostRead) |
List<Operand> |
IRBuilder.setupCallArgs(Node args,
IRScope s) |
Node |
IRBuilder.skipOverNewlines(IRScope s,
Node n) |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
Interpreter.interpret(Ruby runtime,
Node rootNode,
IRubyObject self) |
static IRubyObject |
Interpreter.interpretBindingEval(Ruby runtime,
String file,
int lineNumber,
String backtraceName,
Node node,
IRubyObject self,
Block block) |
static IRubyObject |
Interpreter.interpretSimpleEval(Ruby runtime,
String file,
int lineNumber,
String backtraceName,
Node node,
IRubyObject self) |
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,
ISourcePosition position) |
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.asSymbol(ISourcePosition position,
String value)
Used by 1.9 parser (so encoding aware)
|
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
|
protected abstract Node |
StaticScope.declare(ISourcePosition position,
String name,
int depth) |
Node |
LocalStaticScope.declare(ISourcePosition position,
String name,
int depth) |
Node |
IRStaticScope.declare(ISourcePosition position,
String name,
int depth) |
Node |
BlockStaticScope.declare(ISourcePosition position,
String name,
int depth) |
Node |
RubyParserResult.getAST() |
Node |
ParserSupport.getConditionNode(Node node) |
Node |
ParserSupport19.getMatchNode(Node firstNode,
Node secondNode) |
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.getReturnArgsNode(Node node) |
Node |
ParserSupport.gettable(Token token)
Create AST node representing variable type it represents.
|
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.negateInteger(Node integerNode) |
Node |
ParserSupport.new_aref(Node receiver,
Token name,
Node argsNode) |
Node |
ParserSupport.new_args(ISourcePosition position,
ListNode pre,
ListNode optional,
RestArgNode rest,
ListNode post,
ArgsTailHolder tail) |
Node |
ParserSupport.new_args(ISourcePosition position,
ListNode pre,
ListNode optional,
RestArgNode rest,
ListNode post,
BlockArgNode block) |
Node |
ParserSupport.new_attrassign(ISourcePosition position,
Node receiver,
String name,
Node args) |
Node |
ParserSupport.new_bv(Token identifier) |
Node |
ParserSupport.new_call(Node receiver,
Token name,
Node argsNode,
Node iter) |
Node |
ParserSupport.new_fcall(Token operation,
Node args,
Node iter) |
Node |
ParserSupport.new_opAssign(AssignableNode lhs,
String asgnOp,
Node rhs) |
Node |
ParserSupport.new_opElementAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
Node |
ParserSupport.new_super(Node args,
Token operation) |
Node |
ParserSupport19.new_yield(ISourcePosition position,
Node node) |
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 |
IRStaticScope.addAssign(ISourcePosition position,
String name,
Node value) |
AssignableNode |
BlockStaticScope.addAssign(ISourcePosition position,
String name,
Node value) |
Node |
ParserSupport.addRootNode(Node topOfAST,
ISourcePosition position) |
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
|
protected abstract AssignableNode |
StaticScope.assign(ISourcePosition position,
String name,
Node value,
StaticScope topScope,
int depth) |
AssignableNode |
LocalStaticScope.assign(ISourcePosition position,
String name,
Node value,
StaticScope topScope,
int depth) |
AssignableNode |
IRStaticScope.assign(ISourcePosition position,
String name,
Node value,
StaticScope topScope,
int depth) |
protected AssignableNode |
BlockStaticScope.assign(ISourcePosition position,
String name,
Node value,
StaticScope topScope,
int depth) |
AssignableNode |
ParserSupport19.assignable(Token lhs,
Node value) |
AssignableNode |
ParserSupport.assignable(Token lhs,
Node value) |
AssignableNode |
ParserSupport.assignableInCurr(Token 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.
|
Node |
ParserSupport.getConditionNode(Node node) |
Node |
ParserSupport19.getMatchNode(Node firstNode,
Node secondNode) |
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.getReturnArgsNode(Node node) |
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.negateInteger(Node integerNode) |
Node |
ParserSupport.new_aref(Node receiver,
Token name,
Node argsNode) |
Node |
ParserSupport.new_attrassign(ISourcePosition position,
Node receiver,
String name,
Node args) |
Node |
ParserSupport.new_call(Node receiver,
Token name,
Node argsNode,
Node iter) |
Colon2Node |
ParserSupport.new_colon2(ISourcePosition position,
Node leftNode,
String name) |
Node |
ParserSupport.new_fcall(Token operation,
Node args,
Node iter) |
IterNode |
ParserSupport.new_iter(ISourcePosition position,
Node vars,
StaticScope scope,
Node body) |
Node |
ParserSupport.new_opAssign(AssignableNode lhs,
String asgnOp,
Node rhs) |
Node |
ParserSupport.new_opElementAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
Node |
ParserSupport.new_super(Node args,
Token operation) |
Node |
ParserSupport19.new_yield(ISourcePosition position,
Node node) |
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) |
BlockArg18Node |
ParserSupport.newBlockArg18(ISourcePosition position,
Node blockValue,
Node args) |
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 |
ParserSupport19.newSplatNode(ISourcePosition position,
Node node) |
SplatNode |
ParserSupport.newSplatNode(ISourcePosition position,
Node node) |
SValueNode |
ParserSupport19.newSValueNode(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 |
---|---|
Node |
Interpreted19Block.getBody() |
Node |
InterpretedBlock.getBodyNode() |
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) |
static String |
Helpers.interpretAliasUndefName(Node nameNode,
Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
Some of this code looks scary.
|
static Arity |
Arity.procArityOf(Node node) |
Copyright © 2001-2016 JRuby. All Rights Reserved.