Package com.bacoder.parser.java.api

Examples of com.bacoder.parser.java.api.ImportDeclaration


    super(adapters);
  }

  @Override
  public ImportDeclaration adapt(ImportDeclarationContext context) {
    ImportDeclaration importDeclaration = createNode(context);
    importDeclaration.setStatic(hasTerminalNode(context, JavaParser.STATIC));
    importDeclaration.setAsterisk(hasTerminalNode(context, JavaParser.MUL));

    QualifiedNameContext qualifiedNameContext = getChild(context, QualifiedNameContext.class);
    if (qualifiedNameContext != null) {
      importDeclaration.setQualifiedName(
          getAdapter(QualifiedNameAdapter.class).adapt(qualifiedNameContext));
    }

    return importDeclaration;
  }
View Full Code Here

TOP

Related Classes of com.bacoder.parser.java.api.ImportDeclaration

Copyright © 2018 www.massapicom. 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.