Package ptolemy.data

Examples of ptolemy.data.ShortToken


                        // If the size was specified as long, then create a long.
                        jjtn003._ptToken = new LongToken(Long.parseLong(x,
                                radix));
                    } else if (mustBeShort) {
                        // If the size was specified as short, then create a short.
                        jjtn003._ptToken = new ShortToken(Integer.parseInt(x,
                                radix));
                    } else if (mustBeUnsignedByte) {
                        // If the size was specified as unsignedbyte,
                        // then create an unsigned byte, truncating if necessary.
                        jjtn003._ptToken = new UnsignedByteToken(Integer
View Full Code Here


            // the sign involved...  In lieu of a signed byte token,
            // we assume that methods that return byte should be
            // interpreted unsigned.
            returnValue = new UnsignedByteToken(((Byte) object).byteValue());
        } else if (object instanceof Short) {
            returnValue = new ShortToken(((Short) object).shortValue());
        } else if (object instanceof Integer) {
            returnValue = new IntToken(((Integer) object).intValue());
        } else if (object instanceof Long) {
            returnValue = new LongToken(((Long) object).longValue());
        } else if (object instanceof Double) {
View Full Code Here

TOP

Related Classes of ptolemy.data.ShortToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.