org.lsmp.djep.rpe
Class RpCommand
java.lang.Object
org.lsmp.djep.rpe.RpCommand
public final class RpCommand
- extends Object
Data type for the command string
toString
public String toString()
- Overrides:
toString in class Object
getType
public int getType()
- Returns the type of an individual command. The return value will be one of the constants defined in RpEval.
These include RpEval.CONST - constants, RpEval.VAR - variables, RpEval.ASSIGN assinments x=..., RpEval.FUN functions.
Other indicies correspond to unary and binary operators, RpEval.ADD.
- Returns:
- an integer representing the type
getRef
public int getRef()
getConstantValue
public double getConstantValue()
throws ParseException
- Throws:
ParseException
getVariable
public Variable getVariable()
throws ParseException
- Throws:
ParseException
getFunction
public String getFunction()
throws ParseException
- Throws:
ParseException
Copyright © 2014. All rights reserved.