[all packages]
[package BR.unicamp.Guarana]
[class hierarchy]
[index]
public abstract class BR.unicamp.Guarana.Composer
(source file: /home/lsd/oliva/src/java/guarana/kaffe/libraries/extensions/guarana/javalib/BR/unicamp/Guarana/Composer.java)
java.lang.Object
|
+----BR.unicamp.Guarana.MetaObject
|
+----BR.unicamp.Guarana.Composer
The pure class interface.
public abstract class Composer
extends MetaObject
- Composers are MetaObjects that delegate operations to other
MetaObjects. The only difference between a MetaObject and a
Composer is semantic: a Composer is expected to delegate operation
handling to other MetaObjects, while non-Composers are expected to
handle operations by themselves. A Composer must implement at
least one method that will return the set of MetaObjects it
delegates to.
- Composer()
-
- getMetaObjects()
- Provides the set of MetaObjects the Composer delegates to
- getMetaObjectsArray()
- Provides an array of MetaObjects this Composer delegates to,
that is ensured not to
Composer
public Composer();
getMetaObjects
public abstract Enumeration getMetaObjects();
- Provides the set of MetaObjects the Composer delegates to. The
Enumeration may contain non-MetaObject objects that mark up
semantics of delegation. Thus, concurrent MetaObjects may be
preceded and followed by such objects; MetaObjects that are only
invoked conditionally may be marked so, etc. There are no
predefined marks.
Even if the Composer does not delegate to any MetaObject, it
must return a non-null Enumeration. The Enumeration must
reflect the set of MetaObjects at the moment of the invocation
of this method; if the set of MetaObjects changes thereafter,
the Enumeration must NOT change accordingly. It must iterate on
a copy of the current set, or prevent any modification thereof.
- Returns:
- an unmodifiable set of MetaObjects the Composer
delegates to as an Enumeration.
getMetaObjectsArray
public synchronized MetaObject[] getMetaObjectsArray();
- Provides an array of MetaObjects this Composer delegates to,
that is ensured not to change. It must be a copy of the current
set of MetaObjects, or the array must be ensured not to change.
The default behavior is to count the number of MetaObjects
in the Enumeration returned by getMetaObjects(), then create an
array that large, and copy references to the MetaObjects into
that array. Mark up non-MetaObjects are ignored.
- Returns:
- an unmodifiable array of MetaObjects.
[all packages]
[package BR.unicamp.Guarana]
[class hierarchy]
[index]
BR.unicamp.Guarana.Composer.html