1 11 package org.eclipse.jdt.core.dom; 12 13 import java.util.ArrayList ; 14 import java.util.List ; 15 16 32 public final class LineComment extends Comment { 33 34 39 private static final List PROPERTY_DESCRIPTORS; 40 41 static { 42 List propertyList = new ArrayList (1); 43 createPropertyList(LineComment.class, propertyList); 44 PROPERTY_DESCRIPTORS = reapPropertyList(propertyList); 45 } 46 47 58 public static List propertyDescriptors(int apiLevel) { 59 return PROPERTY_DESCRIPTORS; 60 } 61 62 70 LineComment(AST ast) { 71 super(ast); 72 } 73 74 77 final List internalStructuralPropertiesForType(int apiLevel) { 78 return propertyDescriptors(apiLevel); 79 } 80 81 84 final int getNodeType0() { 85 return LINE_COMMENT; 86 } 87 88 91 ASTNode clone0(AST target) { 92 LineComment result = new LineComment(target); 93 result.setSourceRange(this.getStartPosition(), this.getLength()); 94 return result; 95 } 96 97 100 final boolean subtreeMatch0(ASTMatcher matcher, Object other) { 101 return matcher.match(this, other); 103 } 104 105 108 void accept0(ASTVisitor visitor) { 109 visitor.visit(this); 110 visitor.endVisit(this); 111 } 112 113 116 int memSize() { 117 return super.memSize(); 118 } 119 120 123 int treeSize() { 124 return memSize(); 125 } 126 } 127 | Popular Tags |