|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplugins.adufour.vars.lang.Var
plugins.adufour.vars.lang.VarMutable
plugins.adufour.vars.lang.VarMutableArray
public class VarMutableArray
Variable holding an array of mutable type
| Field Summary |
|---|
| Fields inherited from class plugins.adufour.vars.lang.Var |
|---|
NO_VALUE, type, XML_KEY_ID |
| Constructor Summary | |
|---|---|
VarMutableArray(java.lang.String name,
java.lang.Class<?> initialType)
|
|
| Method Summary | ||
|---|---|---|
|
getElementAt(int index)
|
|
boolean |
isAssignableFrom(Var source)
Checks whether the type of the given variable is equal or extends this variable's type. If the result is true, then the given variable can become a link source for this variable |
|
int |
size()
|
|
| Methods inherited from class plugins.adufour.vars.lang.VarMutable |
|---|
addTypeChangeListener, createVarEditor, createVarViewer, removeTypeChangeListener, setDefaultEditorModel, setReference, setType, setValue |
| Methods inherited from class plugins.adufour.vars.lang.Var |
|---|
addListener, fireVariableChanged, fireVariableChanged, getDefaultEditorModel, getDefaultValue, getIterableReferrers, getName, getReference, getReferencingPolicy, getReferrers, getType, getTypeAsString, getValue, getValue, getValueAsString, getValueAsString, isEnabled, isOptional, isReferenced, loadFromXML, parse, prettyPrint, referenceChanged, removeListener, removeListeners, saveToXML, setEnabled, setOptional, setReferencingPolicy, toString, valueChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VarMutableArray(java.lang.String name,
java.lang.Class<?> initialType)
| Method Detail |
|---|
public boolean isAssignableFrom(Var source)
Var
isAssignableFrom in class VarMutable
public <T> T getElementAt(int index)
throws java.lang.NullPointerException,
java.lang.ClassCastException
index - the index to retrieve
java.lang.NullPointerException - if the variable value is null
java.lang.ClassCastException - if the inferred type is incompatible with the array elementpublic int size()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||