|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.parser.Operator
This class describes an term or logical operator. An operator is of either prefix, infix or postfix type and has a minimum and maximum number of operands. It has a symbol or token that enables to recognize it and a QEDEQ representation.
Field Summary | |
static int |
FUNCTION
Marks function operator. |
static int |
INFIX
Marks infix operator. |
static int |
POSTFIX
Marks postfix operator. |
static int |
SIMPLE_PREFIX
Marks prefix operator. |
Constructor Summary | |
Operator(String symbol,
String qedeq,
String qedeqArgument,
int priority,
int type,
int min)
Constructor. |
|
Operator(String symbol,
String qedeq,
String qedeqArgument,
int priority,
int type,
int min,
int max)
Constructor. |
|
Operator(String startSymbol,
String separatorSymbol,
String endSymbol,
String qedeq,
String qedeqArgument,
int priority,
int min)
Constructor for prefix operators like {x | x > 0} . |
|
Operator(String startSymbol,
String separatorSymbol,
String endSymbol,
String qedeq,
String qedeqArgument,
int priority,
int min,
int max)
Constructor for prefix operators like {x, y, z} . |
|
Operator(String startSymbol,
String separatorSymbol,
String endSymbol,
String qedeq,
String qedeqArgument,
int priority,
int type,
int min,
int max)
Constructor. |
Method Summary | |
String |
getEndSymbol()
Returns symbol or token to identify the end of this operator. |
int |
getMax()
Get maximum argument number. |
int |
getMin()
Get minimum argument number. |
int |
getPriority()
Get operator priority. 0 is the highest priority. |
String |
getQedeq()
Get QEDEQ operator name. |
String |
getQedeqArgument()
Get first QEDEQ argument. |
String |
getSeparatorSymbol()
Returns symbol or token to separate different arguments for this operator. |
String |
getStartSymbol()
Returns symbol or token to identify this operator. |
boolean |
isFunction()
Is this a function operator? |
boolean |
isInfix()
Is this an infix operator? |
boolean |
isPostfix()
Is this a postfix operator? |
boolean |
isPrefix()
Is this a prefix operator? |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INFIX
public static final int SIMPLE_PREFIX
public static final int POSTFIX
public static final int FUNCTION
Constructor Detail |
public Operator(String symbol, String qedeq, String qedeqArgument, int priority, int type, int min)
symbol
- Symbol or token for this operator.qedeq
- QEDEQ operator symbol.qedeqArgument
- First Argument in QEDEQ-Syntax - if any.priority
- Operator priority, highest is 0.type
- Prefix, infix or postfix. See SIMPLE_PREFIX
, FUNCTION
,
INFIX
and POSTFIX
.min
- Minimum number of arguments for this operator.public Operator(String symbol, String qedeq, String qedeqArgument, int priority, int type, int min, int max)
symbol
- Symbol or token for this operator.qedeq
- QEDEQ operator symbol.qedeqArgument
- First Argument in QEDEQ-Syntax - if any.priority
- Operator priority, highest is 0.type
- Prefix, infix or postfix. See SIMPLE_PREFIX
,
FUNCTION
,
INFIX
and POSTFIX
.min
- Minimum number of arguments for this operator.max
- Maximum number of arguments for this operator.public Operator(String startSymbol, String separatorSymbol, String endSymbol, String qedeq, String qedeqArgument, int priority, int min)
{x | x > 0}
.
startSymbol
- Starting symbol or token for this operator.separatorSymbol
- Symbol or token that separates arguments for this operator.endSymbol
- End symbol or token for this operator.qedeq
- QEDEQ operator symbol.qedeqArgument
- First Argument in QEDEQ-Syntax - if anypriority
- Operator priority, highest is 0.min
- Minimum number of arguments for this operator.public Operator(String startSymbol, String separatorSymbol, String endSymbol, String qedeq, String qedeqArgument, int priority, int min, int max)
{x, y, z}
.
startSymbol
- Starting symbol or token for this operator.separatorSymbol
- Symbol or token that separates arguments for this operator.endSymbol
- End symbol or token for this operator.qedeq
- QEDEQ operator symbol.qedeqArgument
- First Argument in QEDEQ-Syntax - if any.priority
- Operator priority, highest is 0.min
- Minimum number of arguments for this operator.max
- Maximum number of arguments for this operator.public Operator(String startSymbol, String separatorSymbol, String endSymbol, String qedeq, String qedeqArgument, int priority, int type, int min, int max)
startSymbol
- Starting symbol or token for this operator.separatorSymbol
- Symbol or token that separates arguments for this operator.endSymbol
- End symbol or token for this operator.qedeq
- QEDEQ operator symbol.qedeqArgument
- First Argument in QEDEQ-Syntax - if any.priority
- Operator priority, highest is 0.type
- Prefix, infix or postfix. See SIMPLE_PREFIX
,
FUNCTION
, INFIX
and POSTFIX
.min
- Minimum number of arguments for this operator.max
- Maximum number of arguments for this operator.Method Detail |
public final String getStartSymbol()
public String getSeparatorSymbol()
null
if this is a prefix operator.
public String getEndSymbol()
null
if this is a prefix operator.
null
.public final boolean isInfix()
public final boolean isPrefix()
public final boolean isFunction()
public final boolean isPostfix()
public final int getPriority()
public final int getMin()
public final int getMax()
public final String getQedeq()
public final String getQedeqArgument()
null
.public final String toString()
|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |