ConForM.CoopnTools.CoKer.CoalaMgr
Class CoalaField
java.lang.Object
|
+--ConForM.CoopnTools.CoKer.CoalaMgr.CoalaElement
|
+--ConForM.CoopnTools.CoKer.CoalaMgr.CoalaElementList
|
+--ConForM.CoopnTools.CoKer.CoalaMgr.CoalaSymbolList
|
+--ConForM.CoopnTools.CoKer.CoalaMgr.CoalaField
- All Implemented Interfaces:
- java.lang.Cloneable, CoopnSyntacticElement, CoopnSyntacticField, java.io.Serializable
- Direct Known Subclasses:
- CoalaExceptionField, CoalaHandlerField, CoalaObjectField, CoalaResolutionField, CoalaRoleField, CoalaUseCaaField, CoalaUseField, CoalaVariableField
- public abstract class CoalaField
- extends CoalaSymbolList
- implements CoopnSyntacticField
Coala field. This class essentially defines lists of
coala symbols, i.e. elements of the abstract syntax. This class should be
extended by defining an empty constructor and methods for adding,merging and
retrieving the elements of the list; these methods must be based
on the two protected methods "addElement", "mergeElementList" and
"getElement". In addition, it should be extended by defining the two methods
"toText" and "toCompleteText"; these methods must be based on the protected
methods "gettextElements" and "getCompleteTextElements". Lists of
symbols are themselves elements; therefore, this class extends
"CoopnElement". However, the management of lists is generic, and this
class actually implements the abstract methods of class "CoopnElement",
except the methods for converting the list into strings.
- See Also:
CoalaElement
, Serialized Form
Methods inherited from class ConForM.CoopnTools.CoKer.CoalaMgr.CoalaElement |
cloneCoalaElement, toCompleteString, toCompleteString, toCompleteString, toCompleteString, toCompleteString, toCompleteString, toCompleteText, toCompleteText, toString, toString, toString, toText |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CoalaField
public CoalaField()
kind
public abstract java.lang.String kind()
- Kind retrieving method. This method must be defined in the inherited
classes for returning a string allowing the user to know what kind of
field this is.
- Specified by:
kind
in interface CoopnSyntacticField
- Returns:
- a string defining the field kind.
symbols
public CoopnSyntacticSymbol[] symbols()
- Get the symbols of this field.
- Specified by:
symbols
in interface CoopnSyntacticField
- Returns:
- The symbols defined by this field.