com.meyling.principia.logic.paragraph
Class Sentence
java.lang.Object
com.meyling.principia.argument.AbstractArgument
com.meyling.principia.argument.AbstractArgumentList
com.meyling.principia.logic.paragraph.Sentence
- All Implemented Interfaces:
- Argument
- public class Sentence
- extends AbstractArgumentList
- implements Argument
Logical sentence.
- Version:
- $Revision: 1.7 $
- Author:
- Michael Meyling
|
Constructor Summary |
Sentence(Argument[] arguments)
Constructs a mathematical sentence. |
| Methods inherited from class com.meyling.principia.argument.AbstractArgument |
containsPatternVariables, equals, getHighestNumber, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
| Methods inherited from interface com.meyling.principia.argument.Argument |
containsPatternVariables, copy, equals, getArgument, getArgumentSize, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
Sentence
public Sentence(Argument[] arguments)
throws ArgumentException
- Constructs a mathematical sentence.
- Parameters:
arguments - sentence formula
- Throws:
ArgumentException - if there is not exactly one
argument or the first argument is not an instance
of Formula or it contains any
com.meyling.principia.logic.basic.PatternVariable.
create
public final Argument create(Argument[] arguments)
throws ArgumentException
- Description copied from interface:
Argument
- Create a new Argument with given arguments.
- Specified by:
create in interface Argument- Specified by:
create in class AbstractArgumentList
- Throws:
ArgumentException
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 AbstractArgumentList