|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-05 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--org.ecmascript.object.Global
public abstract class Global extends Object
Global.
prefix.
Field Summary |
|
---|---|
public static Number |
|
public static Number |
|
public static Object |
|
Fields inherited from org.ecmascript.object.Object |
constructor, prototype |
Method Summary |
|
---|---|
public static String |
|
public static String |
|
public static String |
|
public static String |
|
public static String |
|
public static Object |
|
public static Boolean |
|
public static Boolean |
|
public static Number |
|
public static Number |
|
public static String |
|
Field Detail |
---|
public static Number Infinity
Number.POSITIVE_INFINITY
public static Number NaN
NaN
would result from someone trying to parse a String
that cannot be converted into a Number
.Number.NaN
, NaN
, and isNaN()
:
NaN == Number.NaN
has a result of false
.NaN === Number.NaN
has a result of false
.NaN == NaN
has a result of false
.NaN === NaN
has a result of false
.Number.NaN == Number.NaN
has a result of false
.Number.NaN === Number.NaN
has a result of false
.isNaN(NaN)
has a result of true
.isNaN(Number.NaN)
has a result of true
.isNaN(String)
Number.NaN
public static Object undefined
undefined
and null
:
var test;
var result = (test == undefined);
result
has a result of true
.var test = undefined;
var result = (test == undefined);
result
has a result of true
.var test = null;
var result = (test == undefined);
result
has a result of true
.var test;
var result = (test === undefined);
result
has a result of true
.var test = undefined;
var result = (test === undefined);
result
has a result of true
.var test = null;
var result = (test === undefined);
result
has a result of false
.
Method Detail |
---|
public static String decodeURI(String encodedURI)
encodedURI |
- | the encoded URI to decode |
String
- the decoded URIencodeURI(String)
public static String decodeURIComponent(String encodedURIComponent)
encodedURIComponent |
- | the encoded URI component to decode |
String
- the decoded URI componentencodeURIComponent(String)
public static String encodeURI(String nonEncodedURI)
nonEncodedURI |
- | the non-encoded URI to encode |
String
- the encoded URIdecodeURI(String)
public static String encodeURIComponent(String nonEncodedURIComponent)
nonEncodedURIComponent |
- | the non-encoded URI component to decode |
String
- the encoded URI componentdecodeURIComponent(String)
public static String escape(String nonEscapedValue)
encodeURIComponent(String)
insteadnonEscapedValue |
- | the string to URI-encode |
String
- the URI-encoded stringencodeURIComponent(String)
public static Object eval(Number codeToEvaluate)
codeToEvaluate |
- | the code to evaluate |
Object
- the resulting object of the evaluated codeSyntaxError
if parsing of the code failsEvalError
if the code cannot be evaluated or throws an exceptionpublic static Boolean isFinite(Number number)
number |
- | the number to test |
Boolean
- true if the number is finite, false if the number is NaN
, positive infinity, or negative infinityNaN
Number.NaN
Number.NEGATIVE_INFINITY
Number.POSITIVE_INFINITY
public static Boolean isNaN(String value)
x == NaN
x === NaN
value |
- | the string or number to test |
Boolean
- true if the value cannot be parsed into a number or represents NaN
or Number.NaN
, false if the value can be parsed into a numberNaN
Number.NaN
public static Number parseFloat(String value)
parseFloat("3.14")
parseFloat("314e-2")
parseFloat("0.0314E+2")
parseFloat("3.14hello world")
parseFloat("foo1")
would return NaN
.value |
- | the value to parse into a floating point number |
Number
- the resulting floating point number or NaN if the value could not be parsedNaN
isNaN(String)
public static Number parseInt(String value,
Number radix)
parseInt("11")
parseInt("1011", 2)
parseInt("13", 8)
parseInt("013")
parseInt("11", 10)
parseInt("11.9999999", 10)
parseInt("B", 16)
parseInt("Bhello world123", 16)
parseInt("foo1")
and parseInt("321", 2)
would return NaN
.value |
- | the value to parse into a floating point number |
radix |
- | optional base radix of the given value, e.g. 2 for binary, 8 for octal, 10 for decimal, and 16 for hexadecimal; by default the radix is 16 if the specified value begins with "0x", 8 if the specified value begins with "0" (deprecated), or 10 otherwise |
Number
- the resulting integer number or NaN if the value could not be parsed as a number of the specified base radixNaN
isNaN(String)
public static String unescape(String escapedValue)
decodeURIComponent(String)
insteadescapedValue |
- | the string to URI-decode |
String
- the URI-decoded stringdecodeURIComponent(String)
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-05 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |