|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sintef.mofscript.runtime.TransformationProxy
public class TransformationProxy
Constructor Summary | |
---|---|
TransformationProxy(MOFScriptSpecification trSpec)
|
|
TransformationProxy(MOFScriptTransformation realTrans)
|
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 |
getAllImportedTransformationRules()
Gets all teh imported transformation rules |
java.util.List |
getAllImportedVariables()
Gets all the imported variables. |
java.util.Collection |
getAllTransformationRules(java.lang.String name)
Gets all the transformation rules with the given "name" |
MOFScriptTransformation |
getClosestSuperWithRule(TransformationRule rule)
|
protected java.util.Hashtable |
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.Collection |
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.util.Collection |
getImportedTransformations()
Gets the imported transfromations |
java.lang.String |
getName()
|
protected TransformationRule |
getNearestTransformation(java.util.Collection importedRules)
Gets the nearest transfromation |
MOFScriptTransformation |
getTransformation()
|
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.String possibleScope,
java.lang.Object contextObject)
Gets the transformation rule according to the parameters given |
java.util.Collection |
getTransformationRules()
Gets the transformation rules |
MOFScriptSpecification |
getTransformationSpecification()
|
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 |
protected boolean |
isSuperTypeOf(MOFScriptTransformation potentialSuper,
MOFScriptTransformation potentialSub)
Checs whether a transformation is the super type of another |
protected boolean |
ownedByThisOrSuper(java.lang.String ownerTransformation)
Returns whether the transfromation 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(MOFScriptSpecification trSpec)
trSpec
- Method Detail |
---|
public MOFScriptTransformation getTransformation()
public MOFScriptSpecification getTransformationSpecification()
public java.lang.String getName()
public TransformationRule getEntryPoint()
protected java.util.Hashtable 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 getTransformationRules()
public TransformationRule getTransformationRule(java.lang.String name)
name
-
public java.util.Collection getAllTransformationRules(java.lang.String name)
name
-
public java.util.Collection getAllImportedTransformationRules()
public java.util.Collection 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 java.util.Collection getImportedTransformations()
public java.util.List getAllImportedVariables()
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.String possibleScope, java.lang.Object contextObject)
name
- ownerTransformation
- possibleScope
- contextObject
-
protected boolean ownedByThisOrSuper(java.lang.String ownerTransformation)
ownerTransformation
-
protected TransformationRule getNearestTransformation(java.util.Collection importedRules)
importedRules
-
protected boolean isSuperTypeOf(MOFScriptTransformation potentialSuper, MOFScriptTransformation potentialSub)
potentialSuper
- potentialSub
-
public boolean isSuperTransformation(MOFScriptTransformation transformation)
transformation
-
public boolean superHasRule(java.lang.String ruleName)
ruleName
-
public void addImportedTransformation(java.lang.String importName, java.lang.String importUri, MOFScriptTransformation importedTransformation)
importName
- importUri
- importedTransformation
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |