public class Parameter extends ModelElement
Writable.Context
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Parameter |
forElementAndType(VariableElement element,
Type parameterType) |
static Parameter |
forForgedMappingTarget(Type parameterType) |
static List<Parameter> |
getContextParameters(List<Parameter> parameters) |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
static Parameter |
getMappingTargetParameter(List<Parameter> parameters) |
String |
getName() |
String |
getOriginalName() |
static List<Parameter> |
getSourceParameters(List<Parameter> parameters) |
static Parameter |
getTargetTypeParameter(List<Parameter> parameters) |
Type |
getType() |
int |
hashCode() |
boolean |
isMappingContext() |
boolean |
isMappingTarget() |
boolean |
isTargetType() |
String |
toString() |
getTemplateName, getTemplateNameForClass, write
public String getName()
public String getOriginalName()
public Type getType()
public boolean isMappingTarget()
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.public boolean isTargetType()
public boolean isMappingContext()
public static Parameter forElementAndType(VariableElement element, Type parameterType)
public static List<Parameter> getSourceParameters(List<Parameter> parameters)
parameters
- the parameters to filterpublic static List<Parameter> getContextParameters(List<Parameter> parameters)
parameters
- the parameters to filterpublic static Parameter getMappingTargetParameter(List<Parameter> parameters)
Copyright © 2012-2017 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.