Class IntValue
java.lang.Object
me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.primitives.PrimitiveValue
me.topchetoeu.j2s.runtime.values.primitives.numbers.NumberValue
me.topchetoeu.j2s.runtime.values.primitives.numbers.IntValue
-
Nested Class Summary
Nested classes/interfaces inherited from class me.topchetoeu.j2s.runtime.values.Value
Value.State
-
Field Summary
FieldsFields inherited from class me.topchetoeu.j2s.runtime.values.primitives.numbers.NumberValue
NAN
Fields inherited from class me.topchetoeu.j2s.runtime.values.Value
ARRAY_PROTO, BOOL_PROTO, ERROR_PROTO, FUNCTION_PROTO, GLOBAL, INT32_ARR_PROTO, INT8_ARR_PROTO, INTRINSICS, NULL, NUMBER_PROTO, OBJECT_PROTO, RANGE_ERR_PROTO, STRING_PROTO, SYMBOL_PROTO, SYNTAX_ERR_PROTO, TYPE_ERR_PROTO, UINT8_ARR_PROTO, UNDEFINED
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.topchetoeu.j2s.runtime.values.primitives.numbers.NumberValue
getPrototype, of, of, of, toBoolean, toNumber, toString, type
Methods inherited from class me.topchetoeu.j2s.runtime.values.primitives.PrimitiveValue
defineOwnField, defineOwnProperty, deleteOwnMember, freeze, getOwnMember, getOwnMembers, getOwnSymbolMembers, getState, isPrimitive, preventExtensions, seal, setPrototype, toPrimitive
Methods inherited from class me.topchetoeu.j2s.runtime.values.Value
add, and, apply, bitwiseNot, callWith, callWithAsync, construct, constructNoSelf, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineOwnProperty, deleteMember, deleteMember, deleteMember, deleteMember, deleteMember, deleteOwnMember, deleteOwnMember, deleteOwnMember, deleteOwnMember, divide, errorToReadable, fromIterator, getMember, getMember, getMember, getMember, getMember, getMemberDescriptor, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberPath, getMemberPath, getMembers, getOwnMember, getOwnMember, getOwnMember, getOwnMember, getSymbolMembers, global, greater, greaterOrEqual, hasMember, hasMember, hasMember, hasMember, hasMember, intrinsics, isInstanceOf, isNaN, less, lessOrEqual, looseEqual, modulo, multiply, negative, or, setMember, setMember, setMember, setMember, setMember, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, shiftLeft, shiftRight, subtract, toIterable, toReadable, unsignedShiftRight, xor
-
Field Details
-
value
public final long value
-
-
Constructor Details
-
IntValue
public IntValue(long value) -
IntValue
public IntValue(int value)
-
-
Method Details
-
isInt
public boolean isInt()- Specified by:
isInt
in classNumberValue
-
isLong
public boolean isLong()- Specified by:
isLong
in classNumberValue
-
getInt
public int getInt()- Specified by:
getInt
in classNumberValue
-
getLong
public long getLong()- Specified by:
getLong
in classNumberValue
-
getDouble
public double getDouble()- Specified by:
getDouble
in classNumberValue
-
hashCode
public int hashCode() -
toString
- Specified by:
toString
in classNumberValue
-
equals
- Specified by:
equals
in classNumberValue
-
toReadableLines
public List<String> toReadableLines(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) - Overrides:
toReadableLines
in classValue
-