|
||||||||||
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.scope.UndefinedImpl
public final class UndefinedImpl
Undefined 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 interface railo.runtime.type.scope.Undefined |
---|
MODE_LOCAL_OR_ARGUMENTS_ALWAYS, MODE_LOCAL_OR_ARGUMENTS_ONLY_WHEN_EXISTS, MODE_NO_LOCAL_AND_ARGUMENTS |
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 | |
---|---|
UndefinedImpl(PageContextImpl pc,
short type)
constructor of the class |
Method Summary | |
---|---|
void |
addCollection(Query coll)
add a collection to the undefined scope |
void |
addQuery(Query qry)
add a collection to the undefined scope |
ArgumentPro |
argumentsScope()
|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
void |
clear()
clears the collection |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
boolean |
containsKey(Collection.Key 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 |
getCascading(Collection.Key key)
gets a key from all cascaded scopes, but not from variables scope |
Object |
getCascading(String strKey)
gets a key from all cascaded scopes, but not from variables scope |
boolean |
getCheckArguments()
|
Object |
getCollection(Collection.Key key)
return value matching key, if value is from Query return a QueryColumn |
Object |
getCollection(String key)
return value matching key, if value is from Query return a QueryColumn |
QueryStack |
getCollectionStack()
|
QueryStack |
getQueryStack()
|
Struct |
getScope(String key)
|
List |
getScopeNames()
return a list of String with the scope names |
int |
getType()
|
String |
getTypeAsString()
|
void |
initialize(PageContext pc)
Initalize Scope |
boolean |
isAllowImplicidQueryCall()
|
boolean |
isInitalized()
return if the scope is Initialiesd |
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Scope |
localScope()
|
void |
reinitialize(PageContextImpl pc)
|
void |
release()
release scope for reuse |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
void |
removeCollection()
remove a collection from the undefined scope |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
void |
removeQuery()
remove a collection from the undefined scope |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
boolean |
setAllowImplicidQueryCall(boolean allowImplicidQueryCall)
|
void |
setCollectionStack(QueryStack collStack)
sets a individuell collection stack to the undefined scope |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
void |
setFunctionScopes(Scope local,
Scope argument)
sets the functions scopes |
int |
setMode(int mode)
sets mode of scope |
void |
setQueryStack(QueryStack qryStack)
sets a individual query stack to the undefined scope |
void |
setVariableScope(Scope scope)
change the variable scope |
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Variables |
variablesScope()
|
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
clone, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, sizeOf, toString, valueIterator, values |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.type.Collection |
---|
clone, containsKey, get, get, set, setEL |
Methods inherited from interface railo.runtime.type.Iteratorable |
---|
iterator, valueIterator |
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, values |
Constructor Detail |
---|
public UndefinedImpl(PageContextImpl pc, short type)
pageContextImpl
- type
- type of the undefined scope (ServletConfigImpl.SCOPE_STRICT;ServletConfigImpl.SCOPE_SMALL;ServletConfigImpl.SCOPE_STANDART)Method Detail |
---|
public Scope localScope()
localScope
in interface Undefined
Undefined.localScope()
public ArgumentPro argumentsScope()
public Variables variablesScope()
public int setMode(int mode)
Undefined
setMode
in interface Undefined
mode
- new mode
Undefined.setMode(int)
public void setFunctionScopes(Scope local, Scope argument)
Undefined
setFunctionScopes
in interface Undefined
local
- local scopeargument
- argument scopeUndefined.setFunctionScopes(railo.runtime.type.Scope, railo.runtime.type.Scope)
public QueryStack getCollectionStack()
getCollectionStack
in interface Undefined
Undefined.getCollectionStack()
public QueryStack getQueryStack()
getQueryStack
in interface Undefined
Undefined.getQueryStack()
public void setCollectionStack(QueryStack collStack)
Undefined
setCollectionStack
in interface Undefined
collStack
- new collection stackUndefined.setCollectionStack(railo.runtime.util.QueryStack)
public void setQueryStack(QueryStack qryStack)
Undefined
setQueryStack
in interface Undefined
qryStack
- Query stackUndefined.setQueryStack(railo.runtime.util.QueryStack)
public void addCollection(Query coll)
Undefined
addCollection
in interface Undefined
coll
- Query to add to undefined scopeUndefined.addCollection(railo.runtime.type.Query)
public void addQuery(Query qry)
Undefined
addQuery
in interface Undefined
qry
- Query to add to undefined scopeUndefined.addQuery(railo.runtime.type.Query)
public void removeCollection()
Undefined
removeCollection
in interface Undefined
Undefined.removeCollection()
public void removeQuery()
Undefined
removeQuery
in interface Undefined
Undefined.removeQuery()
public int size()
size
in interface Map
size
in interface Collection
Collection.size()
public String[] keysAsString()
keysAsString
in interface Collection
Collection.keysAsString()
public Collection.Key[] keys()
keys
in interface Collection
Collection.keys()
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
Collection.remove(railo.runtime.type.Collection.Key)
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
Collection.clear()
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower case
PageException
public Object getCollection(String key) throws ExpressionException
Undefined
getCollection
in interface Undefined
ExpressionException
Undefined.getCollection(java.lang.String)
public Struct getScope(String key)
public List getScopeNames()
key
-
public Object getCollection(Collection.Key key) throws PageException
Undefined
getCollection
in interface Undefined
PageException
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object getCascading(String strKey)
Undefined
getCascading
in interface Undefined
strKey
- key to get
Undefined.getCascading(java.lang.String)
public Object getCascading(Collection.Key key)
Undefined
getCascading
in interface Undefined
key
- key to get
Undefined.getCascading(railo.runtime.type.Collection.Key)
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
Collection.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
Collection.set(railo.runtime.type.Collection.Key, java.lang.Object)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public Iterator keyIterator()
keyIterator
in interface Iteratorable
Iteratorable.keyIterator()
public boolean isInitalized()
Scope
isInitalized
in interface Scope
Scope.isInitalized()
public void initialize(PageContext pc)
Scope
initialize
in interface Scope
pc
- Page ContextScope.initialize(railo.runtime.PageContext)
public void reinitialize(PageContextImpl pc)
public void release()
Scope
release
in interface Scope
Scope.release()
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
Collection.duplicate(boolean)
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
Collection.containsKey(railo.runtime.type.Collection.Key)
public String castToString() throws ExpressionException
Castable
castToString
in interface Castable
castToString
in class StructSupport
ExpressionException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
StructSupport.castToString(java.lang.String)
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
ExpressionException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class StructSupport
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws ExpressionException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
ExpressionException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws ExpressionException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
ExpressionException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public int compareTo(boolean b) throws ExpressionException
compareTo
in interface Castable
compareTo
in class StructSupport
ExpressionException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(java.lang.String)
public void setVariableScope(Scope scope)
Undefined
setVariableScope
in interface Undefined
Undefined.setVariableScope(railo.runtime.type.Scope)
public int getType()
getType
in interface Scope
Scope.getType()
public String getTypeAsString()
getTypeAsString
in interface Scope
Scope.getTypeAsString()
public boolean isAllowImplicidQueryCall()
public boolean setAllowImplicidQueryCall(boolean allowImplicidQueryCall)
allowImplicidQueryCall
- the allowImplicidQueryCall to setpublic boolean getCheckArguments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |