public abstract static class UntrustedInterfaces.Pill extends Object
private static final class GoodPill extends Pill { public void setField() { field = new TestConstant(); } public void setStaticField() { staticField = new TestConstant(); } public int callMe(CallBack callback) { return callback.callBack(new TestConstant()); } public TestInterface get() { return new TestConstant(); } } private static final class TestConstant implements TestInterface { public int method() { return 42; } }
Modifier and Type | Field and Description |
---|---|
UntrustedInterfaces.TestInterface |
field |
static UntrustedInterfaces.TestInterface |
staticField |
Constructor and Description |
---|
Pill() |
Modifier and Type | Method and Description |
---|---|
abstract int |
callMe(UntrustedInterfaces.CallBack callback) |
abstract UntrustedInterfaces.TestInterface |
get() |
abstract void |
setField() |
abstract void |
setStaticField() |
public static UntrustedInterfaces.TestInterface staticField
public UntrustedInterfaces.TestInterface field
public Pill()
public abstract void setField()
public abstract void setStaticField()
public abstract int callMe(UntrustedInterfaces.CallBack callback)
public abstract UntrustedInterfaces.TestInterface get()