|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.translation.Expression
public class Expression
Stores the translated expression,
| Constructor Summary | |
|---|---|
Expression(java.lang.String originalExpression)
Creates a new instance of this Expression object |
|
| Method Summary | |
|---|---|
void |
appendSpaceToTranslatedExpression()
Appends a space charater to the current translated expression String Buffer. |
void |
appendToTranslatedExpression(java.lang.Object object)
Appends the value of the value of the object's toString result to the current translated expression
String Buffer. |
java.lang.String |
getContextElement()
Returns the element which is the context of this expression. |
java.lang.String |
getKind()
Returns the Kind of this Expression (inv, post, or pre) |
java.lang.String |
getName()
Gets the name of the expression. |
java.lang.String |
getOriginalExpression()
Returns the expression before translation. |
java.lang.String |
getTranslatedExpression()
Returns the expression after translation. |
void |
insertInTranslatedExpression(int position,
java.lang.Object object)
Performs replacement of the value of the object's toString result at the start and end positions of
the buffer containing the Expression. |
void |
replaceInTranslatedExpression(java.lang.String pattern,
java.lang.String replacement)
Replaces the regular expressoin pattern with the replacement within the translated expression
buffer. |
void |
setContextElement(java.lang.String contextElement)
Sets the context element (the element to which the expression applies --> the element declared after the context) |
void |
setKind(java.lang.String kind)
Sets the "kind" of the expression (i.e, "pre", "post", "inv", etc.) |
void |
setName(java.lang.String name)
Sets the name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Expression(java.lang.String originalExpression)
originalExpression - the expression that will be translated.| Method Detail |
|---|
public void appendToTranslatedExpression(java.lang.Object object)
object's toString result to the current translated expression
String Buffer.
object - the object to append.public void appendSpaceToTranslatedExpression()
public void replaceInTranslatedExpression(java.lang.String pattern,
java.lang.String replacement)
pattern with the replacement within the translated expression
buffer.
pattern - the regular expression pattern to replacereplacement - the replacement string.
public void insertInTranslatedExpression(int position,
java.lang.Object object)
object's toString result at the start and end positions of
the buffer containing the Expression.
position - the position at which to insertobject - theStringBuffer.insert(int,java.lang.String)public java.lang.String getTranslatedExpression()
public java.lang.String getOriginalExpression()
public java.lang.String getContextElement()
public java.lang.String getKind()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to set.public void setContextElement(java.lang.String contextElement)
context)
contextElement - the name of the element which is the context element.public void setKind(java.lang.String kind)
kind - the kind to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||