Class AbstractOperator

    • Field Detail

      • EXECUTION_PREFIX

        public static final java.lang.String EXECUTION_PREFIX
        The constant is the prefix for executing methods of operators
        See Also:
        Constant Field Values
      • ALL_OPERATORS

        public static final AbstractOperator[] ALL_OPERATORS
        The array contains all operators allowed by the preprocessor
    • Constructor Detail

      • AbstractOperator

        public AbstractOperator()
    • Method Detail

      • findForClass

        public static <E extends AbstractOperator> E findForClass​(java.lang.Class<E> operatorClass)
        Find an operator handler for its class
        Type Parameters:
        E - the handler class extends AbstractOperator
        Parameters:
        operatorClass - the class to be used for search, must not be null
        Returns:
        an instance of the handler or null if there is not any such one
      • getArity

        public abstract int getArity()
        Get the operator arity
        Returns:
        the operator arity (1 or 2)
      • getKeyword

        public abstract java.lang.String getKeyword()
        Get the operator keyword
        Returns:
        the operator keyword, must not be null
      • getReference

        public abstract java.lang.String getReference()
        Get the operator reference to be shown for a help information request
        Returns:
        the operator reference as a String, must not be null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object