Hilbert II - JAVA-Packages - Principia Mathematica II

com.meyling.principia.argument
Class Text

java.lang.Object
  extended bycom.meyling.principia.argument.AbstractArgument
      extended bycom.meyling.principia.argument.AbstractArgumentAtom
          extended bycom.meyling.principia.argument.Text
All Implemented Interfaces:
Argument

public class Text
extends AbstractArgumentAtom
implements Argument

An object of this class represents a text string.

Version:
$Revision: 1.5 $
Author:
Michael Meyling

Constructor Summary
Text(String text)
          Constructs a Text.
 
Method Summary
 Argument copy()
          Returns an identical object (maybe "this").
 boolean equals(Object object)
          Is this object equal to the given one?
 String getText()
          Get the text.
 String toString()
          Get the argument in String form.
 
Methods inherited from class com.meyling.principia.argument.AbstractArgumentAtom
create, getArgument, getArgumentSize
 
Methods inherited from class com.meyling.principia.argument.AbstractArgument
containsPatternVariables, getHighestNumber, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.meyling.principia.argument.Argument
containsPatternVariables, create, getArgument, getArgumentSize, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches
 

Constructor Detail

Text

public Text(String text)
Constructs a Text.

Parameters:
text - text string
Throws:
IllegalArgumentException - if text was a nullpointer
Method Detail

getText

public final String getText()
Get the text.

Returns:
text

equals

public final boolean equals(Object object)
Description copied from interface: Argument
Is this object equal to the given one? This is true iff object is an instance of Argument and both arguments have the same Argument.getArgumentSize() and each Argument.getArgument(int) Argument.equals(java.lang.Object).

Specified by:
equals in interface Argument
Specified by:
equals in class AbstractArgumentAtom

copy

public final Argument copy()
Description copied from interface: Argument
Returns an identical object (maybe "this").

Specified by:
copy in interface Argument
Specified by:
copy in class AbstractArgumentAtom

toString

public final String toString()
Description copied from interface: Argument
Get the argument in String form.

Specified by:
toString in interface Argument
Specified by:
toString in class AbstractArgumentAtom

Hilbert II - JAVA-Packages - Principia Mathematica II

©left GNU General Public Licence
All Rights Reserved.