PageRenderTime 32ms CodeModel.GetById 28ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/bundles/plugins-trunk/XML/sidekick/ecmascript/parser/ASTLiteralField.java

#
Java | 75 lines | 27 code | 46 blank | 2 comment | 1 complexity | 00adbfdb36d60c111bd456ec409dece2 MD5 | raw file
 1/* Generated By:JJTree: Do not edit this line. ASTLiteralField.java */
 2
 3
 4
 5package sidekick.ecmascript.parser;
 6
 7
 8
 9public class ASTLiteralField extends SimpleNode {
10
11    public ASTLiteralField( int id ) {
12
13        super( id );
14
15    }
16
17
18
19    public ASTLiteralField( EcmaScript p, int id ) {
20
21        super( p, id );
22
23    }
24
25
26
27    public boolean isVisible() {
28
29        return true;
30
31    }
32
33
34
35
36
37    /** Accept the visitor. **/
38
39    public Object jjtAccept( EcmaScriptVisitor visitor, Object data ) {
40
41        return visitor.visit( this, data );
42
43    }
44
45
46
47    public String toString() {
48
49        boolean b = System.getProperty( "sidekick.ecmascript.general.allNodes", "false" ).startsWith("t");
50
51        if ( b ) {
52
53            return super.toString();
54
55        }
56
57
58
59        try {
60
61            return jjtGetChild( 0 ).toString();
62
63        }
64
65        catch ( NullPointerException npe ) {
66
67            return super.toString();
68
69        }
70
71    }
72
73
74
75}