public ClassReflection(Class<?> handle, boolean recursive) { this.handle = handle; scanFields(handle, recursive); scanMethods(handle, recursive); }
@Override public synchronized Iterator iterator() { return listIterator(); }
@Override public ListIterator<E> listIterator() { return new ListItr(0); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
private static String constructJson(String text) { JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("text", text); return GsonUtil.getGson().toJson(jsonObject); }
@Override public synchronized boolean add(Object o) { handleAdd(o); return this.list.add(o); }
@Override public Iterator<E> iterator() { return new Itr(); }
public void setFieldValue(String fieldName, Object instance, Object value) throws IllegalAccessException { getField(fieldName).set(instance, value); }
@Override public void saveConfig() { this.configFile.getParentFile().mkdirs(); saveConfig(this.configFile, this.config); }
@Override public void reloadConfig() { this.configFile.getParentFile().mkdirs(); this.config = new ConcurrentSkipListMap<>(loadConfig(this.configFile)); }
public YamlConstructor() { super(); yamlClassConstructors.put(NodeId.mapping, new YamlConstructor.ConstructYamlMap()); yamlConstructors.put(Tag.OMAP, new YamlConstructor.ConstructYamlOmap()); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
@Override public synchronized boolean addAll(Collection c) { for (Object o : c) { handleAdd(o); } return this.list.addAll(c); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
@Override public synchronized boolean addAll(int index, Collection c) { for (Object o : c) { handleAdd(o); } return this.list.addAll(index, c); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (PipelineUtil.containsCause(cause, CancelException.class)) return; super.exceptionCaught(ctx, cause); } }