public enum JavaScriptType extends Enum<JavaScriptType>
Enum
with types available in JavaScript.Enum Constant and Description |
---|
ARRAY
An
array . |
BOOLEAN
A
Boolean flag. |
DATE
A
String . |
INTEGER
|
NUMBER
A decimal
Number . |
OBJECT
Any other data
Object . |
STRING
A
String . |
TYPE
A type as
String . |
VOID
The
Void type. |
Modifier and Type | Method and Description |
---|---|
String |
getExample() |
String |
getName() |
String |
toString() |
static JavaScriptType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaScriptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaScriptType NUMBER
Number
.public static final JavaScriptType INTEGER
public static final JavaScriptType BOOLEAN
Boolean
flag.public static final JavaScriptType ARRAY
array
.public static final JavaScriptType STRING
String
.public static final JavaScriptType DATE
String
.public static final JavaScriptType TYPE
String
.public static final JavaScriptType VOID
Void
type.public static final JavaScriptType OBJECT
Object
.public static JavaScriptType[] values()
for (JavaScriptType c : JavaScriptType.values()) System.out.println(c);
public static JavaScriptType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public String getExample()
public String toString()
toString
in class Enum<JavaScriptType>
Copyright © 2015–2021 MojoHaus. All rights reserved.