ConForM.CoopnTools.CoKer.PackageMgr
Class PackageEntryField

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.PackageMgr.PackageElement
        |
        +--ConForM.CoopnTools.CoKer.PackageMgr.PackageField
              |
              +--ConForM.CoopnTools.CoKer.PackageMgr.PackageEntryField
All Implemented Interfaces:
java.lang.Cloneable, CoopnSyntacticElement, CoopnSyntacticField, java.io.Serializable

public final class PackageEntryField
extends PackageField

Package fields of file module entries.

See Also:
PackageElement, Serialized Form

Fields inherited from class ConForM.CoopnTools.CoKer.PackageMgr.PackageField
symbols
 
Constructor Summary
PackageEntryField(int moduleKind)
          Simple constructor.
 
Method Summary
 void add(java.util.List entries)
           
 void add(PackageEntrySymbol entry)
           
 java.lang.Object clone()
          Cloning method.
 PackageEntrySymbol[] elements()
          Get the symbols of this field.
 PackageEntrySymbol entryOf(java.lang.String module)
          Return the entry symbol for the particular module, or null if the module is not defined in this field.
 boolean equals(java.lang.Object obj)
          Equality method.
 int hashCode()
          Hashcode method.
 java.lang.String kind()
          Kind retrieving method.
 void merge(PackageEntryField field)
           
 int moduleKind()
          Kind retrieving method.
 void remove(PackageEntrySymbol entry)
           
 java.lang.Object unmodifiableCopy()
          Copy the element into an unmodififable structure.
 
Methods inherited from class ConForM.CoopnTools.CoKer.PackageMgr.PackageField
add, remove, size, symbols, toString
 
Methods inherited from class ConForM.CoopnTools.CoKer.PackageMgr.PackageElement
clonePackageElement, toCompleteString, toCompleteString, toCompleteString, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ConForM.CoopnTools.CoKer.CoopnSyntacticElement
toCompleteString, toCompleteString, toCompleteString, toString, toString
 

Constructor Detail

PackageEntryField

public PackageEntryField(int moduleKind)
Simple constructor.
Parameters:
moduleKind - the kind of the module
Method Detail

moduleKind

public int moduleKind()
Kind retrieving method.
Returns:
the field kind.

add

public void add(PackageEntrySymbol entry)

add

public void add(java.util.List entries)

remove

public void remove(PackageEntrySymbol entry)

merge

public void merge(PackageEntryField field)

elements

public PackageEntrySymbol[] elements()
Get the symbols of this field.
Returns:
The symbols defined by this field.

entryOf

public final PackageEntrySymbol entryOf(java.lang.String module)
Return the entry symbol for the particular module, or null if the module is not defined in this field.

kind

public final 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 symbol this is.
Returns:
a string defining the symbol kind.

equals

public boolean equals(java.lang.Object obj)
Description copied from interface: CoopnSyntacticElement
Equality method. Must be defined in the inherited classes.
Overrides:
equals in class PackageField
Following copied from interface: ConForM.CoopnTools.CoKer.CoopnSyntacticElement
Parameters:
obj - the object to compare
Returns:
true iff this object and the parameter are equals.

hashCode

public int hashCode()
Description copied from interface: CoopnSyntacticElement
Hashcode method. Must be defined in the inherited classes.
Overrides:
hashCode in class PackageField
Following copied from interface: ConForM.CoopnTools.CoKer.CoopnSyntacticElement
Returns:
the hash code.

unmodifiableCopy

public java.lang.Object unmodifiableCopy()
Copy the element into an unmodififable structure.
Overrides:
unmodifiableCopy in class PackageField
Returns:
an unmodififable clone of the element.

clone

public java.lang.Object clone()
Description copied from interface: CoopnSyntacticElement
Cloning method. Must be defined in the inherited classes.
Overrides:
clone in class PackageField
Following copied from interface: ConForM.CoopnTools.CoKer.CoopnSyntacticElement
Returns:
a clone object.