Class EmitterFactory.FieldInsnEmitter
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.EmitterFactory.FieldInsnEmitter
-
- All Implemented Interfaces:
java.util.function.Consumer<org.objectweb.asm.MethodVisitor>
,UnaryVoidFunction<org.objectweb.asm.MethodVisitor>
,EmitterFactory.Emitter
- Enclosing class:
- EmitterFactory
private static class EmitterFactory.FieldInsnEmitter extends java.lang.Object implements EmitterFactory.Emitter
-
-
Constructor Summary
Constructors Constructor Description FieldInsnEmitter(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
The opcode must be one of the PUT/GET FIELD/STATIC instructions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
void
evaluate(org.objectweb.asm.MethodVisitor mv)
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.pfl.basic.func.UnaryVoidFunction
accept
-
-
-
-
Constructor Detail
-
FieldInsnEmitter
public FieldInsnEmitter(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
The opcode must be one of the PUT/GET FIELD/STATIC instructions.- Parameters:
Owner
- is the class name containing the field. This is constructed from ASMUtil.bcName( cgen.name() ).Name
- is the name of the field.Desc
- is the field's descriptor. This is obtained from the Type.signature() method.
-
-
Method Detail
-
evaluate
public void evaluate(org.objectweb.asm.MethodVisitor mv)
- Specified by:
evaluate
in interfaceUnaryVoidFunction<org.objectweb.asm.MethodVisitor>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-