Record Class Token.TokenPath
java.lang.Object
java.lang.Record
org.aksw.shellgebra.algebra.cmd.arg.Token.TokenPath
- All Implemented Interfaces:
Token
- Enclosing interface:
Token
XXX Extend with optional read/write flags.
XXX Extend with flag whether this path is relative to a container - as to remapping paths already mapped to a container?
Alternatively, this could be partly detected via fileMapper lookups (i.e. is this a mapped path?)
-
Nested Class Summary
Nested classes/interfaces inherited from interface Token
Token.TokenCmdOp, Token.TokenLiteral, Token.TokenPath, Token.TokenVar, Token.TokenVisitor<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(Token.TokenVisitor<T> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenPath
Creates an instance of aTokenPathrecord class.- Parameters:
path- the value for thepathrecord component
-
-
Method Details
-
accept
-
toString
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-