Class NumericConstant
- java.lang.Object
-
- org.protelis.lang.interpreter.impl.AbstractProtelisAST<T>
-
- org.protelis.lang.interpreter.impl.Constant<java.lang.Double>
-
- org.protelis.lang.interpreter.impl.NumericConstant
-
- All Implemented Interfaces:
java.io.Serializable
,ProtelisAST<java.lang.Double>
,WithBytecode
public final class NumericConstant extends Constant<java.lang.Double>
A numerical constant.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NumericConstant(Metadata metadata, double number)
NumericConstant(Metadata metadata, java.lang.String number)
-
Method Summary
-
Methods inherited from class org.protelis.lang.interpreter.impl.Constant
evaluate, getBytecode, getConstantValue, getName, toString
-
Methods inherited from class org.protelis.lang.interpreter.impl.AbstractProtelisAST
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringFor
-
-