kawigi.language
Class ProxyLanguage

java.lang.Object
  |
  +--kawigi.language.ProxyLanguage
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ProxyLanguage
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Encapsulates a language with both KawigiEdit features and TC Language features.


Constructor Summary
protected ProxyLanguage(java.lang.Object lang)
          Constructs a new Proxy for obj, which is an unstable instance of ExtendedLanguage.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
          Invokes the method on the original object.
static java.lang.Object newProxy(java.lang.Object obj, java.lang.ClassLoader loader)
          Creates a proxy instance that should theoretically be usable as an ExtendedLanguage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyLanguage

protected ProxyLanguage(java.lang.Object lang)
Constructs a new Proxy for obj, which is an unstable instance of ExtendedLanguage.

Method Detail

newProxy

public static java.lang.Object newProxy(java.lang.Object obj,
                                        java.lang.ClassLoader loader)
                                 throws java.lang.Exception
Creates a proxy instance that should theoretically be usable as an ExtendedLanguage.

java.lang.Exception

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Invokes the method on the original object.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
java.lang.Throwable