Package com.bacoder.parser.java.api

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


    super(adapters);
  }

  @Override
  public FieldDeclaration adapt(FieldDeclarationContext context) {
    FieldDeclaration fieldDeclaration = createNode(context);

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

    VariableDeclaratorsContext variableDeclaratorsContext =
        getChild(context, VariableDeclaratorsContext.class);
    if (variableDeclaratorsContext != null) {
      fieldDeclaration.setVariableDeclarations(
          getAdapter(VariableDeclaratorsAdapter.class).adapt(variableDeclaratorsContext,
              fieldDeclaration.getType(), typeContext));
    }

    return fieldDeclaration;
  }
View Full Code Here

TOP

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

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.