ConForM.CoopnTools.CoKer.PackageMgr
Class PackageUseField

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

public final class PackageUseField
extends PackageField
implements CoopnSyntacticUseField

Package use fields.

See Also:
PackageElement, Serialized Form

Fields inherited from class ConForM.CoopnTools.CoKer.PackageMgr.PackageField
symbols
 
Constructor Summary
PackageUseField()
          Simple constructor.
 
Method Summary
 void add(java.util.List symbols)
           
 void add(PackageUseSymbol symbol)
           
 PackageUseSymbol[] elements()
          Get the symbols of this field.
 boolean equals(java.lang.Object obj)
          Equality method.
 int hashCode()
          Hashcode method.
 java.lang.String kind()
          Kind retrieving method.
 void merge(PackageUseField field)
           
 int moduleKind()
          get the module kind.
 void remove(PackageUseSymbol symbol)
           
 
Methods inherited from class ConForM.CoopnTools.CoKer.PackageMgr.PackageField
add, clone, remove, size, symbols, toString, unmodifiableCopy
 
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.CoopnSyntacticField
symbols
 
Methods inherited from interface ConForM.CoopnTools.CoKer.CoopnSyntacticElement
clone, toCompleteString, toCompleteString, toCompleteString, toString, toString, toString
 

Constructor Detail

PackageUseField

public PackageUseField()
Simple constructor.
Method Detail

add

public void add(PackageUseSymbol symbol)

add

public void add(java.util.List symbols)

remove

public void remove(PackageUseSymbol symbol)

merge

public void merge(PackageUseField field)

elements

public PackageUseSymbol[] elements()
Get the symbols of this field.
Returns:
The symbols defined by 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.
Specified by:
kind in interface CoopnSyntacticField
Returns:
a string defining the symbol kind.

moduleKind

public int moduleKind()
get the module kind.
Specified by:
moduleKind in interface CoopnSyntacticUseField

equals

public boolean equals(java.lang.Object obj)
Description copied from interface: CoopnSyntacticElement
Equality method. Must be defined in the inherited classes.
Specified by:
equals in interface CoopnSyntacticElement
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.
Specified by:
hashCode in interface CoopnSyntacticElement
Overrides:
hashCode in class PackageField
Following copied from interface: ConForM.CoopnTools.CoKer.CoopnSyntacticElement
Returns:
the hash code.