
public class JsElementalBase extends JavaScriptObject implements Mappable, Indexable, IndexableInt, IndexableNumber, Settable, SettableInt, SettableNumber
| Modifier | Constructor and Description |
|---|---|
protected |
JsElementalBase() |
| Modifier and Type | Method and Description |
|---|---|
Object |
at(int index)
Gets the value at a given index.
|
Object |
at(String key)
Gets the value at a given key.
|
int |
intAt(int index)
Gets the value at a given index.
|
int |
intAt(String key) |
int |
length()
Gets the length of the array.
|
double |
numberAt(int index)
Gets the value at a given index.
|
double |
numberAt(String key) |
void |
setAt(int index,
double value)
Gets the value at a given index.
|
void |
setAt(int index,
int value)
Gets the value at a given index.
|
void |
setAt(int index,
Object value)
Gets the value at a given index.
|
void |
setAt(String key,
double value) |
void |
setAt(String key,
int value) |
void |
setAt(String key,
Object value)
Sets the value at a given key.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic final Object at(int index)
Indexablepublic final double numberAt(int index)
IndexableNumbernumberAt in interface IndexableNumberindex - the index to be retrievedpublic final int intAt(int index)
IndexableIntintAt in interface IndexableIntindex - the index to be retrievedpublic final int length()
Indexablelength in interface Indexablelength in interface IndexableIntlength in interface IndexableNumberpublic final void setAt(int index,
Object value)
Settablepublic final void setAt(int index,
double value)
SettableNumbersetAt in interface SettableNumberindex - the index to be retrievedvalue - the value to be setpublic final void setAt(int index,
int value)
SettableIntsetAt in interface SettableIntindex - the index to be retrievedvalue - the value to be setpublic final Object at(String key)
Mappablepublic final int intAt(String key)
public final double numberAt(String key)
public final void setAt(String key, Object value)
Mappablepublic final void setAt(String key, int value)
public final void setAt(String key, double value)
Copyright © 2016. All rights reserved.