/** * Creates the array type to use. This will use the provided * XML element to determine the array type and provide a means * for creating an array with the <code>Value</code> object. If * the array size cannot be determined an exception is thrown. * * @param node this is the input node for the array element * * @return the object array type used for the instantiation */ public Instance getInstance(InputNode node) throws Exception { Position line = node.getPosition(); Value value = getOverride(node); if(value == null) { throw new ElementException("Array length required for %s at %s", type, line); } Class type = value.getType(); return getInstance(value, type); }
/** * Creates the array type to use. This will use the provided * XML element to determine the array type and provide a means * for creating an array with the <code>Value</code> object. If * the array size cannot be determined an exception is thrown. * * @param node this is the input node for the array element * * @return the object array type used for the instantiation */ public Instance getInstance(InputNode node) throws Exception { Position line = node.getPosition(); Value value = getOverride(node); if(value == null) { throw new ElementException("Array length required for %s at %s", type, line); } Class type = value.getType(); return getInstance(value, type); }
/** * Creates the array type to use. This will use the provided * XML element to determine the array type and provide a means * for creating an array with the <code>Value</code> object. If * the array size cannot be determined an exception is thrown. * * @param node this is the input node for the array element * * @return the object array type used for the instantiation */ public Instance getInstance(InputNode node) throws Exception { Position line = node.getPosition(); Value value = getOverride(node); if(value == null) { throw new ElementException("Array length required for %s at %s", type, line); } Class type = value.getType(); return getInstance(value, type); }