|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joe_e.JoeE
public class JoeE
Joe-E core library functions. These provide fundamental features, similar
to the methods in java.lang.System
, such as the interface to the
overlay type system.
Method Summary | |
---|---|
static java.lang.Error |
abort(java.lang.Error reason)
Aborts the current flow of control. |
static boolean |
instanceOf(java.lang.Object obj,
java.lang.Class<?> type)
Tests whether the specified object belongs to the specified type in the overlay type system. |
static boolean |
isFrozen(java.lang.Object x)
Is the object one-level deep immutable? |
static boolean |
isSubtypeOf(java.lang.Class<?> c1,
java.lang.Class<?> c2)
Tests whether the first class is a subtype of the second in the overlay type system. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean instanceOf(java.lang.Object obj, java.lang.Class<?> type)
instanceof
operator, for the overlay type system.
obj
- the object to testtype
- the type to test membership of
public static boolean isSubtypeOf(java.lang.Class<?> c1, java.lang.Class<?> c2)
c1
- the potential subtypec2
- the potential supertype
public static java.lang.Error abort(java.lang.Error reason)
reason
- reason for the abort
public static boolean isFrozen(java.lang.Object x)
x
- candidate object
true
if x
is one-level deep immutable,
false
if it might not be
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.