public abstract class TemplateParameterSubstitutionHelper extends Object
The TemplateParameterSubstitutionHelper maintains a registry of helpers indexed by their implementation class.
Constructor and Description |
---|
TemplateParameterSubstitutionHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addHelper(Class<? extends LibraryFeature> className,
TemplateParameterSubstitutionHelper helper) |
static TemplateParameterSubstitutionHelper |
getHelper(Class<? extends LibraryFeature> className) |
Type |
resolveBodyType(PivotMetamodelManager metamodelManager,
CallExp callExp,
Type bodyType)
Return the actual type of te body of callExp for which the regular library modeling suggests bodyType.
|
boolean |
resolveReturnNullity(PivotMetamodelManager metamodelManager,
CallExp callExp,
boolean returnIsRequired)
Return the actual return nullity of callExp for which the regular library modeling suggests returnIsRequired.
|
Type |
resolveReturnType(PivotMetamodelManager metamodelManager,
CallExp callExp,
Type returnType)
Return the actual return type of callExp for which the regular library modeling suggests returnType.
|
void |
resolveUnmodeledTemplateParameterSubstitutions(TemplateParameterSubstitutionVisitor templateParameterSubstitutions,
CallExp callExp)
Add any templateParameter substitutions to templateParameterSubstitutions that the regular library modeling omits.
|
public void resolveUnmodeledTemplateParameterSubstitutions(TemplateParameterSubstitutionVisitor templateParameterSubstitutions, CallExp callExp)
public Type resolveBodyType(PivotMetamodelManager metamodelManager, CallExp callExp, Type bodyType)
public boolean resolveReturnNullity(PivotMetamodelManager metamodelManager, CallExp callExp, boolean returnIsRequired)
public Type resolveReturnType(PivotMetamodelManager metamodelManager, CallExp callExp, Type returnType)
public static void addHelper(Class<? extends LibraryFeature> className, TemplateParameterSubstitutionHelper helper)
public static TemplateParameterSubstitutionHelper getHelper(Class<? extends LibraryFeature> className)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.