public class PatternMatchClassInferrer
extends java.lang.Object
IPatternMatch
implementation inferer.Constructor and Description |
---|
PatternMatchClassInferrer() |
Modifier and Type | Method and Description |
---|---|
boolean |
inferMatchClassConstructors(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern)
Infers constructors for Match class based on the input 'pattern'.
|
boolean |
inferMatchClassElements(org.eclipse.xtext.common.types.JvmDeclaredType it,
Pattern pattern,
org.eclipse.xtext.common.types.JvmType querySpecificationClass,
org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder builder,
org.eclipse.xtext.xbase.jvmmodel.JvmAnnotationReferenceBuilder annBuilder) |
boolean |
inferMatchClassFields(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern)
Infers fields for Match class based on the input 'pattern'.
|
void |
inferMatchClassGetters(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern)
Infers getters for Match class based on the input 'pattern'.
|
boolean |
inferMatchClassMethods(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern,
org.eclipse.xtext.common.types.JvmTypeReference querySpecificationClassRef)
Infers methods for Match class based on the input 'pattern'.
|
void |
inferMatchClassSetters(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern)
Infers setters for Match class based on the input 'pattern'.
|
boolean |
inferMatchInnerClasses(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern)
Infers inner classes for Match class based on the input 'pattern'.
|
org.eclipse.xtext.common.types.JvmGenericType |
makeMatchInnerClass(org.eclipse.xtext.common.types.JvmDeclaredType matchClass,
Pattern pattern,
java.lang.String innerClassName,
boolean isMutable)
Infers a single inner class for Match class
|
public boolean inferMatchClassElements(org.eclipse.xtext.common.types.JvmDeclaredType it, Pattern pattern, org.eclipse.xtext.common.types.JvmType querySpecificationClass, org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder builder, org.eclipse.xtext.xbase.jvmmodel.JvmAnnotationReferenceBuilder annBuilder)
public boolean inferMatchClassFields(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern)
public boolean inferMatchClassConstructors(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern)
public void inferMatchClassGetters(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern)
public void inferMatchClassSetters(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern)
public boolean inferMatchClassMethods(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern, org.eclipse.xtext.common.types.JvmTypeReference querySpecificationClassRef)
public boolean inferMatchInnerClasses(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern)
public org.eclipse.xtext.common.types.JvmGenericType makeMatchInnerClass(org.eclipse.xtext.common.types.JvmDeclaredType matchClass, Pattern pattern, java.lang.String innerClassName, boolean isMutable)