mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 23:29:34 +00:00
Added isNumber,
This commit is contained in:
parent
03d7d6f0ba
commit
723c54d549
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user