public class EMFPatternLanguageJvmModelInferrerUtil
extends java.lang.Object
Constructor and Description |
---|
EMFPatternLanguageJvmModelInferrerUtil() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.xtext.common.types.JvmTypeReference |
calculateType(Variable variable)
Calls the typeProvider.
|
java.lang.String |
escapeToQuotedString(java.lang.String inputString)
Escapes the input to be usable in literal strings
|
java.lang.String |
expressionMethodName(org.eclipse.xtext.xbase.XExpression ex) |
java.lang.String |
fieldName(Variable variable)
Returns field name for Variable
|
org.eclipse.xtext.common.types.JvmType |
findInferredClass(org.eclipse.emf.ecore.EObject pattern,
java.lang.Class<?> clazz) |
org.eclipse.xtext.common.types.JvmType |
findInferredSpecification(Pattern pattern) |
java.lang.String |
getPackageName(Pattern pattern)
Returns the packageName: PatternModel.packageName or "" when nullOrEmpty.
|
java.lang.String |
getPackageNameOld(Pattern pattern)
Returns the packageName: PatternModel.packageName + Pattern.name, packageName is ignored, when nullOrEmpty.
|
java.lang.String |
getPackagePath(Pattern pattern) |
java.lang.String |
getPackagePath(java.lang.String fqn)
Calculates the correct package path for a selected fqn
|
java.lang.String |
getterMethodName(Variable variable)
Returns correct getter method name for variable.
|
java.lang.String |
getUtilPackageName(Pattern pattern) |
boolean |
isCompatibleWith(org.eclipse.xtext.common.types.JvmType type,
java.lang.Class<?> clazz) |
boolean |
isPublic(Pattern pattern) |
java.lang.String |
matchClassName(Pattern pattern)
Returns the MatchClass name based on the Pattern's name
|
java.lang.String |
matcherClassName(Pattern pattern)
Returns the MatcherClass name based on the Pattern's name
|
java.lang.String |
matchImmutableInnerClassName(Pattern pattern) |
java.lang.String |
matchMutableInnerClassName(Pattern pattern) |
java.lang.String |
modelFileName(org.eclipse.emf.ecore.EObject object) |
java.lang.String |
parameterName(Variable variable)
Returns parameter name for Variable
|
java.lang.String |
positionConstant(Variable variable) |
java.lang.String |
processorClassName(Pattern pattern)
Returns the ProcessorClass name based on the Pattern's name
|
java.lang.String |
querySpecificationClassName(Pattern pattern)
Returns the QuerySpecificationClass name based on the Pattern's name
|
java.lang.String |
querySpecificationHolderClassName(Pattern pattern)
Returns the holder class name based on the Pattern's name
|
java.lang.String |
querySpecificationPQueryClassName(Pattern pattern)
Returns the PQuery class name based on the Pattern's name
|
java.lang.String |
querySpecificationProviderClassName(Pattern pattern)
Returns the IQuerySpecificationProvider class name based on the Pattern's name
|
java.lang.String |
realPatternName(Pattern pattern)
This method returns the pattern name.
|
java.lang.String |
realPatternName(java.lang.String fqn)
This method returns the pattern name.
|
java.lang.CharSequence |
serializeToJava(org.eclipse.emf.ecore.EObject eObject)
Serializes the EObject into Java String variable.
|
java.lang.String |
serializeToJavadoc(Pattern pattern)
Serializes the input for Javadoc
|
java.lang.String |
setterMethodName(Variable variable)
Returns correct setter method name for variable.
|
boolean |
validClassName(java.lang.String simpleName) |
java.util.List<Variable> |
variables(org.eclipse.xtext.xbase.XExpression ex) |
public EMFPatternLanguageJvmModelInferrerUtil()
public java.lang.String realPatternName(Pattern pattern)
public boolean validClassName(java.lang.String simpleName)
public java.lang.String modelFileName(org.eclipse.emf.ecore.EObject object)
public java.lang.String querySpecificationClassName(Pattern pattern)
public java.lang.String querySpecificationProviderClassName(Pattern pattern)
public java.lang.String querySpecificationHolderClassName(Pattern pattern)
public java.lang.String querySpecificationPQueryClassName(Pattern pattern)
public java.lang.String matcherClassName(Pattern pattern)
public java.lang.String matchClassName(Pattern pattern)
public java.lang.String matchImmutableInnerClassName(Pattern pattern)
public java.lang.String matchMutableInnerClassName(Pattern pattern)
public java.lang.String processorClassName(Pattern pattern)
public java.lang.String fieldName(Variable variable)
public java.lang.String parameterName(Variable variable)
public java.lang.String positionConstant(Variable variable)
public java.lang.String getterMethodName(Variable variable)
get#variable.name.toFirstUpper#
.public java.lang.String setterMethodName(Variable variable)
set#variable.name.toFirstUpper#
.public org.eclipse.xtext.common.types.JvmTypeReference calculateType(Variable variable)
EMFPatternTypeProvider
public java.lang.CharSequence serializeToJava(org.eclipse.emf.ecore.EObject eObject)
public java.lang.String serializeToJavadoc(Pattern pattern)
public java.lang.String escapeToQuotedString(java.lang.String inputString)
public java.lang.String getPackageName(Pattern pattern)
public java.lang.String getUtilPackageName(Pattern pattern)
public java.lang.String getPackageNameOld(Pattern pattern)
public java.lang.String getPackagePath(Pattern pattern)
public java.lang.String getPackagePath(java.lang.String fqn)
public java.lang.String realPatternName(java.lang.String fqn)
public org.eclipse.xtext.common.types.JvmType findInferredSpecification(Pattern pattern)
public org.eclipse.xtext.common.types.JvmType findInferredClass(org.eclipse.emf.ecore.EObject pattern, java.lang.Class<?> clazz)
public boolean isCompatibleWith(org.eclipse.xtext.common.types.JvmType type, java.lang.Class<?> clazz)
public boolean isPublic(Pattern pattern)
public java.util.List<Variable> variables(org.eclipse.xtext.xbase.XExpression ex)
public java.lang.String expressionMethodName(org.eclipse.xtext.xbase.XExpression ex)