|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.ocltf.translation.Expression
Contains 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 |
getContextType()
Returns the type 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()
|
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 pattern with the replacement within the translated expression buffer. |
void |
setContextType(java.lang.String contextType)
Sets the context type (the type to which the expression applies --> the type declared after the 'context') |
void |
setKind(java.lang.String string)
Sets the "kind" of the OCL contraint (i.e, "pre", "post", "inv") |
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 OCL 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 - the pattern to search for.replacement - the replacement.
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 getContextType()
public java.lang.String getKind()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to set.public void setContextType(java.lang.String contextType)
contextType - the name of the element which is the context type.public void setKind(java.lang.String string)
string - public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||