Class KotlinParser.KtCompanionObject
java.lang.Object
net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode<BaseAntlrInnerNode.PmdAsAntlrInnerNode<KotlinNode>,KotlinNode>
net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
net.sourceforge.pmd.lang.kotlin.ast.KotlinParser.KtCompanionObject
- All Implemented Interfaces:
AntlrNode<KotlinNode>,GenericNode<KotlinNode>,Node,KotlinNode,Reportable
- Enclosing class:
KotlinParser
@Generated("org.antlr.v4.Tool")
public static class KotlinParser.KtCompanionObject
extends BaseAntlrInnerNode<KotlinNode>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode
BaseAntlrInnerNode.PmdAsAntlrInnerNode<N extends AntlrNode<N>>Nested classes/interfaces inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode
BaseAntlrNode.AntlrToPmdParseTreeAdapter<N extends AntlrNode<N>> -
Field Summary
Fields inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode
exceptionFields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionKtCompanionObject(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState) -
Method Summary
Modifier and TypeMethodDescription<P,R> R acceptVisitor(AstVisitor<? super P, ? extends R> visitor, P data) protected BaseAntlrInnerNode.PmdAsAntlrInnerNode<KotlinNode> <A extends AttributeView<?>>
@Nullable Aattributes(Class<A> type) Returns the corresponding attributes class for this node.org.antlr.v4.runtime.tree.TerminalNodeCOLON()org.antlr.v4.runtime.tree.TerminalNodevoidenterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener) voidexitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener) getImage()Deprecated.Since 7.25.0.intReturns the attributes on the node and additionally the attributes of the corresponding attribute view, if there is one.booleanhasImageEqualTo(String image) Deprecated.Since 7.25.0.List<org.antlr.v4.runtime.tree.TerminalNode> NL()org.antlr.v4.runtime.tree.TerminalNodeNL(int i) org.antlr.v4.runtime.tree.TerminalNodeOBJECT()Methods inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode
copyFrom, getChild, getFirstAntlrToken, getLastAntlrToken, getNumChildren, getRuleContext, getRuleContexts, getToken, getTokensMethods inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode
getBeginColumn, getBeginLine, getEndColumn, getEndLine, getIndexInParent, getParent, getTextRegion, getUserMap, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.ast.Node
ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, isFindBoundary
-
Constructor Details
-
KtCompanionObject
public KtCompanionObject(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState)
-
-
Method Details
-
COMPANION
public org.antlr.v4.runtime.tree.TerminalNode COMPANION() -
OBJECT
public org.antlr.v4.runtime.tree.TerminalNode OBJECT() -
modifiers
-
NL
-
NL
public org.antlr.v4.runtime.tree.TerminalNode NL(int i) -
simpleIdentifier
-
COLON
public org.antlr.v4.runtime.tree.TerminalNode COLON() -
delegationSpecifiers
-
classBody
-
getRuleIndex
public int getRuleIndex()- Specified by:
getRuleIndexin classBaseAntlrInnerNode<KotlinNode>
-
enterRule
public void enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener) - Overrides:
enterRulein classBaseAntlrInnerNode<KotlinNode>
-
exitRule
public void exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener) - Overrides:
exitRulein classBaseAntlrInnerNode<KotlinNode>
-
acceptVisitor
- Specified by:
acceptVisitorin interfaceNode
-
asAntlrNode
- Overrides:
asAntlrNodein classBaseAntlrInnerNode<KotlinNode>
-
getXPathNodeName
- Specified by:
getXPathNodeNamein interfaceNode
-
getImage
Deprecated.Since 7.25.0. Don't use getImage() or hasImageEqualTo()! See #4787. -
hasImageEqualTo
Deprecated.Since 7.25.0. Don't use getImage() or hasImageEqualTo()! See #4787.- Specified by:
hasImageEqualToin interfaceNode
-
attributes
Returns the corresponding attributes class for this node. The returned type is already cast to have the correct type.Usage example:
String id = classDecl.attributes(KtClassDeclarationAttributes.class).getIdentifier();- Experimental Status:
- See
AttributeView. - Throws:
IllegalArgumentException- if the given attribute view type doesn't match this node's type.- Since:
- 7.25.0
-
getXPathAttributesIterator
Returns the attributes on the node and additionally the attributes of the corresponding attribute view, if there is one.- Specified by:
getXPathAttributesIteratorin interfaceNode- See Also:
-