Class ASTObjectLiteral
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.ObjectLiteral>
-
- net.sourceforge.pmd.lang.ecmascript.ast.ASTObjectLiteral
-
- All Implemented Interfaces:
Node
,DestructuringNode
,EcmascriptNode<org.mozilla.javascript.ast.ObjectLiteral>
,TrailingCommaNode
public class ASTObjectLiteral extends AbstractEcmascriptNode<org.mozilla.javascript.ast.ObjectLiteral> implements DestructuringNode, TrailingCommaNode
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
node
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description ASTObjectLiteral(org.mozilla.javascript.ast.ObjectLiteral objectLiteral)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ASTObjectProperty
getObjectProperty(int index)
boolean
isDestructuring()
boolean
isTrailingComma()
Object
jjtAccept(EcmascriptParserVisitor visitor, Object data)
Accept the visitor.void
setTrailingComma(boolean trailingComma)
Deprecated.protected void
setTrailingCommaExists(boolean b)
-
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, children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getUserMap, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Constructor Detail
-
ASTObjectLiteral
@Deprecated @InternalApi public ASTObjectLiteral(org.mozilla.javascript.ast.ObjectLiteral objectLiteral)
Deprecated.
-
-
Method Detail
-
jjtAccept
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data)
Description copied from class:AbstractEcmascriptNode
Accept the visitor. *- Specified by:
jjtAccept
in interfaceEcmascriptNode<org.mozilla.javascript.ast.ObjectLiteral>
- Overrides:
jjtAccept
in classAbstractEcmascriptNode<org.mozilla.javascript.ast.ObjectLiteral>
-
getObjectProperty
public ASTObjectProperty getObjectProperty(int index)
-
isDestructuring
public boolean isDestructuring()
- Specified by:
isDestructuring
in interfaceDestructuringNode
-
isTrailingComma
public boolean isTrailingComma()
- Specified by:
isTrailingComma
in interfaceTrailingCommaNode
-
setTrailingComma
@Deprecated @InternalApi public void setTrailingComma(boolean trailingComma)
Deprecated.- Specified by:
setTrailingComma
in interfaceTrailingCommaNode
-
setTrailingCommaExists
protected void setTrailingCommaExists(boolean b)
- Overrides:
setTrailingCommaExists
in classAbstractEcmascriptNode<org.mozilla.javascript.ast.ObjectLiteral>
-
-