| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.ocltf.concretesyntax.impl.ConcreteSyntaxUtils
Contains some utilities for concrete syntax value retrieval.
| Constructor Summary | |
| ConcreteSyntaxUtils() | |
| Method Summary | |
| static java.lang.StringBuffer | concatContents(java.util.List list)Iterates through the passed in list and concates all the values of objects toString value to a StringBuffer and returns the StringBuffer. | 
| static java.util.List | getArgumentNames(VariableDeclarationCS[] variableDeclarations)Loads a List of variable declaration names from the variableDeclarations | 
| static java.util.List | getFeatureCalls(org.ocltf.parser.node.APropertyCallExpression expression)Gets all feature calls from the passed in APropertyCallExpression instance. | 
| static java.lang.String[] | getLeftAndRightExpressions(org.ocltf.parser.node.PRelationalExpression relationalExpression)Gets the left and right expressions of a PRelationalExpression and puts then into a List. | 
| static OperationCS | getOperationDeclaration(org.ocltf.parser.node.POperation operation)Retrieves all the variable declarations for the passed in operation. | 
| static java.util.List | getParameters(org.ocltf.parser.node.AFeatureCall featureCall)Gets all the parameters from a AFeatureCall instance. | 
| static java.lang.String | getParametersAsString(org.ocltf.parser.node.AFeatureCall featureCall)Gets all the parameters from a AFeatureCall instance as a comma seperated String. | 
| static java.lang.String | getPrimaryExpression(org.ocltf.parser.node.APropertyCallExpression expression)Gets the "real" primary expression, as opposed to the primary expression retrieved from the parser syntax (since it leaves off any navigational relationships). | 
| static java.lang.String | getType(org.ocltf.parser.node.TName name,
        java.util.List pathNameTail)Concatinates the type from the passed in name and pathNameTail. | 
| static VariableDeclarationCS[] | getVariableDeclarations(org.ocltf.parser.node.AStandardDeclarator standardDeclarator)Retrieves all the variable declarations for the passed in standardDeclarator. | 
| static VariableDeclarationCS[] | getVariableDeclarations(org.ocltf.parser.node.POperation operation)Retrieves all the variable declarations for the passed in operation. | 
| static VariableDeclarationCS[] | getVariableDeclarations(org.ocltf.parser.node.PVariableDeclarationList variableDeclarationList)Creates an array of VariableDeclarationCS[] from the passed in PVariableDeclarationList. | 
| protected static VariableDeclarationCS | newVariableDeclaration(org.ocltf.parser.node.PVariableDeclaration variableDeclaration,
                       org.ocltf.parser.node.PEqualExpression initialValue)Creates a new VariableDeclarationCS from the passed in PVariableDeclaration. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public ConcreteSyntaxUtils()
| Method Detail | 
public static java.lang.StringBuffer concatContents(java.util.List list)
list - the List of objects to concatinate.
public static OperationCS getOperationDeclaration(org.ocltf.parser.node.POperation operation)
operation - 
public static VariableDeclarationCS[] getVariableDeclarations(org.ocltf.parser.node.POperation operation)
operation.
operation - the operation for which to retrieve the variable declarations.
public static VariableDeclarationCS[] getVariableDeclarations(org.ocltf.parser.node.AStandardDeclarator standardDeclarator)
standardDeclarator.
standardDeclarator - the standard declartor for which to retrieve the
        VariableDeclarationCS instances.
protected static VariableDeclarationCS newVariableDeclaration(org.ocltf.parser.node.PVariableDeclaration variableDeclaration,
                                                              org.ocltf.parser.node.PEqualExpression initialValue)
variableDeclaration - the PVariableDeclaration that the new VariableDeclarationCS
        will be created from.initialValue - the initial value of the variable declaration.
public static VariableDeclarationCS[] getVariableDeclarations(org.ocltf.parser.node.PVariableDeclarationList variableDeclarationList)
variableDeclarationList - the PVariableDeclarationList that the new VariableDeclarationCS
        will be created from.
public static java.util.List getParameters(org.ocltf.parser.node.AFeatureCall featureCall)
featureCall - the featureCall for which to retrieve the parameters
public static java.lang.String getParametersAsString(org.ocltf.parser.node.AFeatureCall featureCall)
featureCall - the featureCall for which to retrieve the parameters
public static java.lang.String[] getLeftAndRightExpressions(org.ocltf.parser.node.PRelationalExpression relationalExpression)
relationalExpression - 
public static java.lang.String getType(org.ocltf.parser.node.TName name,
                                       java.util.List pathNameTail)
name - the starting name of the typepathNameTail - the tail pieces of the name
public static java.lang.String getPrimaryExpression(org.ocltf.parser.node.APropertyCallExpression expression)
expression - the APosfixExpression instance for which to retrieve 
        the primary expression
public static java.util.List getFeatureCalls(org.ocltf.parser.node.APropertyCallExpression expression)
expression - the APosfixExpression instance for which to retrieve 
        the primary expression
public static java.util.List getArgumentNames(VariableDeclarationCS[] variableDeclarations)
variableDeclarations
variableDeclarations - an array of VariableDeclarationCS objects
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||