Package org.jruby
Class RubyArgsFile
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyArgsFile
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic final classNested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
Fields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUST_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidargf_close(ThreadContext context, IRubyObject file) private static IRubyObjectargf_getline(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectargv(ThreadContext context, IRubyObject recv) static IRubyObjectbinmode(ThreadContext context, IRubyObject recv) static IRubyObjectbytes(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectchars(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectclose(ThreadContext context, IRubyObject recv) static IRubyObjectclosed_p(ThreadContext context, IRubyObject recv) static IRubyObjectcodepoints(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjecteach_byte(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_byte(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block) static IRubyObjecteach_char(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_charCommon(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_codepoint(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_line(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Invoke a block for each line.static IRubyObjecteach_line19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjecteach19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjecteof(ThreadContext context, IRubyObject recv) static IRubyObjecteof_p(ThreadContext context, IRubyObject recv) static IRubyObjectexternal_encoding(ThreadContext context, IRubyObject recv) static IRubyObjectfile(ThreadContext context, IRubyObject recv) static IRubyObjectfilename(ThreadContext context, IRubyObject recv) static IRubyObjectfileno(ThreadContext context, IRubyObject recv) static IRubyObjectgetbyte(ThreadContext context, IRubyObject recv) static IRubyObjectgetc(ThreadContext context, IRubyObject recv) private static RubyIOgetCurrentDataFile(ThreadContext context, String errorMessage) private static IRubyObjectgetPartial(ThreadContext context, IRubyObject recv, IRubyObject[] args, boolean nonBlocking) static IRubyObjectgets(ThreadContext context, IRubyObject recv, IRubyObject[] args) Read a line.static voidinitArgsFile(Ruby runtime) initialize(ThreadContext context, IRubyObject[] args) static IRubyObjectinternal_encoding(ThreadContext context, IRubyObject recv) private static booleanisClosed(ThreadContext context, IRubyObject currentFile) static IRubyObjectlineno(ThreadContext context, IRubyObject recv) static IRubyObjectlineno_set(ThreadContext context, IRubyObject recv, IRubyObject line) static IRubyObjectlines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjectop_binmode(ThreadContext context, IRubyObject recv) static IRubyObjectread(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectread_nonblock(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectreadbyte(ThreadContext context, IRubyObject recv) static IRubyObjectreadchar(ThreadContext context, IRubyObject recv) static IRubyObjectreadline(ThreadContext context, IRubyObject recv, IRubyObject[] args) Read a line.static IRubyObjectreadlines(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectreadpartial(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectrewind(ThreadContext context, IRubyObject recv) static IRubyObjectseek(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectset_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding) static IRubyObjectset_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding) static IRubyObjectset_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding, IRubyObject options) static IRubyObjectset_pos(ThreadContext context, IRubyObject recv, IRubyObject offset) static voidsetCurrentLineNumber(IRubyObject recv, int newLineNumber) Deprecated.private static JavaSites.ArgfSitessites(ThreadContext context) static IRubyObjectskip(IRubyObject recv) static IRubyObjecttell(ThreadContext context, IRubyObject recv) static IRubyObjectto_a(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectto_io(ThreadContext context, IRubyObject recv) static IRubyObjectto_s(IRubyObject recv) Methods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, dig1, dig2, eqlInternal, equalInternal, equals, getNativeClassIndex, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, defaultToJava, display, dup, ensureInstanceVariablesSettable, eql, eql_p, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, infectBy, infectBy, initialize, initialize_copy, initialize19, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method, method_missing, method_missing19, method19, methods, methods, methods19, methodsImpl, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_cmp, op_equal, op_equal_19, op_match, op_match19, op_not, op_not_equal, op_not_match, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, rbClone, rbInspect, recacheBuiltinMethods, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted, tainted_p, testFrozen, testFrozen, to_a, to_a, to_s, toJava, trust, type, type_deprecated, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
-
Constructor Details
-
RubyArgsFile
-
-
Method Details
-
initArgsFile
-
initialize
-
setCurrentLineNumber
Deprecated. -
argv
-
fileno
-
to_io
-
set_encoding
public static IRubyObject set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding) -
set_encoding
public static IRubyObject set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding) -
set_encoding
public static IRubyObject set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding, IRubyObject options) -
internal_encoding
-
external_encoding
-
argf_getline
private static IRubyObject argf_getline(ThreadContext context, IRubyObject recv, IRubyObject[] args) -
gets
Read a line. -
readline
Read a line. -
readlines
-
to_a
-
each_byte
-
each_byte
public static IRubyObject each_byte(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block) -
bytes
public static IRubyObject bytes(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
each_char
-
chars
-
each_charCommon
-
each_codepoint
-
codepoints
-
each_line
public static IRubyObject each_line(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Invoke a block for each line. -
lines
@Deprecated public static IRubyObject lines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
each_line19
@Deprecated public static IRubyObject each_line19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
each
public static IRubyObject each(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
each19
@Deprecated public static IRubyObject each19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
file
-
skip
-
argf_close
-
close
-
closed_p
-
isClosed
-
binmode
-
op_binmode
-
lineno
-
lineno_set
-
tell
-
rewind
-
eof
-
eof_p
-
set_pos
-
seek
-
readchar
-
getbyte
-
read_nonblock
public static IRubyObject read_nonblock(ThreadContext context, IRubyObject recv, IRubyObject[] args) -
readpartial
-
getPartial
private static IRubyObject getPartial(ThreadContext context, IRubyObject recv, IRubyObject[] args, boolean nonBlocking) -
readbyte
-
getc
-
read
-
filename
-
to_s
-
getCurrentDataFile
-
sites
-