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) |
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 |
RubyWarnings.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
void |
NullWarnings.warn(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
void |
IRubyWarnings.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 |
RubyWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
void |
NullWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
void |
IRubyWarnings.warning(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
BodyCompiler.lineNumber(ISourcePosition position)
This method provides a way to specify a line number for the current piece of code
being compiled.
|
void |
BodyCompiler.setFilePosition(ISourcePosition position) |
void |
BodyCompiler.setLinePosition(ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
void |
BaseBodyCompiler.lineNumber(ISourcePosition position) |
void |
BaseBodyCompiler.setFilePosition(ISourcePosition position) |
void |
BaseBodyCompiler.setLinePosition(ISourcePosition position) |
Modifier and Type | Field and Description |
---|---|
protected ISourcePosition |
CompiledMethod.position |
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
TraceableJittedMethod.getPosition() |
ISourcePosition |
JittedMethod.getPosition() |
ISourcePosition |
InterpretedMethod.getPosition() |
ISourcePosition |
DefaultMethod.getPosition() |
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)
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)
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)
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)
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)
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)
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) |
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) |
static DynamicMethod |
DynamicMethodFactory.newJittedMethod(Ruby runtime,
RubyModule container,
StaticScope scope,
Script script,
String name,
CallConfiguration config,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod defaultMethod) |
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) |
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) |
JittedMethod(RubyModule implementationClass,
StaticScope staticScope,
Script jitCompiledScript,
String name,
CallConfiguration jitCallConfig,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod realMethod) |
ReflectedCompiledMethod(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
Object scriptObject,
Method method,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
TraceableInterpretedMethod(RubyModule implementationClass,
StaticScope staticScope,
Node body,
String name,
ArgsNode argsNode,
Visibility visibility,
ISourcePosition position) |
TraceableJittedMethod(RubyModule implementationClass,
StaticScope staticScope,
Script jitCompiledScript,
String name,
CallConfiguration jitCallConfig,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod realMethod) |
Constructor and Description |
---|
BuildLambdaInstr(Variable lambda,
IRClosure lambdaBody,
ISourcePosition position) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleSourcePosition |
Modifier and Type | Field and Description |
---|---|
static ISourcePosition |
ISourcePosition.INVALID_POSITION
For nodes which are added to the AST which are not proper syntactical elements.
|
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
Token.getPosition() |
ISourcePosition |
SyntaxException.getPosition() |
ISourcePosition |
SimplePositionFactory.getPosition() |
ISourcePosition |
RubyYaccLexer.getPosition() |
ISourcePosition |
LexerSource.getPosition()
Where is the reader within the source {filename,row}
|
ISourcePosition |
ISourcePositionHolder.getPosition() |
ISourcePosition |
SimplePositionFactory.getPosition(ISourcePosition startPosition) |
ISourcePosition |
RubyYaccLexer.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}
|
Modifier and Type | Method and Description |
---|---|
StrNode |
RubyYaccLexer.createStrNode(ISourcePosition position,
org.jruby.util.ByteList buffer,
int flags) |
ISourcePosition |
SimplePositionFactory.getPosition(ISourcePosition startPosition) |
ISourcePosition |
RubyYaccLexer.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}
|
void |
Token.setPosition(ISourcePosition position) |
void |
ISourcePositionHolder.setPosition(ISourcePosition position) |
Constructor and Description |
---|
SyntaxException(SyntaxException.PID pid,
ISourcePosition position,
String lastLine,
String message,
Object... data) |
Token(Object value,
int type,
ISourcePosition position) |
Token(Object value,
ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
ISourcePosition |
ParserSupport.createEmptyArgsNodePosition(ISourcePosition pos) |
ISourcePosition |
ArgsTailHolder.getPosition() |
ISourcePosition |
ParserSupport.getPosition(ISourcePositionHolder start) |
ISourcePosition |
ParserSupport.position(ISourcePositionHolder one,
ISourcePositionHolder two) |
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) |
void |
ParserSupport.allowDubyExtension(ISourcePosition position) |
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
|
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) |
Node |
ParserSupport.asSymbol(ISourcePosition position,
Node value) |
DStrNode |
ParserSupport19.createDStrNode(ISourcePosition position) |
DStrNode |
ParserSupport.createDStrNode(ISourcePosition position) |
ISourcePosition |
ParserSupport.createEmptyArgsNodePosition(ISourcePosition pos) |
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 |
ParserSupport.getOperatorCallNode(Node firstNode,
String operator,
Node secondNode,
ISourcePosition defaultPosition) |
protected void |
ParserSupport19.getterIdentifierError(ISourcePosition position,
String identifier) |
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) |
ArgsTailHolder |
ParserSupport.new_args_tail(ISourcePosition position,
ListNode keywordArg,
Token keywordRestArgName,
BlockArgNode blockArg) |
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) |
Colon2Node |
ParserSupport.new_colon2(ISourcePosition position,
Node leftNode,
String name) |
Colon3Node |
ParserSupport.new_colon3(ISourcePosition position,
String name) |
IterNode |
ParserSupport.new_iter(ISourcePosition position,
Node vars,
StaticScope scope,
Node body) |
Node |
ParserSupport.new_opElementAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
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) |
BlockArgNode |
ParserSupport.newBlockArg(ISourcePosition position,
Token nameToken) |
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.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)
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)
Like getCompiledMethod, but postpones any heavy lifting involved in
creating the method until first invocation.
|
static void |
ThreadContext.pushBacktrace(ThreadContext context,
String method,
ISourcePosition position) |
void |
ThreadContext.setFileAndLine(ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
static void |
BacktraceElement.update(BacktraceElement backtrace,
String method,
ISourcePosition position) |
Copyright © 2001-2014 JRuby. All Rights Reserved.