public class Expression
extends java.lang.Object
VerbAction
and VerbPath
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Name of this class
|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
Expression(VerbAction anAction,
VerbPath aPath) |
Expression(VerbAction anAction,
VerbPathStep[] steps) |
Modifier and Type | Method and Description |
---|---|
VerbAction |
getAction() |
VerbPath |
getVerbPath() |
boolean |
hasPath(VerbPath pPath)
Checks if an expression has a given path
|
void |
setAction(VerbAction anAction)
Sets the action of this expression
|
void |
setVerbPath(VerbPath aPath)
Sets the path of this expression
|
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public Expression(VerbAction anAction, VerbPath aPath)
action
- the action to take upon the data indicated by the
given path.path
- the path that represents data in a graphpublic Expression(VerbAction anAction, VerbPathStep[] steps)
action
- the action to take upon the data indicated by the
given path.path
- the path sequence of steps that represents a pathpublic VerbAction getAction()
public void setAction(VerbAction anAction)
action
- The path of this expressionpublic VerbPath getVerbPath()
public void setVerbPath(VerbPath aPath)
aPath
- the path to be setpublic boolean hasPath(VerbPath pPath)
path
- the path to be searchedpublic java.lang.String toString()
toString
in class java.lang.Object