greflect
0.11-DRAFT

jp.sourceforge.greflect
Class Reflection.Caster<T>

java.lang.Object
  extended by jp.sourceforge.greflect.Reflection.Caster<T>
Enclosing class:
Reflection

public abstract class Reflection.Caster<T>
extends java.lang.Object

[ungeneric]
Caster cast ungeneric object to specified generic type
Casterはアンジェネリックオブジェクトを指定された型にキャストします。 .

Type Variable T:
The type of cast() return.
Responsibilities & Collaborations:
Notes & Descriptions:
See How To Create Instance to know the basic use of this class.

@lang ja このクラスの基本的な使用方法を知るには How To Create Instance を見てください。

SourceInfo:
$Id: Reflection.java 132 2008-07-02 13:51:18Z yo-zi $

Author:
yo-zi

Constructor Summary
Reflection.Caster(java.lang.Object instance)
          Prepares to execute the method by checking the number of parameters and the validity of the generic types
パラメタ数とジェネリックタイプの妥当性をチェックし、 インスタンスをキャストします。 .
 
Method Summary
 T cast()
          Gets caster instance
キャストしたインスタンスを取得します。 .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflection.Caster

public Reflection.Caster(java.lang.Object instance)
                  throws TypeViolationException,
                         java.lang.NullPointerException
Prepares to execute the method by checking the number of parameters and the validity of the generic types
パラメタ数とジェネリックタイプの妥当性をチェックし、 インスタンスをキャストします。 .
Pre-conditions :
The instance must be ungeneric. When not, UnresolvedTypeVariableException will be thrown.

@lang ja instanceはアンジェネリックインスタンスである必要があります。 もしそうでないなら、UnresolvedTypeVariableExceptionが スローされます。

Post-conditions :
The target method is executable.

@lang ja 対象のメソッドは実行可能である。

Parameters:
instance - Ungeneric instance to be casted.
@lang ja キャストするアンジェネリックインスタンス。
Throws:
TypeViolationException
java.lang.NullPointerException
Method Detail

cast

public T cast()
Gets caster instance
キャストしたインスタンスを取得します。 .
Pre-conditions :
Post-conditions :

Returns:

greflect
0.11-DRAFT

Copyright © 2008 yo-zi. All Rights Reserved.