Class InternalVolatileFunction

    • Constructor Detail

      • InternalVolatileFunction

        public InternalVolatileFunction()
      • InternalVolatileFunction

        public InternalVolatileFunction​(String name)
    • Method Detail

      • duplicate

        public InternalFunction duplicate​(Expression... parameters)
        This default implementation just returns this if the number of expected parameters is zero, otherwise throws an IllegalArgumentException.

        A subclass that do expect Expression parameters shall override this method and return a new instance of the same kind of InternalFunction configured to work against the given parameters.

        Specified by:
        duplicate in interface InternalFunction
        parameters - the parameters the returned InternalFunction works on
        a new instance of the same kind of InternalFunction that works on the given parameters
        See Also:
      • evaluate

        public abstract Object evaluate​(Object object)
        Description copied from class: FunctionImpl
        Default implementation simply returns the fallbackValue.

        Please override this method to produce a value based on the provided arguments.

        Specified by:
        evaluate in interface Expression
        evaluate in class FunctionImpl
        object - Object being evaluated; often a Feature
        value for the provided object