Class KotlinParser.KtAssignmentAndOperator
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.KtAssignmentAndOperator
- All Implemented Interfaces:
AntlrNode<KotlinNode>,GenericNode<KotlinNode>,Node,KotlinNode,Reportable
- Enclosing class:
KotlinParser
@Generated("org.antlr.v4.Tool")
public static class KotlinParser.KtAssignmentAndOperator
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
ConstructorsConstructorDescriptionKtAssignmentAndOperator(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) org.antlr.v4.runtime.tree.TerminalNodeprotected BaseAntlrInnerNode.PmdAsAntlrInnerNode<KotlinNode> <A extends AttributeView<?>>
@Nullable Aattributes(Class<A> type) Returns the corresponding attributes class for this node.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.org.antlr.v4.runtime.tree.TerminalNodeorg.antlr.v4.runtime.tree.TerminalNodeorg.antlr.v4.runtime.tree.TerminalNodeMethods 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
-
KtAssignmentAndOperator
public KtAssignmentAndOperator(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState)
-
-
Method Details
-
ADD_ASSIGNMENT
public org.antlr.v4.runtime.tree.TerminalNode ADD_ASSIGNMENT() -
SUB_ASSIGNMENT
public org.antlr.v4.runtime.tree.TerminalNode SUB_ASSIGNMENT() -
MULT_ASSIGNMENT
public org.antlr.v4.runtime.tree.TerminalNode MULT_ASSIGNMENT() -
DIV_ASSIGNMENT
public org.antlr.v4.runtime.tree.TerminalNode DIV_ASSIGNMENT() -
MOD_ASSIGNMENT
public org.antlr.v4.runtime.tree.TerminalNode MOD_ASSIGNMENT() -
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:
-