Class Action

java.lang.Object
one.empty3.library1.tree.Action

public class Action extends Object
The Action class represents an action that can be performed in a parsing process. It is an abstract class that must be subclassed to implement the action logic.
  • Field Details

  • Constructor Details

    • Action

      public Action(StringAnalyzer1.Token token)
      This class represents an action that can be performed in a parsing process. It is an abstract class that must be subclassed to implement the action logic.
  • Method Details

    • getToken

      public StringAnalyzer1.Token getToken()
      Retrieves the token associated with the current action.
      Returns:
      the token associated with the current action
    • setToken

      public void setToken(StringAnalyzer1.Token token)
    • action

      public boolean action()
      Executes the action associated with the token.
      Returns:
      true if the action was executed successfully, false otherwise