/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
/** * Gets the class definition with the given name, if any. * * @param name {@code non-null;} the class name to look for * @return {@code null-ok;} the class with the given name, or {@code null} * if there is no such class */ public ClassDefItem getClassOrNull(String name) { try { Type type = Type.internClassName(name); return (ClassDefItem) classDefs.get(new CstType(type)); } catch (IllegalArgumentException ex) { // Translate exception, per contract. return null; } }
int nameIndex = bytes.getUnsignedShort(at + 1); CstString name = (CstString) parse0(nameIndex, wasUtf8); cst = new CstType(Type.internClassName(name.getString())); break;
int nameIndex = bytes.getUnsignedShort(at + 1); CstString name = (CstString) parse0(nameIndex, wasUtf8); cst = new CstType(Type.internClassName(name.getString())); break;
int nameIndex = bytes.getUnsignedShort(at + 1); CstString name = (CstString) parse0(nameIndex, wasUtf8); cst = new CstType(Type.internClassName(name.getString())); break;
int nameIndex = bytes.getUnsignedShort(at + 1); CstString name = (CstString) parse0(nameIndex, wasUtf8); cst = new CstType(Type.internClassName(name.getString())); break;
int nameIndex = bytes.getUnsignedShort(at + 1); CstString name = (CstString) parse0(nameIndex, wasUtf8); cst = new CstType(Type.internClassName(name.getString())); break;
int nameIndex = bytes.getUnsignedShort(at + 1); CstUtf8 name = (CstUtf8) parse0(nameIndex); cst = new CstType(Type.internClassName(name.getString())); break;