NameError
| Modifier and Type | Class and Description |
|---|---|
| public static class | RubyNameError.
Nested class whose instances act as thunks reacting to to_str method called from (Exception#to_str, Exception#message) MRI equivalent: rb_cNameErrorMesg, class name: "message", construction method: "!", to_str implementation: "name_err_mesg_to_str" Todo this class should not be lookupable |
| Modifier and Type | Field and Description |
|---|---|
| private IRubyObject | |
| protected boolean | |
| private IRubyObject |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected RaiseException | |
| public void | copySpecialInstanceVariables(IRubyObject clone)
Overrides org. Implements org. Lots of MRI objects keep their state in non-lookupable ivars (e:g. |
| pack-priv static RubyClass | |
| public static IRubyObject | |
| public static RubyException | |
| public static RubyException | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public IRubyObject | |
| private static RubyException | |
| pack-priv static RubyException | newNameError(ThreadContext context, IRubyObject recv, IRubyObject message, IRubyObject name, boolean privateCall)
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject |
| name | back to summary |
|---|---|
| private IRubyObject name | |
| privateCall | back to summary |
|---|---|
| protected boolean privateCall | |
| receiver | back to summary |
|---|---|
| private IRubyObject receiver | |
| RubyNameError | back to summary |
|---|---|
| protected RubyNameError(Ruby runtime, RubyClass exceptionClass) | |
| RubyNameError | back to summary |
|---|---|
| public RubyNameError(Ruby runtime, RubyClass exceptionClass, String message) | |
| RubyNameError | back to summary |
|---|---|
| public RubyNameError(Ruby runtime, RubyClass exceptionClass, String message, String name) | |
| RubyNameError | back to summary |
|---|---|
| public RubyNameError(Ruby runtime, RubyClass exceptionClass, String message, IRubyObject name) | |
| constructThrowable | back to summary |
|---|---|
| protected RaiseException constructThrowable(String message) Overrides org.
| |
| copySpecialInstanceVariables | back to summary |
|---|---|
| public void copySpecialInstanceVariables(IRubyObject clone) Overrides org. Implements org. Doc from org. Lots of MRI objects keep their state in non-lookupable ivars (e:g. Range, Struct, etc). This method is responsible for dupping our java field equivalents
| |
| define | back to summary |
|---|---|
| pack-priv static RubyClass define(ThreadContext context, RubyClass StandardError) | |
| exception | back to summary |
|---|---|
public static IRubyObject exception(ThreadContext context, IRubyObject recv)
| |
| exception | back to summary |
|---|---|
public static RubyException exception(ThreadContext context, IRubyObject recv, IRubyObject message)
| |
| exception | back to summary |
|---|---|
public static RubyException exception(ThreadContext context, IRubyObject recv, IRubyObject message, IRubyObject name)
| |
| initialize | back to summary |
|---|---|
| public IRubyObject initialize(IRubyObject[] args, Block block) Overrides org.
| |
| initializeOptions | back to summary |
|---|---|
| public IRubyObject initializeOptions(IRubyObject[] args, RubyHash options, Block block) | |
| isPrivateCall | back to summary |
|---|---|
| public boolean isPrivateCall() | |
| name | back to summary |
|---|---|
public IRubyObject name()
| |
| newNameError | back to summary |
|---|---|
| private static RubyException newNameError(ThreadContext context, IRubyObject recv, IRubyObject[] args) | |
| newNameError | back to summary |
|---|---|
| pack-priv static RubyException newNameError(ThreadContext context, IRubyObject recv, IRubyObject message, IRubyObject name, boolean privateCall) | |
| private_call_p | back to summary |
|---|---|
public IRubyObject private_call_p(ThreadContext context)
| |
| receiver | back to summary |
|---|---|
public IRubyObject receiver(ThreadContext context)
| |
| to_s | back to summary |
|---|---|
| public IRubyObject to_s(ThreadContext context) Overrides org.
| |
Todo
this class should not be lookupable
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final IRubyObject | |
| private final IRubyObject |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static RubyClass | |
| public IRubyObject | |
| private static RubyString | |
| public static IRubyObject | |
| public IRubyObject | |
| private static IRubyObject | |
| private static IRubyObject |
| message | back to summary |
|---|---|
| private final String message | |
| name | back to summary |
|---|---|
| private final IRubyObject name | |
| object | back to summary |
|---|---|
| private final IRubyObject object | |
| RubyNameErrorMessage | back to summary |
|---|---|
| pack-priv RubyNameErrorMessage(Ruby runtime, RubyClass klazz) | |
| RubyNameErrorMessage | back to summary |
|---|---|
| pack-priv RubyNameErrorMessage(Ruby runtime, String message, IRubyObject object, IRubyObject name) | |
| define | back to summary |
|---|---|
| pack-priv static RubyClass define(ThreadContext context, RubyClass Object, RubyClass NameError) | |
| dump | back to summary |
|---|---|
public IRubyObject dump(ThreadContext context, IRubyObject arg)
| |
| getNameOrInspect | back to summary |
|---|---|
| private static RubyString getNameOrInspect(ThreadContext context, IRubyObject object) | |
| load | back to summary |
|---|---|
public static IRubyObject load(IRubyObject recv, IRubyObject arg)
| |
| to_str | back to summary |
|---|---|
public IRubyObject to_str(ThreadContext context)
| |
| tryInspect | back to summary |
|---|---|
| private static IRubyObject tryInspect(ThreadContext context, IRubyObject object) | |
| tryModuleName | back to summary |
|---|---|
| private static IRubyObject tryModuleName(ThreadContext context, IRubyObject obj) | |