Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2002-2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM - Initial API and implementation
 
 package org.eclipse.emf.java;
 
 
 
A representation of the model object 'JMethod'.

The following features are supported:

  • Abstract
  • Final
  • Native
  • Synchronized
  • Java Method
  • Constructor
  • Java Constructor
  • Body
  • Parameters
  • Exceptions
  • Return Type

See also:
JavaPackage.getJMethod()
Model:
Generated:
 
 public interface JMethod extends JMember
 {
  
Returns the value of the 'Abstract' attribute.

Returns:
the value of the 'Abstract' attribute.
See also:
setAbstract(boolean)
JavaPackage.getJMethod_Abstract()
Model:
Generated:
 
   boolean isAbstract();

  
Sets the value of the 'Abstract' attribute.

Parameters:
value the new value of the 'Abstract' attribute.
See also:
isAbstract()
Generated:
 
   void setAbstract(boolean value);

  
Returns the value of the 'Final' attribute.

Returns:
the value of the 'Final' attribute.
See also:
setFinal(boolean)
JavaPackage.getJMethod_Final()
Model:
Generated:
 
   boolean isFinal();

  
Sets the value of the 'Final' attribute.

Parameters:
value the new value of the 'Final' attribute.
See also:
isFinal()
Generated:
 
   void setFinal(boolean value);

  
Returns the value of the 'Native' attribute.

Returns:
the value of the 'Native' attribute.
See also:
setNative(boolean)
JavaPackage.getJMethod_Native()
Model:
Generated:
  boolean isNative();

  
Sets the value of the 'Native' attribute.

Parameters:
value the new value of the 'Native' attribute.
See also:
isNative()
Generated:
  void setNative(boolean value);

  
Returns the value of the 'Synchronized' attribute.

Returns:
the value of the 'Synchronized' attribute.
See also:
setSynchronized(boolean)
JavaPackage.getJMethod_Synchronized()
Model:
Generated:
  boolean isSynchronized();

  
Sets the value of the 'Synchronized' attribute.

Parameters:
value the new value of the 'Synchronized' attribute.
See also:
isSynchronized()
Generated:
  void setSynchronized(boolean value);

  
Returns the value of the 'Java Method' attribute.

Returns:
the value of the 'Java Method' attribute.
See also:
setJavaMethod(java.lang.reflect.Method)
JavaPackage.getJMethod_JavaMethod()
Model:
dataType="org.eclipse.emf.java.JavaMethod" transient="true"
Generated:
Sets the value of the 'Java Method' attribute.

Parameters:
value the new value of the 'Java Method' attribute.
See also:
getJavaMethod()
Generated:
  void setJavaMethod(Method value);

  
Returns the value of the 'Constructor' attribute.

Returns:
the value of the 'Constructor' attribute.
See also:
setConstructor(boolean)
JavaPackage.getJMethod_Constructor()
Model:
Generated:
  boolean isConstructor();

  
Sets the value of the 'Constructor' attribute.

Parameters:
value the new value of the 'Constructor' attribute.
See also:
isConstructor()
Generated:
  void setConstructor(boolean value);

  
Returns the value of the 'Java Constructor' attribute.

Returns:
the value of the 'Java Constructor' attribute.
See also:
setJavaConstructor(java.lang.reflect.Constructor)
JavaPackage.getJMethod_JavaConstructor()
Model:
dataType="org.eclipse.emf.java.JavaConstructor<?>" transient="true"
Generated:
Sets the value of the 'Java Constructor' attribute.

Parameters:
value the new value of the 'Java Constructor' attribute.
See also:
getJavaConstructor()
Generated:
  void setJavaConstructor(Constructor<?> value);

  
Returns the value of the 'Body' attribute.

Returns:
the value of the 'Body' attribute.
See also:
setBody(java.lang.String)
JavaPackage.getJMethod_Body()
Model:
Generated:
  String getBody();

  
Sets the value of the 'Body' attribute.

Parameters:
value the new value of the 'Body' attribute.
See also:
getBody()
Generated:
  void setBody(String value);

  
Returns the value of the 'Parameters' containment reference list. The list contents are of type JParameter. It is bidirectional and its opposite is 'Method'.

Returns:
the value of the 'Parameters' containment reference list.
See also:
JavaPackage.getJMethod_Parameters()
JParameter.getMethod()
Model:
opposite="method" containment="true"
Generated:
Returns the value of the 'Exceptions' reference list. The list contents are of type JClass.

Returns:
the value of the 'Exceptions' reference list.
See also:
JavaPackage.getJMethod_Exceptions()
Model:
Generated:
Returns the value of the 'Return Type' reference.

Returns:
the value of the 'Return Type' reference.
See also:
setReturnType(org.eclipse.emf.java.JClass)
JavaPackage.getJMethod_ReturnType()
Model:
Generated:
Sets the value of the 'Return Type' reference.

Parameters:
value the new value of the 'Return Type' reference.
See also:
getReturnType()
Generated:
  void setReturnType(JClass value);
// JMethod
New to GrepCode? Check out our FAQ X