Class JavaValueGetter

  • All Implemented Interfaces:
    ValueGetter

    public class JavaValueGetter
    extends java.lang.Object
    implements ValueGetter
    Implementation, which uses Java-reflection
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaValueGetter​(java.lang.reflect.Field f)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.Object obj)  
      boolean getBoolean​(java.lang.Object obj)  
      byte getByte​(java.lang.Object obj)  
      char getChar​(java.lang.Object obj)  
      double getDouble​(java.lang.Object obj)  
      float getFloat​(java.lang.Object obj)  
      int getInt​(java.lang.Object obj)  
      long getLong​(java.lang.Object obj)  
      short getShort​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaValueGetter

        public JavaValueGetter​(java.lang.reflect.Field f)
    • Method Detail

      • getBoolean

        public boolean getBoolean​(java.lang.Object obj)
                           throws java.lang.IllegalAccessException
        Specified by:
        getBoolean in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getChar

        public char getChar​(java.lang.Object obj)
                     throws java.lang.IllegalAccessException
        Specified by:
        getChar in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getByte

        public byte getByte​(java.lang.Object obj)
                     throws java.lang.IllegalAccessException
        Specified by:
        getByte in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getShort

        public short getShort​(java.lang.Object obj)
                       throws java.lang.IllegalAccessException
        Specified by:
        getShort in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getInt

        public int getInt​(java.lang.Object obj)
                   throws java.lang.IllegalAccessException
        Specified by:
        getInt in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getLong

        public long getLong​(java.lang.Object obj)
                     throws java.lang.IllegalAccessException
        Specified by:
        getLong in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getFloat

        public float getFloat​(java.lang.Object obj)
                       throws java.lang.IllegalAccessException
        Specified by:
        getFloat in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • getDouble

        public double getDouble​(java.lang.Object obj)
                         throws java.lang.IllegalAccessException
        Specified by:
        getDouble in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException
      • get

        public java.lang.Object get​(java.lang.Object obj)
                             throws java.lang.IllegalAccessException
        Specified by:
        get in interface ValueGetter
        Throws:
        java.lang.IllegalAccessException