Class 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>
  • 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:
      getRuleIndex in class BaseAntlrInnerNode<KotlinNode>
    • enterRule

      public void enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
      Overrides:
      enterRule in class BaseAntlrInnerNode<KotlinNode>
    • exitRule

      public void exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
      Overrides:
      exitRule in class BaseAntlrInnerNode<KotlinNode>
    • acceptVisitor

      public <P, R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
      Specified by:
      acceptVisitor in interface Node
    • asAntlrNode

      Overrides:
      asAntlrNode in class BaseAntlrInnerNode<KotlinNode>
    • getXPathNodeName

      public String getXPathNodeName()
      Specified by:
      getXPathNodeName in interface Node
    • getImage

      @NoAttribute @Deprecated public String getImage()
      Deprecated.
      Since 7.25.0. Don't use getImage() or hasImageEqualTo()! See #4787.
      Specified by:
      getImage in interface Node
    • hasImageEqualTo

      @Deprecated public boolean hasImageEqualTo(String image)
      Deprecated.
      Since 7.25.0. Don't use getImage() or hasImageEqualTo()! See #4787.
      Specified by:
      hasImageEqualTo in interface Node
    • attributes

      @Experimental public <A extends AttributeView<?>> @Nullable A attributes(Class<A> type)
      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

      public Iterator<Attribute> getXPathAttributesIterator()
      Returns the attributes on the node and additionally the attributes of the corresponding attribute view, if there is one.
      Specified by:
      getXPathAttributesIterator in interface Node
      See Also: