Class ASTArrayLiteral
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.ArrayLiteral>
-
- net.sourceforge.pmd.lang.ecmascript.ast.ASTArrayLiteral
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node,DestructuringNode,EcmascriptNode<org.mozilla.javascript.ast.ArrayLiteral>,TrailingCommaNode
public class ASTArrayLiteral extends AbstractEcmascriptNode<org.mozilla.javascript.ast.ArrayLiteral> implements DestructuringNode, TrailingCommaNode
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
node
-
-
Constructor Summary
Constructors Constructor Description ASTArrayLiteral(org.mozilla.javascript.ast.ArrayLiteral arrayLiteral)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDestructuring()booleanisTrailingComma()java.lang.ObjectjjtAccept(EcmascriptParserVisitor visitor, java.lang.Object data)Accept the visitor.voidsetTrailingComma(boolean trailingComma)-
Methods inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
childrenAccept, getJsDoc, getNode, getXPathNodeName, hasSideEffects
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
jjtAccept
public java.lang.Object jjtAccept(EcmascriptParserVisitor visitor, java.lang.Object data)
Accept the visitor.- Specified by:
jjtAcceptin interfaceEcmascriptNode<org.mozilla.javascript.ast.ArrayLiteral>- Overrides:
jjtAcceptin classAbstractEcmascriptNode<org.mozilla.javascript.ast.ArrayLiteral>
-
isDestructuring
public boolean isDestructuring()
- Specified by:
isDestructuringin interfaceDestructuringNode
-
isTrailingComma
public boolean isTrailingComma()
- Specified by:
isTrailingCommain interfaceTrailingCommaNode
-
setTrailingComma
public void setTrailingComma(boolean trailingComma)
- Specified by:
setTrailingCommain interfaceTrailingCommaNode
-
-