Package org.jpox.enhancer.bcel.method

Source Code of org.jpox.enhancer.bcel.method.JdoProvideFields

/**********************************************************************
Copyright (c) 2004 Kikuchi Kousuke and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Contributors:
    ...
**********************************************************************/
package org.jpox.enhancer.bcel.method;

import org.jpox.enhancer.bcel.BCELClassEnhancer;

import org.apache.bcel.Constants;
import org.apache.bcel.generic.ArrayType;
import org.apache.bcel.generic.Type;

/**
* create jdoProvideFields method.
* @version $Revision: 1.1 $
*/
public class JdoProvideFields extends SwitchTarget
{
    /**
     * @param methodName
     * @param type
     * @param resultType
     * @param argType
     * @param argName
     * @param synthetic
     * @param gen
     * @param invokeMethodName
     */
    public JdoProvideFields(
        String methodName,
        int type,
        Type resultType,
        Type[] argType,
        String[] argName,
        boolean synthetic,
        BCELClassEnhancer gen,
        String invokeMethodName)
    {
        super(methodName, type, resultType, argType, argName, synthetic, gen, invokeMethodName);
    }

    public static JdoProvideFields getInstance(BCELClassEnhancer gen)
    {
        return new JdoProvideFields(
            "jdoProvideFields",
            Constants.ACC_PUBLIC | Constants.ACC_FINAL,
            Type.VOID,
            new Type[] { new ArrayType(Type.INT, 1)},
            new String[] { "fieldId" },
            false,
            gen,
            "jdoProvideField");
    }
}
TOP

Related Classes of org.jpox.enhancer.bcel.method.JdoProvideFields

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.