Class PatternQuerySpecificationClassInferrer


  • public class PatternQuerySpecificationClassInferrer
    extends java.lang.Object
    IQuerySpecification implementation inferrer.
    No Reference:
    • Constructor Detail

      • PatternQuerySpecificationClassInferrer

        public PatternQuerySpecificationClassInferrer()
    • Method Detail

      • inferQuerySpecificationClass

        public org.eclipse.xtext.common.types.JvmDeclaredType inferQuerySpecificationClass​(Pattern pattern,
                                                                                           boolean isPrelinkingPhase,
                                                                                           java.lang.String querySpecificationPackageName,
                                                                                           org.eclipse.xtext.common.types.JvmType matcherClass,
                                                                                           org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder builder,
                                                                                           org.eclipse.xtext.xbase.jvmmodel.JvmAnnotationReferenceBuilder annBuilder,
                                                                                           EMFPatternLanguageGeneratorConfig config)
        Infers the IQuerySpecification implementation class from Pattern.
      • initializeSpecification

        public void initializeSpecification​(org.eclipse.xtext.common.types.JvmDeclaredType querySpecificationClass,
                                            Pattern pattern,
                                            org.eclipse.xtext.common.types.JvmType matcherClass,
                                            org.eclipse.xtext.common.types.JvmType matchClass,
                                            EMFPatternLanguageGeneratorConfig config)
      • inferQuerySpecificationMethods

        public boolean inferQuerySpecificationMethods​(org.eclipse.xtext.common.types.JvmDeclaredType querySpecificationClass,
                                                      Pattern pattern,
                                                      org.eclipse.xtext.common.types.JvmType matcherClass,
                                                      org.eclipse.xtext.common.types.JvmType matchClass,
                                                      boolean withPatternSpecificMatcher)
        Infers methods for QuerySpecification class based on the input 'pattern'.
      • directionLiteral

        public org.eclipse.xtend2.lib.StringConcatenationClient directionLiteral​(Variable variable)
      • inferPQueryMembers

        public boolean inferPQueryMembers​(org.eclipse.xtext.common.types.JvmDeclaredType pQueryClass,
                                          Pattern pattern)
      • inferQueryEvaluationHints

        public org.eclipse.xtend2.lib.StringConcatenationClient inferQueryEvaluationHints​(Pattern pattern)
      • inferBodies

        public org.eclipse.xtend2.lib.StringConcatenationClient inferBodies​(Pattern pattern)
                                                                     throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • inferSingleConstraintBody

        public org.eclipse.xtend2.lib.StringConcatenationClient inferSingleConstraintBody​(Pattern parentPattern,
                                                                                          CallableRelation call)
                                                                                   throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • inferQuerySpecificationInnerClasses

        public boolean inferQuerySpecificationInnerClasses​(org.eclipse.xtext.common.types.JvmDeclaredType querySpecificationClass,
                                                           Pattern pattern,
                                                           boolean withPatternSpecificMatcher)
        Infers inner class for QuerySpecification class based on the input 'pattern'.
      • inferExpressions

        public void inferExpressions​(org.eclipse.xtext.common.types.JvmDeclaredType querySpecificationClass,
                                     Pattern pattern)
      • parameterInstantiation

        public org.eclipse.xtend2.lib.StringConcatenationClient parameterInstantiation​(Variable variable)
      • parameterInstantiation

        public org.eclipse.xtend2.lib.StringConcatenationClient parameterInstantiation​(Variable variable,
                                                                                       java.lang.String clazz,
                                                                                       IInputKey type)
      • parameterInstantiation

        public org.eclipse.xtend2.lib.StringConcatenationClient parameterInstantiation​(java.lang.String variableName,
                                                                                       java.lang.String clazz,
                                                                                       IInputKey type)
      • getTypeString

        public java.lang.String getTypeString​(Variable variable)
      • getTypeString

        public java.lang.String getTypeString​(IInputKey type,
                                              org.eclipse.emf.ecore.EObject context)
      • inferAnnotations

        public org.eclipse.xtend2.lib.StringConcatenationClient inferAnnotations​(Pattern pattern)
      • outputAnnotationParameter

        public org.eclipse.xtend2.lib.StringConcatenationClient outputAnnotationParameter​(java.lang.Object value)