Modifier and Type | Method and Description |
---|---|
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type,
ISourcePosition sourcePosition) |
Constructor and Description |
---|
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type,
ISourcePosition sourcePosition) |
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
Node.getPosition()
Location of this node within the source
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setPosition(ISourcePosition position) |
Constructor and Description |
---|
AliasNode(ISourcePosition position,
Node newName,
Node oldName) |
AndNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
ArgsCatNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
ArgsNode(ISourcePosition position,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
BlockArgNode blockArgNode)
Construct a new ArgsNode with no keyword arguments.
|
ArgsNode(ISourcePosition position,
ListNode pre,
ListNode optionalArguments,
RestArgNode rest,
ListNode post,
ListNode keywords,
KeywordRestArgNode keyRest,
BlockArgNode blockArgNode)
Construct a new ArgsNode with keyword arguments.
|
ArgsPushNode(ISourcePosition position,
Node firstNode,
Node secondNode) |
ArgumentNode(ISourcePosition position,
String identifier) |
ArgumentNode(ISourcePosition position,
String identifier,
int location) |
ArrayNode(ISourcePosition position) |
ArrayNode(ISourcePosition position,
Node firstNode) |
AssignableNode(ISourcePosition position) |
AssignableNode(ISourcePosition position,
Node valueNode) |
AttrAssignNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode) |
BackRefNode(ISourcePosition position,
int type) |
BeginNode(ISourcePosition position,
Node bodyNode) |
BignumNode(ISourcePosition position,
BigInteger value) |
BlockArgNode(ISourcePosition position,
int count,
String name) |
BlockNode(ISourcePosition position) |
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) |
ClassVarNode(ISourcePosition position,
String name) |
Colon2ConstNode(ISourcePosition position,
Node leftNode,
String name) |
Colon2ImplicitNode(ISourcePosition position,
String name) |
Colon2Node(ISourcePosition position,
Node leftNode,
String name) |
Colon3Node(ISourcePosition position,
String name) |
ComplexNode(ISourcePosition position,
Node y) |
ConstDeclNode(ISourcePosition position,
String name,
INameNode constNode,
Node valueNode) |
ConstNode(ISourcePosition position,
String name) |
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) |
DNode(ISourcePosition position) |
DNode(ISourcePosition position,
org.jcodings.Encoding encoding) |
DotNode(ISourcePosition position,
Node beginNode,
Node endNode,
boolean exclusive,
boolean isLiteral) |
DRegexpNode(ISourcePosition position,
RegexpOptions options,
org.jcodings.Encoding encoding) |
DStrNode(ISourcePosition position,
org.jcodings.Encoding encoding) |
DSymbolNode(ISourcePosition position) |
DSymbolNode(ISourcePosition position,
DStrNode node)
For mutating from a DStr to a DSym (we just create a new one with same contents).
|
DVarNode(ISourcePosition position,
int location,
String name) |
DXStrNode(ISourcePosition position) |
DXStrNode(ISourcePosition position,
DStrNode node) |
DXStrNode(ISourcePosition position,
org.jcodings.Encoding encoding) |
EncodingNode(ISourcePosition position,
org.jcodings.Encoding encoding) |
EnsureNode(ISourcePosition position,
Node bodyNode,
Node ensureNode) |
EvStrNode(ISourcePosition position,
Node body) |
FalseNode(ISourcePosition position) |
FCallNode(ISourcePosition position,
String name) |
FCallNode(ISourcePosition position,
String name,
Node argsNode,
Node iterNode) |
FileNode(ISourcePosition position,
org.jruby.util.ByteList value) |
FixnumNode(ISourcePosition position,
long value) |
FlipNode(ISourcePosition position,
Node beginNode,
Node endNode,
boolean exclusive,
int location) |
FloatNode(ISourcePosition position,
double value) |
ForNode(ISourcePosition position,
Node varNode,
Node bodyNode,
Node iterNode,
StaticScope scope) |
GlobalAsgnNode(ISourcePosition position,
String name,
Node valueNode) |
GlobalVarNode(ISourcePosition position,
String name) |
HashNode(ISourcePosition position) |
HashNode(ISourcePosition position,
KeyValuePair<Node,Node> pair) |
IfNode(ISourcePosition position,
Node condition,
Node thenBody,
Node elseBody) |
InstAsgnNode(ISourcePosition position,
String name,
Node valueNode) |
InstVarNode(ISourcePosition position,
String name) |
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.
|
KeywordArgNode(ISourcePosition position,
AssignableNode assignable) |
KeywordRestArgNode(ISourcePosition position,
String name,
int index) |
LambdaNode(ISourcePosition position,
ArgsNode args,
Node body,
StaticScope scope) |
ListNode(ISourcePosition position) |
ListNode(ISourcePosition position,
Node firstNode)
Create a new ListNode.
|
LiteralNode(ISourcePosition position,
String name) |
LocalAsgnNode(ISourcePosition position,
String name,
int location,
Node valueNode) |
LocalVarNode(ISourcePosition position,
int location,
String name) |
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) |
NilNode(ISourcePosition position) |
Node(ISourcePosition position) |
NthRefNode(ISourcePosition position,
int matchNumber) |
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) |
RationalNode(ISourcePosition position,
long numerator,
long denominator) |
RedoNode(ISourcePosition position) |
RegexpNode(ISourcePosition position,
org.jruby.util.ByteList value,
RegexpOptions options) |
RescueBodyNode(ISourcePosition position,
Node exceptionNodes,
Node bodyNode,
RescueBodyNode optRescueNode) |
RescueNode(ISourcePosition position,
Node bodyNode,
RescueBodyNode rescueNode,
Node elseNode) |
RestArgNode(ISourcePosition position,
String name,
int index) |
RetryNode(ISourcePosition position) |
ReturnNode(ISourcePosition position,
Node valueNode) |
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode) |
SClassNode(ISourcePosition position,
Node recvNode,
StaticScope scope,
Node bodyNode) |
SelfNode(ISourcePosition position) |
SplatNode(ISourcePosition position,
Node node) |
StarNode(ISourcePosition position)
Constructor for StarNode.
|
StrNode(ISourcePosition position,
org.jruby.util.ByteList value) |
StrNode(ISourcePosition position,
org.jruby.util.ByteList value,
int codeRange) |
StrNode(ISourcePosition position,
StrNode head,
StrNode tail) |
SuperNode(ISourcePosition position,
Node argsNode) |
SuperNode(ISourcePosition position,
Node argsNode,
Node iterNode) |
SValueNode(ISourcePosition position,
Node node) |
SymbolNode(ISourcePosition position,
org.jruby.util.ByteList value) |
SymbolNode(ISourcePosition position,
String name) |
TrueNode(ISourcePosition position) |
UndefNode(ISourcePosition position,
Node name) |
UnnamedRestArgNode(ISourcePosition position,
String name,
int index) |
UntilNode(ISourcePosition position,
Node conditionNode,
Node bodyNode) |
UntilNode(ISourcePosition position,
Node conditionNode,
Node bodyNode,
boolean evaluateAtStart) |
VAliasNode(ISourcePosition position,
String newName,
String oldName) |
VCallNode(ISourcePosition position,
String name) |
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) |
XStrNode(ISourcePosition position,
org.jruby.util.ByteList value) |
Yield19Node(ISourcePosition position,
Node node) |
YieldNode(ISourcePosition position,
Node argsNode,
boolean expandedArguments)
Construct a new YieldNode.
|
ZArrayNode(ISourcePosition position) |
ZSuperNode(ISourcePosition position) |
ZYieldNode(ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
void |
RubyWarnings.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message)
Prints a warning, unless $VERBOSE is nil.
|
void |
NullWarnings.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message) |
void |
IRubyWarnings.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message) |
void |
NullWarnings.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
void |
RubyWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message)
Prints a warning, only in verbose mode.
|
void |
NullWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message) |
void |
IRubyWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message) |
void |
NullWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected ISourcePosition |
CompiledMethod.position |
Modifier and Type | Method and Description |
---|---|
DynamicMethod |
ReflectionMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvokeDynamicMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use JSR292 to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
ReflectionMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvokeDynamicMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
protected void |
CompiledMethod.init(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
Constructor and Description |
---|
CompiledMethod.LazyCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodFactory factory,
MethodNodes methodNodes) |
ReflectedCompiledMethod(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
Object scriptObject,
Method method,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
BuildLambdaInstr.getPosition() |
Constructor and Description |
---|
BuildLambdaInstr(Variable result,
Operand lambdaBody,
ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
static ISourcePosition |
NonIRObjectFactory.createSourcePosition(String fileName,
int line) |
Modifier and Type | Class and Description |
---|---|
class |
DetailedSourcePosition |
class |
InvalidSourcePosition
For nodes which are added to the AST which are not proper syntactical elements.
|
class |
SimpleSourcePosition |
Modifier and Type | Field and Description |
---|---|
static ISourcePosition |
InvalidSourcePosition.INSTANCE |
protected ISourcePosition |
LexerSource.lastPosition |
ISourcePosition |
RubyLexer.tokline |
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
SyntaxException.getPosition() |
ISourcePosition |
RubyLexer.getPosition() |
ISourcePosition |
LexerSource.getPosition()
Where is the reader within the source {filename,row}
Node that this method updates some internal state - it's not just a constructor
|
ISourcePosition |
ISourcePositionHolder.getPosition() |
ISourcePosition |
RubyLexer.getPosition(ISourcePosition startPosition)
Get position information for Token/Node that follows node represented by startPosition
and current lexer location.
|
ISourcePosition |
LexerSource.getPosition(ISourcePosition startPosition)
Where is the reader within the source {filename,row}
Node that this method updates some internal state - it's not just a constructor
|
Modifier and Type | Method and Description |
---|---|
StrNode |
RubyLexer.createStrNode(ISourcePosition position,
org.jruby.util.ByteList buffer,
int flags) |
ISourcePosition |
RubyLexer.getPosition(ISourcePosition startPosition)
Get position information for Token/Node that follows node represented by startPosition
and current lexer location.
|
ISourcePosition |
LexerSource.getPosition(ISourcePosition startPosition)
Where is the reader within the source {filename,row}
Node that this method updates some internal state - it's not just a constructor
|
void |
ISourcePositionHolder.setPosition(ISourcePosition position) |
Constructor and Description |
---|
SyntaxException(SyntaxException.PID pid,
ISourcePosition position,
String lastLine,
String message,
Object... data) |
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
ArgsTailHolder.getPosition() |
ISourcePosition |
ParserSupport.getPosition(ISourcePositionHolder start) |
ISourcePosition |
ParserSupport.position(ISourcePositionHolder one,
ISourcePositionHolder two) |
Modifier and Type | Method and Description |
---|---|
AssignableNode |
StaticScope.addAssign(ISourcePosition position,
String name,
Node value) |
Node |
ParserSupport.arg_add(ISourcePosition position,
Node node1,
Node node2) |
Node |
ParserSupport.arg_concat(ISourcePosition position,
Node node1,
Node node2) |
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) |
Node |
ParserSupport.asSymbol(ISourcePosition position,
Node value) |
DStrNode |
ParserSupport.createDStrNode(ISourcePosition position) |
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.getOperatorCallNode(Node firstNode,
String operator,
Node secondNode,
ISourcePosition defaultPosition) |
protected void |
ParserSupport.getterIdentifierError(ISourcePosition position,
String identifier) |
KeywordArgNode |
ParserSupport.keyword_arg(ISourcePosition position,
AssignableNode assignable) |
Node |
ParserSupport.literal_concat(ISourcePosition position,
Node head,
Node tail) |
Node |
ParserSupport.negateNumeric(ISourcePosition position,
Node node) |
ArgsTailHolder |
ParserSupport.new_args_tail(ISourcePosition position,
ListNode keywordArg,
String keywordRestArgName,
BlockArgNode blockArg) |
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) |
Colon2Node |
ParserSupport.new_colon2(ISourcePosition position,
Node leftNode,
String name) |
Colon3Node |
ParserSupport.new_colon3(ISourcePosition position,
String name) |
Node |
ParserSupport.new_defined(ISourcePosition position,
Node something) |
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.ret_args(Node node,
ISourcePosition position) |
void |
ParserSupport.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data) |
void |
ParserSupport.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data) |
Constructor and Description |
---|
ArgsTailHolder(ISourcePosition position,
ListNode keywordArgs,
KeywordRestArgNode keywordRestArg,
BlockArgNode blockArg) |
Modifier and Type | Method and Description |
---|---|
abstract DynamicMethod |
MethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Get a new method handle based on the target JRuby-compiled method.
|
abstract DynamicMethod |
MethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Like getCompiledMethod, but postpones any heavy lifting involved in
creating the method until first invocation.
|
void |
ThreadContext.setFileAndLine(ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
static void |
BacktraceElement.update(BacktraceElement backtrace,
String method,
ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
protected com.oracle.truffle.api.source.SourceSection |
Translator.translate(ISourcePosition sourcePosition) |
com.oracle.truffle.api.source.SourceSection |
Translator.translate(com.oracle.truffle.api.source.Source source,
ISourcePosition sourcePosition) |
Constructor and Description |
---|
ReadLocalDummyNode(ISourcePosition sourcePosition,
com.oracle.truffle.api.source.SourceSection sourceSection,
com.oracle.truffle.api.frame.FrameSlot frameSlot) |
Copyright © 2001-2015 JRuby. All Rights Reserved.