org.eclipse.ocl.examples.codegen.common
Class PivotQueries
java.lang.Object
org.eclipse.ocl.examples.codegen.common.PivotQueries
public class PivotQueries
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PivotQueries
public PivotQueries()
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)