From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- .../com/ericsson/otp/erlang/OtpExternal.java | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 lib/jinterface/java_src/com/ericsson/otp/erlang/OtpExternal.java (limited to 'lib/jinterface/java_src/com/ericsson/otp/erlang/OtpExternal.java') diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpExternal.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpExternal.java new file mode 100644 index 0000000000..e70b9a786b --- /dev/null +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpExternal.java @@ -0,0 +1,105 @@ +/* + * %CopyrightBegin% + * + * Copyright Ericsson AB 2000-2009. All Rights Reserved. + * + * The contents of this file are subject to the Erlang Public License, + * Version 1.1, (the "License"); you may not use this file except in + * compliance with the License. You should have received a copy of the + * Erlang Public License along with this software. If not, it can be + * retrieved online at http://www.erlang.org/. + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and limitations + * under the License. + * + * %CopyrightEnd% + */ +package com.ericsson.otp.erlang; + +/** + * Provides a collection of constants used when encoding and decoding Erlang + * terms. + */ +public class OtpExternal { + // no constructor + private OtpExternal() { + } + + /** The tag used for small integers */ + public static final int smallIntTag = 97; + + /** The tag used for integers */ + public static final int intTag = 98; + + /** The tag used for floating point numbers */ + public static final int floatTag = 99; + public static final int newFloatTag = 70; + + /** The tag used for atoms */ + public static final int atomTag = 100; + + /** The tag used for old stype references */ + public static final int refTag = 101; + + /** The tag used for ports */ + public static final int portTag = 102; + + /** The tag used for PIDs */ + public static final int pidTag = 103; + + /** The tag used for small tuples */ + public static final int smallTupleTag = 104; + + /** The tag used for large tuples */ + public static final int largeTupleTag = 105; + + /** The tag used for empty lists */ + public static final int nilTag = 106; + + /** The tag used for strings and lists of small integers */ + public static final int stringTag = 107; + + /** The tag used for non-empty lists */ + public static final int listTag = 108; + + /** The tag used for binaries */ + public static final int binTag = 109; + + /** The tag used for bitstrs */ + public static final int bitBinTag = 77; + + /** The tag used for small bignums */ + public static final int smallBigTag = 110; + + /** The tag used for large bignums */ + public static final int largeBigTag = 111; + + /** The tag used for old new Funs */ + public static final int newFunTag = 112; + + /** The tag used for external Funs (M:F/A) */ + public static final int externalFunTag = 113; + + /** The tag used for new style references */ + public static final int newRefTag = 114; + + /** The tag used for old Funs */ + public static final int funTag = 117; + + /** The tag used for compressed terms */ + public static final int compressedTag = 80; + + /** The version number used to mark serialized Erlang terms */ + public static final int versionTag = 131; + + /** The largest value that can be encoded as an integer */ + public static final int erlMax = (1 << 27) - 1; + + /** The smallest value that can be encoded as an integer */ + public static final int erlMin = -(1 << 27); + + /** The longest allowed Erlang atom */ + public static final int maxAtomLength = 255; +} -- cgit v1.2.3