本文整理了Java中org.objectweb.asm.tree.FieldNode.accept()
方法的一些代码示例,展示了FieldNode.accept()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FieldNode.accept()
方法的具体详情如下:
包路径:org.objectweb.asm.tree.FieldNode
类名称:FieldNode
方法名:accept
[英]Makes the given class visitor visit this field.
[中]使给定的类访问者访问此字段。
代码示例来源:origin: kilim/kilim
((FieldNode) cf.fields.get(i)).accept(cv);
代码示例来源:origin: glowroot/glowroot
@RequiresNonNull("type")
private void addMixin(ClassNode mixinClassNode) {
List<FieldNode> fieldNodes = mixinClassNode.fields;
for (FieldNode fieldNode : fieldNodes) {
if (!Modifier.isTransient(fieldNode.access)) {
// this is needed to avoid serialization issues (even if the new field is
// serializable, this can still cause issues in a cluster if glowroot is not
// deployed on all nodes)
throw new IllegalStateException(
"@Mixin fields must be marked transient: " + mixinClassNode.name);
}
fieldNode.accept(this);
}
List<MethodNode> methodNodes = mixinClassNode.methods;
for (MethodNode mn : methodNodes) {
if (mn.name.equals("<init>")) {
continue;
}
String[] exceptions = Iterables.toArray(mn.exceptions, String.class);
MethodVisitor mv =
cw.visitMethod(mn.access, mn.name, mn.desc, mn.signature, exceptions);
mn.accept(new MethodRemapper(mv,
new SimpleRemapper(mixinClassNode.name, type.getInternalName())));
}
}
代码示例来源:origin: org.apache.drill.exec/drill-java-exec
field.accept(this);
代码示例来源:origin: org.ow2.asm/asm-debug-all
fields.get(i).accept(cv);
代码示例来源:origin: org.ow2.asm/asm-tree
fields.get(i).accept(classVisitor);
内容来源于网络,如有侵权,请联系作者删除!