public abstract class Verb
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
Name of this class
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
Verb()
Constructs an empty verb.
|
Modifier and Type | Method and Description |
---|---|
void | addExpression(Expression expression)
Adds an expression to the verb.
|
void | addExpression(VerbAction action, VerbPath path)
Adds an expression to the verb
|
void | addExpression(VerbAction action, VerbPathStep[] steps)
Adds an expression to the verb
|
VerbAction | getAction(VerbPath path)
Gets the action of an expression that contains the given path
|
abstract VerbAction | getDefaultAction() |
java.util.List | getExpressionList() |
Expression[] | getExpressions() |
boolean | isEmpty() |
boolean | isPathInExpression(java.lang.String path)
Checks if a path is contained in the expression
|
java.lang.String | toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public boolean isEmpty()
public Expression[] getExpressions()
public java.util.List getExpressionList()
public void addExpression(Expression expression)
public void addExpression(VerbAction action, VerbPath path)
public void addExpression(VerbAction action, VerbPathStep[] steps)
public abstract VerbAction getDefaultAction()
public boolean isPathInExpression(java.lang.String path)
public VerbAction getAction(VerbPath path)
public java.lang.String toString()