|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvocleditor.model.VOCLTools
public class VOCLTools
Containts static functions to help getting modelelements ... blah
Constructor Summary | |
---|---|
VOCLTools()
|
Method Summary | |
---|---|
static void |
collectVariables(VOCLModel.NavExp navexp,
java.util.List l)
Collects all variables used by ClassifierRoles, Attributes, Methods of a navexp andits sub expressions |
static java.util.List |
deleteUnusedVariables(VOCLModel.Constraint constraint)
removes all unused variable declarations from constraint.allVariables and returns a list of removed variables |
static java.util.List |
getAllClassifiers(VOCLModel.NavExp navexp,
java.util.List list)
lists all ClassifierRoles within a NavExp and sub expressions |
static java.util.List |
getAllMethods(java.util.List classifiers,
java.util.List list)
lists all Methods from a list of ClassifierRoles |
static int |
getExpressionDepth(VOCLModel.VOCLExpression exp)
helper method to find the depth of a Expression |
static VOCLModel.VariableDeclaration |
getVariable(VOCLModel.Constraint constraint,
java.lang.String name,
java.lang.String type)
Finds or creates a VariableDeclaration inside of a constraint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VOCLTools()
Method Detail |
---|
public static java.util.List getAllClassifiers(VOCLModel.NavExp navexp, java.util.List list)
navexp
- the navexp to start collecting ClassifierRoleslist
- the list to add the ClassifierRoles to
public static java.util.List getAllMethods(java.util.List classifiers, java.util.List list)
classifiers
- list of classifiers to search for methodslist
- the list to add the Methods to
public static void collectVariables(VOCLModel.NavExp navexp, java.util.List l)
l
- List to add Variables tonavexp
- navexp to start looking frompublic static java.util.List deleteUnusedVariables(VOCLModel.Constraint constraint)
constraint
- the Constraint to remove unused variables from
public static VOCLModel.VariableDeclaration getVariable(VOCLModel.Constraint constraint, java.lang.String name, java.lang.String type)
constraint
- the constraint to hold the VariableDeclarationname
- the name of the VariableDeclarationtype
- the type of the VariableDeclaration
public static int getExpressionDepth(VOCLModel.VOCLExpression exp)
exp
- VOCLExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |