de.bodden.tamiflex.playout.transformation.field.FieldSetTransformation.java Source code

Java tutorial

Introduction

Here is the source code for de.bodden.tamiflex.playout.transformation.field.FieldSetTransformation.java

Source

/*******************************************************************************
 * Copyright (c) 2010 Eric Bodden.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Andreas Sewe - initial implementation
 ******************************************************************************/
package de.bodden.tamiflex.playout.transformation.field;

import static de.bodden.tamiflex.playout.rt.Kind.FieldSet;

import org.objectweb.asm.commons.Method;

import de.bodden.tamiflex.playout.rt.Kind;

public class FieldSetTransformation extends AbstractFieldTransformation {

    public FieldSetTransformation() {
        super(new Method("set", "(Ljava/lang/Object;Ljava/lang/Object;)V"),
                new Method("setBoolean", "(Ljava/lang/Object;Z)V"), new Method("setByte", "(Ljava/lang/Object;B)V"),
                new Method("setChar", "(Ljava/lang/Object;C)V"), new Method("setShort", "(Ljava/lang/Object;S)V"),
                new Method("setInt", "(Ljava/lang/Object;I)V"), new Method("setLong", "(Ljava/lang/Object;J)V"),
                new Method("setFloat", "(Ljava/lang/Object;F)V"),
                new Method("setDouble", "(Ljava/lang/Object;D)V"));
    }

    @Override
    protected Kind methodKind() {
        return FieldSet;
    }

}