|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mofscript.runtime.TransformationProxy
public class TransformationProxy
Constructor Summary | |
---|---|
TransformationProxy(MOFScriptSpecification trSpec)
|
|
TransformationProxy(MOFScriptTransformation realTrans)
|
|
TransformationProxy(MOFScriptTransformation realTrans,
java.lang.String uri)
|
Method Summary | |
---|---|
void |
addImportedTransformation(java.lang.String importName,
java.lang.String importUri,
MOFScriptTransformation importedTransformation)
Adds imported transformations to a collection |
java.lang.Object[] |
checkImportedRules(java.lang.String ruleName)
Checks imported rules agains a rule name. |
java.util.Collection<TransformationRule> |
getAllImportedTransformationRules()
Gets all teh imported transformation rules |
java.util.List<Variable> |
getAllImportedVariables()
Gets all variables |
java.util.Collection<TransformationRule> |
getAllTransformationRules(java.lang.String name,
boolean isSuperCall)
Gets all the transformation rules with the given "name" |
MOFScriptTransformation |
getClosestSuperWithRule(TransformationRule rule)
|
protected java.util.Hashtable<java.lang.String,TransformationRule> |
getCompleteRuleCache(java.lang.String ruleName)
Gets the complete rule cache |
TransformationRule |
getEntryPoint()
Traverses the rules and checks if entrypoint |
MOFScriptTransformation |
getImportedTransformation(java.lang.String name)
Gets an imported transfromation with name == parameter name |
java.util.Hashtable<java.lang.String,TransformationRule> |
getImportedTransformationRule(java.lang.String name)
Gets all the importet transformation rules with a given name |
TransformationRule |
getImportedTransformationRule(java.lang.String name,
java.lang.String possibleScoping,
java.lang.String ownerTransformation)
Gets a transformation rule according to the parameters |
java.lang.String |
getName()
|
protected TransformationRule |
getNearestTransformation(java.util.Collection<TransformationRule> importedRules)
Gets the nearest transfromation |
MOFScriptObject |
getObjectAtLine(int line)
|
java.lang.Object |
getRuleVariable(TransformationRule tr,
java.lang.String varName)
|
java.util.List<MOFScriptObject> |
getRuleVariables(TransformationRule tr)
|
java.lang.Object |
getStatementVariable(MOFScriptStatement st,
java.lang.String varName)
|
java.util.List<MOFScriptObject> |
getStatementVariables(MOFScriptStatement st)
|
protected MOFScriptStatement |
getSubStatement(MOFScriptStatement st,
int line)
|
MOFScriptTransformation |
getTransformation()
|
MOFScriptTransformation |
getTransformationByName(java.lang.String name)
|
TransformationRule |
getTransformationRule(java.lang.String name)
Gets the transformation rules based on "name" |
TransformationRule |
getTransformationRuleForType(FunctionCall f,
java.lang.String name,
java.lang.String ownerTransformation,
java.lang.Object contextObject)
Gets the transformation rule according to the parameters given |
java.util.Collection<TransformationRule> |
getTransformationRules()
Gets the transformation rules |
MOFScriptSpecification |
getTransformationSpecification()
|
java.lang.String |
getTransformationUriForRule(java.lang.String ruleName)
|
java.lang.String |
getTransformationUriForVariable(java.lang.String varName)
|
java.lang.String |
getUriForTransformation(MOFScriptSpecification mspec)
|
java.util.List<Variable> |
getVariablesForTransformation(MOFScriptTransformation trans)
|
boolean |
hasOtherRuleWithName(TransformationRule rule)
|
boolean |
hasRuleWithName(java.lang.String ruleName)
Checks if the rule cache has a rule with a given ruleName |
boolean |
isSuperTransformation(MOFScriptTransformation transformation)
Checks whether a transformation is a super transformation |
boolean |
isSuperTransformation(java.lang.String trName)
|
protected boolean |
isSuperTypeOf(MOFScriptTransformation potentialSuper,
MOFScriptTransformation potentialSub)
Checs whether a transformation is the super type of another |
protected boolean |
ownedByThisOrSuper(java.lang.String ownerTransformation,
java.lang.String trContext)
Returns whether the transformation is owned by this or the super |
void |
setTransformationSpecification(MOFScriptSpecification trSpec)
Sets the transformation specification |
boolean |
superHasRule(java.lang.String ruleName)
Checks whether a super transfromation has a rule with a given name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformationProxy(MOFScriptTransformation realTrans)
realTrans
- public TransformationProxy(MOFScriptTransformation realTrans, java.lang.String uri)
public TransformationProxy(MOFScriptSpecification trSpec)
trSpec
- Method Detail |
---|
public MOFScriptTransformation getTransformation()
public MOFScriptSpecification getTransformationSpecification()
public java.lang.String getName()
public TransformationRule getEntryPoint()
protected java.util.Hashtable<java.lang.String,TransformationRule> getCompleteRuleCache(java.lang.String ruleName)
ruleName
-
public void setTransformationSpecification(MOFScriptSpecification trSpec)
trSpec
- public boolean hasRuleWithName(java.lang.String ruleName)
ruleName
-
public boolean hasOtherRuleWithName(TransformationRule rule)
rule
-
public MOFScriptTransformation getClosestSuperWithRule(TransformationRule rule)
transformation
- rule
-
public java.util.Collection<TransformationRule> getTransformationRules()
public TransformationRule getTransformationRule(java.lang.String name)
name
-
public MOFScriptObject getObjectAtLine(int line)
line
-
protected MOFScriptStatement getSubStatement(MOFScriptStatement st, int line)
line
-
public java.util.Collection<TransformationRule> getAllTransformationRules(java.lang.String name, boolean isSuperCall)
name
-
public java.util.Collection<TransformationRule> getAllImportedTransformationRules()
public java.util.Hashtable<java.lang.String,TransformationRule> getImportedTransformationRule(java.lang.String name)
name
-
public TransformationRule getImportedTransformationRule(java.lang.String name, java.lang.String possibleScoping, java.lang.String ownerTransformation)
name
- possibleScoping
- ownerTransformation
-
public MOFScriptTransformation getImportedTransformation(java.lang.String name)
name
-
public MOFScriptTransformation getTransformationByName(java.lang.String name)
name
-
public java.util.List<Variable> getAllImportedVariables()
public java.util.List<Variable> getVariablesForTransformation(MOFScriptTransformation trans)
trans
-
public java.util.List<MOFScriptObject> getRuleVariables(TransformationRule tr)
tr
-
public java.lang.Object getRuleVariable(TransformationRule tr, java.lang.String varName)
tr
- varName
-
public java.util.List<MOFScriptObject> getStatementVariables(MOFScriptStatement st)
st
-
public java.lang.Object getStatementVariable(MOFScriptStatement st, java.lang.String varName)
st
- varName
-
public java.lang.Object[] checkImportedRules(java.lang.String ruleName)
ruleName
-
public TransformationRule getTransformationRuleForType(FunctionCall f, java.lang.String name, java.lang.String ownerTransformation, java.lang.Object contextObject)
name
- ownerTransformation
- possibleScope
- contextObject
-
protected boolean ownedByThisOrSuper(java.lang.String ownerTransformation, java.lang.String trContext)
ownerTransformation
-
protected TransformationRule getNearestTransformation(java.util.Collection<TransformationRule> importedRules)
importedRules
-
protected boolean isSuperTypeOf(MOFScriptTransformation potentialSuper, MOFScriptTransformation potentialSub)
potentialSuper
- potentialSub
-
public boolean isSuperTransformation(MOFScriptTransformation transformation)
transformation
-
public boolean isSuperTransformation(java.lang.String trName)
trName
-
public boolean superHasRule(java.lang.String ruleName)
ruleName
-
public void addImportedTransformation(java.lang.String importName, java.lang.String importUri, MOFScriptTransformation importedTransformation)
importName
- importUri
- importedTransformation
- public java.lang.String getTransformationUriForRule(java.lang.String ruleName)
ruleName
-
public java.lang.String getTransformationUriForVariable(java.lang.String varName)
varName
-
public java.lang.String getUriForTransformation(MOFScriptSpecification mspec)
mspec
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |