Binding v2 DOM Codec - Javassist part
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / main / java / org / opendaylight / mdsal / binding / javav2 / generator / impl / util / javassist / MethodGenerator.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.mdsal.binding.javav2.generator.impl.util.javassist;
9
10 import com.google.common.annotations.Beta;
11 import javassist.CannotCompileException;
12 import javassist.CtMethod;
13
14 /**
15  * Interface allowing generator new methods.
16  */
17 @Beta
18 public interface MethodGenerator {
19
20     /**
21      * Process method.
22      *
23      * @param method
24      *            - method to be generated
25      * @throws CannotCompileException
26      */
27     void process(CtMethod method) throws CannotCompileException;
28 }