public final class Shortcut
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Shortcut.Argument
The Argument class describes shortcut arguments (arguments of a composite operation).
|
Constructor and Description |
---|
Shortcut(PrimitiveAND entry,
PrimitiveAND target,
java.util.List<java.lang.String> contextNames)
Constructs a shortcut object.
|
Shortcut(PrimitiveAND entry,
PrimitiveAND target,
java.lang.String contextName)
Constructor than uses one context name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Shortcut.Argument> |
getArguments()
Returns a collection of shortcut arguments.
|
java.util.List<java.lang.String> |
getContextName()
Returns the list of context identifiers (names of operations that accept the composite object
created by the shortcut as an argument).
|
PrimitiveAND |
getEntry()
Returns the entry operation.
|
PrimitiveInfo |
getInfo() |
java.lang.String |
getName()
Returns the name of the shortcut.
|
PrimitiveAND |
getTarget()
Returns the target operation.
|
java.lang.String |
toString() |
public Shortcut(PrimitiveAND entry, PrimitiveAND target, java.util.List<java.lang.String> contextNames)
entry
- The entry point where the path starts (the top point).target
- The target operation of the shortcut.contextNames
- The list of names that identify the contexts in which the shortcut can be
called.java.lang.IllegalArgumentException
- if any of the parameters equals null.java.lang.IllegalArgumentException
- if target or entry is not an operation; if an operation on the
shortcut path is an OR rule (all OR rules must be resolved at this point).public Shortcut(PrimitiveAND entry, PrimitiveAND target, java.lang.String contextName)
public java.lang.String getName()
public PrimitiveAND getEntry()
public PrimitiveAND getTarget()
public java.util.List<java.lang.String> getContextName()
public java.util.Collection<Shortcut.Argument> getArguments()
public PrimitiveInfo getInfo()
public java.lang.String toString()
toString
in class java.lang.Object