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 arguments is null
; 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)
entry
- The entry point where the path starts (the top point).target
- The target operation of the shortcut.contextName
- The name that identify the context in which the shortcut can be called.java.lang.IllegalArgumentException
- if any of the arguments is null
; 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 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