org.eclipse.ocl.examples.pivot.utilities
Class AS2Moniker

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.utilities.AS2Moniker
All Implemented Interfaces:
PivotConstants

public class AS2Moniker
extends java.lang.Object
implements PivotConstants


Field Summary
protected  org.eclipse.emf.ecore.EObject target
          The CS element for which a moniker is required.
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.PivotConstants
ACCUMULATOR_SEPARATOR, ANNOTATED_IMPLICIT_OPPOSITE_LOWER_VALUE, ANNOTATED_IMPLICIT_OPPOSITE_ORDERED, ANNOTATED_IMPLICIT_OPPOSITE_UNIQUE, ANNOTATED_IMPLICIT_OPPOSITE_UPPER_VALUE, ANNOTATION_QUOTE, AS_LIBRARY_ANNOTATION_SOURCE, AS_METAMODEL_ANNOTATION_SOURCE, BINDINGS_PREFIX, COLLECTION_NAVIGATION_OPERATOR, DEFAULT_IMPLICIT_OPPOSITE_LOWER_VALUE, DEFAULT_IMPLICIT_OPPOSITE_ORDERED, DEFAULT_IMPLICIT_OPPOSITE_UNIQUE, DEFAULT_IMPLICIT_OPPOSITE_UPPER_VALUE, DOCUMENTATION_ANNOTATION_KEY, DOCUMENTATION_ANNOTATION_SOURCE, DOT_OCL_AS_FILE_EXTENSION, DUPLICATES_ANNOTATION_SOURCE, GEN_MODEL_URI, GREATER_THAN_OPERATOR, GREATER_THAN_OR_EQUAL_OPERATOR, IMPORT_ANNOTATION_SOURCE, ITERATOR_SEPARATOR, LESS_THAN_OPERATOR, LESS_THAN_OR_EQUAL_OPERATOR, LIBRARY_MONIKER_PREFIX, MESSAGE_ANNOTATION_DETAIL_SUFFIX, MESSAGE_PART_NAME, MONIKER_EXP_CHILD_PREFIX, MONIKER_IF_EXP, MONIKER_INVALID_LITERAL_EXP, MONIKER_LET_EXP, MONIKER_NULL_LITERAL_EXP, MONIKER_OPERATOR_SEPARATOR, MONIKER_OVERFLOW_LIMIT, MONIKER_PART_SEPARATOR, MONIKER_ROOT, MONIKER_ROOT_EXP, MONIKER_SCOPE_SEPARATOR, MONIKER_STRING_LITERAL_EXP, MONIKER_TUPLE_LITERAL_EXP, MONIKER_UNLIMITED_NATURAL_LITERAL_EXP, NULL_MARKER, NULL_ROOT, OBJECT_NAVIGATION_OPERATOR, OCL_AS_FILE_EXTENSION, OCL_LANGUAGE, OCL_NAME, OMG_OCL_ANNOTATION_SOURCE, ORPHANAGE_NAME, ORPHANAGE_PREFIX, ORPHANAGE_URI, OVERFLOW_MARKER, PARAMETER_PREFIX, PARAMETER_SEPARATOR, PARAMETER_SUFFIX, PIVOT_ECORE, PLUGIN_ID, PRECEDENCE_PREFIX, PRIMITIVE_TYPES_URI_PREFIX, REDEFINES_ANNOTATION_SOURCE, roleNames, SEVERITY_PART_NAME, STATUS_PART_NAME, SYSML_ANNOTATION_SOURCE, TEMPLATE_BINDING_PREFIX, TEMPLATE_BINDING_SEPARATOR, TEMPLATE_BINDING_SUFFIX, TEMPLATE_PARAMETER_PREFIX, TEMPLATE_SIGNATURE_PREFIX, TEMPLATE_SIGNATURE_SEPARATOR, TEMPLATE_SIGNATURE_SUFFIX, TUPLE_SIGNATURE_PART_SEPARATOR, TUPLE_SIGNATURE_PREFIX, TUPLE_SIGNATURE_SUFFIX, TUPLE_SIGNATURE_TYPE_SEPARATOR, UNKNOWN_TYPE_TEXT, UNRESOLVED_PROXY_MARKER, WILDCARD_INDICATOR, WILDCARD_NAME
 
Constructor Summary
AS2Moniker(Element target)
           
 
Method Summary
 void append(char c)
           
 void append(int i)
           
 void append(java.lang.String string)
           
 void appendElement(Element element)
           
 void appendElement(Element element, java.util.Map<TemplateParameter,ParameterableElement> templateBindings)
           
 void appendIndex(org.eclipse.emf.ecore.EObject eObject)
           
 void appendLambdaType(Type contextType, java.util.List<? extends Type> parameterTypes, Type resultType, java.util.Map<TemplateParameter,ParameterableElement> bindings)
           
 void appendName(Element monikeredElement)
           
 void appendParameters(Operation operation, java.util.Map<TemplateParameter,ParameterableElement> templateBindings)
           
 void appendParent(Element element, java.lang.String parentSeparator)
           
 void appendRole(Element object)
           
 void appendTemplateArguments(java.util.List<? extends ParameterableElement> templateArguments, java.util.Map<TemplateParameter,ParameterableElement> templateBindings)
           
 void appendTemplateBindings(TemplateableElement templateableElement, java.util.Map<TemplateParameter,ParameterableElement> bindings)
           
 void appendTemplateParameters(TemplateableElement templateableElement)
           
 void appendTupleType(java.util.Collection<? extends TypedElement> tupleParts)
           
protected  AS2MonikerVisitor createAS2MonikerVisitor(Element element)
           
protected  void emittedTemplateParameter(TemplateParameter templateParameter)
           
 boolean hasEmitted(TemplateParameter templateParameter)
           
protected  boolean isSpecialized(java.util.List<TemplateBinding> templateBindings, java.util.Map<TemplateParameter,ParameterableElement> bindings)
           
protected  int length()
          Return the length of the moniker so far.
 java.lang.String toString()
           
static java.lang.String toString(Element pivotElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

protected final org.eclipse.emf.ecore.EObject target
The CS element for which a moniker is required.

Constructor Detail

AS2Moniker

public AS2Moniker(@NonNull
                  Element target)
Method Detail

toString

@NonNull
public static java.lang.String toString(@NonNull
                                                Element pivotElement)

append

public void append(char c)

append

public void append(int i)

append

public void append(java.lang.String string)

appendElement

public void appendElement(Element element)

appendElement

public void appendElement(Element element,
                          java.util.Map<TemplateParameter,ParameterableElement> templateBindings)

appendIndex

public void appendIndex(org.eclipse.emf.ecore.EObject eObject)

appendLambdaType

public void appendLambdaType(Type contextType,
                             java.util.List<? extends Type> parameterTypes,
                             Type resultType,
                             java.util.Map<TemplateParameter,ParameterableElement> bindings)

appendName

public void appendName(Element monikeredElement)

appendParameters

public void appendParameters(Operation operation,
                             java.util.Map<TemplateParameter,ParameterableElement> templateBindings)

appendParent

public void appendParent(Element element,
                         java.lang.String parentSeparator)

appendRole

public void appendRole(Element object)

appendTemplateArguments

public void appendTemplateArguments(java.util.List<? extends ParameterableElement> templateArguments,
                                    java.util.Map<TemplateParameter,ParameterableElement> templateBindings)

appendTemplateBindings

public void appendTemplateBindings(TemplateableElement templateableElement,
                                   java.util.Map<TemplateParameter,ParameterableElement> bindings)

appendTemplateParameters

public void appendTemplateParameters(TemplateableElement templateableElement)

appendTupleType

public void appendTupleType(java.util.Collection<? extends TypedElement> tupleParts)

createAS2MonikerVisitor

@NonNull
protected AS2MonikerVisitor createAS2MonikerVisitor(@NonNull
                                                            Element element)

emittedTemplateParameter

protected void emittedTemplateParameter(TemplateParameter templateParameter)

hasEmitted

public boolean hasEmitted(TemplateParameter templateParameter)

isSpecialized

protected boolean isSpecialized(java.util.List<TemplateBinding> templateBindings,
                                java.util.Map<TemplateParameter,ParameterableElement> bindings)

length

protected int length()
Return the length of the moniker so far.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object