public class BtrpString extends DefaultBtrpOperand
BtrpOperand.Type| Constructor and Description |
|---|
BtrpString(String str)
Make a new element.
|
| Modifier and Type | Method and Description |
|---|---|
BtrpString |
copy() |
int |
degree()
Get the degree of the operand.
|
BtrpNumber |
eq(BtrpOperand other)
Check if this operand is equals to another one.
|
boolean |
equals(Object o) |
int |
hashCode() |
BtrpString |
plus(BtrpOperand o)
Computes the addition of this operand with another one.
|
String |
toString() |
BtrpOperand.Type |
type()
Get the type of the operand.
|
div, geq, gt, label, minus, negate, not, power, prettyType, prettyType, prettyType, remainder, setLabel, timespublic BtrpString(String str)
str - the value of the element.public BtrpString copy()
public BtrpOperand.Type type()
BtrpOperandpublic int degree()
BtrpOperandpublic BtrpNumber eq(BtrpOperand other)
BtrpOperandeq in interface BtrpOperandeq in class DefaultBtrpOperandother - the operand to compare toBtrpNumber.TRUE if both operand are equals, BtrpNumber.FALSE otherwisepublic BtrpString plus(BtrpOperand o)
BtrpOperandplus in interface BtrpOperandplus in class DefaultBtrpOperando - the other operandCopyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.