jp.sourceforge.greflect.impl
Class ChainedTypeVarScope
java.lang.Object
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 :
-
with
-
with
-
with
-
with
Notes & Descriptions
(none)
SourceInfo
$Id: ChainedTypeVarScope.java 132 2008-07-02 13:51:18Z yo-zi $
- Author:
- yo-zi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChainedTypeVarScope
public ChainedTypeVarScope(TypeVarScope scope,
java.lang.reflect.TypeVariable<? extends java.lang.reflect.GenericDeclaration> tvar,
GenericTypeRef fixed)
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
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface TypeVarScope
getTypeVariableSet
public java.util.Set<java.lang.reflect.TypeVariable<? extends java.lang.reflect.GenericDeclaration>> getTypeVariableSet()
- Specified by:
getTypeVariableSet in interface TypeVarScope
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008 yo-zi. All Rights Reserved.