예제 #1
0
 /* (omit javadoc for this method)
  * Method declared on ASTNode.
  */
 ASTNode clone0(AST target) {
   SuperMethodReference result = new SuperMethodReference(target);
   result.setSourceRange(getStartPosition(), getLength());
   result.setName((SimpleName) getName().clone(target));
   result.setQualifier((Name) ASTNode.copySubtree(target, getQualifier()));
   result.typeArguments().addAll(ASTNode.copySubtrees(target, typeArguments()));
   return result;
 }
예제 #2
0
 /* (omit javadoc for this method)
  * Method declared on ASTNode.
  */
 final ASTNode internalGetSetChildProperty(
     ChildPropertyDescriptor property, boolean get, ASTNode child) {
   if (property == QUALIFIER_PROPERTY) {
     if (get) {
       return getQualifier();
     } else {
       setQualifier((Name) child);
       return null;
     }
   }
   if (property == NAME_PROPERTY) {
     if (get) {
       return getName();
     } else {
       setName((SimpleName) child);
       return null;
     }
   }
   // allow default implementation to flag the error
   return super.internalGetSetChildProperty(property, get, child);
 }