Package com.bacoder.parser.java.JavaParser

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


    if (typeParametersContext != null) {
      interfaceDeclaration.setTypeParameters(
          getAdapter(TypeParametersAdapter.class).adapt(typeParametersContext));
    }

    TypeListContext typeListContext = getChild(context, TypeListContext.class);
    if (typeListContext != null) {
      interfaceDeclaration.setExtendsTypes(
          getAdapter(TypeListAdapter.class).adapt(typeListContext));
    }
View Full Code Here


    TerminalNode identifierNode = getTerminalNode(context, JavaParser.Identifier);
    if (identifierNode != null) {
      enumDeclaration.setName(getAdapter(IdentifierAdapter.class).adapt(identifierNode));
    }

    TypeListContext typeListContext = getChild(context, TypeListContext.class);
    if (typeListContext != null) {
      List<Type> implementsTypes =
          transform(typeListContext, TypeContext.class, new Function<TypeContext, Type>() {
            @Override
            public Type apply(TypeContext context) {
View Full Code Here

    TypeContext typeContext = getChild(context, TypeContext.class);
    if (typeContext != null) {
      classDeclaration.setExtendsType(getAdapter(TypeAdapter.class).adapt(typeContext));
    }

    TypeListContext typeListContext = getChild(context, TypeListContext.class);
    if (typeListContext != null) {
      classDeclaration.setImplementsTypes(getAdapter(TypeListAdapter.class).adapt(typeListContext));
    }

    ClassBodyContext classBodyContext = getChild(context, ClassBodyContext.class);
View Full Code Here

    super(adapters);
  }

  @Override
  public List<Type> adapt(NonWildcardTypeArgumentsContext context) {
    TypeListContext typeListContext = getChild(context, TypeListContext.class);
    if (typeListContext != null) {
      return getAdapter(TypeListAdapter.class).adapt(typeListContext);
    }

    return Collections.emptyList();
View Full Code Here

TOP

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

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.