'Return currently assigned component of the |ASN.1| object.
Returns
: :py:class:`~pyasn1.type.base.PyAsn1Item`
a PyASN1 object'

def getComponent(self, innerFlag=0):

    if (self._currentIdx is None):
        raise error.PyAsn1Error('Component    not    chosen')
    else:
        c = self._componentValues[self._currentIdx]
        if (innerFlag and isinstance(c, Choice)):
            return c.getComponent(innerFlag)
        else:
            return c
