1 11 12 package org.eclipse.jdt.core.dom; 13 14 import java.util.ArrayList ; 15 import java.util.List ; 16 17 22 public class NullLiteral extends Expression { 23 24 29 private static final List PROPERTY_DESCRIPTORS; 30 31 static { 32 List propertyList = new ArrayList (1); 33 createPropertyList(NullLiteral.class, propertyList); 34 PROPERTY_DESCRIPTORS = reapPropertyList(propertyList); 35 } 36 37 48 public static List propertyDescriptors(int apiLevel) { 49 return PROPERTY_DESCRIPTORS; 50 } 51 52 60 NullLiteral(AST ast) { 61 super(ast); 62 } 63 64 67 final List internalStructuralPropertiesForType(int apiLevel) { 68 return propertyDescriptors(apiLevel); 69 } 70 71 74 final int getNodeType0() { 75 return NULL_LITERAL; 76 } 77 78 81 ASTNode clone0(AST target) { 82 NullLiteral result = new NullLiteral(target); 83 result.setSourceRange(this.getStartPosition(), this.getLength()); 84 return result; 85 } 86 87 90 final boolean subtreeMatch0(ASTMatcher matcher, Object other) { 91 return matcher.match(this, other); 93 } 94 95 98 void accept0(ASTVisitor visitor) { 99 visitor.visit(this); 100 visitor.endVisit(this); 101 } 102 103 106 int memSize() { 107 return BASE_NODE_SIZE; 108 } 109 110 113 int treeSize() { 114 return memSize(); 115 } 116 } 117 118 | Popular Tags |