1 11 12 package org.eclipse.jdt.core.dom; 13 14 import java.util.ArrayList ; 15 import java.util.List ; 16 17 27 public class EmptyStatement extends Statement { 28 29 34 private static final List PROPERTY_DESCRIPTORS; 35 36 static { 37 List properyList = new ArrayList (1); 38 createPropertyList(EmptyStatement.class, properyList); 39 PROPERTY_DESCRIPTORS = reapPropertyList(properyList); 40 } 41 42 53 public static List propertyDescriptors(int apiLevel) { 54 return PROPERTY_DESCRIPTORS; 55 } 56 57 65 EmptyStatement(AST ast) { 66 super(ast); 67 } 68 69 72 final List internalStructuralPropertiesForType(int apiLevel) { 73 return propertyDescriptors(apiLevel); 74 } 75 76 79 final int getNodeType0() { 80 return EMPTY_STATEMENT; 81 } 82 83 86 ASTNode clone0(AST target) { 87 EmptyStatement result = new EmptyStatement(target); 88 result.setSourceRange(this.getStartPosition(), this.getLength()); 89 result.copyLeadingComment(this); 90 return result; 91 } 92 93 96 final boolean subtreeMatch0(ASTMatcher matcher, Object other) { 97 return matcher.match(this, other); 99 } 100 101 104 void accept0(ASTVisitor visitor) { 105 visitor.visit(this); 106 visitor.endVisit(this); 107 } 108 109 112 int treeSize() { 113 return memSize(); 114 } 115 } 116 117 | Popular Tags |