com.lexicalscope.fluentreflection
Interface ReflectedType<T>

All Superinterfaces:
ReflectedAnnotated
All Known Subinterfaces:
ReflectedClass<T>, ReflectedObject<T>

public interface ReflectedType<T>
extends ReflectedAnnotated


Method Summary
 boolean canBeBoxed(Class<?> from)
           
 boolean canBeUnboxed(Class<?> from)
           
 Class<T> classUnderReflection()
          Obtain the class being reflected
 List<ReflectedMethod> declaredMethods()
          All methods declared by this type
 ReflectedMethod method(org.hamcrest.Matcher<? super ReflectedMethod> methodMatcher)
          Find the first method matching the supplied matcher
 ReflectedMethod method(String name)
          Find the first method with the given name
 List<ReflectedMethod> methods()
          All methods
 List<ReflectedMethod> methods(org.hamcrest.Matcher<? super ReflectedMethod> methodMatcher)
          Find all methods matching the supplied matcher
 
Methods inherited from interface com.lexicalscope.fluentreflection.ReflectedAnnotated
annotatedWith, annotation, annotation
 

Method Detail

classUnderReflection

Class<T> classUnderReflection()
Obtain the class being reflected

Returns:
the class being reflected

methods

List<ReflectedMethod> methods()
All methods

Returns:
all the methods

declaredMethods

List<ReflectedMethod> declaredMethods()
All methods declared by this type

Returns:
methods declared by this type

methods

List<ReflectedMethod> methods(org.hamcrest.Matcher<? super ReflectedMethod> methodMatcher)
Find all methods matching the supplied matcher

Parameters:
methodMatcher - matches the methods
Returns:
The methods matching the supplied matcher

method

ReflectedMethod method(org.hamcrest.Matcher<? super ReflectedMethod> methodMatcher)
Find the first method matching the supplied matcher

Parameters:
methodMatcher - matches the method
Returns:
The method matching the supplied matcher

method

ReflectedMethod method(String name)
Find the first method with the given name

Parameters:
name - the name of the method
Returns:
The method matching the name

canBeBoxed

boolean canBeBoxed(Class<?> from)

canBeUnboxed

boolean canBeUnboxed(Class<?> from)


Copyright © 2011-2012 lexicalscope. All Rights Reserved.