Class ASTMethod

    • Field Detail

      • node

        protected final T extends apex.jorje.semantic.ast.AstNode node
    • Method Detail

      • acceptApexVisitor

        protected <P,​R> R acceptApexVisitor​(ApexVisitor<? super P,​? extends R> visitor,
                                                  P data)
      • getCanonicalName

        public String getCanonicalName()
      • isSynthetic

        public boolean isSynthetic()
        Returns true if this is a synthetic class initializer, inserted by the parser.
      • isConstructor

        public boolean isConstructor()
      • getReturnType

        public String getReturnType()
      • getArity

        public int getArity()
      • addChild

        protected void addChild​(net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?> child,
                                int index)
        Overrides:
        addChild in class AbstractNode<net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?>,​ApexNode<?>>
      • insertChild

        protected void insertChild​(net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?> child,
                                   int index)
        Overrides:
        insertChild in class AbstractNode<net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?>,​ApexNode<?>>
      • acceptVisitor

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

        protected void setRegion​(TextRegion region)
      • getNode

        @Deprecated
        @InternalApi
        public T getNode()
        Deprecated.
        Description copied from interface: ApexNode
        Get the underlying AST node.
        Specified by:
        getNode in interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>
      • hasRealLoc

        public boolean hasRealLoc()
        Specified by:
        hasRealLoc in interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>
      • getDefiningType

        public String getDefiningType()
        Specified by:
        getDefiningType in interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>
      • getNamespace

        public String getNamespace()
        Specified by:
        getNamespace in interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>