Modifier and Type | Method and Description |
---|---|
RubySymbol |
RubySymbol.asInstanceVariable() |
RubySymbol |
RubySymbol.asWriter()
Make an instance variable out of this symbol (e.g.
|
RubySymbol |
RubySymbol.SymbolTable.fastGetSymbol(java.lang.String internedName) |
RubySymbol |
RubySymbol.SymbolTable.fastGetSymbol(java.lang.String internedName,
boolean hard) |
RubySymbol |
Ruby.fastNewSymbol(java.lang.String internedName)
Faster than
Ruby.newSymbol(String) if you already have an interned
name String. |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(org.jruby.util.ByteList bytes) |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(org.jruby.util.ByteList bytes,
boolean hard) |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(java.lang.String name) |
RubySymbol |
RubySymbol.SymbolTable.getSymbol(java.lang.String name,
boolean hard) |
static RubySymbol |
RubySymbol.getSymbolLong(Ruby runtime,
long id) |
RubySymbol |
RubyString.intern()
rb_str_intern
|
RubySymbol |
RubyString.intern19()
Deprecated.
|
RubySymbol |
RubySymbol.SymbolTable.lookup(long id) |
RubySymbol |
RubySymbol.SymbolTable.lookup(java.lang.String name)
Deprecated.
|
static RubySymbol |
RubySymbol.newConstantSymbol(Ruby runtime,
IRubyObject fqn,
org.jruby.util.ByteList bytes)
Create a symbol whose intention is to be used as a constant.
|
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
IRubyObject name) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
java.lang.String name) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
java.lang.String name,
org.jcodings.Encoding encoding) |
static RubySymbol |
RubySymbol.newIDSymbol(Ruby runtime,
org.jruby.util.ByteList bytes)
Generic identifier symbol creation (or retrieval) method.
|
RubySymbol |
Ruby.newSymbol(org.jruby.util.ByteList name) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
IRubyObject name)
Deprecated.
|
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
java.lang.String name) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
java.lang.String name,
org.jcodings.Encoding encoding) |
RubySymbol |
Ruby.newSymbol(java.lang.String name) |
RubySymbol |
Ruby.newSymbol(java.lang.String name,
org.jcodings.Encoding encoding) |
static RubySymbol |
RubySymbol.retrieveIDSymbol(IRubyObject name)
When we know we need an entry in the symbol table because the provided name will be needed to be
accessed as a valid identifier later we can call this.
|
static RubySymbol |
RubySymbol.unmarshalFrom(UnmarshalStream input) |
Modifier and Type | Method and Description |
---|---|
protected static IRubyObject |
RubyKernel.methodMissingDirect(ThreadContext context,
IRubyObject recv,
RubySymbol symbol,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args) |
void |
RubySymbol.SymbolTable.store(RubySymbol symbol)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected RubySymbol |
MethodDefNode.name |
protected RubySymbol |
Colon3Node.name |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
MethodDefNode.getName()
Gets the name.
|
RubySymbol |
Colon3Node.getName()
Gets the name.
|
RubySymbol |
ClassVarNode.getName()
Gets the name.
|
RubySymbol |
CallNode.getName()
Gets the name.
|
RubySymbol |
InstVarNode.getName()
Gets the name.
|
RubySymbol |
DAsgnNode.getName()
Gets the name.
|
RubySymbol |
ArgumentNode.getName() |
RubySymbol |
ConstDeclNode.getName()
Gets the name (this is the rightmost element of lhs (in Foo::BAR it is BAR).
|
RubySymbol |
FCallNode.getName()
Gets the name.
|
RubySymbol |
SymbolNode.getName()
Gets the name.
|
RubySymbol |
LocalVarNode.getName()
What is the name of this variable
|
RubySymbol |
VCallNode.getName()
Gets the methodName.
|
RubySymbol |
LocalAsgnNode.getName()
Name of the local assignment.
|
RubySymbol |
DVarNode.getName()
Gets the name.
|
RubySymbol |
BlockArgNode.getName()
Get the name of this block argument
|
RubySymbol |
InstAsgnNode.getName()
Gets the name.
|
RubySymbol |
OptArgNode.getName() |
RubySymbol |
ClassVarDeclNode.getName()
Deprecated.
Gets the name.
|
RubySymbol |
ClassVarAsgnNode.getName()
Gets the name.
|
RubySymbol |
ConstNode.getName()
Gets the name.
|
RubySymbol |
GlobalVarNode.getName()
Gets the name.
|
RubySymbol |
AttrAssignNode.getName()
Gets the name.
|
RubySymbol |
GlobalAsgnNode.getName()
Gets the name.
|
RubySymbol |
VAliasNode.getNewName()
Gets the newName.
|
RubySymbol |
VAliasNode.getOldName()
Gets the oldName.
|
RubySymbol |
OpAsgnNode.getOperatorSymbolName() |
RubySymbol |
OpElementAsgnNode.getOperatorSymbolName() |
RubySymbol |
LiteralNode.getSymbolName() |
RubySymbol |
OpAsgnConstDeclNode.getSymbolOperator() |
RubySymbol |
OpAsgnNode.getVariableSymbolName() |
RubySymbol |
OpAsgnNode.getVariableSymbolNameAsgn() |
Modifier and Type | Field and Description |
---|---|
RubySymbol[] |
RuntimeCache.symbols |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
AbstractScript.getSymbol(ThreadContext context,
int i,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
RuntimeCache.getSymbol(ThreadContext context,
int index,
java.lang.String name,
java.lang.String encodingName) |
RubySymbol |
AbstractScript.getSymbol0(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol1(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol2(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol3(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol4(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol5(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol6(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol7(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol8(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
RubySymbol |
AbstractScript.getSymbol9(ThreadContext context,
java.lang.String name,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
INameNode.getName() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<RubySymbol> |
InstanceVariableFinder.findVariables(Node node)
Walk a node and its children looking for instance variables using a new
InstanceVariableFinder.
|
java.util.Set<RubySymbol> |
InstanceVariableFinder.getFoundVariables()
Return the Set of all instance variables found during walking.
|
Modifier and Type | Method and Description |
---|---|
RubySymbol |
IRManager.getMetaClassName() |
RubySymbol |
IRBuilder.getName() |
RubySymbol |
IRScope.getName() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<RubySymbol,LocalVariable> |
IRScope.getLocalVariables()
Get the local variables for this scope.
|
Modifier and Type | Method and Description |
---|---|
void |
IRScope.setLocalVariables(java.util.Map<RubySymbol,LocalVariable> variables)
Set the local variables for this scope.
|
Constructor and Description |
---|
IRClassBody(IRManager manager,
IRScope lexicalParent,
RubySymbol name,
int lineNumber,
StaticScope scope) |
IRClosure(IRClosure c,
IRScope lexicalParent,
int closureId,
RubySymbol fullName)
Used by cloning code
|
IRMetaClassBody(IRManager manager,
IRScope lexicalParent,
RubySymbol name,
int lineNumber,
StaticScope scope) |
IRMethod(IRManager manager,
IRScope lexicalParent,
DefNode defn,
RubySymbol name,
boolean isInstanceMethod,
int lineNumber,
StaticScope staticScope,
boolean needsCodeCoverage) |
IRModuleBody(IRManager manager,
IRScope lexicalParent,
RubySymbol name,
int lineNumber,
StaticScope staticScope) |
IRScope(IRManager manager,
IRScope lexicalParent,
RubySymbol name,
int lineNumber,
StaticScope staticScope) |
IRScriptBody(IRManager manager,
RubySymbol sourceName,
StaticScope staticScope) |
Modifier and Type | Field and Description |
---|---|
RubySymbol |
ReceiveKeywordArgInstr.key |
RubySymbol |
NonlocalReturnInstr.methodName |
protected RubySymbol |
CallBase.name |
protected RubySymbol |
PutInstr.name |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
PushBlockFrameInstr.getFrameName() |
RubySymbol |
PushMethodFrameInstr.getFrameName() |
RubySymbol |
ReceiveKeywordArgInstr.getKey() |
RubySymbol |
ConstMissingInstr.getMissingConst() |
RubySymbol |
CallBase.getName() |
RubySymbol |
GetInstr.getName() |
RubySymbol |
SearchConstInstr.getName() |
RubySymbol |
InheritanceSearchConstInstr.getName() |
RubySymbol |
PutInstr.getName() |
RubySymbol |
SearchModuleForConstInstr.getName() |
RubySymbol |
SetCapturedVarInstr.getName() |
RubySymbol |
RaiseRequiredKeywordArgumentError.getName() |
RubySymbol |
LexicalSearchConstInstr.getName() |
RubySymbol |
BreakInstr.getScopeName() |
Modifier and Type | Method and Description |
---|---|
static NoResultCallInstr |
NoResultCallInstr.create(CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
static CallInstr |
CallInstr.create(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure) |
static CallInstr |
CallInstr.create(IRScope scope,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure) |
static AttrAssignInstr |
AttrAssignInstr.create(Operand obj,
RubySymbol attr,
Operand[] args,
boolean isPotentiallyRefined) |
static CallInstr |
CallInstr.createWithKwargs(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
java.util.List<KeyValuePair<Operand,Operand>> kwargs) |
Constructor and Description |
---|
AttrAssignInstr(Operand obj,
RubySymbol attr,
Operand[] args,
boolean isPotentiallyRefined) |
BreakInstr(Operand returnValue,
RubySymbol scopeName) |
CallBase(Operation op,
CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
CallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
CallInstr(Operation op,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
ClassSuperInstr(Variable result,
Operand definingModule,
RubySymbol name,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
ConstMissingInstr(Variable result,
Operand currentModule,
RubySymbol missingConst,
boolean isPotentiallyRefined) |
GetClassVariableInstr(Variable dest,
Operand scope,
RubySymbol variableName) |
GetFieldInstr(Variable dest,
Operand obj,
RubySymbol fieldName) |
GetGlobalVariableInstr(Variable dest,
RubySymbol gvarName) |
GetInstr(Operation op,
Variable result,
Operand source,
RubySymbol name) |
InheritanceSearchConstInstr(Variable result,
Operand currentModule,
RubySymbol constName) |
InstanceSuperInstr(Variable result,
Operand definingModule,
RubySymbol name,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
LexicalSearchConstInstr(Variable result,
Operand definingScope,
RubySymbol constantName) |
NonlocalReturnInstr(Operand returnValue,
RubySymbol methodName) |
NoResultCallInstr(Operation op,
CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
PushBlockFrameInstr(Variable result,
RubySymbol frameName) |
PushMethodFrameInstr(RubySymbol frameName) |
PutClassVariableInstr(Operand scope,
RubySymbol variableName,
Operand value) |
PutConstInstr(Operand scopeOrObj,
RubySymbol constantName,
Operand val) |
PutFieldInstr(Operand obj,
RubySymbol fieldName,
Operand value) |
PutGlobalVarInstr(RubySymbol varName,
Operand value) |
PutInstr(Operation op,
Operand target,
RubySymbol name,
Operand value) |
RaiseRequiredKeywordArgumentError(RubySymbol name) |
ReceiveKeywordArgInstr(Variable result,
RubySymbol key,
int required) |
SearchConstInstr(Variable result,
RubySymbol constantName,
Operand startingScope,
boolean noPrivateConsts) |
SearchModuleForConstInstr(Variable result,
Operand currentModule,
RubySymbol constantName,
boolean noPrivateConsts) |
SearchModuleForConstInstr(Variable result,
Operand currentModule,
RubySymbol constantName,
boolean noPrivateConsts,
boolean callConstMissing) |
SetCapturedVarInstr(Variable result,
Operand match2Result,
RubySymbol variableName) |
TraceInstr(RubyEvent event,
RubySymbol name,
java.lang.String filename,
int linenumber) |
Constructor and Description |
---|
OneArgOperandAttrAssignInstr(Operand obj,
RubySymbol attr,
Operand[] args,
boolean isPotentiallyRefined) |
OneFixnumArgNoBlockCallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean potentiallyRefined) |
OneFloatArgNoBlockCallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean potentiallyRefined) |
OneOperandArgBlockCallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockCallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockCallInstr(Operation op,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockNoResultCallInstr(CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
TwoOperandArgNoBlockCallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
TwoOperandArgNoBlockCallInstr(Operation op,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
ZeroOperandArgNoBlockCallInstr(CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
InterpreterContext.getName() |
Modifier and Type | Field and Description |
---|---|
protected RubySymbol |
LocalVariable.name |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
SymbolProc.getName() |
RubySymbol |
Reference.getName() |
RubySymbol |
LocalVariable.getName() |
RubySymbol |
Symbol.getSymbol() |
Constructor and Description |
---|
ClosureLocalVariable(RubySymbol name,
int scopeDepth,
int location) |
FrozenString(RubySymbol symbol) |
GlobalVariable(RubySymbol name) |
LocalVariable(RubySymbol name,
int scopeDepth,
int location) |
Reference(RubySymbol name) |
StringLiteral(RubySymbol symbol) |
Symbol(RubySymbol symbol) |
SymbolProc(RubySymbol name) |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
IRReaderDecoder.decodeSymbol() |
RubySymbol |
IRReaderStream.decodeSymbol() |
Modifier and Type | Method and Description |
---|---|
static IRScope |
IRReader.createScope(IRManager manager,
IRScopeType type,
RubySymbol name,
int line,
IRScope lexicalParent,
Signature signature,
StaticScope staticScope) |
void |
IRWriterEncoder.encode(RubySymbol value) |
void |
IRWriterStream.encode(RubySymbol symbol) |
void |
IRWriterAnalyzer.encode(RubySymbol value) |
Modifier and Type | Method and Description |
---|---|
static RubyProc |
IRRuntimeHelpers.newSymbolProc(ThreadContext context,
RubySymbol symbol)
Create a new Symbol.to_proc for the given symbol name and encoding.
|
static IRubyObject |
IRRuntimeHelpers.receiveKeywordArg(ThreadContext context,
IRubyObject[] args,
int required,
RubySymbol key,
boolean acceptsKeywordArgument) |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
ParserSupport.symbolID(org.jruby.util.ByteList identifierValue) |
Modifier and Type | Method and Description |
---|---|
AssignableNode |
StaticScope.addAssign(ISourcePosition position,
RubySymbol symbolID,
Node value) |
AssignableNode |
StaticScope.assign(ISourcePosition position,
RubySymbol name,
Node value)
Make a DASgn or LocalAsgn node based on scope logic
|
AssignableNode |
StaticScope.assign(ISourcePosition position,
RubySymbol symbolID,
Node value,
StaticScope topScope,
int depth) |
AssignableNode |
StaticScope.assignKeyword(ISourcePosition position,
RubySymbol symbolID,
Node value)
Register a keyword argument with this staticScope.
|
Node |
StaticScope.declare(ISourcePosition position,
RubySymbol symbolID)
Make a DVar or LocalVar node based on scoping logic
|
Node |
StaticScope.declare(ISourcePosition position,
RubySymbol symbolID,
int depth) |
protected void |
ParserSupport.getterIdentifierError(ISourcePosition position,
RubySymbol identifier) |
Modifier and Type | Field and Description |
---|---|
RubySymbol |
ArgumentDescriptor.name
The name of the argument
|
Modifier and Type | Method and Description |
---|---|
static RubySymbol |
Helpers.addInstanceMethod(RubyModule containingClass,
RubySymbol symbol,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime) |
static RubySymbol |
Helpers.addInstanceMethod(RubyModule containingClass,
java.lang.String name,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RubySymbol |
Helpers.addInstanceMethod(RubyModule containingClass,
RubySymbol symbol,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime) |
static Visibility |
Helpers.performNormalMethodChecksAndDetermineVisibility(Ruby runtime,
RubyModule clazz,
RubySymbol symbol,
Visibility visibility) |
RubyArray |
ArgumentType.toArrayForm(Ruby runtime,
RubySymbol name) |
Constructor and Description |
---|
ArgumentDescriptor(ArgumentType type,
RubySymbol name) |
Modifier and Type | Method and Description |
---|---|
static RubySymbol |
TypeConverter.checkID(IRubyObject obj)
Convert the supplied object into an internal identifier String.
|
static RubySymbol |
TypeConverter.checkID(Ruby runtime,
java.lang.String name)
Convert the supplied object into an internal identifier String.
|
Copyright © 2001-2018 JRuby. All Rights Reserved.