public class TemplateArgument extends Object
Constructor and Description |
---|
TemplateArgument(Class<?> type,
String name,
String description)
Creates a new argument with the given type, name and default expression.
|
TemplateArgument(Class<?> type,
String name,
String description,
Expression defaultValue,
String deprecationWarning)
Creates a new argument with the given type, name and default expression.
|
Modifier and Type | Method and Description |
---|---|
Expression |
getDefaultValue()
Returns the default value.
|
String |
getDeprecationWarning()
Returns a deprecation warning if present.
|
String |
getDescription()
Returns the description of the argument.
|
String |
getName()
Returns the name of the argument.
|
Class<?> |
getType()
Returns the type of the argument.
|
public TemplateArgument(Class<?> type, String name, @Nullable String description, @Nullable Expression defaultValue, @Nullable String deprecationWarning)
type
- the type of the argumentname
- the name of the argumentdescription
- a description of the argumentdefaultValue
- the expression which yields the default value if no argument is supplied.deprecationWarning
- a deprecation warning if the parameter is not to be usedpublic Class<?> getType()
public String getName()
public Expression getDefaultValue()
public String getDescription()
public String getDeprecationWarning()
Copyright © 2018. All rights reserved.