10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.bcel.internal.generic;
22
23 import com.sun.org.apache.bcel.internal.Const;
24 import com.sun.org.apache.bcel.internal.Repository;
25 import com.sun.org.apache.bcel.internal.classfile.JavaClass;
26
27 /**
28 * Super class for object and array types.
29 *
30 * @version $Id$
31 */
32 public abstract class ReferenceType extends Type {
33
34 protected ReferenceType(final byte t, final String s) {
35 super(t, s);
36 }
37
38
39 /** Class is non-abstract but not instantiable from the outside
40 */
41 ReferenceType() {
42 super(Const.T_OBJECT, "<null object>");
43 }
44
45
46 /**
47 * Return true iff this type is castable to another type t as defined in
48 * the JVM specification. The case where this is Type.NULL is not
49 * defined (see the CHECKCAST definition in the JVM specification).
50 * However, because e.g. CHECKCAST doesn't throw a
|
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.bcel.internal.generic;
22
23 import com.sun.org.apache.bcel.internal.Const;
24 import com.sun.org.apache.bcel.internal.Repository;
25 import com.sun.org.apache.bcel.internal.classfile.JavaClass;
26
27 /**
28 * Super class for object and array types.
29 *
30 */
31 public abstract class ReferenceType extends Type {
32
33 protected ReferenceType(final byte t, final String s) {
34 super(t, s);
35 }
36
37
38 /** Class is non-abstract but not instantiable from the outside
39 */
40 ReferenceType() {
41 super(Const.T_OBJECT, "<null object>");
42 }
43
44
45 /**
46 * Return true iff this type is castable to another type t as defined in
47 * the JVM specification. The case where this is Type.NULL is not
48 * defined (see the CHECKCAST definition in the JVM specification).
49 * However, because e.g. CHECKCAST doesn't throw a
|