ConForM.CoopnTools.CoKer.PackageMgr
Class PackageAuthorSymbol
java.lang.Object
|
+--ConForM.CoopnTools.CoKer.PackageMgr.PackageElement
|
+--ConForM.CoopnTools.CoKer.PackageMgr.PackageSymbol
|
+--ConForM.CoopnTools.CoKer.PackageMgr.PackageAuthorSymbol
- All Implemented Interfaces:
- java.lang.Cloneable, CoopnSyntacticElement, CoopnSyntacticSymbol, java.io.Serializable
- public final class PackageAuthorSymbol
- extends PackageSymbol
Package file author. These symbols associate a module with an author.
- See Also:
PackageElement
, Serialized Form
Constructor Summary |
PackageAuthorSymbol(java.lang.String module,
java.lang.String author,
java.lang.String symbolModule)
Simple constructor. |
PackageAuthorSymbol(java.lang.String module,
java.lang.String author,
java.lang.String symbolModule,
java.lang.String comment)
Simple constructor. |
Method Summary |
java.lang.String |
author()
Return the author. |
boolean |
equals(java.lang.Object obj)
Equality method. |
java.lang.String |
kind()
Kind retrieving method. |
java.lang.String |
module()
Return the module. |
java.lang.String |
toString(CoopnEnv env,
int indent)
String conversion method. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
PackageAuthorSymbol
public PackageAuthorSymbol(java.lang.String module,
java.lang.String author,
java.lang.String symbolModule,
java.lang.String comment)
- Simple constructor.
- Parameters:
moduleKind
- the kind of the modulemodule
- the module namefile
- the file namesymbolModule
- the definition modulecomment
- the associated comment
PackageAuthorSymbol
public PackageAuthorSymbol(java.lang.String module,
java.lang.String author,
java.lang.String symbolModule)
- Simple constructor.
- Parameters:
moduleKind
- the kind of the modulemodule
- the module namefile
- the file namesymbolModule
- the definitin module
module
public java.lang.String module()
- Return the module.
- Returns:
- the module
author
public java.lang.String author()
- Return the author.
- Returns:
- the author
kind
public 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 PackageSymbol
- Following copied from interface:
ConForM.CoopnTools.CoKer.CoopnSyntacticElement
- Parameters:
obj
- the object to compare- Returns:
- true iff this object and the parameter are equals.
toString
public java.lang.String toString(CoopnEnv env,
int indent)
- Description copied from interface:
CoopnSyntacticElement
- String conversion method. This
routine converts an element into a string representing it.
The string representation is intended to be readable from users.
The string representation is not required to include the comments
associated to the element, if any.
- Overrides:
toString
in class PackageSymbol
- Following copied from interface:
ConForM.CoopnTools.CoKer.CoopnSyntacticElement
- Parameters:
env
- the environment deciding the form of the display. A null
values indicates a default form.indent
- the identation factor. A zero value indicates no
indentation at all.- Returns:
- a String image of the element.