Record Class DirectConstructorContext<QnameCtx extends org.antlr.v4.runtime.ParserRuleContext,ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,DirElemContentCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.xml.DirectConstructorContext<QnameCtx,ExprCtx,DirElemContentCtx>
public record DirectConstructorContext<QnameCtx extends org.antlr.v4.runtime.ParserRuleContext,ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,DirElemContentCtx extends org.antlr.v4.runtime.ParserRuleContext> (org.antlr.v4.runtime.tree.TerminalNode comment, org.antlr.v4.runtime.tree.TerminalNode pi, QnameCtx extends org.antlr.v4.runtime.ParserRuleContext openTagName, DirAttributeListContext<QnameCtx extends org.antlr.v4.runtime.ParserRuleContext,ExprCtx extends org.antlr.v4.runtime.ParserRuleContext> attributes, boolean isSingleTag, DirElemOpenCloseContext<QnameCtx extends org.antlr.v4.runtime.ParserRuleContext,DirElemContentCtx extends org.antlr.v4.runtime.ParserRuleContext> openClose, org.antlr.v4.runtime.ParserRuleContext context)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDirectConstructorContext(org.antlr.v4.runtime.tree.TerminalNode comment, org.antlr.v4.runtime.tree.TerminalNode pi, QnameCtx openTagName, DirAttributeListContext<QnameCtx, ExprCtx> attributes, boolean isSingleTag, DirElemOpenCloseContext<QnameCtx, DirElemContentCtx> openClose, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aDirectConstructorContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.org.antlr.v4.runtime.tree.TerminalNodecomment()Returns the value of thecommentrecord component.org.antlr.v4.runtime.ParserRuleContextcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.static DirectConstructorContext<JsoniqParser.QnameContext,JsoniqParser.ExprContext, JsoniqParser.DirElemContentContext> static DirectConstructorContext<XQueryParser.QnameContext,XQueryParser.ExprContext, XQueryParser.DirElemContentContext> final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisSingleTagrecord component.Returns the value of theopenCloserecord component.Returns the value of theopenTagNamerecord component.org.antlr.v4.runtime.tree.TerminalNodepi()Returns the value of thepirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectConstructorContext
public DirectConstructorContext(org.antlr.v4.runtime.tree.TerminalNode comment, org.antlr.v4.runtime.tree.TerminalNode pi, QnameCtx openTagName, DirAttributeListContext<QnameCtx, ExprCtx> attributes, boolean isSingleTag, DirElemOpenCloseContext<QnameCtx, DirElemContentCtx> openClose, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aDirectConstructorContextrecord class.- Parameters:
comment- the value for thecommentrecord componentpi- the value for thepirecord componentopenTagName- the value for theopenTagNamerecord componentattributes- the value for theattributesrecord componentisSingleTag- the value for theisSingleTagrecord componentopenClose- the value for theopenCloserecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
from
-
from
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
comment
public org.antlr.v4.runtime.tree.TerminalNode comment()Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
pi
public org.antlr.v4.runtime.tree.TerminalNode pi()Returns the value of thepirecord component.- Returns:
- the value of the
pirecord component
-
openTagName
Returns the value of theopenTagNamerecord component.- Returns:
- the value of the
openTagNamerecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
isSingleTag
public boolean isSingleTag()Returns the value of theisSingleTagrecord component.- Returns:
- the value of the
isSingleTagrecord component
-
openClose
Returns the value of theopenCloserecord component.- Returns:
- the value of the
openCloserecord component
-
context
public org.antlr.v4.runtime.ParserRuleContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-