public final class Function extends DocumentableAstNode implements ScopeSymbol
| Constructor and Description |
|---|
Function(AstLocation location,
TypeReference returnTypeReference,
java.lang.String name,
Expression resultExpression,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.lang.String |
getName()
Gets the name of the symbol stored in the lexical scope.
|
Expression |
getResultExpression()
Gets expression which represents function result.
|
TypeReference |
getReturnTypeReference()
Gets reference to the function's return type.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
getDocCommentsgetLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationpublic Function(AstLocation location, TypeReference returnTypeReference, java.lang.String name, Expression resultExpression, java.util.List<DocComment> docComments)
location - AST node location.returnTypeReference - Type reference to the function return type.name - Name of the function type.resultExpression - Result expression of the function type.docComments - List of documentation comments belonging to this node.public void accept(ZserioAstVisitor visitor)
AstNodepublic void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class DocumentableAstNodevisitor - Visitor to use.public java.lang.String getName()
ScopeSymbolgetName in interface ScopeSymbolpublic TypeReference getReturnTypeReference()
public Expression getResultExpression()
Last updated 2024-07-18 11:27:53