1 24 25 package org.aspectj.compiler.base.ast; 26 27 30 public abstract class TryStmt extends Stmt { 31 32 private boolean isOptionalFlag = false; 33 public final boolean isOptional() { return isOptionalFlag; } 34 public final void setIsOptional(boolean b) { isOptionalFlag = b; } 35 36 public final ASTObject postCopy(CopyWalker walker, ASTObject oldObject) { 37 this.isOptionalFlag = ((TryStmt)oldObject).isOptionalFlag; 38 return super.postCopy(walker, oldObject); 39 } 40 41 43 public TryStmt(SourceLocation location) { 44 super(location); 45 46 } 47 48 public String getDefaultDisplayName() { 49 return "TryStmt()"; 50 } 51 52 } 54 55 56 | Popular Tags |