1 11 package org.eclipse.jdt.core.dom; 12 13 22 public final class ChildPropertyDescriptor extends StructuralPropertyDescriptor { 23 24 28 private final Class childClass; 29 30 34 private final boolean mandatory; 35 36 41 final boolean cycleRisk; 42 43 57 ChildPropertyDescriptor(Class nodeClass, String propertyId, Class childType, boolean mandatory, boolean cycleRisk) { 58 super(nodeClass, propertyId); 59 if (childType == null || !ASTNode.class.isAssignableFrom(childType)) { 60 throw new IllegalArgumentException (); 61 } 62 this.childClass = childType; 63 this.mandatory = mandatory; 64 this.cycleRisk = cycleRisk; 65 } 66 67 76 public final Class getChildType() { 77 return this.childClass; 78 } 79 80 87 public final boolean isMandatory() { 88 return this.mandatory; 89 } 90 91 109 public final boolean cycleRisk() { 110 return this.cycleRisk; 111 } 112 } 113 | Popular Tags |