Package io.quarkus.qute
Class ParameterDeclarationNode
- java.lang.Object
-
- io.quarkus.qute.ParameterDeclarationNode
-
- All Implemented Interfaces:
ParameterDeclaration,TemplateNode
public class ParameterDeclarationNode extends Object implements TemplateNode, ParameterDeclaration
Template parameter declaration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.qute.TemplateNode
TemplateNode.Origin
-
-
Constructor Summary
Constructors Constructor Description ParameterDeclarationNode(String typeInfo, String key, Expression defaultValue, TemplateNode.Origin origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetDefaultValue()StringgetKey()The key forisfoo.TemplateNode.OrigingetOrigin()List<ParameterDeclaration>getParameterDeclarations()Returns the parameter declarations defined in this template node.StringgetTypeInfo()The type info foris|org.acme.Foo|.CompletionStage<ResultNode>resolve(ResolutionContext context)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.qute.TemplateNode
getExpressions, isConstant, isSection
-
-
-
-
Constructor Detail
-
ParameterDeclarationNode
public ParameterDeclarationNode(String typeInfo, String key, Expression defaultValue, TemplateNode.Origin origin)
-
-
Method Detail
-
resolve
public CompletionStage<ResultNode> resolve(ResolutionContext context)
- Specified by:
resolvein interfaceTemplateNode- Returns:
- the result node
-
getTypeInfo
public String getTypeInfo()
Description copied from interface:ParameterDeclarationThe type info foris|org.acme.Foo|.- Specified by:
getTypeInfoin interfaceParameterDeclaration- Returns:
- the unparsed type info
- See Also:
Expression.Part.getTypeInfo()
-
getKey
public String getKey()
Description copied from interface:ParameterDeclarationThe key forisfoo.- Specified by:
getKeyin interfaceParameterDeclaration- Returns:
- the key
-
getDefaultValue
public Expression getDefaultValue()
- Specified by:
getDefaultValuein interfaceParameterDeclaration- Returns:
- the default value or
nullif no default value is set
-
getOrigin
public TemplateNode.Origin getOrigin()
- Specified by:
getOriginin interfaceParameterDeclaration- Specified by:
getOriginin interfaceTemplateNode- Returns:
- the origin of the node
-
getParameterDeclarations
public List<ParameterDeclaration> getParameterDeclarations()
Description copied from interface:TemplateNodeReturns the parameter declarations defined in this template node.- Specified by:
getParameterDeclarationsin interfaceTemplateNode- Returns:
- a list of param declarations
-
-