Examples of PackageDeclaration


Examples of org.eclipse.jdt.core.dom.PackageDeclaration

    * Package modifiers
    */
   @Override
   public String getPackage()
   {
      PackageDeclaration pkg = unit.getPackage();
      if (pkg != null)
      {
         return pkg.getName().getFullyQualifiedName();
      }
      else
      {
         return null;
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.PackageDeclaration

    * Package modifiers
    */
   @Override
   public String getPackage()
   {
      PackageDeclaration pkg = unit.getPackage();
      if (pkg != null)
      {
         return pkg.getName().getFullyQualifiedName();
      }
      else
      {
         return null;
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.PackageDeclaration

  @SuppressWarnings("unchecked")
  public void stackoverflow_answer() {
    AST ast = AST.newAST(AST.JLS4);
    CompilationUnit cu = ast.newCompilationUnit();

    PackageDeclaration p1 = ast.newPackageDeclaration();
    p1.setName(ast.newSimpleName("foo"));
    cu.setPackage(p1);

    ImportDeclaration id = ast.newImportDeclaration();
    id.setName(ast.newName(new String[] {
        "java", "util", "Set" }));
View Full Code Here

Examples of org.eclipse.jdt.core.dom.PackageDeclaration

    * Package modifiers
    */
   @Override
   public String getPackage()
   {
      PackageDeclaration pkg = unit.getPackage();
      if (pkg != null)
      {
         return pkg.getName().getFullyQualifiedName();
      }
      else
      {
         return null;
      }
View Full Code Here

Examples of org.xtext.mongobeans.mongoBeans.PackageDeclaration

@SuppressWarnings("all")
public class MongoQualifiedNameProvider extends XbaseQualifiedNameProvider {
  public QualifiedName qualifiedName(final MongoBean mongoBean) {
    QualifiedName _xblockexpression = null;
    {
      final PackageDeclaration packageDeclaration = EcoreUtil2.<PackageDeclaration>getContainerOfType(mongoBean, PackageDeclaration.class);
      QualifiedName _xifexpression = null;
      boolean _notEquals = (!Objects.equal(packageDeclaration, null));
      if (_notEquals) {
        QualifiedName _fullyQualifiedName = this.getFullyQualifiedName(packageDeclaration);
        String _name = mongoBean.getName();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.