* @param node the node being exited
*
* @return the node to add to the parse tree
*/
protected Node exitIndexValue(Production node) {
SnmpIndex index;
Object obj = getChildValues(node).get(0);
switch (node.getChildAt(0).getId()) {
case Asn1Constants.VALUE:
index = new SnmpIndex(false, (MibValue) obj, null);
break;
case Asn1Constants.IMPLIED:
index = new SnmpIndex(true, (MibValue) obj, null);
break;
default:
index = new SnmpIndex(false, null, (MibType) obj);
}
node.addValue(index);
return node;
}