greflect
0.11-DRAFT

jp.sourceforge.greflect
Class Reflection

java.lang.Object
  extended by jp.sourceforge.greflect.Reflection

public class Reflection
extends java.lang.Object

[concurrent][facade]
A facade of the reflection API supports generic features
ジェネリクスをサポートするリフレクションAPIのfacade。 .

Responsibilities & Collaborations:
  1. Create ungeneric instance type-safely with Reflection.Instantiator
  2. Invoke method type-safelywith Reflection.Invoker
  3. Cache the reflection results with
Notes & Descriptions:
See How To Invoke Method to know the basic use of this class.

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

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

Author:
yo-zi

Nested Class Summary
 class Reflection.Caster<T>
          [ungeneric]
Caster cast ungeneric object to specified generic type
Casterはアンジェネリックオブジェクトを指定された型にキャストします。 .
 class Reflection.Instantiator<T>
          [ungeneric]
Instantiator creates a ungeneric object of the specified type
Instantiatorは指定された型のアンジェネリックオブジェクトを生成します。 .
 class Reflection.Invoker<T>
          [ungeneric]
Invoker invoke the method of the specified instance
Invokerは指定されたインスタンスのメソッドを呼び出します。 .
 
Constructor Summary
Reflection()
          Creates a facade of reflection with the current ClassLoader
現在のクラスローダでリフレクションのfacadeを生成します。 .
Reflection(java.lang.ClassLoader class_loader)
          Creates a facade of reflection with the specified ClassLoader
指定したクラスローダでリフレクションのfacadeを生成します。 .
 
Method Summary
 java.lang.String getTypeDescriptionFor(Param<?> caster)
          Return the string description of the specified type
指定された型のString表記を返します。 .
 boolean isAssignableFromTo(Param<?> from, Param<?> to)
          Judge whether substitution is possible
Paramオブジェクトの保持する型同士で代入が可能か判定します。 .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflection

public Reflection()
Creates a facade of reflection with the current ClassLoader
現在のクラスローダでリフレクションのfacadeを生成します。 .
Pre-conditions :
Post-conditions :

Parameters:
class_loader -

Reflection

public Reflection(java.lang.ClassLoader class_loader)
Creates a facade of reflection with the specified ClassLoader
指定したクラスローダでリフレクションのfacadeを生成します。 .
Pre-conditions :
Post-conditions :

Parameters:
class_loader -
Method Detail

isAssignableFromTo

public boolean isAssignableFromTo(Param<?> from,
                                  Param<?> to)
                           throws TypeViolationException
Judge whether substitution is possible
Paramオブジェクトの保持する型同士で代入が可能か判定します。 .
Pre-conditions :
Post-conditions :

Returns:
True when from can be substituted for to.

@lang ja from をtoに代入可能なときtrue。

Throws:
TypeViolationException

getTypeDescriptionFor

public java.lang.String getTypeDescriptionFor(Param<?> caster)
                                       throws TypeViolationException
Return the string description of the specified type
指定された型のString表記を返します。 .
Pre-conditions :
Post-conditions :

Returns:
Throws:
TypeViolationException

greflect
0.11-DRAFT

Copyright © 2008 yo-zi. All Rights Reserved.