com.lexicalscope.fluentreflection
Interface FluentObject<T>

Type Parameters:
T - the underlying type being reflected on
All Superinterfaces:
FluentAccess<T>, FluentAnnotated

public interface FluentObject<T>
extends FluentAccess<T>

Reflection information about a Object (an instance of a class).

Author:
tim

Method Summary
<V> V
as(Class<V> asType)
          The value under reflection cast to a given type
 FluentClass<T> reflectedClass()
          get the static reflection information about the type of this object
 T value()
          The value under reflection
 
Methods inherited from interface com.lexicalscope.fluentreflection.FluentAccess
assignableFromObject, assignableTo, boxedType, call, call, canBeBoxed, canBeUnboxed, classUnderReflection, declaredFields, declaredMethods, field, fields, fields, interfaces, isPrimitive, isType, isUnboxable, method, method, methods, methods, name, simpleName, superclasses, type, typeArgument, unboxedType
 
Methods inherited from interface com.lexicalscope.fluentreflection.FluentAnnotated
annotatedWith, annotatedWith, annotation, annotation
 

Method Detail

reflectedClass

FluentClass<T> reflectedClass()
get the static reflection information about the type of this object

Returns:
the static reflection information about the type of this object

value

T value()
The value under reflection

Returns:
the value that is being reflected upon

as

<V> V as(Class<V> asType)
The value under reflection cast to a given type

Parameters:
asType - the type the value should have been cast to
Returns:
the value that is being reflected upon


Copyright © 2011-2012 lexicalscope. All Rights Reserved.