Package org.mozilla.javascript.ast
Interface DestructuringForm
- 
- All Known Implementing Classes:
- ArrayLiteral,- ObjectLiteral
 
 public interface DestructuringFormCommon interface forArrayLiteralandObjectLiteralnode types, both of which may appear in "destructuring" expressions or contexts.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisDestructuring()Returns true if this node is in a destructuring position: a function parameter, the target of a variable initializer, the iterator of a for..in loop, etc.voidsetIsDestructuring(boolean destructuring)Marks this node as being a destructuring form - that is, appearing in a context such asfor ([a, b] in ...)where it's the target of a destructuring assignment.
 
- 
- 
- 
Method Detail- 
setIsDestructuringvoid setIsDestructuring(boolean destructuring) Marks this node as being a destructuring form - that is, appearing in a context such asfor ([a, b] in ...)where it's the target of a destructuring assignment.
 - 
isDestructuringboolean isDestructuring() Returns true if this node is in a destructuring position: a function parameter, the target of a variable initializer, the iterator of a for..in loop, etc.
 
- 
 
-