class CommunityExprEvaluator implements CommunityExprVisitor<Community, CommunityContext> {

  @Override
  public Community visitRouteTargetExtendedCommunityExpr(
      RouteTargetExtendedCommunityExpr routeTargetExtendedCommunityExpr, CommunityContext arg) {
    long ga =
        routeTargetExtendedCommunityExpr.getGaExpr().accept(LongExprEvaluator.instance(), null);
    int la = routeTargetExtendedCommunityExpr.getLaExpr().accept(IntExprEvaluator.instance(), null);
    return ExtendedCommunity.target(ga, la);
  }

  private  CommunityExprEvaluator();

}