/** * Creates a traversable state for the specified label term. * * @param labelTerm The label term to create a traversable state for. */ public LabelState(Functor labelTerm) { this.labelTerm = labelTerm; labelPath = new String[] { ((StringLiteral) labelTerm.getArgument(0)).stringValue() }; isLeaf = labelTerm.getArity() <= 1; }
/** * Creates a traversable state for the specified label term. * * @param labelTerm The label term to create a traversable state for. * @param labelPath The label path of the parent state, that this state extends with a child label. */ private LabelState(Functor labelTerm, String[] labelPath) { this.labelTerm = labelTerm; this.labelPath = Arrays.copyOf(labelPath, labelPath.length + 1); this.getLabelPath()[labelPath.length] = ((StringLiteral) labelTerm.getArgument(0)).stringValue(); isLeaf = labelTerm.getArity() <= 1; }
String value = ((StringLiteral) fromTerm).stringValue(); String value = ((StringLiteral) toTerm).stringValue();
String value = ((StringLiteral) fromTerm).stringValue(); from = TimeOnly.parseTime(value); String value = ((StringLiteral) toTerm).stringValue(); to = TimeOnly.parseTime(value);
from = ((StringLiteral) fromTerm).stringValue(); to = ((StringLiteral) toTerm).stringValue();
pattern = ((StringLiteral) regexpTerm).stringValue();
String presentAs = ((StringLiteral) presentAsTerm).stringValue();