Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / yangtools / sal / binding / generator / util / NullSourceCodeGenerator.java
1 /*
2  * Copyright (c) 2014 Brocade Communications Systems, Inc. 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
9 package org.opendaylight.yangtools.sal.binding.generator.util;
10
11 import javassist.CtClass;
12 import javassist.CtField;
13 import javassist.CtMethod;
14
15 /**
16  * Implementation of the SourceCodeGenerator interface that does nothing.
17  *
18  * @author Thomas Pantelis
19  */
20 public class NullSourceCodeGenerator implements SourceCodeGenerator {
21
22     @Override
23     public void appendField( CtField field, String value ) {
24     }
25
26     @Override
27     public void appendMethod( CtMethod method, String code ) {
28     }
29
30     @Override
31     public void outputGeneratedSource( CtClass ctClass ) {
32     }
33 }