public Object getObject()
    {
        try
        {
            switch (pType)
            {
                case FIELD:
                    return connectedField.get(connectedObject);
                    
                case METHOD:
                    return connectedField.get(connectedObject);
            }
        }
        catch (IllegalArgumentException | IllegalAccessException e)
        {
            e.printStackTrace();
        }
        
        return null;
    }