KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > java > bridge > NullBinding


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.java.bridge;
21
22 import org.openide.src.*;
23
24 /**
25  * Provides "null" binding that silently discards all editing operations. This can
26  * be used as an implementation of an advanced in-memory representation, or for temporary
27  * objects that are not backed up in any document/stream, or for testing purposes.
28  *
29  * @author Svatopluk Dedic
30  * @version 0.1
31  */

32 public class NullBinding implements Binding.Class, Binding.Method, Binding.Field,
33     Binding.Initializer, Binding.Source, Binding.Import {
34     public NullBinding() {
35     }
36
37     public void changeBody(String JavaDoc bodyString) throws SourceException {
38     }
39     public void changeClassType(boolean properClass) throws SourceException {
40     }
41     public void changeExceptions(Identifier[] exceptions) throws SourceException {
42     }
43     public void changeInitializer(String JavaDoc newInitializer) throws SourceException {
44     }
45     public void changeInterfaces(Identifier[] replaceWith) throws SourceException {
46     }
47     public void changeModifiers(int newMods) throws SourceException {
48     }
49     public void changeName(String JavaDoc newName) throws SourceException {
50     }
51     public void changeName(Identifier name) throws SourceException {
52     }
53     public void changeParameters(MethodParameter[] params) throws SourceException {
54     }
55     public void changeReturnType(Type type) throws SourceException {
56     }
57     public void changeStatic(boolean enable) throws SourceException {
58     }
59     public void changeSuperclass(Identifier id) throws SourceException {
60     }
61     public void changeType(Type newType) throws SourceException {
62     }
63     public void create() throws SourceException, IllegalStateException JavaDoc {
64     }
65     public void makeAbstract() throws SourceException {
66     }
67     public void createBody(String JavaDoc body) throws SourceException {
68     }
69     public void replaceBody(String JavaDoc body) throws SourceException {
70     }
71     public void copyBody(String JavaDoc body) {
72     }
73     public String JavaDoc getBodyContent() throws SourceException {
74         return null;
75     }
76     public void remove() throws SourceException, IllegalStateException JavaDoc {
77     }
78     public void updateFrom(Binding other) {
79     }
80     
81     public void insert(Binding one, Binding two) {
82     }
83     
84     public void replace(Binding one, Binding two) {
85     }
86     
87     public void reorder(java.util.Map JavaDoc targetmap) {
88     }
89     
90     public boolean canInsertAfter(Binding b) {
91         return true;
92     }
93     
94     public Binding.Container getClassSection() {
95         return this;
96     }
97     
98     public Binding.Container getImportsSection() {
99         return this;
100     }
101     
102     public void changePackage(Identifier id) throws SourceException {
103     }
104
105     public void changeImport(org.openide.src.Import i) throws SourceException {
106     }
107     
108     public void changeJavaDoc(JavaDoc impl) throws SourceException {
109     }
110     
111     public void changeMembers(MultiPropertyChangeEvent evt) throws SourceException {
112     }
113     
114 }
115
Popular Tags