NatBase10Token
A 64 bit natural number token in standard Base10 format, but which can be inferred to be a raw Hexadecimal. It can be used for standard 32 bit Ints and 64 bit Longs, as well as less used integer formats such as Byte. This is in accord with the principle that RSON at the Token and AST (Abstract Syntax Tree) levels stores data not code, although of course at the higher semantic levels it can be used very well for programming languages.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait DigitSeqsCodetrait NatStdTokentrait ValidPosFracTokentrait RawBase10Tokentrait IntStdTokentrait ValidFracTokentrait ValidRawHexaNatTokentrait ValidRawBase32NatTokentrait ValidRawHexaIntTokentrait ValidRawBase32IntTokentrait ValidBase32IntTokentrait ValidHexaIntTokentrait ValidIntTokentrait OpExprMemTokentrait ClauseMemExprTokentrait ClauseMemTokentrait BlockMemTokentrait Tokentrait ClauseMemExprtrait ClauseMemtrait ColonMemExprtrait ColonOpMemtrait AssignMemExprtrait AssignMemtrait Exprtrait StatementMemtrait BlockMemtrait TextSpanclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
The digit sequences of the code. For example "2.13.7" gives Strings("2", "13", "7").
The digit sequences of the code. For example "2.13.7" gives Strings("2", "13", "7").
Attributes
- Definition Classes
The digit chars used to calculate the integer.
Lower case trailing letter sequence.
Inherited methods
Attributes
- Inherited from:
- ValidBase32IntToken
Attributes
- Inherited from:
- ValidRawBase32NatToken
Attributes
- Inherited from:
- ValidHexaIntToken
Interpreting this token as a raw hexdecimal returns a natural number.
Interpreting this token as a raw hexdecimal returns a natural number.
Attributes
- Inherited from:
- ValidRawHexaNatToken
Attributes
- Definition Classes
- Inherited from:
- IntStdToken
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
Attributes
- Inherited from:
- Expr
gets the natural integer value part from this token interpreting it as a standard Base10 notation.
gets the natural integer value part from this token interpreting it as a standard Base10 notation.
Attributes
- Inherited from:
- RawBase10Token
Attributes
- Inherited from:
- NatStdToken
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
Attributes
- Definition Classes
- Inherited from:
- NatStdToken
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- AssignMemExpr
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
ClauseMemExprToken -> Any
- Inherited from:
- ClauseMemExprToken
Attributes
- Definition Classes
- Inherited from:
- ClauseMemExprToken