de.jiac.micro.internal.util
Class AbstractReflector

java.lang.Object
  extended by de.jiac.micro.internal.util.AbstractReflector
All Implemented Interfaces:
IReflector, IHandle

public abstract class AbstractReflector
extends Object
implements IReflector

Version:
$Revision$
Author:
Erdene-Ochir Tuguldur, Marcel Patzlaff

Field Summary
protected static String GET_PREFIX
           
protected static String IS_PREFIX
           
protected  Object[] noArgs
           
protected  Object[] oneArgument
           
protected static String SET_PREFIX
           
 
Fields inherited from interface de.jiac.micro.core.handle.IReflector
REFLECTOR_NAME
 
Constructor Summary
AbstractReflector()
           
 
Method Summary
 Object invokeMethod(Object obj, String name, Object arguments)
           
protected abstract  Object invokeMethod0(Object obj, String name, Object[] arguments)
           
abstract  Object invokeMethodWithDescriptor(Object obj, String className, String mName, String mDescr, Object arguments)
           
static AbstractReflector newInstance(com.github.libxjava.lang.IClassLoader classLoader)
           
 void writeProperty(Object obj, String property, Object argument)
           
protected abstract  void writeProperty0(Object obj, String name, Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_PREFIX

protected static final String GET_PREFIX
See Also:
Constant Field Values

IS_PREFIX

protected static final String IS_PREFIX
See Also:
Constant Field Values

SET_PREFIX

protected static final String SET_PREFIX
See Also:
Constant Field Values

noArgs

protected final Object[] noArgs

oneArgument

protected final Object[] oneArgument
Constructor Detail

AbstractReflector

public AbstractReflector()
Method Detail

newInstance

public static AbstractReflector newInstance(com.github.libxjava.lang.IClassLoader classLoader)
                                     throws Exception
Throws:
Exception

writeProperty

public final void writeProperty(Object obj,
                                String property,
                                Object argument)
                         throws Exception
Specified by:
writeProperty in interface IReflector
Throws:
Exception

invokeMethod

public final Object invokeMethod(Object obj,
                                 String name,
                                 Object arguments)
                          throws Exception
Specified by:
invokeMethod in interface IReflector
Throws:
Exception

invokeMethodWithDescriptor

public abstract Object invokeMethodWithDescriptor(Object obj,
                                                  String className,
                                                  String mName,
                                                  String mDescr,
                                                  Object arguments)
                                           throws Exception
Specified by:
invokeMethodWithDescriptor in interface IReflector
Throws:
Exception

writeProperty0

protected abstract void writeProperty0(Object obj,
                                       String name,
                                       Object[] arguments)
                                throws Exception
Throws:
Exception

invokeMethod0

protected abstract Object invokeMethod0(Object obj,
                                        String name,
                                        Object[] arguments)
                                 throws Exception
Throws:
Exception


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.