greflect
0.11-DRAFT

jp.sourceforge.greflect.impl
Class ChainedTypeVarScope

java.lang.Object
  extended by jp.sourceforge.greflect.impl.ChainedTypeVarScope
All Implemented Interfaces:
TypeVarScope

public class ChainedTypeVarScope
extends java.lang.Object
implements TypeVarScope

A TypeVarScope implementation [chain of responsibility] [immutable] .

Responsibilities & Collaborations :
  1. with
  2. with
  3. with
  4. with
Notes & Descriptions
(none)
SourceInfo
$Id: ChainedTypeVarScope.java 87 2008-05-26 18:06:45Z yo-zi $

Author:
yo-zi

Field Summary
 
Fields inherited from interface jp.sourceforge.greflect.impl.TypeVarScope
NULL
 
Constructor Summary
ChainedTypeVarScope(TypeVarScope scope, java.lang.reflect.TypeVariable<? extends java.lang.reflect.GenericDeclaration> tvar, GenericTypeRef fixed)
           
 
Method Summary
static
<T> TypeVarScope
chain(TypeVarScope scope, java.lang.Class<T> cls, GenericTypeRef[] types)
           
static
<T> TypeVarScope
chain(TypeVarScope scope, java.lang.Class<T> cls, java.lang.reflect.Type[] types)
           
 GenericTypeRef resolveTypeVariable(java.lang.reflect.TypeVariable<? extends java.lang.reflect.GenericDeclaration> key)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChainedTypeVarScope

public ChainedTypeVarScope(TypeVarScope scope,
                           java.lang.reflect.TypeVariable<? extends java.lang.reflect.GenericDeclaration> tvar,
                           GenericTypeRef fixed)
Method Detail

chain

public static <T> TypeVarScope chain(TypeVarScope scope,
                                     java.lang.Class<T> cls,
                                     java.lang.reflect.Type[] types)
                          throws TypeViolationException
Throws:
TypeViolationException

chain

public static <T> TypeVarScope chain(TypeVarScope scope,
                                     java.lang.Class<T> cls,
                                     GenericTypeRef[] types)
                          throws TypeViolationException
Throws:
TypeViolationException

resolveTypeVariable

public GenericTypeRef resolveTypeVariable(java.lang.reflect.TypeVariable<? extends java.lang.reflect.GenericDeclaration> key)
Specified by:
resolveTypeVariable in interface TypeVarScope

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

greflect
0.11-DRAFT

Copyright © 2008 yo-zi. All Rights Reserved.