org.eclipse.ocl.ecore.utilities
Class ToStringVisitor

java.lang.Object
  extended by org.eclipse.ocl.utilities.AbstractVisitor<java.lang.String,C,O,P,EL,PM,S,COA,SSA,CT>
      extended by org.eclipse.ocl.util.ToStringVisitor<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>
          extended by org.eclipse.ocl.ecore.utilities.ToStringVisitor
All Implemented Interfaces:
VisitorExtension<java.lang.String>, Visitor<java.lang.String,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>

public class ToStringVisitor
extends ToStringVisitor<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>
implements VisitorExtension<java.lang.String>

Since:
3.1

Field Summary
 
Fields inherited from class org.eclipse.ocl.util.ToStringVisitor
NULL_PLACEHOLDER
 
Fields inherited from class org.eclipse.ocl.utilities.AbstractVisitor
result
 
Constructor Summary
protected ToStringVisitor(Environment<?,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint,?,?> env)
           
 
Method Summary
static ToStringVisitor getInstance(TypedElement<org.eclipse.emf.ecore.EClassifier> element)
          Obtains an instance of the toString() visitor for the specified expression or other typed element.
protected  java.lang.String handleOppositePropertyCallExp(OppositePropertyCallExp callExp, java.lang.String sourceResult)
           
 java.lang.String visitOppositePropertyCallExp(OppositePropertyCallExp callExp)
           
 
Methods inherited from class org.eclipse.ocl.util.ToStringVisitor
getConstrainedElements, getInstance, getInstance, getName, getOperation, getParameters, getQualifiedName, getSignal, getSpecification, getStereotype, getType, handleAssociationClassCallExp, handleCollectionItem, handleCollectionLiteralExp, handleCollectionRange, handleIfExp, handleIterateExp, handleIteratorExp, handleLetExp, handleMessageExp, handleOperationCallExp, handlePropertyCallExp, handleTupleLiteralExp, handleTupleLiteralPart, handleVariable, initialLower, isClassifier, isOperation, isProperty, maybeAtPre, visitBooleanLiteralExp, visitConstraint, visitEnumLiteralExp, visitExpressionInOCL, visitIntegerLiteralExp, visitInvalidLiteralExp, visitNullLiteralExp, visitRealLiteralExp, visitStateExp, visitStringLiteralExp, visitTypeExp, visitUnlimitedNaturalLiteralExp, visitUnspecifiedValueExp, visitVariableExp
 
Methods inherited from class org.eclipse.ocl.utilities.AbstractVisitor
handleConstraint, handleExpressionInOCL, safeVisit, visitAssociationClassCallExp, visitCollectionItem, visitCollectionLiteralExp, visitCollectionRange, visitIfExp, visitIterateExp, visitIteratorExp, visitLetExp, visitMessageExp, visitOperationCallExp, visitPropertyCallExp, visitTupleLiteralExp, visitTupleLiteralPart, visitVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringVisitor

protected ToStringVisitor(Environment<?,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint,?,?> env)
Method Detail

getInstance

public static ToStringVisitor getInstance(TypedElement<org.eclipse.emf.ecore.EClassifier> element)
Obtains an instance of the toString() visitor for the specified expression or other typed element.

Parameters:
element - an OCL expression or other typed element such as a variable
Returns:
the corresponding instance

handleOppositePropertyCallExp

protected java.lang.String handleOppositePropertyCallExp(OppositePropertyCallExp callExp,
                                                         java.lang.String sourceResult)
Since:
3.1

visitOppositePropertyCallExp

public java.lang.String visitOppositePropertyCallExp(OppositePropertyCallExp callExp)
Description copied from interface: VisitorExtension

Specified by:
visitOppositePropertyCallExp in interface VisitorExtension<java.lang.String>