Class TemplateDescriptor
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.templateModel.TemplateDescriptor
-
public class TemplateDescriptor extends java.lang.ObjectCarries the information for creating a template (just a temporary instance).- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Advice[]advicesprivate java.util.List<Def>defsprivate java.util.List<JavaExtension>extensionsprivate FormattingConfigurationformattingConfigurationprivate Imports<Template>importsprivate IndentationConfigurationindentationConfigurationprivate VariableDeclaration[]param
-
Constructor Summary
Constructors Constructor Description TemplateDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDef(Def def)Adds a def template.voidaddJavaExtension(JavaExtension extension)Adds an extension.(package private) Advice[]getAdvices()Returns the advices.(package private) Def[]getDefs()Returns the def templates.FormattingConfigurationgetFormattingConfiguration()Returns the formatting configuration.(package private) Imports<Template>getImports()Returns the imports.IndentationConfigurationgetIndentationConfiguration()Returns the indentation configuration.(package private) JavaExtension[]getJavaExtensions()Returns the extensions.(package private) VariableDeclaration[]getParameter()Returns the parameter of the template.voidsetAdvices(Advice[] advices)Defines the advices.voidsetFormattingConfiguration(FormattingConfiguration config)Defines the formatting configuration.voidsetImports(Imports<Template> imports)Sets the imports.voidsetIndentationConfiguration(IndentationConfiguration config)Defines the indentation configuration.voidsetParameter(VariableDeclaration[] param, Resolver resolver)Defines the parameter.
-
-
-
Field Detail
-
defs
private java.util.List<Def> defs
-
extensions
private java.util.List<JavaExtension> extensions
-
param
private VariableDeclaration[] param
-
advices
private Advice[] advices
-
indentationConfiguration
private IndentationConfiguration indentationConfiguration
-
formattingConfiguration
private FormattingConfiguration formattingConfiguration
-
-
Method Detail
-
setParameter
public void setParameter(VariableDeclaration[] param, Resolver resolver)
Defines the parameter.- Parameters:
param- the parameterresolver- the resolver to add the parameters to
-
getParameter
VariableDeclaration[] getParameter()
Returns the parameter of the template.- Returns:
- the parameter
-
setAdvices
public void setAdvices(Advice[] advices)
Defines the advices.- Parameters:
advices- the advices
-
getAdvices
Advice[] getAdvices()
Returns the advices.- Returns:
- the advices
-
setImports
public void setImports(Imports<Template> imports)
Sets the imports.- Parameters:
imports- the imports
-
addJavaExtension
public void addJavaExtension(JavaExtension extension)
Adds an extension.- Parameters:
extension- the extension to be added
-
getJavaExtensions
JavaExtension[] getJavaExtensions()
Returns the extensions.- Returns:
- the extensions (may be null)
-
addDef
public void addDef(Def def)
Adds a def template.- Parameters:
def- the template ti be added
-
getDefs
Def[] getDefs()
Returns the def templates.- Returns:
- the def templates (may be null)
-
setIndentationConfiguration
public void setIndentationConfiguration(IndentationConfiguration config)
Defines the indentation configuration.- Parameters:
config- the indentation configuration
-
getIndentationConfiguration
public IndentationConfiguration getIndentationConfiguration()
Returns the indentation configuration.- Returns:
- the indentation configuration
-
setFormattingConfiguration
public void setFormattingConfiguration(FormattingConfiguration config)
Defines the formatting configuration.- Parameters:
config- the formatting configuration
-
getFormattingConfiguration
public FormattingConfiguration getFormattingConfiguration()
Returns the formatting configuration.- Returns:
- the formatting configuration
-
-