コード例 #1
0
ファイル: ClassForest.java プロジェクト: jamierocks/enigma
 public void add(ClassEntry entry) {
   try {
     m_forest.put(m_identifier.identify(entry), entry);
   } catch (ClassNotFoundException ex) {
     throw new Error("Unable to find class " + entry.getName());
   }
 }
コード例 #2
0
ファイル: NameSpace.java プロジェクト: svn2github/BeanShell2
 /**
  * This is a helper method for working inside of bsh scripts and commands. In that context it is
  * impossible to see a ClassIdentifier object for what it is. Attempting to access a method on a
  * ClassIdentifier will look like a static method invocation.
  *
  * <p>This method is in NameSpace for convenience (you don't have to import bsh.ClassIdentifier to
  * use it );
  */
 public static Class identifierToClass(ClassIdentifier ci) {
   return ci.getTargetClass();
 }