public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
@Override public Class<?> realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class<?> componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = primitiveClassNamed(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = primitiveClassNamed(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }
public Class realClass(String elementName) { int dimensions = 0; // strip off "-array" suffix while (elementName.endsWith("-array")) { elementName = elementName.substring(0, elementName.length() - 6); // cut off -array ++dimensions; } if (dimensions > 0) { Class componentType = Primitives.primitiveType(elementName); if (componentType == null) { componentType = super.realClass(elementName); } while (componentType.isArray()) { componentType = componentType.getComponentType(); ++dimensions; } return super.realClass(arrayType(dimensions, componentType)); } else { return super.realClass(elementName); } }