blob: 70893d6f94590957604c3655e1808e9dca40225f [file] [log] [blame]
/* Copyright 2004 The Apache Software Foundation
*
* 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.
*/
package org.apache.xmlbeans.impl.jam.mutable;
import org.apache.xmlbeans.impl.jam.JClass;
import org.apache.xmlbeans.impl.jam.JMethod;
/**
* <p>Mutable version of JMethod.</p>
*
* @author Patrick Calahan &lt;email: pcal-at-bea-dot-com&gt;
*/
public interface MMethod extends JMethod, MInvokable {
/**
* <p>Sets the type of this method's return value. Null can be passed if
* a 'void' return type is desired.</p>
*
* @throws IllegalArgumentException if the parameter is not a valid
* java class name.
*/
public void setReturnType(String qualifiedTypeName);
public void setUnqualifiedReturnType(String unqualifiedTypeName);
/**
* <p>Sets the type of this method's return value. Null may be passed if
* a 'void' return type is desired. This method is exactly equivalent to
* calling setReturnType(jclass.getQualifiedName()).</p>
*/
public void setReturnType(JClass c);
}