MCPcopy Index your code
hub / github.com/clojure/clojure / FieldWriter

Method FieldWriter

src/jvm/clojure/asm/FieldWriter.java:120–138  ·  view source on GitHub ↗

Constructs a new FieldWriter. @param symbolTable where the constants used in this FieldWriter must be stored. @param access the field's access flags (see Opcodes). @param name the field's name. @param descriptor the field's descriptor (see Type). @param signature the field's

(
      final SymbolTable symbolTable,
      final int access,
      final String name,
      final String descriptor,
      final String signature,
      final Object constantValue)

Source from the content-addressed store, hash-verified

118 * @param constantValue the field's constant value. May be <tt>null</tt>.
119 */
120 FieldWriter(
121 final SymbolTable symbolTable,
122 final int access,
123 final String name,
124 final String descriptor,
125 final String signature,
126 final Object constantValue) {
127 super(Opcodes.ASM6);
128 this.symbolTable = symbolTable;
129 this.accessFlags = access;
130 this.nameIndex = symbolTable.addConstantUtf8(name);
131 this.descriptorIndex = symbolTable.addConstantUtf8(descriptor);
132 if (signature != null) {
133 this.signatureIndex = symbolTable.addConstantUtf8(signature);
134 }
135 if (constantValue != null) {
136 this.constantValueIndex = symbolTable.addConstant(constantValue).index;
137 }
138 }
139
140 // -----------------------------------------------------------------------------------------------
141 // Implementation of the FieldVisitor abstract class

Callers

nothing calls this directly

Calls 2

addConstantUtf8Method · 0.80
addConstantMethod · 0.80

Tested by

no test coverage detected