org.eclipse.ocl.examples.codegen.common
Class PivotQueries

java.lang.Object
  extended by org.eclipse.ocl.examples.codegen.common.PivotQueries

public class PivotQueries
extends java.lang.Object


Constructor Summary
PivotQueries()
           
 
Method Summary
static java.lang.String asIntegerStringOrNull(Element element)
          Workaround Acceleo's lack of BigInteger support
static java.lang.String asRealStringOrNull(Element element)
          Workaround Acceleo's lack of BigDecimal support
protected static ExpressionInOCL createExpressionInOCLError(java.lang.String string)
           
protected static PrettyPrintOptions.Global createOptions(Visitable element)
           
protected  int getAllSuperClasses(java.util.Map<Type,java.lang.Integer> results, Type aClass)
           
 Type getBehavioralType(Type type)
           
 int getDepth(Type aClass)
           
static ExpressionInOCL getExpressionInOCL(NamedElement contextElement, ValueSpecification specification)
          Return an OCL AST from a ValueSpecification in the context of a NamedElement.
static java.lang.String getFragmentURI(Element element)
           
static java.lang.String getMoniker(Element element)
           
 java.util.LinkedHashSet<Operation> getOperations(Type type)
           
 java.util.LinkedHashSet<Property> getProperties(Type type)
           
 java.lang.String getSignature(Operation anOperation)
           
static java.lang.Boolean isBinarySelf(OperationCallExp callExp)
           
static java.lang.String prettyPrint(Element element)
           
static java.lang.String prettyPrintName(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PivotQueries

public PivotQueries()
Method Detail

asIntegerStringOrNull

public static java.lang.String asIntegerStringOrNull(Element element)
Workaround Acceleo's lack of BigInteger support


asRealStringOrNull

public static java.lang.String asRealStringOrNull(Element element)
Workaround Acceleo's lack of BigDecimal support


createExpressionInOCLError

protected static ExpressionInOCL createExpressionInOCLError(java.lang.String string)

createOptions

protected static PrettyPrintOptions.Global createOptions(Visitable element)

getAllSuperClasses

protected int getAllSuperClasses(java.util.Map<Type,java.lang.Integer> results,
                                 Type aClass)

getBehavioralType

public Type getBehavioralType(Type type)

getDepth

public int getDepth(Type aClass)

getExpressionInOCL

public static ExpressionInOCL getExpressionInOCL(NamedElement contextElement,
                                                 ValueSpecification specification)
Return an OCL AST from a ValueSpecification in the context of a NamedElement. If it is necessary to parse OCL concrete syntax and errors result an ExpressionInOCL is returned with a null contextVariable, a null bodyExpression, and a StringLiteral messageExpression containing the error messages.


getFragmentURI

public static java.lang.String getFragmentURI(Element element)

getMoniker

public static java.lang.String getMoniker(Element element)

getOperations

public java.util.LinkedHashSet<Operation> getOperations(Type type)

getProperties

public java.util.LinkedHashSet<Property> getProperties(Type type)

getSignature

public java.lang.String getSignature(Operation anOperation)

isBinarySelf

public static java.lang.Boolean isBinarySelf(OperationCallExp callExp)

prettyPrint

public static java.lang.String prettyPrint(Element element)

prettyPrintName

public static java.lang.String prettyPrintName(Element element)