mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-09-29 15:56:06 +00:00
Added isNumber,
This commit is contained in:
parent
03d7d6f0ba
commit
723c54d549
@ -86,6 +86,14 @@ public class Variable {
|
|||||||
return isTypeFloat() || isTypeInteger() || isTypeString();
|
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.
|
* Answers true if this is a string constant.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user