/** * Is "this" atom a reserved member name? Note: Sun has reserved all member names starting with '<' for future use. At present, * only <init> and <clinit> are used. */ public final boolean isReservedMemberName() { if (length() == 0) { return false; } return val[0] == '<'; }
/** * Is "this" atom a class descriptor? */ public final boolean isClassDescriptor() { if (length() == 0) { return false; } return val[0] == 'L'; }
/** * Is "this" atom a method descriptor? */ public final boolean isMethodDescriptor() throws IllegalArgumentException { if (length() == 0) { return false; } return val[0] == '('; }
/** * Is "this" atom a reserved member name? Note: Sun has reserved all member names starting with '<' for future use. At present, * only <init> and <clinit> are used. */ public final boolean isReservedMemberName() { if (length() == 0) { return false; } return val[0] == '<'; }
/** * Is "this" atom a class descriptor? */ public final boolean isClassDescriptor() { if (length() == 0) { return false; } return val[0] == 'L'; }
/** * Is "this" atom an array descriptor? */ public final boolean isArrayDescriptor() { if (length() == 0) { return false; } return val[0] == '['; }
/** * Is "this" atom an array descriptor? */ public final boolean isArrayDescriptor() { if (length() == 0) { return false; } return val[0] == '['; }
/** * Is "this" atom a method descriptor? */ public final boolean isMethodDescriptor() throws IllegalArgumentException { if (length() == 0) { return false; } return val[0] == '('; }
/** * @return the ClassLoaderReference specified by {@code name}. * @throws IllegalArgumentException if name is null */ public ClassLoaderReference getLoader(Atom name) throws IllegalArgumentException { if (name == null) { throw new IllegalArgumentException("name is null"); } if (name.length() == 0) { throw new IllegalArgumentException("empty atom is not a legal class loader name"); } /* * if (Assertions.verifyAssertions) { if (name.getVal(0) > 'Z') { Assertions._assert(name.getVal(0) <= 'Z', * "Classloader name improperly capitalised? (" + name + ")"); } } */ return loadersByName.get(name); }
/** * @return the ClassLoaderReference specified by {@code name}. * @throws IllegalArgumentException if name is null */ public ClassLoaderReference getLoader(Atom name) throws IllegalArgumentException { if (name == null) { throw new IllegalArgumentException("name is null"); } if (name.length() == 0) { throw new IllegalArgumentException("empty atom is not a legal class loader name"); } /* * if (Assertions.verifyAssertions) { if (name.getVal(0) > 'Z') { Assertions._assert(name.getVal(0) <= 'Z', * "Classloader name improperly capitalised? (" + name + ")"); } } */ return loadersByName.get(name); }