Package one.empty3.library1.tree
Class Action
java.lang.Object
one.empty3.library1.tree.Action
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAction
(StringAnalyzer1.Token token) This class represents an action that can be performed in a parsing process. -
Method Summary
Modifier and TypeMethodDescriptionboolean
action()
Executes the action associated with the token.getToken()
Retrieves the token associated with the current action.void
setToken
(StringAnalyzer1.Token token)
-
Field Details
-
token
-
-
Constructor Details
-
Action
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
Retrieves the token associated with the current action.- Returns:
- the token associated with the current action
-
setToken
-
action
public boolean action()Executes the action associated with the token.- Returns:
- true if the action was executed successfully, false otherwise
-