public final class PubsubMessage extends DocumentableAstNode implements ScopeSymbol
| Constructor and Description |
|---|
PubsubMessage(AstLocation location,
java.lang.String name,
TypeReference typeReference,
Expression topicDefinitionExpr,
boolean isPublished,
boolean isSubscribed,
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 |
getTopicDefinitionExpr()
Gets topic expression.
|
TypeReference |
getTypeReference()
Gets the reference to message type.
|
boolean |
isPublished()
Gets whether the message should be published.
|
boolean |
isSubscribed()
Gets whether the message should be subscribed.
|
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 PubsubMessage(AstLocation location, java.lang.String name, TypeReference typeReference, Expression topicDefinitionExpr, boolean isPublished, boolean isSubscribed, java.util.List<DocComment> docComments)
location - AST node location.name - Name of the Pub/Sub message.typeReference - Reference to the message type.topicDefinitionExpr - Expression which defines the message's topic.isPublished - Whether the message is published.isSubscribed - Whether the message is subscribed.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 getTypeReference()
public Expression getTopicDefinitionExpr()
public boolean isPublished()
public boolean isSubscribed()
Last updated 2024-10-29 12:56:13