@Override
public IEObjectConsumer tryConsume() {
if(getEObject().eClass() != grammarAccess.getPreproc_ifdef_ifndefRule().getType().getClassifier())
return null;
if((value = eObjectConsumer.getConsumable("val",true)) == null) return null;
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("val");
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_IFDEF_VALTerminalRuleCall_0_0(), value, null)) {
type = AssignmentType.TERMINAL_RULE_CALL;
element = grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_IFDEF_VALTerminalRuleCall_0_0();
return obj;
}
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_IFNDEF_VALTerminalRuleCall_0_1(), value, null)) {
type = AssignmentType.TERMINAL_RULE_CALL;
element = grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_IFNDEF_VALTerminalRuleCall_0_1();
return obj;
}
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_ELSE_VALTerminalRuleCall_0_2(), value, null)) {
type = AssignmentType.TERMINAL_RULE_CALL;
element = grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_ELSE_VALTerminalRuleCall_0_2();
return obj;
}
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_ENDIF_VALTerminalRuleCall_0_3(), value, null)) {
type = AssignmentType.TERMINAL_RULE_CALL;
element = grammarAccess.getPreproc_ifdef_ifndefAccess().getValPREPROCESSOR_ENDIF_VALTerminalRuleCall_0_3();
return obj;
}
return null;