Added isNumber,

This commit is contained in:
Robert Greene 2003-06-14 02:45:17 +00:00
parent 03d7d6f0ba
commit 723c54d549

View File

@ -86,6 +86,14 @@ public class Variable {
return isTypeFloat() || isTypeInteger() || isTypeString();
}
/**
* Answers true if this is a number.
*/
public boolean isNumber() {
return isConstantFloat() || isConstantInteger()
|| isTypeFloat() || isTypeInteger();
}
/**
* Answers true if this is a string constant.
*/