org.mtzky.reflect
クラス PackageDesc

java.lang.Object
  上位を拡張 org.mtzky.reflect.PackageDesc

public class PackageDesc
extends Object

Descriptors for Class in a package.

導入されたバージョン:
0.1.6
作成者:
mtzky

コンストラクタの概要
PackageDesc(String packageName)
           
PackageDesc(String packageName, IterableUtils.Find<Class<?>> filter)
           
 
メソッドの概要
<T> Class<T>
findClass(IterableUtils.Find<Class<?>> callback)
           
 List<Class<?>> getClasses()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PackageDesc

public PackageDesc(String packageName)
            throws IOException,
                   ClassNotFoundException
パラメータ:
packageName - a package name
例外:
IOException - if an I/O error occurred
ClassNotFoundException - if the class cannot be located

PackageDesc

public PackageDesc(String packageName,
                   IterableUtils.Find<Class<?>> filter)
            throws IOException,
                   ClassNotFoundException
パラメータ:
packageName - a package name
filter -
例外:
IOException - if an I/O error occurred
ClassNotFoundException - if the class cannot be located
メソッドの詳細

getClasses

public List<Class<?>> getClasses()
戻り値:
classes in this package as an unmodifiable list

findClass

public <T> Class<T> findClass(IterableUtils.Find<Class<?>> callback)
型パラメータ:
T -
パラメータ:
callback -
戻り値:
a found class in this package, or null if not


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.