Package com.bacoder.parser.java.api

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


    super(adapters);
  }

  @Override
  public QualifiedName adapt(QualifiedNameContext context) {
    QualifiedName qualifiedName = createNode(context);

    List<Identifier> identifiers =
        transform(context, TerminalNode.class, new Function<TerminalNode, Identifier>() {
          @Override
          public Identifier apply(TerminalNode input) {
            if (input.getSymbol().getType() == JavaParser.DOT) {
              return null;
            } else {
              return getAdapter(IdentifierAdapter.class).adapt(input);
            }
          }
        });
    qualifiedName.setIdentifiers(identifiers);

    return qualifiedName;
  }
View Full Code Here

TOP

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

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.