|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.scope.ScopeSupport
railo.runtime.type.scope.ArgumentImpl
public final class ArgumentImpl
implementation of the argument scope
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class railo.runtime.type.scope.ScopeSupport |
---|
APPLICATION, CGI, CLIENT, CLUSTER, COOKIE, FORM, REQUEST, SCOPE_COUNT, SCOPE_VAR, SESSION, URL |
Fields inherited from class railo.runtime.type.StructImpl |
---|
TYPE_SOFT |
Fields inherited from interface railo.runtime.type.scope.ArgumentPro |
---|
NULL |
Fields inherited from interface railo.runtime.type.Scope |
---|
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VARIABLES |
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
ArgumentImpl()
constructor of the class |
Method Summary | |
---|---|
Object |
append(Object o)
append a new value to the end of the array |
Object |
appendEL(Object o)
|
boolean |
containsFunctionArgumentKey(Collection.Key key)
|
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsKey(int key)
contains this key |
Collection |
duplicate(boolean deepCopy)
|
Object |
get(Collection.Key key)
return a value from the collection |
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
Object |
get(int intKey,
Object defaultValue)
return object a given position, key can only be a integer from 1 to array len |
int |
getDimension()
return dimension of the array |
Object |
getE(int intKey)
return a value matching to key |
Object |
getFunctionArgument(Collection.Key key,
Object defaultValue)
|
Object |
getFunctionArgument(String key,
Object defaultValue)
|
boolean |
insert(int index,
Object value)
insert a value add defined position |
boolean |
insert(int index,
String key,
Object value)
insert a key in argument scope at defined position |
int[] |
intKeys()
|
boolean |
isBind()
|
Object |
prepend(Object o)
add a new value to the begin of the array |
void |
release()
release scope for reuse |
Object |
removeE(int intKey)
removes a value ad defined key |
Object |
removeEL(int intKey)
removes a value ad defined key |
void |
resize(int to)
resize array to defined size |
Object |
setArgument(Object obj)
|
void |
setBind(boolean bind)
sets if scope is binded to a other variable for using outside of a udf |
Object |
setE(int intKey,
Object value)
set value at defined position |
Object |
setEL(int intKey,
Object value)
set value at defined position, on error return null |
void |
setFunctionArgumentNames(Set functionArgumentNames)
|
void |
sort(String sortType,
String sortOrder)
sort values of a array |
Object[] |
toArray()
|
static Array |
toArray(Argument arg)
converts a argument scope to a regular array |
ArrayList |
toArrayList()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
List |
toList()
|
static Struct |
toStruct(Argument arg)
converts a argument scope to a regular struct |
Methods inherited from class railo.runtime.type.scope.ScopeSupport |
---|
_getId, getType, getTypeAsString, initialize, isInitalized, sizeOf, toDumpData |
Methods inherited from class railo.runtime.type.StructImpl |
---|
clear, containsValue, copy, keyIterator, keys, keysAsString, remove, remove, removeEL, set, setEL, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.type.Scope |
---|
getType, getTypeAsString, initialize, isInitalized |
Methods inherited from interface railo.runtime.type.Collection |
---|
clear, clone, containsKey, get, get, keys, keysAsString, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface railo.runtime.type.Iteratorable |
---|
iterator, keyIterator, valueIterator |
Methods inherited from interface railo.runtime.op.Castable |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public ArgumentImpl()
Method Detail |
---|
public void release()
Scope
release
in interface Scope
release
in class ScopeSupport
ScopeSupport.release()
public void setBind(boolean bind)
Argument
setBind
in interface Argument
setBind
in interface BindScope
Argument.setBind(boolean)
public boolean isBind()
isBind
in interface Argument
isBind
in interface BindScope
Argument.isBind()
public Object getFunctionArgument(String key, Object defaultValue)
getFunctionArgument
in interface ArgumentPro
public Object getFunctionArgument(Collection.Key key, Object defaultValue)
getFunctionArgument
in interface ArgumentPro
public boolean containsFunctionArgumentKey(Collection.Key key)
containsFunctionArgumentKey
in interface ArgumentPro
ArgumentPro.containsFunctionArgumentKey(railo.runtime.type.Collection.Key)
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to get
StructImpl.get(railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(Collection.Key key) throws ExpressionException
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to get must be lower case
ExpressionException
StructImpl.get(railo.runtime.type.Collection.Key)
public Object get(int intKey, Object defaultValue)
Array
get
in interface Array
intKey
- key as integer
Array.get(int, java.lang.Object)
public Object getE(int intKey) throws PageException
getE
in interface Array
intKey
-
PageException
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class ScopeSupport
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public int getDimension()
Array
getDimension
in interface Array
Array.getDimension()
public Object setEL(int intKey, Object value)
Array
setEL
in interface Array
intKey
- key of the new valuevalue
- value to set
Array.setEL(int, java.lang.Object)
public Object setE(int intKey, Object value) throws PageException
Array
setE
in interface Array
PageException
Array.setE(int, java.lang.Object)
public int[] intKeys()
intKeys
in interface Array
Array.intKeys()
public boolean insert(int index, Object value) throws ExpressionException
Array
insert
in interface Array
index
- position to insertvalue
- value to insert
ExpressionException
Array.insert(int, java.lang.Object)
public boolean insert(int index, String key, Object value) throws ExpressionException
Argument
insert
in interface Argument
ExpressionException
Argument.insert(int, java.lang.String, java.lang.Object)
public Object append(Object o) throws PageException
Array
append
in interface Array
o
- value to insert
PageException
Array.append(java.lang.Object)
public Object appendEL(Object o)
appendEL
in interface Array
Array.appendEL(java.lang.Object)
public Object prepend(Object o) throws PageException
Array
prepend
in interface Array
o
- value to insert
PageException
Array.prepend(java.lang.Object)
public void resize(int to) throws PageException
Array
resize
in interface Array
to
- new minimum size of the array
PageException
Array.resize(int)
public void sort(String sortType, String sortOrder) throws ExpressionException
Array
sort
in interface Array
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)
ExpressionException
Array.sort(java.lang.String, java.lang.String)
public Object[] toArray()
toArray
in interface Array
Array.toArray()
public Object setArgument(Object obj) throws PageException
setArgument
in interface ArgumentPro
PageException
public ArrayList toArrayList()
railo.runtime.type.Array#toArrayList()
public Object removeE(int intKey) throws PageException
Array
removeE
in interface Array
intKey
- key to remove
PageException
Array.removeE(int)
public Object removeEL(int intKey)
Array
removeEL
in interface Array
intKey
- key to remove
Array.removeEL(int)
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
containsKey
in class StructImpl
StructImpl.containsKey(railo.runtime.type.Collection.Key)
public boolean containsKey(int key)
Array
containsKey
in interface Array
Array.containsKey(int)
public List toList()
toList
in interface Array
Array.toList()
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
duplicate
in class StructImpl
StructImpl.duplicate(boolean)
public void setFunctionArgumentNames(Set functionArgumentNames)
setFunctionArgumentNames
in interface ArgumentPro
public static Struct toStruct(Argument arg)
arg
- argument scope to convert
public static Array toArray(Argument arg)
arg
- argument scope to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |