com.sun.org.apache.bcel.internal.generic.FieldGen

Here are the examples of the java api class com.sun.org.apache.bcel.internal.generic.FieldGen taken from open source projects.

1. Stylesheet#addDOMField()

Project: openjdk
Source File: Stylesheet.java
View license
private void addDOMField(ClassGenerator classGen) {
    final FieldGen fgen = new FieldGen(ACC_PUBLIC, Util.getJCRefType(DOM_INTF_SIG), DOM_FIELD, classGen.getConstantPool());
    classGen.addField(fgen.getField());
}

2. Stylesheet#addStaticField()

Project: openjdk
Source File: Stylesheet.java
View license
/**
     * Add a static field
     */
private void addStaticField(ClassGenerator classGen, String type, String name) {
    final FieldGen fgen = new FieldGen(ACC_PROTECTED | ACC_STATIC, Util.getJCRefType(type), name, classGen.getConstantPool());
    classGen.addField(fgen.getField());
}