|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeclarationOrderingScheme
An interface for classes that take a list of variable declarations and provide a preferred ordering for them based on properties of the variables and/or their types.
NOTE: We could make a similar class which provides an ordering for a list of conditions/SimpleQueries, taking into account properties of the relations involved.
NOTE: As we are just providing an ordering, we could alternatively provide a Comparator rather than this class...
NOTE: The ordering for subqueries declaring variables with equivalent scores may be overridden to make the distribution of conditions easier, but how do we represent this?
Method Summary | |
---|---|
int |
calculateVariableScore(java.util.List types)
Calculate a score for the given list of variable types. |
java.util.List |
getOrdering(java.util.List declarableVariables)
Calculates scores for each variable and orders variable names according to these scores. |
Method Detail |
---|
java.util.List getOrdering(java.util.List declarableVariables)
declarableVariables
- a List of DeclarableVariable objects to order
int calculateVariableScore(java.util.List types)
types
- a List of types to which a variable is bound
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |