|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.prim.SafeJ
Untamed:
Field Summary | |
static SafeJ |
ALL
Enabled: |
private static String[] |
ALWAYS_REMOVE
|
private static ConstMap |
AlwaysRemove
|
private static FlexSet |
ApprovedClasses
|
private static String[] |
ApprovedClassList
For classes for which there's no safej file. |
private String |
myBaseName
|
private boolean |
myInheritFlag
|
private ConstMap |
myOptMap
|
static SafeJ |
NONE
Enabled: |
private static IdentityCacheTable |
SAFEJ_CACHE
|
Constructor Summary | |
SafeJ(String baseName,
ConstMap optMap,
boolean inheritFlag)
Enabled: |
Method Summary | |
static boolean |
approve(Class clazz,
boolean safe)
Enabled: Is clazz approved at this safety level? |
SafeJ |
forInheritance()
Enabled: |
String |
getBaseName()
Enabled: Only for debugging purposes. |
boolean |
getInheritFlag()
Enabled: Is this SafeJ object being used to check addition or inheritance? |
ConstMap |
getOptMap()
Enabled: An optional mapping from flat signatures to interned strings representing an enumeration of cases of what to do this methods matching that signature. |
static Term |
getOptSafeJTerm(String fqn)
Enabled: |
(package private) static SafeJ |
getSafeJ(Class clazz,
Class optSugar,
boolean staticFlag)
|
(package private) static Object |
getStaticValue(Class clazz,
String fieldName,
Object instead)
Gets the value of clazz's static public field named 'fieldName'. |
SafeJ |
or(SafeJ other)
Enabled: |
boolean |
shouldAllow(String flatSig)
Enabled: @see #getOptMap() |
String |
toString()
Suppressed: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String[] ApprovedClassList
XXX What happens if a class has a safej file and is listed here as well?
private static final FlexSet ApprovedClasses
private static final String[] ALWAYS_REMOVE
private static final ConstMap AlwaysRemove
private static final IdentityCacheTable SAFEJ_CACHE
public static final SafeJ NONE
public static final SafeJ ALL
private final String myBaseName
private final ConstMap myOptMap
private final boolean myInheritFlag
Constructor Detail |
public SafeJ(String baseName, ConstMap optMap, boolean inheritFlag)
Method Detail |
public static Term getOptSafeJTerm(String fqn)
public static boolean approve(Class clazz, boolean safe)
If approved when safe==true this means a StaticMaker
on clazz
follows capability discipline and provides no authority, and so can be
imported with <import:...>.
If approved when safe==false, then a StaticMaker on clazz can be imported with <unsafe:...>, even once we enforce the invisibility of untamed classes.
static SafeJ getSafeJ(Class clazz, Class optSugar, boolean staticFlag)
static Object getStaticValue(Class clazz, String fieldName, Object instead)
If there is no such field, return 'instead' instead.
public String toString()
toString
in class Object
public String getBaseName()
public ConstMap getOptMap()
public boolean getInheritFlag()
public boolean shouldAllow(String flatSig)
public SafeJ or(SafeJ other)
public SafeJ forInheritance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |