| package org.eclipse.e4.languages.javascript.jsdi; |
| |
| /** |
| * Abstract representation of a {@link Number} value with-respect-to JavaScript debugging. |
| * |
| * @since 0.9 |
| */ |
| public interface NumberValue extends Value { |
| |
| /** |
| * Represents the value for 'Not A Number' |
| */ |
| public static final String NAN = "NaN"; //$NON-NLS-1$ |
| /** |
| * Represents the value for negative infinity |
| */ |
| public static final String NEG_INFINITY = "-Infinity"; //$NON-NLS-1$ |
| /** |
| * Represents the value for positive infinity |
| */ |
| public static final String INFINITY = "Infinity"; //$NON-NLS-1$ |
| |
| /** |
| * Returns the underlying {@link Number} value for this value.<br> |
| * <br> |
| * This method can return <code>null</code> if its value value is not a number. |
| * |
| * @return the underlying {@link Number} value |
| * @see #NAN |
| */ |
| public Number value(); |
| |
| /** |
| * Returns if the this {@link NumberValue} is a valid number or not. |
| * |
| * @return true if this is a valid number false otherwise. |
| * @see #NAN |
| */ |
| boolean isNaN(); |
| } |