com.philemonworks.selfdiagnose
Class Instance

java.lang.Object
  extended by com.philemonworks.selfdiagnose.Instance

public class Instance
extends Object

Instance is a simple wrapper class to do reflection invocations. Its primary (sole) use can be found in the vendor-dependent tasks. Using reflection, vendor-dependent classes and their API can be used without having JAR dependencies in this project.

Author:
ernest.micklei

Constructor Summary
Instance(Object any)
           
 
Method Summary
static Instance create(String className)
           
static Instance create(String className, Object[] args)
           
 double doubleValue()
           
 int intValue()
           
 Instance invoke(String methodName)
           
 Instance invoke(String methodName, int arg)
           
 Instance invoke(String methodName, Object arg)
           
 long longValue()
           
 String stringValue()
           
 String toString()
           
 Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance(Object any)
Method Detail

create

public static Instance create(String className)

create

public static Instance create(String className,
                              Object[] args)

invoke

public Instance invoke(String methodName)

invoke

public Instance invoke(String methodName,
                       Object arg)

invoke

public Instance invoke(String methodName,
                       int arg)

stringValue

public String stringValue()

intValue

public int intValue()

value

public Object value()

toString

public String toString()
Overrides:
toString in class Object

longValue

public long longValue()

doubleValue

public double doubleValue()


Copyright © 2012. All Rights Reserved.