protected class TreeContextFactory.TreeContext extends JContextFactory.JContext
JContextFactory.JContext.InnerEnumeration
Context.NO_VALUE
Modifier and Type | Field and Description |
---|---|
protected Element |
self_element
element representing the current context.
|
enclosing_context, id
int_value, reference, type, value
Modifier | Constructor and Description |
---|---|
protected |
TreeContext()
Constructs a new TreeContext instance.
|
protected |
TreeContext(Context _context) |
Modifier and Type | Method and Description |
---|---|
protected Element |
addLocalElement(JContextFactory.ContextElement _element,
boolean _check_types)
Adds an Element to the Context if no other exists with the same name.
|
Component |
duplicate() |
Name |
getAbsoluteName() |
protected Element |
getElement(java.lang.String _name,
boolean _local)
Returns the element identified by name, or null if none exists.
|
protected JContextFactory.ContextElement |
newContextElement(Context _container)
Creates a new empty context element.
|
protected void |
recycle() |
java.lang.String |
toString() |
acquire, addElement, addElement, addElement, addElement, addElement, addElement, addOrGetContext, addOrGetContext, addOrGetLocalContext, finalize, getComponent, getElement, getElement, getElements, getFactoryValue, getIntValue, getIntValue, getScope, getValue, handleScopeElement, internalFork, newComponent, newComponent, newContextElement, release, reset, setScope
fork, getComponent, getFactoryValue, getIntValue, getReference, getType, getValue, getValue, setReference
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fork, getComponent, getFactoryValue, getIntValue, getReference, getType, getValue, getValue, setReference
protected Element self_element
protected TreeContext()
protected TreeContext(Context _context)
public java.lang.String toString()
toString
in class JContextFactory.JContext
public Name getAbsoluteName()
protected void recycle()
recycle
in class JContextFactory.JContext
protected Element getElement(java.lang.String _name, boolean _local)
getElement
in class JContextFactory.JContext
name
- local
- if true, don't search the enclosing context.protected Element addLocalElement(JContextFactory.ContextElement _element, boolean _check_types) throws JonathanException
must be called in a synchronized context
addLocalElement
in class JContextFactory.JContext
_name
- the name of the new Element._type
- the declared type of the new Element._value
- the value of the Element to be inserted._int_value
- the integer value of the Element to be inserted._check_types
- indicates whether types should be checked.JonathanException
- if something wrong occurs.public Component duplicate()
duplicate
in class JContextFactory.JContext
protected JContextFactory.ContextElement newContextElement(Context _container)
JContextFactory.JContext
newContextElement
in class JContextFactory.JContext