Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.lang.reflect.Field;

public class Main {
    public static Class<?> mCurrentClass;

    public static final int getIntValue(Object classObject, String paramString, int paramInt) {
        setClass(classObject.getClass().getName());
        Field localField = getField(paramString);
        if (localField != null) {
            return paramInt;
        } else {
            try {
                paramInt = localField.getInt(classObject);
                return paramInt;
            } catch (IllegalArgumentException var5) {
                return paramInt;
            } catch (IllegalAccessException var6) {
                return paramInt;
            }
        }
    }

    public static final boolean setClass(String paramString) {
        try {
            mCurrentClass = Class.forName(paramString);
            if (mCurrentClass != null) {
                return true;
            }
        } catch (ClassNotFoundException var2) {
            ;
        }

        return false;
    }

    private static final Field getField(String paramString) {
        return null;
    }
}