Class ASTUserClass
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?>,ApexNode<?>>
-
- net.sourceforge.pmd.lang.apex.ast.ASTUserClass
-
- All Implemented Interfaces:
ApexNode<apex.jorje.semantic.ast.compilation.UserClass>
,ApexQualifiableNode
,ASTUserClassOrInterface<apex.jorje.semantic.ast.compilation.UserClass>
,GenericNode<ApexNode<?>>
,Node
,Reportable
public final class ASTUserClass extends AbstractNode<net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?>,ApexNode<?>> implements ASTUserClassOrInterface<apex.jorje.semantic.ast.compilation.UserClass>
-
-
Field Summary
Fields Modifier and Type Field Description protected T
node
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected <P,R>
RacceptApexVisitor(ApexVisitor<? super P,? extends R> visitor, P data)
<P,R>
RacceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
protected void
addChild(net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?> child, int index)
String
getDefiningType()
String
getImage()
Deprecated.List<String>
getInterfaceNames()
String
getNamespace()
T
getNode()
Deprecated.ApexQualifiedName
getQualifiedName()
@NonNull ASTApexFile
getRoot()
String
getSimpleName()
Return the simple name of the type defined by this node.String
getSuperClassName()
@NonNull TextRegion
getTextRegion()
String
getXPathNodeName()
boolean
hasRealLoc()
protected void
insertChild(net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?> child, int index)
boolean
isFindBoundary()
protected void
setRegion(TextRegion region)
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.apex.ast.ApexNode
getApexVersion, getDefiningType, getNamespace, getNode, getRoot, hasRealLoc, jjtAccept
-
Methods inherited from interface net.sourceforge.pmd.lang.apex.ast.ApexQualifiableNode
getQualifiedName
-
Methods inherited from interface net.sourceforge.pmd.lang.apex.ast.ASTUserClassOrInterface
getMethods, getModifiers, getSimpleName
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
acceptApexVisitor
protected <P,R> R acceptApexVisitor(ApexVisitor<? super P,? extends R> visitor, P data)
-
getSuperClassName
public String getSuperClassName()
-
isFindBoundary
public boolean isFindBoundary()
- Specified by:
isFindBoundary
in interfaceNode
-
getImage
@Deprecated public String getImage()
Deprecated.
-
getSimpleName
public String getSimpleName()
Description copied from interface:ASTUserClassOrInterface
Return the simple name of the type defined by this node.- Specified by:
getSimpleName
in interfaceASTUserClassOrInterface<T extends apex.jorje.semantic.ast.compilation.Compilation>
-
getQualifiedName
public ApexQualifiedName getQualifiedName()
- Specified by:
getQualifiedName
in interfaceApexQualifiableNode
-
addChild
protected void addChild(net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<?> child, int index)
- Overrides:
addChild
in classAbstractNode<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 classAbstractNode<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 interfaceNode
-
getRoot
public @NonNull ASTApexFile getRoot()
-
getTextRegion
public @NonNull TextRegion getTextRegion()
- Specified by:
getTextRegion
in interfaceNode
-
getXPathNodeName
public final String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
-
setRegion
protected void setRegion(TextRegion region)
-
getNode
@Deprecated @InternalApi public T getNode()
Deprecated.Description copied from interface:ApexNode
Get the underlying AST node.
-
hasRealLoc
public boolean hasRealLoc()
- Specified by:
hasRealLoc
in interfaceApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
getDefiningType
public String getDefiningType()
- Specified by:
getDefiningType
in interfaceApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
-