Class FieldExpression
java.lang.Object
io.github.projectunified.cronutils.model.field.expression.FieldExpression
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Always,And,Between,Every,On,QuestionMark,RandomExpression
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FieldExpressionaccept(FieldExpressionVisitor visitor) Accept a visitor to perform some action on the instance.static FieldExpressionalways()and(FieldExpression exp) abstract StringasString()Represents FieldExpression as string.static FieldExpression
-
Constructor Details
-
FieldExpression
public FieldExpression()
-
-
Method Details
-
and
-
asString
Represents FieldExpression as string.- Returns:
- String representation, never null.
-
accept
Accept a visitor to perform some action on the instance. Current instance is cloned, so that we ensure immutability. Clone of this instance is returned after visitor.visit(clone) was invoked.- Parameters:
visitor- - FieldExpressionVisitor instance, never null- Returns:
- FieldExpression copied instance with visitor action performed.
-
always
-
questionMark
-