Package | Description |
---|---|
org.jruby |
Modifier and Type | Method and Description |
---|---|
RubySymbol |
RubySymbol.SymbolTable.getSymbol(ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler,
boolean hard)
Get or retrieve an existing symbol from the table, invoking the given handler before return.
|
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler) |
static RubySymbol |
RubySymbol.newIDSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Generic identifier symbol creation (or retrieval) method that invokes a handler before storing new symbols.
|
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Return the symbol in the symbol table if it exists, null otherwise.
|
static RubySymbol |
RubySymbol.retrieveIDSymbol(IRubyObject name,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Retrieve an ID symbol but call the handler before any new symbol is added to the symbol table.
|
Copyright © 2001-2019 JRuby. All Rights Reserved.