001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: *
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: /**
020: * @author Vasily Zakharov
021: * @version $Revision: 1.1.2.1 $
022: */package org.apache.harmony.rmi.compiler;
023:
024: /**
025: * This interface contains various useful constants for RMI Compiler.
026: *
027: * @author Vasily Zakharov
028: * @version $Revision: 1.1.2.1 $
029: */
030: interface RmicConstants {
031:
032: /**
033: * System-dependent end-of-line string
034: * {@link System#getProperty(String) System.getProperty("line.separator")}.
035: */
036: String EOLN = System.getProperty("line.separator"); //$NON-NLS-1$
037:
038: /**
039: * Stub classes name suffix (<code>_Stub</code>).
040: */
041: String stubSuffix = "_Stub"; //$NON-NLS-1$
042:
043: /**
044: * Skeleton classes name suffix (<code>_Skel</code>).
045: */
046: String skelSuffix = "_Skel"; //$NON-NLS-1$
047:
048: /**
049: * Java source files name suffix (<code>.java</code>).
050: */
051: String javaSuffix = ".java"; //$NON-NLS-1$
052:
053: /**
054: * Java class files name suffix (<code>.class</code>).
055: */
056: String classSuffix = ".class"; //$NON-NLS-1$
057:
058: /**
059: * Method variables name prefix.
060: */
061: String methodVarPrefix = "$method_"; //$NON-NLS-1$
062:
063: /**
064: * Parameters name prefix.
065: */
066: String paramPrefix = "$param_"; //$NON-NLS-1$
067:
068: /**
069: * Array type prefix in parameter name.
070: */
071: String arrayPrefix = "arrayOf_"; //$NON-NLS-1$
072:
073: /**
074: * Return result variable name.
075: */
076: String retVarName = "$result"; //$NON-NLS-1$
077:
078: /**
079: * interfaceHash variable name.
080: */
081: String interfaceHashVarName = "interfaceHash"; //$NON-NLS-1$
082:
083: /**
084: * useNewInvoke variable name.
085: */
086: String useNewInvoke = "useNewInvoke"; //$NON-NLS-1$
087:
088: /**
089: * Input object stream name.
090: */
091: String inputStreamName = "in"; //$NON-NLS-1$
092:
093: /**
094: * Output object stream name.
095: */
096: String outputStreamName = "out"; //$NON-NLS-1$
097:
098: /**
099: * Version was not set, initial version value.
100: *
101: * @todo: all VERSION constants should be moved to enum for Java 5.0.
102: */
103: int VERSION_NOT_SET = 0;
104:
105: /**
106: * Option to create RMI v1.1 stub.
107: */
108: int VERSION_V11 = 1;
109:
110: /**
111: * Option to create RMI v1.2 stub.
112: */
113: int VERSION_V12 = 2;
114:
115: /**
116: * Option to create RMI v1.1/v1.2 compatible stub.
117: */
118: int VERSION_VCOMPAT = 3;
119:
120: /**
121: * Option to create IDL stub.
122: */
123: int VERSION_IDL = 4;
124:
125: /**
126: * Option to create IIOP stub.
127: */
128: int VERSION_IIOP = 5;
129:
130: /**
131: * Smallest possible option value.
132: */
133: int MIN_VERSION = VERSION_V11;
134:
135: /**
136: * Largest possible option value.
137: */
138: int MAX_VERSION = VERSION_IIOP;
139: }
|