public class ImgLibNumberFactory extends Object implements org.nfunk.jep.type.NumberFactory
FloatType
class.
As of now, we do not deal with complex numbers. Everytime we meet a complex number, we take only its real part.
Constructor and Description |
---|
ImgLibNumberFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
createNumber(boolean value) |
Object |
createNumber(org.nfunk.jep.type.Complex value) |
Object |
createNumber(double value) |
Object |
createNumber(float value) |
Object |
createNumber(int value) |
Object |
createNumber(Number value) |
Object |
createNumber(short value) |
Object |
createNumber(String value) |
Object |
getMinusOne() |
Object |
getOne() |
Object |
getTwo() |
Object |
getZero() |
public Object createNumber(String value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(double value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(int value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(short value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(float value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(boolean value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(Number value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object createNumber(org.nfunk.jep.type.Complex value) throws org.nfunk.jep.ParseException
createNumber
in interface org.nfunk.jep.type.NumberFactory
org.nfunk.jep.ParseException
public Object getMinusOne()
getMinusOne
in interface org.nfunk.jep.type.NumberFactory
public Object getOne()
getOne
in interface org.nfunk.jep.type.NumberFactory
public Object getTwo()
getTwo
in interface org.nfunk.jep.type.NumberFactory
public Object getZero()
getZero
in interface org.nfunk.jep.type.NumberFactory
Copyright © 2015–2021 Fiji. All rights reserved.