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 'JCompilation Unit'.

The following features are supported:

  • Imports
  • Comment
  • Types
  • Imported Packages
  • Imported Types
  • Package

See also:
JavaPackage.getJCompilationUnit()
Model:
Generated:
 
 public interface JCompilationUnit extends JModelElement
 {
  
Returns the value of the 'Package' reference.

Returns:
the value of the 'Package' reference.
See also:
setPackage(org.eclipse.emf.java.JPackage)
JavaPackage.getJCompilationUnit_Package()
Model:
Generated:
 
   JPackage getPackage();

  
Sets the value of the 'Package' reference.

Parameters:
value the new value of the 'Package' reference.
See also:
getPackage()
Generated:
 
   void setPackage(JPackage value);

  
Returns the value of the 'Imports' attribute list. The list contents are of type java.lang.String.

Returns:
the value of the 'Imports' attribute list.
See also:
JavaPackage.getJCompilationUnit_Imports()
Model:
Generated:
 
   EList<StringgetImports();

  
Returns the value of the 'Comment' attribute.

Returns:
the value of the 'Comment' attribute.
See also:
setComment(java.lang.String)
JavaPackage.getJCompilationUnit_Comment()
Model:
Generated:
 
   String getComment();

  
Sets the value of the 'Comment' attribute.

Parameters:
value the new value of the 'Comment' attribute.
See also:
getComment()
Generated:
 
   void setComment(String value);

  
Returns the value of the 'Types' containment reference list. The list contents are of type JClass. It is bidirectional and its opposite is 'Unit'.

Returns:
the value of the 'Types' containment reference list.
See also:
JavaPackage.getJCompilationUnit_Types()
JClass.getUnit()
Model:
opposite="unit" containment="true"
Generated:
  EList<JClassgetTypes();

  
Returns the value of the 'Imported Packages' reference list. The list contents are of type JPackage.

Returns:
the value of the 'Imported Packages' reference list.
See also:
JavaPackage.getJCompilationUnit_ImportedPackages()
Model:
Generated:
Returns the value of the 'Imported Types' reference list. The list contents are of type JClass.

Returns:
the value of the 'Imported Types' reference list.
See also:
JavaPackage.getJCompilationUnit_ImportedTypes()
Model:
Generated:
Resolves all package and class references based on the source; the JNode must be present. EATM
  JClass resolveJClass(String qualifiedName);
// JCompilationUnit
New to GrepCode? Check out our FAQ X