Class ModuleExpression

    • Constructor Detail

      • ModuleExpression

        public ModuleExpression()
      • ModuleExpression

        public ModuleExpression​(int operatorType)
    • Method Detail

      • isDefaultNamespace

        public boolean isDefaultNamespace()
      • setDefaultNamespace

        public void setDefaultNamespace​(boolean defaultNamespace)
      • isNewModuleVersion

        public boolean isNewModuleVersion()
      • setNewModuleVersion

        public void setNewModuleVersion​(boolean newModuleVersion)
      • evaluate

        public Object evaluate​(State ambientState)
      • getModule

        public Module getModule()
        The module associated with this expression.
        Returns:
      • setModule

        public void setModule​(Module module)
      • getModuleState

        public State getModuleState()
      • getModuleState

        public State getModuleState​(State state)
        The state of the current module only. This is used to construct the local state.
        Returns:
      • setModuleState

        public void setModuleState​(State moduleState)
      • getLocalState

        public State getLocalState​(State state)
      • set

        public void set​(State state,
                        Object newValue)
        Set the value of this expression using the state
        Parameters:
        newValue -
      • getNodeType

        public int getNodeType()
        Description copied from interface: ExpressionInterface
        QDL is not strongly typed but Java is, so each node type should have a unique integer and conditionals should use that, not the instanceof operator. This allows for efficient programming with switch statements rather than a bevy of conditionals (potentially each of which gets done even if the correct case has been handled).
        Returns:
      • getAmbientState

        public State getAmbientState()
      • setAmbientState

        public void setAmbientState​(State ambientState)