/** * Creates a new InstructionAdder that will copy classes into the given * target code attribute. */ public InstructionAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer) { constantAdder = new ConstantAdder(targetClass); codeAttributeComposer = targetComposer; }
/** * Creates a new ParameterInfoAdder that will copy parameter information * into the given target method parameters attribute. */ public ParameterInfoAdder(ProgramClass targetClass, MethodParametersAttribute targetMethodParametersAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.targetMethodParametersAttribute = targetMethodParametersAttribute; }
/** * Creates a new ParameterInfoAdder that will copy parameter information * into the given target method parameters attribute. */ public ParameterInfoAdder(ProgramClass targetClass, MethodParametersAttribute targetMethodParametersAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.targetMethodParametersAttribute = targetMethodParametersAttribute; }
/** * Creates a new ExceptionAdder that will copy exceptions into the given * target code attribute. */ public ExceptionInfoAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer) { constantAdder = new ConstantAdder(targetClass); codeAttributeComposer = targetComposer; }
/** * Creates a new TypeAnnotationAdder that will copy annotations into the given * target annotation element value. */ public TypeAnnotationAdder(ProgramClass targetClass, AnnotationElementValue targetAnnotationElementValue) { this.targetClass = targetClass; this.targetAnnotationElementValue = targetAnnotationElementValue; this.annotationsAttributeEditor = null; constantAdder = new ConstantAdder(targetClass); }
/** * Creates a new TypeAnnotationAdder that will copy annotations into the given * target annotation element value. */ public TypeAnnotationAdder(ProgramClass targetClass, AnnotationElementValue targetAnnotationElementValue) { this.targetClass = targetClass; this.targetAnnotationElementValue = targetAnnotationElementValue; this.annotationsAttributeEditor = null; constantAdder = new ConstantAdder(targetClass); }
/** * Creates a new ExceptionAdder that will copy exceptions into the given * target code attribute. */ public ExceptionInfoAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer) { constantAdder = new ConstantAdder(targetClass); codeAttributeComposer = targetComposer; }
/** * Creates a new InstructionAdder that will copy classes into the given * target code attribute. */ public InstructionAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer) { constantAdder = new ConstantAdder(targetClass); codeAttributeComposer = targetComposer; }
/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }
/** * Creates a new LocalVariableInfoAdder that will copy line numbers into the * given target line number table. */ public LocalVariableInfoAdder(ProgramClass targetClass, LocalVariableTableAttribute targetLocalVariableTableAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.localVariableTableAttributeEditor = new LocalVariableTableAttributeEditor(targetLocalVariableTableAttribute); }
/** * Creates a new LocalVariableTypeInfoAdder that will copy local variable * types into the given target local variable type table. */ public LocalVariableTypeInfoAdder(ProgramClass targetClass, LocalVariableTypeTableAttribute targetLocalVariableTypeTableAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.localVariableTypeTableAttributeEditor = new LocalVariableTypeTableAttributeEditor(targetLocalVariableTypeTableAttribute); }
/** * Creates a new LocalVariableInfoAdder that will copy local variables * into the given target local variable table. */ public LocalVariableInfoAdder(ProgramClass targetClass, LocalVariableTableAttribute targetLocalVariableTableAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.localVariableTableAttributeEditor = new LocalVariableTableAttributeEditor(targetLocalVariableTableAttribute); }
/** * Creates a new LocalVariableInfoAdder that will copy local variables * into the given target local variable table. */ public LocalVariableInfoAdder(ProgramClass targetClass, LocalVariableTableAttribute targetLocalVariableTableAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.localVariableTableAttributeEditor = new LocalVariableTableAttributeEditor(targetLocalVariableTableAttribute); }
/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }
/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }
/** * Creates a new LocalVariableTypeInfoAdder that will copy local variable * types into the given target local variable type table. */ public LocalVariableTypeInfoAdder(ProgramClass targetClass, LocalVariableTypeTableAttribute targetLocalVariableTypeTableAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.localVariableTypeTableAttributeEditor = new LocalVariableTypeTableAttributeEditor(targetLocalVariableTypeTableAttribute); }
/** * Creates a new TypeAnnotationAdder that will copy annotations into the given * target annotations attribute. */ public TypeAnnotationAdder(ProgramClass targetClass, AnnotationsAttribute targetAnnotationsAttribute) { this.targetClass = targetClass; this.targetAnnotationElementValue = null; this.annotationsAttributeEditor = new AnnotationsAttributeEditor(targetAnnotationsAttribute); constantAdder = new ConstantAdder(targetClass); }
/** * Creates a new InterfaceAdder that will add interfaces to the given * target class. */ public InterfaceAdder(ProgramClass targetClass) { constantAdder = new ConstantAdder(targetClass); interfacesEditor = new InterfacesEditor(targetClass); }
/** * Creates a new BootstrapMethodInfoAdder that will copy bootstrap methods * into the given bootstrap methods attribute. */ public BootstrapMethodInfoAdder(ProgramClass targetClass, BootstrapMethodsAttribute targetBootstrapMethodsAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.bootstrapMethodsAttributeEditor = new BootstrapMethodsAttributeEditor(targetBootstrapMethodsAttribute); }
/** * Creates a new BootstrapMethodInfoAdder that will copy bootstrap methods * into the given bootstrap methods attribute. */ public BootstrapMethodInfoAdder(ProgramClass targetClass, BootstrapMethodsAttribute targetBootstrapMethodsAttribute) { this.constantAdder = new ConstantAdder(targetClass); this.bootstrapMethodsAttributeEditor = new BootstrapMethodsAttributeEditor(targetBootstrapMethodsAttribute); }