Interface Expression

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void connect​(CommonContext context, InteractionListener updateListener)
      Gives the expression a chance to connect itself to things, if necessary.
      void disconnect()
      Tells the expression to disconnect from anything it was connected to.
      QualifiedValue execute()
      Compute and return the value of this expression
      Expression[] getChildren()
      The children (if any) that this expression is dependent on for its execution
      java.lang.String getOpName()
      Return a human-readable name for the operation that this expression performs
      default java.lang.Class<?> getType()
      Return the type that this expression will return
      void shutdown()
      Tells the expression to shutdown any polling operations.
      void startup()
      Tells the expression to startup any polling operations.
    • Method Detail

      • getType

        default java.lang.Class<?> getType()
        Return the type that this expression will return
      • getOpName

        java.lang.String getOpName()
        Return a human-readable name for the operation that this expression performs
      • getChildren

        Expression[] getChildren()
        The children (if any) that this expression is dependent on for its execution
      • connect

        void connect​(CommonContext context,
                     InteractionListener updateListener)
        Gives the expression a chance to connect itself to things, if necessary. Most expressions do not have any connections. An expression should notify the updateListener if they change.
      • disconnect

        void disconnect()
        Tells the expression to disconnect from anything it was connected to.
      • startup

        void startup()
        Tells the expression to startup any polling operations. Expressions that use this can remember the updateListener from connect() to feed update notification to.
      • shutdown

        void shutdown()
        Tells the expression to shutdown any polling operations.