operatortoken.java

来自「JAVA 数学程序库 提供常规的数值计算程序包」· Java 代码 · 共 42 行

JAVA
42
字号
package jmathlib.core.tokens;

//import MathLib.Interpreter.RootObject;
//import MathLib.Casts.CastClass;

/**The base class of all operators used in an expression*/
abstract public class OperatorToken extends Token
{

    /**Char representing the operator*/
    protected char value;

    /**default constructor*/
    public OperatorToken()
    {
    	super();
    }

    /**constructor,
    @param _priority, the operators priority */
    public OperatorToken(int _priority)
    {
        super(_priority);
    }
    
    /**@return the value of the operator*/
    public char getValue()
    {
        return value;
    }
    
    /**
     * 
     * @return priority of given operator
     */
    public int getPriority()
    {
        return priority;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?