Package org.jruby.common
Class RubyWarnings
java.lang.Object
org.jruby.common.RubyWarnings
- All Implemented Interfaces:
org.joni.WarnCallback,IRubyWarnings
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jruby.common.IRubyWarnings
IRubyWarnings.ID -
Field Summary
FieldsFields inherited from interface org.joni.WarnCallback
DEFAULT, NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RubyModulecreateWarningModule(Ruby runtime) booleanprivate static JavaSites.WarningSitessites(ThreadContext context) voidvoidvoidwarn(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, IRubyObject recv, IRubyObject arg) voidVerbose mode warning methods, their contract is that consumer must explicitly check for runtime.isVerbose() before calling themvoidwarning(IRubyWarnings.ID id, String message) voidwarning(IRubyWarnings.ID id, String fileName, int lineNumber, String message) Prints a warning, only in verbose mode.voidwarnOnce(IRubyWarnings.ID id, String message) private static voidwriteWarning(Ruby runtime, IRubyWarnings.ID id, String message) static voidwriteWarningDyncall(ThreadContext context, RubyString errorString) static voidwriteWarningToError(ThreadContext context, RubyString errorString)
-
Field Details
-
runtime
-
oncelers
-
-
Constructor Details
-
RubyWarnings
-
-
Method Details
-
createWarningModule
-
warn
- Specified by:
warnin interfaceorg.joni.WarnCallback
-
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
-
writeWarningDyncall
-
writeWarningToError
-
warn
- Specified by:
warnin interfaceIRubyWarnings
-
warn
-
warnOnce
-
warning
Verbose mode warning methods, their contract is that consumer must explicitly check for runtime.isVerbose() before calling them -
warning
- Specified by:
warningin interfaceIRubyWarnings
-
writeWarning
-
warning
Prints a warning, only in verbose mode.- Specified by:
warningin interfaceIRubyWarnings
-
warn
-
sites
-
warn
Deprecated.Prints a warning, unless $VERBOSE is nil.- Specified by:
warnin interfaceIRubyWarnings
-