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
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
PackageUseField
public PackageUseField()
- Simple constructor.
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.