1 11 package org.eclipse.jdt.core.dom; 12 13 24 public final class SimplePropertyDescriptor extends StructuralPropertyDescriptor { 25 26 30 private final Class valueType; 31 32 36 private final boolean mandatory; 37 38 50 SimplePropertyDescriptor(Class nodeClass, String propertyId, Class valueType, boolean mandatory) { 51 super(nodeClass, propertyId); 52 if (valueType == null || ASTNode.class.isAssignableFrom(valueType)) { 53 throw new IllegalArgumentException (); 54 } 55 this.valueType = valueType; 56 this.mandatory = mandatory; 57 } 58 59 68 public Class getValueType() { 69 return this.valueType; 70 } 71 72 79 public boolean isMandatory() { 80 return this.mandatory; 81 } 82 } 83 | Popular Tags |