private ByteCodeVisitor setDownstream($.Var<? extends ClassVisitor> cv) { E.illegalStateIf(null != this.cv); _cv = cv; return this; }
public ByteCodeVisitor setDownstream(ClassVisitor cv) { E.illegalStateIf(null != this.cv); this.cv = cv; return this; }
public ByteCodeVisitor setDownstream(ClassVisitor cv) { E.illegalStateIf(null != this.cv); this.cv = cv; return this; }
@Override public void onClose(WebSocketContext context) { E.illegalStateIf(null == realListener); realListener.onClose(context); } }
@Override public void onConnect(WebSocketContext context) { E.illegalStateIf(null == realListener); realListener.onConnect(context); }
@Override public void onConnect(WebSocketContext context) { E.illegalStateIf(null == realListener); realListener.onConnect(context); }
public static String bindName(Annotation[] annotations, String defVal) { String name = tryFindBindName(annotations, defVal); E.illegalStateIf(null == name, "Cannot find bind name"); return name; }
void createdAtField(EntityFieldMetaInfo fieldInfo) { E.illegalStateIf(null != createdAtField, "createdAt field already set"); this.createdAtField = $.requireNotNull(fieldInfo); }
private Class<T> exploreTypeInfo() { List<Type> types = Generics.typeParamImplementations(getClass(), ActProvider.class); int sz = types.size(); E.illegalStateIf(1 != sz, "generic type number not match"); Type type = types.get(0); E.illegalArgumentIf(!(type instanceof Class), "generic type is not a class: %s", type); return (Class) type; }
void addJob(Job job) { String id = job.id(); E.illegalStateIf(jobs.containsKey(id), "job already registered: %s", id); jobs.put(id, job); Method method = job.method(); if (null != method) { methodIndex.put(method, job); } }
public SenderMethodMetaInfo addLocal(LocalVariableMetaInfo local) { Label start = local.start(); Map<Integer, LocalVariableMetaInfo> m = locals.get(start); if (null == m) { m = new HashMap<>(); locals.put(start, m); } int index = local.index(); E.illegalStateIf(m.containsKey(index), "Local variable index conflict"); m.put(local.index(), local); return this; }
public SenderMethodMetaInfo addLocal(LocalVariableMetaInfo local) { Label start = local.start(); Map<Integer, LocalVariableMetaInfo> m = locals.get(start); if (null == m) { m = new HashMap<>(); locals.put(start, m); } int index = local.index(); E.illegalStateIf(m.containsKey(index), "Local variable index conflict"); m.put(local.index(), local); return this; }
@Deprecated public <DI extends DependencyInjector> App injector(DI dependencyInjector) { E.NPE(dependencyInjector); E.illegalStateIf(null != this.dependencyInjector, "Dependency injection factory already set"); throw E.unsupport(); }
public ByteCodeVisitor commitDownstream() { if (null == _cv && null != cv && cv instanceof ByteCodeVisitor) { ((ByteCodeVisitor) cv).commitDownstream(); return this; } E.illegalStateIf(null == _cv || null != cv); cv = _cv.get(); return this; }
public T addLocal(LocalVariableMetaInfo local) { Label start = local.start(); Map<Integer, LocalVariableMetaInfo> m = locals.get(start); if (null == m) { m = new HashMap<>(); locals.put(start, m); } int index = local.index(); E.illegalStateIf(m.containsKey(index), "Local variable index conflict"); m.put(local.index(), local); return me(); }
public T addLocal(LocalVariableMetaInfo local) { Label start = local.start(); Map<Integer, LocalVariableMetaInfo> m = locals.get(start); if (null == m) { m = new HashMap<>(); locals.put(start, m); } int index = local.index(); E.illegalStateIf(m.containsKey(index), "Local variable index conflict"); m.put(local.index(), local); return me(); }
private Object[] params(Object job, JobContext ctx) { if (null != paramValueLoaderService) { return paramValueLoaderService.loadMethodParams(job, method, ctx); } E.illegalStateIf(paramTypes().length > 0, "Cannot invoke job with parameters before app fully started"); return new Object[0]; }
@Override public final void setApp(App app) { E.NPE(app); E.illegalStateIf(null != this.app && this.app != app, "%s has already been stamped", this); this.app = app; onAppSet(); }
public ByteCodeVisitor commitDownstream() { if (null == _cv && null != cv && cv instanceof ByteCodeVisitor) { ((ByteCodeVisitor) cv).commitDownstream(); return this; } E.illegalStateIf(null == _cv || null != cv); cv = _cv.get(); return this; }
public static RequestServerRestart requestRestart() { E.illegalStateIf(!isDev()); throw new RequestServerRestart(); }