コード例 #1
0
 /* (omit javadoc for this method)
  * Method declared on ASTNode.
  */
 ASTNode clone0(AST target) {
   BreakStatement result = new BreakStatement(target);
   result.setSourceRange(this.getStartPosition(), this.getLength());
   result.copyLeadingComment(this);
   result.setLabel((SimpleName) ASTNode.copySubtree(target, getLabel()));
   return result;
 }
コード例 #2
0
 /* (omit javadoc for this method)
  * Method declared on ASTNode.
  */
 final ASTNode internalGetSetChildProperty(
     ChildPropertyDescriptor property, boolean get, ASTNode child) {
   if (property == LABEL_PROPERTY) {
     if (get) {
       return getLabel();
     } else {
       setLabel((SimpleName) child);
       return null;
     }
   }
   // allow default implementation to flag the error
   return super.internalGetSetChildProperty(property, get, child);
 }