Package org.jruby.common
Class RubyWarnings
java.lang.Object
org.jruby.common.RubyWarnings
- All Implemented Interfaces:
org.joni.WarnCallback,IRubyWarnings
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.jruby.common.IRubyWarnings
IRubyWarnings.ID -
Field Summary
Fields inherited from interface org.joni.WarnCallback
DEFAULT, NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectcategories(ThreadContext context, IRubyObject recv) static RubyModulecreateWarningModule(ThreadContext context) booleanbooleanstatic IRubyObjectop_aref(ThreadContext context, IRubyObject self, IRubyObject arg) static IRubyObjectop_aset(ThreadContext context, IRubyObject self, IRubyObject arg, IRubyObject flag) <Context,State>
voidwarn(Context context, State state, TriFunction<Context, State, RubyStackTraceElement, String> callback) voidvoidvoidwarn(String file, int line, String message, RubyWarnings.Category category) voidvoidwarn(String message, RubyWarnings.Category category) voidwarn(IRubyWarnings.ID id, String message) voidwarn(IRubyWarnings.ID id, String fileName, int lineNumber, String message) Prints a warning, unless $VERBOSE is nil.voidwarn(IRubyWarnings.ID id, String fileName, String message) Deprecated.static IRubyObjectwarn(ThreadContext context, RubyString str) static IRubyObjectwarn(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectwarn(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectwarn(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) voidwarnDeprecated(String message) voidwarnDeprecated(IRubyWarnings.ID id, String message) Deprecated.voidwarnDeprecatedAlternate(String name, String alternate) Deprecated.voidwarnDeprecatedForRemoval(String name, String version) Deprecated.voidwarnDeprecatedForRemovalAlternate(String name, String version, String alternate) voidwarnExperimental(String message) voidwarnExperimental(String filename, int line, String message) Deprecated.voidVerbose mode warning methods, only warn in verbose modevoidvoidwarning(IRubyWarnings.ID id, String message) voidwarning(IRubyWarnings.ID id, String fileName, int lineNumber, String message) Prints a warning, only in verbose mode.voidwarningDeprecated(String message) voidwarningDeprecated(IRubyWarnings.ID id, String message) voidwarnOnce(IRubyWarnings.ID id, String message) voidwarnPerformance(String message) static IRubyObjectwarnWithCategory(ThreadContext context, IRubyObject errorString, IRubyObject category)
-
Constructor Details
-
RubyWarnings
-
-
Method Details
-
createWarningModule
-
warn
- Specified by:
warnin interfaceorg.joni.WarnCallback
-
warn
public <Context,State> void warn(Context context, State state, TriFunction<Context, State, RubyStackTraceElement, String> callback) -
getRuntime
- Specified by:
getRuntimein interfaceIRubyWarnings
-
isVerbose
public boolean isVerbose()- Specified by:
isVerbosein interfaceIRubyWarnings
-
warn
Prints a warning, unless $VERBOSE is nil.- Specified by:
warnin interfaceIRubyWarnings
-
warn
-
warnWithCategory
public static IRubyObject warnWithCategory(ThreadContext context, IRubyObject errorString, IRubyObject category) -
warn
- Specified by:
warnin interfaceIRubyWarnings
-
warn
-
warn
-
warn
-
warnExperimental
Deprecated. -
warnDeprecated
Deprecated. -
warnDeprecated
-
warnExperimental
-
warnPerformance
-
warnDeprecatedAlternate
Deprecated. -
warnDeprecatedForRemoval
Deprecated. -
warnDeprecatedForRemovalAlternate
-
hasDeprecationWarningEnabled
public boolean hasDeprecationWarningEnabled() -
warnOnce
-
warning
Verbose mode warning methods, only warn in verbose mode -
warningDeprecated
-
warning
- Specified by:
warningin interfaceIRubyWarnings
-
warningDeprecated
-
warning
Prints a warning, only in verbose mode.- Specified by:
warningin interfaceIRubyWarnings
-
warning
-
op_aref
-
op_aset
public static IRubyObject op_aset(ThreadContext context, IRubyObject self, IRubyObject arg, IRubyObject flag) -
warn
-
warn
public static IRubyObject warn(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
warn
-
categories
-
warn
Deprecated.Prints a warning, unless $VERBOSE is nil.- Specified by:
warnin interfaceIRubyWarnings
-
warn
@Deprecated public static IRubyObject warn(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated.
-