/bundles/plugins-trunk/XML/sidekick/ecmascript/parser/ASTExpressionStatement.java
Java | 53 lines | 38 code | 13 blank | 2 comment | 6 complexity | cc698f3a0b0c9a5c8a492de3670c0131 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- /* Generated By:JJTree: Do not edit this line. ASTExpressionStatement.java */
- package sidekick.ecmascript.parser;
- import java.util.*;
- public class ASTExpressionStatement extends SimpleNode {
- public ASTExpressionStatement( int id ) {
- super( id );
- }
- public ASTExpressionStatement( EcmaScript p, int id ) {
- super( p, id );
- }
- /** Accept the visitor. **/
- public Object jjtAccept( EcmaScriptVisitor visitor, Object data ) {
- return visitor.visit( this, data );
- }
- public List getChildren() {
- if ( children != null ) {
- List kids = Arrays.asList(children);
- return kids.subList(0, kids.size());
- }
- else {
- return null;
- }
- }
- public String toString() {
- boolean b = System.getProperty( "sidekick.ecmascript.general.allNodes", "false" ).startsWith("t");
- if (b) {
- return super.toString();
- }
- try {
- if ( jjtGetChild( 0 ).jjtGetChild( 0 ) instanceof ASTCompositeReference ) {
- String name = ( ( ASTCompositeReference ) jjtGetChild( 0 ).jjtGetChild( 0 ) ).getCompositeName();
- return name == null ? super.toString() : name;
- }
- return super.toString();
- }
- catch ( Exception e ) {
- return "";
- }
- }
- }