Package | Description |
---|---|
org.jruby | |
org.jruby.ast | |
org.jruby.ir |
Modifier and Type | Method and Description |
---|---|
ParseResult |
Ruby.parseFile(String file,
InputStream in,
DynamicScope scope) |
ParseResult |
Ruby.parseFile(String file,
InputStream in,
DynamicScope scope,
int lineNumber) |
ParseResult |
Ruby.parseFileFromMain(String file,
InputStream in,
DynamicScope scope) |
ParseResult |
Ruby.parseFromMain(String fileName,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
Ruby.runInterpreter(ParseResult parseResult) |
IRubyObject |
Ruby.runInterpreter(ThreadContext context,
ParseResult parseResult,
IRubyObject self) |
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
Used when a Regexp literal is the RHS of a match call.
|
class |
MatchNode |
class |
MethodDefNode |
class |
ModuleNode
Represents a module definition.
|
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 |
Node
Base class for all Nodes in the AST
|
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 |
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 |
YieldNode
Represents a yield statement.
|
class |
ZArrayNode
zero length list
|
class |
ZSuperNode
a call to 'super' with no arguments in a method.
|
Modifier and Type | Class and Description |
---|---|
class |
IRClassBody |
class |
IRClosure |
class |
IREvalScript |
class |
IRFor
Represents a 'for' loop
|
class |
IRMetaClassBody |
class |
IRMethod |
class |
IRModuleBody |
class |
IRScope
Right now, this class abstracts the following execution scopes:
Method, Closure, Module, Class, MetaClass
Top-level Script, and Eval Script
In the compiler-land, IR versions of these scopes encapsulate only as much
information as is required to convert Ruby code into equivalent Java code.
|
class |
IRScriptBody |
Modifier and Type | Method and Description |
---|---|
R |
IRTranslator.execute(Ruby runtime,
ParseResult result,
S specificObject) |
Copyright © 2001-2015 JRuby. All Rights Reserved.