drcl.ruv
Class ShellContract.Message
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.comp.Message
|
+--drcl.ruv.ShellContract.Message
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- Enclosing class:
- ShellContract
- public static class ShellContract.Message
- extends Message
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ShellContract.Message
public ShellContract.Message()
ShellContract.Message
public ShellContract.Message(int type_,
java.lang.String ss_)
ShellContract.Message
public ShellContract.Message(int type_,
java.lang.String ss_,
int pos_)
ShellContract.Message
public ShellContract.Message(int type_,
java.lang.String ss_,
java.lang.String[] args_)
getType
public int getType()
getContent
public java.lang.String getContent()
getCommand
public java.lang.String getCommand()
getFileName
public java.lang.String getFileName()
getResult
public java.lang.String getResult()
getPrompt
public java.lang.String getPrompt()
getPosition
public int getPosition()
getArguments
public java.lang.String[] getArguments()
duplicate
public void duplicate(java.lang.Object source_)
- Description copied from class:
DrclObj
- opies the content of the
source_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
- Overrides:
duplicate in class DrclObj
clone
public java.lang.Object clone()
- Description copied from class:
DrclObj
- Returns a clone of this object.
By default, this method creates an object of the same class and
calls
DrclObj.duplicate(Object) to duplicate the content of this object to
the newly-created one.
This method uses getClass().newInstance() to create
new instance. Hence,
subclasses need to override this method only if the subclass is not
declared as public or does not have explicit no-argument constructor.
A subclass may override this method for performance reason.
- Overrides:
clone in class DrclObj
getName
public java.lang.String getName()
getContract
public Contract getContract()
- Description copied from class:
Message
- Returns the associated contract of this message.
- Overrides:
getContract in class Message
toString
public java.lang.String toString(java.lang.String separator_)
- Description copied from class:
Message
- Prints the content of the message by separating each field with the separator string.
- Overrides:
toString in class Message
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~