net.sf.arise.piji
Class Reflector
java.lang.Object
|
+--net.sf.arise.piji.Reflector
- public class Reflector
- extends java.lang.Object
|
Method Summary |
static Reflector |
get()
|
static Reflector |
get(boolean privates)
Return a reflector, with optional capacity for private members. |
Accessor |
getAccessor()
|
java.lang.Class |
getClass(Expression node,
Context ctx)
|
java.lang.Class |
getClass(java.lang.String typeName,
Context ctx)
|
java.lang.Class[] |
getClasses(Expression[] args,
Context ctx)
|
ConstructorFinder |
getConstructorFinder()
|
Ctor |
getCtor()
|
FieldFinder |
getFieldFinder()
|
java.lang.Class |
getInterface(Expression arg,
Context ctx)
|
java.lang.Class[] |
getInterfaces(int offset,
Expression[] args,
Context ctx)
|
Invoker |
getInvoker()
|
MethodFinder |
getMethodFinder()
|
java.lang.String |
getName(Expression arg,
Context ctx)
|
java.lang.Object |
resolveLeafNode(Context ctx,
LeafNode node)
|
java.lang.Object |
resolveObject(java.lang.Object object)
|
java.lang.Object |
resolveTarget(Context ctx,
Expression node)
|
java.lang.Class |
resolveType(java.lang.Object object)
|
java.lang.Class |
resolveType(java.lang.Object object,
boolean acceptClass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public static Reflector get()
get
public static Reflector get(boolean privates)
- Return a reflector, with optional capacity for private members.
- Parameters:
privates - Set to true if the reflector should access
private members
- Returns:
- A suitable reflector
getMethodFinder
public MethodFinder getMethodFinder()
getFieldFinder
public FieldFinder getFieldFinder()
getConstructorFinder
public ConstructorFinder getConstructorFinder()
getInvoker
public Invoker getInvoker()
getAccessor
public Accessor getAccessor()
getCtor
public Ctor getCtor()
getName
public final java.lang.String getName(Expression arg,
Context ctx)
throws java.lang.Throwable
java.lang.Throwable
getClass
public final java.lang.Class getClass(Expression node,
Context ctx)
throws java.lang.Throwable
java.lang.Throwable
getClass
public final java.lang.Class getClass(java.lang.String typeName,
Context ctx)
throws java.lang.Throwable
java.lang.Throwable
getInterface
public final java.lang.Class getInterface(Expression arg,
Context ctx)
throws java.lang.Throwable
java.lang.Throwable
getInterfaces
public final java.lang.Class[] getInterfaces(int offset,
Expression[] args,
Context ctx)
throws java.lang.Throwable
java.lang.Throwable
getClasses
public java.lang.Class[] getClasses(Expression[] args,
Context ctx)
throws java.lang.Throwable
java.lang.Throwable
resolveLeafNode
public final java.lang.Object resolveLeafNode(Context ctx,
LeafNode node)
throws java.lang.Throwable
java.lang.Throwable
resolveTarget
public final java.lang.Object resolveTarget(Context ctx,
Expression node)
throws java.lang.Throwable
java.lang.Throwable
resolveObject
public java.lang.Object resolveObject(java.lang.Object object)
resolveType
public java.lang.Class resolveType(java.lang.Object object)
resolveType
public java.lang.Class resolveType(java.lang.Object object,
boolean acceptClass)
All code and documentation is
Copyright (c) : 2000-2003 Kjetil Valstadsve & Maja S. Bratseth