Package com.bacoder.parser.java.JavaParser

Examples of com.bacoder.parser.java.JavaParser.QualifiedNameContext


  public Annotation adapt(AnnotationContext context) {
    Annotation annotation = createNode(context);

    AnnotationNameContext annotationNameContext = getChild(context, AnnotationNameContext.class);
    if (annotationNameContext != null) {
      QualifiedNameContext qualifiedNameContext =
          getChild(annotationNameContext, QualifiedNameContext.class);
      if (qualifiedNameContext != null) {
        annotation.setName(getAdapter(QualifiedNameAdapter.class).adapt(qualifiedNameContext));
      }
    }
View Full Code Here


            return getAdapter(AnnotationAdapter.class).adapt(context);
          }
        });
    packageDeclaration.setAnnotations(annotations);

    QualifiedNameContext qualifiedNameContext = getChild(context, QualifiedNameContext.class);
    if (qualifiedNameContext != null) {
      packageDeclaration.setQualifiedName(
          getAdapter(QualifiedNameAdapter.class).adapt(qualifiedNameContext));
    }
View Full Code Here

  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));
    }
View Full Code Here

TOP

Related Classes of com.bacoder.parser.java.JavaParser.QualifiedNameContext

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.