Package com.bacoder.parser.java.api

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


    }

    if (context.getChildCount() > 0
        && context.getChild(0) instanceof TerminalNode
        && ((TerminalNode) context.getChild(0)).getSymbol().getType() == JavaParser.LPAREN) {
      TypeCast typeCast = createNode(context, TypeCast.class);

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

      ExpressionContext expressionContext = getChild(context, ExpressionContext.class);
      if (expressionContext != null) {
        typeCast.setExpression(getAdapter(ExpressionAdapter.class).adapt(expressionContext));
      }

      return typeCast;
    }
View Full Code Here

TOP

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

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.