Class FunctionExample


  • public class FunctionExample
    extends Object
    Describes a lib formula function example in a generic way.
    Author:
    matt
        "Hi " & "there" "Hi there"
          1 Simple concatenation.
        "H" & "" "H"
          1 Concatenating an empty string produces no change.
        -5&"b" -5b
          1 Unary - has higher precedence than &
        3&2-1 31
          1 Binary - has higher precedence than &
     
    • Constructor Detail

      • FunctionExample

        public FunctionExample​(Node node)
    • Method Detail

      • getExpression

        public String getExpression()
        Returns:
        the expression
      • setExpression

        public void setExpression​(String expression)
        Parameters:
        expression - the expression to set
      • getResult

        public String getResult()
        Returns:
        the result
      • setResult

        public void setResult​(String result)
        Parameters:
        result - the result to set
      • getLevel

        public String getLevel()
        Returns:
        the level
      • setLevel

        public void setLevel​(String level)
        Parameters:
        level - the level to set
      • getComment

        public String getComment()
        Returns:
        the comment
      • setComment

        public void setComment​(String comment)
        Parameters:
        comment - the comment to set