| java.lang.Object org.andromda.core.translation.Expression
Expression | public class Expression (Code) | | Stores the translated expression,
author: Chad Brandon |
Expression | public Expression(String originalExpression)(Code) | | Creates a new instance of this Expression object
Parameters: originalExpression - the expression that will be translated. |
appendSpaceToTranslatedExpression | public void appendSpaceToTranslatedExpression()(Code) | | Appends a space charater to the current translated expression String Buffer.
|
appendToTranslatedExpression | public void appendToTranslatedExpression(Object object)(Code) | | Appends the value of the value of the object 's toString result to the current translated expression
String Buffer.
Parameters: object - the object to append. |
getContextElement | public String getContextElement()(Code) | | Returns the element which is the context of this expression.
String the context element element. |
getKind | public String getKind()(Code) | | Returns the Kind of this Expression (inv, post, or pre)
String returns the Kind of this translation |
getName | public String getName()(Code) | | Gets the name of the expression.
String |
getOriginalExpression | public String getOriginalExpression()(Code) | | Returns the expression before translation.
String |
getTranslatedExpression | public String getTranslatedExpression()(Code) | | Returns the expression after translation.
String |
insertInTranslatedExpression | public void insertInTranslatedExpression(int position, Object object)(Code) | | Performs replacement of the value of the object 's toString result at the start and end positions of
the buffer containing the Expression.
Parameters: position - the position at which to insert Parameters: object - the See Also: java.lang.StringBuffer.insert(intjava.lang.String) |
replaceInTranslatedExpression | public void replaceInTranslatedExpression(String pattern, String replacement)(Code) | | Replaces the regular expressoin pattern with the replacement within the translated expression
buffer.
Parameters: pattern - the regular expression pattern to replace Parameters: replacement - the replacement string. |
setContextElement | public void setContextElement(String contextElement)(Code) | | Sets the context element (the element to which the expression applies --> the element declared after the
context )
Parameters: contextElement - the name of the element which is the context element. |
setKind | public void setKind(String kind)(Code) | | Sets the "kind" of the expression (i.e, "pre", "post", "inv", etc.)
Parameters: kind - the kind to set. |
setName | public void setName(String name)(Code) | | Sets the name.
Parameters: name - the name to set. |
|
|