java.lang.Object
io.quarkus.qute.ParameterDeclarationNode
- All Implemented Interfaces:
ParameterDeclaration,TemplateNode
Template parameter declaration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.qute.TemplateNode
TemplateNode.Kind, TemplateNode.Origin -
Constructor Summary
ConstructorsConstructorDescriptionParameterDeclarationNode(String typeInfo, String key, Expression defaultValue, TemplateNode.Origin origin) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()The key forisfoo.Returns the parameter declarations defined in this template node.The type info foris|org.acme.Foo|.kind()Returns the kind of this node.resolve(ResolutionContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.qute.TemplateNode
asExpression, asSection, asText, getExpressions, isConstant, isExpression, isSection, isText
-
Constructor Details
-
ParameterDeclarationNode
public ParameterDeclarationNode(String typeInfo, String key, Expression defaultValue, TemplateNode.Origin origin)
-
-
Method Details
-
resolve
- Specified by:
resolvein interfaceTemplateNode- Parameters:
context-- Returns:
- the result node
-
getTypeInfo
Description copied from interface:ParameterDeclarationThe type info foris|org.acme.Foo|.- Specified by:
getTypeInfoin interfaceParameterDeclaration- Returns:
- the unparsed type info
- See Also:
-
getKey
Description copied from interface:ParameterDeclarationThe key forisfoo.- Specified by:
getKeyin interfaceParameterDeclaration- Returns:
- the key
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceParameterDeclaration- Returns:
- the default value or
nullif no default value is set
-
getOrigin
- Specified by:
getOriginin interfaceParameterDeclaration- Specified by:
getOriginin interfaceTemplateNode- Returns:
- the origin of the node
-
getParameterDeclarations
Description copied from interface:TemplateNodeReturns the parameter declarations defined in this template node.- Specified by:
getParameterDeclarationsin interfaceTemplateNode- Returns:
- a list of param declarations
-
kind
Description copied from interface:TemplateNodeReturns the kind of this node.Note that comments and line separators are never preserved in the parsed template tree.
- Specified by:
kindin interfaceTemplateNode- Returns:
- the kind
-
asParamDeclaration
- Specified by:
asParamDeclarationin interfaceTemplateNode
-