/** * Validate that all unbound variables are of a PC type. If not, assume * that the user actually made a typo that we took for an implicit * unbound variable. */ protected void assertUnboundVariablesValid() { if (_seenVars == null) return; Value var; for (Map.Entry<String,Value> entry : _seenVars.entrySet()) { var = entry.getValue(); if (var.getMetaData() == null && !isBound(var) && !isDeclaredVariable(entry.getKey())) { throw parseException(EX_USER, "not-unbound-var", new Object[]{ entry.getKey() }, null); } } }
/** * Validate that all unbound variables are of a PC type. If not, assume * that the user actually made a typo that we took for an implicit * unbound variable. */ protected void assertUnboundVariablesValid() { if (_seenVars == null) return; Map.Entry entry; Value var; for (Iterator itr = _seenVars.entrySet().iterator(); itr.hasNext();) { entry = (Map.Entry) itr.next(); var = (Value) entry.getValue(); if (var.getMetaData() == null && !isBound(var) && !isDeclaredVariable((String) entry.getKey())) { throw parseException(EX_USER, "not-unbound-var", new Object[]{ entry.getKey() }, null); } } }
/** * Validate that all unbound variables are of a PC type. If not, assume * that the user actually made a typo that we took for an implicit * unbound variable. */ protected void assertUnboundVariablesValid() { if (_seenVars == null) return; Value var; for (Map.Entry<String,Value> entry : _seenVars.entrySet()) { var = entry.getValue(); if (var.getMetaData() == null && !isBound(var) && !isDeclaredVariable(entry.getKey())) { throw parseException(EX_USER, "not-unbound-var", new Object[]{ entry.getKey() }, null); } } }
/** * Validate that all unbound variables are of a PC type. If not, assume * that the user actually made a typo that we took for an implicit * unbound variable. */ protected void assertUnboundVariablesValid() { if (_seenVars == null) return; Value var; for (Map.Entry<String,Value> entry : _seenVars.entrySet()) { var = entry.getValue(); if (var.getMetaData() == null && !isBound(var) && !isDeclaredVariable(entry.getKey())) { throw parseException(EX_USER, "not-unbound-var", new Object[]{ entry.getKey() }, null); } } }
/** * Validate that all unbound variables are of a PC type. If not, assume * that the user actually made a typo that we took for an implicit * unbound variable. */ protected void assertUnboundVariablesValid() { if (_seenVars == null) return; Value var; for (Map.Entry<String,Value> entry : _seenVars.entrySet()) { var = entry.getValue(); if (var.getMetaData() == null && !isBound(var) && !isDeclaredVariable(entry.getKey())) { throw parseException(EX_USER, "not-unbound-var", new Object[]{ entry.getKey() }, null); } } }