Class TimeTemplate<T extends Comparable<?>>

Type Parameters:
T - expression type
All Implemented Interfaces:
Expression<T>, TemplateExpression<T>, Serializable

public class TimeTemplate<T extends Comparable<?>> extends TimeExpression<T> implements TemplateExpression<T>
TimeTemplate defines custom time expressions
Author:
tiwe
See Also:
  • Constructor Details

  • Method Details

    • accept

      public final <R, C> R accept(Visitor<R,C> v, C context)
      Description copied from interface: Expression
      Accept the visitor with the given context
      Specified by:
      accept in interface Expression<T extends Comparable<?>>
      Type Parameters:
      R - return type
      C - context type
      Parameters:
      v - visitor
      context - context of visit
      Returns:
      result of visit
    • getArg

      public Object getArg(int index)
      Description copied from interface: TemplateExpression
      Get the argument with the given index
      Specified by:
      getArg in interface TemplateExpression<T extends Comparable<?>>
      Parameters:
      index - zero based index of element
      Returns:
      element at index
    • getArgs

      public List<?> getArgs()
      Description copied from interface: TemplateExpression
      Get the arguments of the custom expression
      Specified by:
      getArgs in interface TemplateExpression<T extends Comparable<?>>
      Returns:
      expression argument
    • getTemplate

      public Template getTemplate()
      Description copied from interface: TemplateExpression
      Get the serialization template for this custom expression
      Specified by:
      getTemplate in interface TemplateExpression<T extends Comparable<?>>
      Returns:
      template