1 24 25 package org.aspectj.compiler.base.ast; 26 27 import org.aspectj.compiler.base.*; 28 29 import org.aspectj.compiler.base.bcg.CodeBuilder; 30 31 34 35 public class EmptyStmt extends Stmt { 36 37 42 public boolean mustBeLive() { return !getOptions().lenient; } 43 44 public void unparse(CodeWriter writer) { 45 writer.closeStmt(); 46 } 47 48 51 protected void cgStmt(CodeBuilder cb) {} 52 53 55 public EmptyStmt(SourceLocation location) { 56 super(location); 57 58 } 59 60 public ASTObject copyWalk(CopyWalker walker) { 61 EmptyStmt ret = new EmptyStmt(getSourceLocation()); 62 ret.preCopy(walker, this); 63 64 return ret; 65 } 66 67 68 public String getDefaultDisplayName() { 69 return "EmptyStmt()"; 70 } 71 72 } 74 75 76 | Popular Tags |