Record Class Paren
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final StringFields inherited from interface Expr
PUNCTUATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptione()Returns the value of theerecord component.final booleanIndicates whether some other object is "equal to" this one.eval()Evaluate a given Expr.final inthashCode()Returns a hash code value for this object.static Paren“@Override”Expr.parse(java.lang.String)toString()Returns a string representation of this record class.
-
Field Details
-
START_TOKEN
- See Also:
-
STOP_TOKEN
- See Also:
-
-
Constructor Details
-
Paren
Paren(Expr e) Creates an instance of aParenrecord class.- Parameters:
e- the value for theerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
parse
“@Override”Expr.parse(java.lang.String) -
eval
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
e
Returns the value of theerecord component.- Returns:
- the value of the
erecord component
-