PageRenderTime 23ms CodeModel.GetById 1ms RepoModel.GetById 0ms 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
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
  1. /* Generated By:JJTree: Do not edit this line. ASTLiteralField.java */
  2. package sidekick.ecmascript.parser;
  3. public class ASTLiteralField extends SimpleNode {
  4. public ASTLiteralField( int id ) {
  5. super( id );
  6. }
  7. public ASTLiteralField( EcmaScript p, int id ) {
  8. super( p, id );
  9. }
  10. public boolean isVisible() {
  11. return true;
  12. }
  13. /** Accept the visitor. **/
  14. public Object jjtAccept( EcmaScriptVisitor visitor, Object data ) {
  15. return visitor.visit( this, data );
  16. }
  17. public String toString() {
  18. boolean b = System.getProperty( "sidekick.ecmascript.general.allNodes", "false" ).startsWith("t");
  19. if ( b ) {
  20. return super.toString();
  21. }
  22. try {
  23. return jjtGetChild( 0 ).toString();
  24. }
  25. catch ( NullPointerException npe ) {
  26. return super.toString();
  27. }
  28. }
  29. }