|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.model.Action
public final class Action
This class represents an action of a GraphElement
. Actions consist of:
true
),Since version 0.9.3, the syntax of actions is as follows: ...
Some basic examples (all examples shown with surrounding «..»):
Examples of named positive and negative application conditions (PACs and NACs):
Examples of (nested) multi-rules:
Nested Class Summary | |
---|---|
static class |
Action.Type
An enum for action types. |
Field Summary | |
---|---|
static char |
FRAGMENT_START
Fragment marker. |
static char |
MULTI_MARKER
Multi-flag marker. |
static char |
PATH_SEPARATOR
Separator for paths. |
Constructor Summary | |
---|---|
Action(Action.Type type)
Constructor without multi-flag, path and fragment. |
|
Action(Action.Type type,
boolean isMulti)
Constructor without path and fragment. |
|
Action(Action.Type type,
boolean isMulti,
String[] path)
Constructor without fragment. |
|
Action(Action.Type type,
boolean isMulti,
String[] path,
String fragment)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getFragment()
Returns the fragment of this action or null if it does not have a fragment. |
String[] |
getPath()
Returns path this action contains. |
Action.Type |
getType()
Returns the type of this action. |
int |
hashCode()
|
boolean |
hasSameFragment(Action action)
Returns true if this action has the same fragment as the argument action. |
boolean |
hasSameMultiFlag(Action action)
Returns true if this action has the same multi-flag as the argument action. |
boolean |
hasSamePath(Action action)
Returns true if this action has the same path as the argument action. |
boolean |
hasSameType(Action action)
Returns true if this action has the same type as the argument action. |
boolean |
isMulti()
Get the multi flag. |
static Action |
parse(String value)
Parses an action string for graph elements. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char PATH_SEPARATOR
public static final char MULTI_MARKER
public static final char FRAGMENT_START
Constructor Detail |
---|
public Action(Action.Type type, boolean isMulti, String[] path, String fragment)
type
- Action type.isMulti
- Multi flag.path
- Path.fragment
- Fragment.public Action(Action.Type type, boolean isMulti, String[] path)
type
- Action type.isMulti
- Multi flag.path
- Path.public Action(Action.Type type, boolean isMulti)
type
- Action type.isMulti
- Multi flag.public Action(Action.Type type)
type
- Action type.Method Detail |
---|
public static Action parse(String value) throws ParseException
value
- String representation of the action.
ParseException
- On parse errors.public Action.Type getType()
null
.
public boolean isMulti()
public String[] getPath()
null
.
public String getFragment()
null
if it does not have a fragment.
null
.public boolean hasSameType(Action action)
true
if this action has the same type as the argument action.
action
- An action.
true
if it has the same type.public boolean hasSameMultiFlag(Action action)
true
if this action has the same multi-flag as the argument action.
action
- An action.
true
if it has the same multi-flag.public boolean hasSamePath(Action action)
true
if this action has the same path as the argument action.
action
- An action.
true
if it has the same path.public boolean hasSameFragment(Action action)
true
if this action has the same fragment as the argument action.
action
- An action.
true
if it has the same fragment.public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |