blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
sequencelengths
1
1
author_id
stringlengths
0
313
73c294b758ce98fea4d32ae0482490ccfb06b083
8c0a8c06e92fdd5965a76cd35d8ceac66e7250b8
/app/src/main/java/com/example/demo/food_details.java
4cbe50071274f2824fa7232d316cba5c7e8101f9
[]
no_license
Wandrew1201/Demo
7016f94377361823b80508174eb7082339607c2a
cee67f951a7a01eadeb72d50889176edb0dd28af
refs/heads/master
2023-05-11T17:27:35.820104
2021-05-25T03:53:33
2021-05-25T03:53:33
370,556,716
0
0
null
null
null
null
UTF-8
Java
false
false
5,076
java
package com.example.demo; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.TextView; import java.util.ArrayList; public class food_details extends AppCompatActivity { private TextView food; private Spinner spinner; private ArrayList<String> recipeArray=new ArrayList<String>(); private ArrayAdapter<String> recipeAd; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_food_details); food=(TextView)findViewById(R.id.foodText); spinner=(Spinner)findViewById(R.id.foodSpi); recipeArray.add("蒜泥白肉"); recipeArray.add("酪梨雞肉沙拉"); recipeArray.add("鮭魚茶泡飯"); recipeAd=new ArrayAdapter<>(food_details.this,android.R.layout.simple_spinner_dropdown_item,recipeArray); spinner.setAdapter(recipeAd); spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { if(position==0){ food.setText("食材 (3~4 人份) 45 分鐘\n" + "豬五花肉 600克\n" + "青蔥 2支\n" + "薑片 6片\n" + "米酒 2大匙\n" + "醬料:\n" + "醬油膏 2.5大匙\n" + "烏醋 1小匙\n" + "蒜泥 2大匙\n" + "香油 1小匙\n" + "開水 1.5大匙\n" + "1.燒一鍋滾水,將豬肉稍微川燙後取出,並用冷水洗淨外表的雜質。\n" + "2.接著再重新燒一鍋滾水,並加入青蔥、薑片、米酒和豬肉,並用最小火煮30分鐘後,關火,\n" + "接著繼續浸泡約10分鐘。\n" + "3.將豬肉取出後放入冰(冷)水讓豬肉冷卻。(Tips 3)\n" + "4.等待豬肉冷卻的同時,把醬料的材料均勻混合後備用。\n" + "5.最後把冷卻後的豬肉切片,淋上醬料\n"); } else if(position==1){ food.setText("雞胸肉(去皮):1 個(180g)\n" + "酪梨:1小顆(150g)\n" + "小番茄:3 小顆\n" + "鹽:1 小撮\n" + "研磨黑胡椒:少許\n" + "檸檬汁:1 小匙\n" + "1.雞胸肉切片(厚約0.5cm)後加入醃料,按抓至水分被雞胸肉吸收為止(或置於冷藏醃過夜)。\n" + "2.小番茄對切,去籽後切丁。\n" + "3.將酪梨取出果肉後搗成泥狀,加入番茄丁、鹽、黑胡椒、檸檬汁,拌勻備用。\n" + "4.鍋內倒入油,以中小火預熱後,擺入醃好的雞胸肉片香煎,煎至雞胸肉邊緣出現一圈暈白色後翻面續煎,兩面均煎熟即可起鍋。\n" + "5.將作法3 與作法4 拌勻即完成。\n"); } else if(position==2){ food.setText( "紫米、糙米飯適量\n" + "洋蔥絲半顆量\n" + "鮭魚肉120g\n" + "玄米茶包1包(可用綠茶代替)\n" + "海苔絲適量\n" + "柴魚粉2匙\n" + "味醂50ml\n" + "醬油100ml\n" + "香鬆1匙\n" + "1.取一平底鍋倒入適量油,將鮭魚煎熟至表面金黃後取出,再以夾子或手撕碎備用。\n" + "2.另取一湯鍋倒入冷水500ml,加入柴魚粉、醬油、味醂,煮滾後放入洋蔥,再繼續煮沸約5分鐘。\n" + "3.將玄米茶包以100ml的熱水泡約3分鐘,拿掉茶包,將茶水倒入高湯調和,接著濾掉洋蔥,成為茶高湯。(高湯與茶的比例為5:1。)\n" + "4.將紫米或糙米飯盛入碗中,撒上60g鮭魚肉後,再依個人口味淋上適量茶高湯,最後撒上香鬆及海苔絲即完成。\n"); } } @Override public void onNothingSelected(AdapterView<?> parent) { } }); } }
8d579cf1277a9c7fba55ce1973c5969d23acbeeb
80e47f5d51d8a53f132bfe14ad6a542d4f34c106
/Java/CompareTo/glavna.java
35de4d8eacf4c5dc904d4acb822cc5cee056a586
[]
no_license
ilicmarko/OOP1
f5ce2937cff57be75edc1f2bef5e29f8826aa3ee
3086e68365d507984f19941df55ae515b77d84ba
refs/heads/master
2020-04-06T06:54:58.962029
2016-09-09T19:32:28
2016-09-09T19:32:28
61,937,436
1
0
null
null
null
null
UTF-8
Java
false
false
550
java
public class glavna { public static void main(String[] args) { Motor m1 = new Motor("Golf MK4",325,5); Motor m2 = new Motor("Golof MK4",500,3.8); MotorSaTurbinom mt1 = new MotorSaTurbinom("Golf MK5", 338.1,6,75); MotorSaTurbinom mt2 = new MotorSaTurbinom("Golf MK6", 483.1,5,40); System.out.println(m1.toString()); System.out.println(m2.toString()); System.out.println(mt1.toString()); System.out.println(mt2.toString()); System.out.println(mt1.compareTo(mt2)); } }
18cb39577df47d5d31e28eecd11c6abd24532f23
64cad38eb1ab11772b733f0dda797eb97494675b
/src/OfficeHours/Practice_03_18_2020/SortHandOperators_Practice.java
c253a751acbfde68b7fceebb25dd1b58a41a4d13
[]
no_license
hdemir5416/Spring2020B18_Java
5f2ad943f1b94f0a852b0ca92ae1c8ccf5379b8d
62125a1a1a33e871f109cf6cf0901fc3d72fe69b
refs/heads/master
2022-06-19T15:01:51.036076
2020-05-05T05:57:35
2020-05-05T05:57:35
259,141,949
0
0
null
null
null
null
UTF-8
Java
false
false
960
java
package OfficeHours.Practice_03_18_2020; public class SortHandOperators_Practice { public static void main(String[] args) { } } // +=: addition assigment /* int a: 100; // a = a + 200; a += 200; // 300; System.out.println(a); a +=200 * 3; // a = 900 System.out.println(a); // -= subtraction assigment a = a- 400; //a = 500 int b = 300; b -= 3 *40; // b= 180 // *=: multiplication assigment int x = 5; // x = x * 3; // 15 x *= 3; // x = 15 // /=: division assigment: int n = 900; // n = n / 3; n /= 3; // 300 // %=: reminder assigment // reminder : numerator - (denominator * whole number for result) int m = 10; // m = m % 3; // 1 // m %= 3; // m=1 // System.out.println(m); 1 int y = 300; // y %= 3*5; // y %= 15; y=0 */
0877d47c5cca3996077df4e03ac96d40ca65b348
c10dd8d2ab54a75a186fe7ccef50aeb9e572882f
/src/main/java/cn/kaliuyang/mysit/dto/ArchiveDto.java
60a10cc60e3a04bf068e5a09c217e0d7788d80c9
[]
no_license
lynnok/mysit
e1fc4e063326ac6661d1c24f44ce48e9ad611413
64ff404795a966722c679bd4568b16d3f8752183
refs/heads/master
2022-05-28T14:22:19.657606
2019-09-08T14:37:27
2019-09-08T14:37:27
207,125,511
0
0
null
null
null
null
UTF-8
Java
false
false
735
java
package cn.kaliuyang.mysit.dto; import cn.kaliuyang.mysit.model.ContentDomain; import java.util.List; /** * 文章归档类 * Created by lynnok on 2018/4/30. */ public class ArchiveDto { private String date; private String count; private List<ContentDomain> articles; public String getDate() { return date; } public void setDate(String date) { this.date = date; } public String getCount() { return count; } public void setCount(String count) { this.count = count; } public List<ContentDomain> getArticles() { return articles; } public void setArticles(List<ContentDomain> articles) { this.articles = articles; } }
[ "prett@xxl" ]
prett@xxl
0e456054fafce1602a148ffe32a0531715480f47
c793453f95848e0b7ea2f9244b4b792579e772b4
/src/SinglyLinkedLists/TripletFrom3ListsEqualToGivenSum.java
b11348c3869f552044cc3ff81eab56ace589e835
[]
no_license
nithinbandaru/Data-Structures
2274cf8263e202f626940c3ea29f3f25e8d7cdcc
53d0a804c40abe07afda4af94a3b0f800beff6ae
refs/heads/master
2021-01-10T05:43:43.026510
2015-12-19T01:32:57
2015-12-19T01:32:57
48,263,035
1
0
null
null
null
null
UTF-8
Java
false
false
2,491
java
package SinglyLinkedLists; public class TripletFrom3ListsEqualToGivenSum { LinkNode head; public static void main(String[] args) { // TODO Auto-generated method stub TripletFrom3ListsEqualToGivenSum list1 = new TripletFrom3ListsEqualToGivenSum(); list1.addAtBeginnning(20); list1.addAtBeginnning(5); list1.addAtBeginnning(15); list1.addAtBeginnning(10); TripletFrom3ListsEqualToGivenSum list2 = new TripletFrom3ListsEqualToGivenSum(); list2.addAtBeginnning(10); list2.addAtBeginnning(9); list2.addAtBeginnning(2); list2.addAtBeginnning(2); TripletFrom3ListsEqualToGivenSum list3 = new TripletFrom3ListsEqualToGivenSum(); list3.addAtBeginnning(1); list3.addAtBeginnning(2); list3.addAtBeginnning(4); list3.addAtBeginnning(8); list1.printLinkedList(list1.head); list2.printLinkedList(list2.head); list3.printLinkedList(list3.head); printTheTriplet(list1.head, list2.head, list3.head , 25); } private static void printTheTriplet(LinkNode head1, LinkNode head2, LinkNode head3, int givenSum) { // TODO Auto-generated method stub LinkNode headNode1 = head1; while(headNode1 != null) { LinkNode headNode2 = head2; LinkNode headNode3 = head3; while( headNode2 != null && headNode3 != null) { int sum = headNode1.data + headNode2.data + headNode3.data ; if(sum == givenSum) { System.out.println(headNode1.data + "--" + headNode2.data + "--" +headNode3.data); return; } else if( sum < givenSum) { headNode2 = headNode2.next; } else { headNode3 = headNode3.next; } } headNode1 = headNode1.next; } } public void addAtBeginnning(int data) { LinkNode newNode = new LinkNode(data); newNode.next = head; head = newNode; } public void addAtEnd(int data) { LinkNode temp = head; LinkNode newNode = new LinkNode(data); if(temp == null) { head = newNode; } else { while(temp.next != null) { temp = temp.next; } temp.next = newNode; } } public void printLinkedList(LinkNode headNode) { LinkNode temp = headNode; if(temp == null) { System.out.println("List is empty"); return; } while(temp != null) { System.out.print(temp.data + "->"); temp = temp.next; } System.out.println(); } public class LinkNode { int data; LinkNode next; public LinkNode(int data) { this.data = data; next = null; } } }
[ "Nthin Bandaru" ]
Nthin Bandaru
02c454d7c230288ce68d445b23ab46bdda850788
eebfd6c587692e141882cde9878ecd76c095612f
/app/src/main/java/com/example/kumaradewi/nyomandiahkumaradewi_1202150256_modul3/DrinkAdapter.java
4f8467dffa12135d5afd3da6fc2c3a52f763350e
[]
no_license
kumaradewi/Nyoman-Diah-Kumara-Dewi_1202150256_MODUL3
12ceba404bf5483612b3269fafd6c4adcfe06caf
d2263399474a6b429cc298a86f5cf2fcee09b195
refs/heads/master
2021-01-24T01:59:43.783322
2018-02-25T12:00:02
2018-02-25T12:00:02
122,831,315
0
0
null
null
null
null
UTF-8
Java
false
false
3,228
java
package com.example.kumaradewi.nyomandiahkumaradewi_1202150256_modul3; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.graphics.drawable.GradientDrawable; import android.support.v4.content.ContextCompat; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import java.util.ArrayList; public class DrinkAdapter extends RecyclerView.Adapter<DrinkAdapter.AirViewHolder> { private GradientDrawable mGradient; private ArrayList<Drink> mAirData; private Context mContext; DrinkAdapter(Context context, ArrayList<Drink> airData){ this.mAirData = airData; this.mContext = context; mGradient = new GradientDrawable(); mGradient.setColor(Color.GRAY); Drawable drawable = ContextCompat.getDrawable(mContext, R.drawable.ades); if (drawable!=null){ mGradient.setSize(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); } } @Override public AirViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { return new AirViewHolder(mContext, LayoutInflater.from(mContext).inflate(R.layout.activity_list_item, parent, false), mGradient); } @Override public void onBindViewHolder(DrinkAdapter.AirViewHolder holder, int position) { Drink currentAir = mAirData.get(position); holder.bindTo(currentAir); Glide.with(mContext).load(currentAir.getImage()).into(holder.mAirImage); } @Override public int getItemCount() { return mAirData.size(); } class AirViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{ private ImageView mAirImage; private TextView mTitle; private TextView mInfo; private Context mContext; private Drink mCurrentAir; private GradientDrawable mGradient; private String txtTitle; AirViewHolder(Context context, View itemView, GradientDrawable gradientDrawable){ super(itemView); mAirImage = (ImageView) itemView.findViewById(R.id.drinkImage); mTitle = (TextView) itemView.findViewById(R.id.labelTitle); mInfo = (TextView) itemView.findViewById(R.id.infoTitle); mContext = context; mGradient = gradientDrawable; itemView.setOnClickListener(this); } void bindTo(Drink currentAir){ mTitle.setText(currentAir.getTitle()); mInfo.setText(currentAir.getInfo()); mCurrentAir = currentAir; txtTitle = mTitle.getText().toString(); Glide.with(mContext).load(currentAir.getImage()).placeholder(mGradient).into(mAirImage); } @Override public void onClick(View view) { Intent detail = Drink.starter(mContext, mCurrentAir.getTitle(), mCurrentAir.getImage()); detail.putExtra("title", txtTitle); mContext.startActivity(detail); } } }
71361ba8018e87ed3f213f060e63716868e3b4d6
840a71fce9a51000c100a6a506c029f95479d345
/JohnMovieApp/app/src/main/java/com/gmail/aziz/mouawad/john/johnmovieapp/DetailFragment.java
409b9c4d6ce1bc7b8ca72fc26f25a3280d202d41
[]
no_license
JohnMouawadAziz/Popular-Movie-
7f34bcf4bf1d849e2c1e4f014d197f85388b67ef
0d93e90a9d3c318600f94d686b411b97226f2261
refs/heads/master
2020-06-12T23:28:52.739459
2016-12-03T14:19:22
2016-12-03T14:19:22
75,477,726
0
0
null
null
null
null
UTF-8
Java
false
false
9,621
java
package com.gmail.aziz.mouawad.john.johnmovieapp; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.design.widget.CollapsingToolbarLayout; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.Button; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import com.squareup.picasso.Picasso; import java.util.ArrayList; import java.util.List; import retrofit.Callback; import retrofit.RequestInterceptor; import retrofit.RestAdapter; import retrofit.RetrofitError; import retrofit.client.Response; /** * A simple {@link Fragment} subclass. */ public class DetailFragment extends Fragment implements AdapterView.OnItemClickListener { public TrailerAdapter trailerAdapter; public ReviewAdapter reviewAdapter; MoviesApiService service; // String photo; // String id_for_reveiwe; DatabaseHelper myDb; Button btnAddData; Movie mMovie; Trailer Tmovie; ImageView backdrop, poster; TextView title, description, id, releaseData, vote, rev; String KEY_VEDIO; private CollapsingToolbarLayout toolbarLayout; public ListView trailerList; public ListView reviewList; private boolean isInserted; public DetailFragment() { setHasOptionsMenu(true); } public static DetailFragment getInstance(Movie movie) { DetailFragment detailFragment = new DetailFragment(); Bundle bundle = new Bundle(); bundle.putParcelable("movie", movie); detailFragment.setArguments(bundle); return detailFragment; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_detail, container, false); myDb = new DatabaseHelper(getActivity()); btnAddData = (Button) v.findViewById(R.id.add); toolbarLayout = (CollapsingToolbarLayout) getActivity().findViewById(R.id.toolbar_layout); backdrop = (ImageView) getActivity().findViewById(R.id.backdrop); title = (TextView) v.findViewById(R.id.movie_title); description = (TextView) v.findViewById(R.id.movie_description); poster = (ImageView) v.findViewById(R.id.movie_poster); id = (TextView) v.findViewById(R.id.movie_id); releaseData = (TextView) v.findViewById(R.id.release_date); vote = (TextView) v.findViewById(R.id.vote_avrage); trailerList = (ListView) v.findViewById(R.id.trailer_list); trailerList.setOnItemClickListener(this); Button trilerVedio= (Button) v.findViewById(R.id.trailer_button); /* trilerVedio.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String youtubeVedio= Tmovie.getKey().toString(); Intent intent = new Intent(); intent.putExtra("youtube_Key", youtubeVedio); startActivity(intent); Toast.makeText(getContext(),""+ Tmovie.getKey().toString(),Toast.LENGTH_SHORT).show(); Toast.makeText(getContext(),""+ Tmovie.getKey().toString(),Toast.LENGTH_SHORT).show(); } });*/ trailerList.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { System.out.println("hereee"); Intent intent = new Intent(Intent.ACTION_VIEW); Trailer TM=trailerAdapter.getItem(position); intent.setData(Uri.parse("http://www.youtube.com/watch?v=" + TM.getKey())); getContext().startActivity(intent); } }); reviewList = (ListView) v.findViewById(R.id.review_list); return v; } @Override public void onStart() { super.onStart(); mMovie = getArguments().getParcelable("movie"); // toolbarLayout.setTitle(mMovie.getTitle()); title.setText(mMovie.getTitle()); description.setText(mMovie.getDescription()); id.setText(mMovie.getId()); releaseData.setText(mMovie.getRelaseDate()); vote.setText(mMovie.getVote()); Picasso.with(getActivity()).load(mMovie.getBackdrop()).into(poster); // Picasso.with(getContext()).load(mMovie.getBackdrop()).into(backdrop); AddData(); getReviewsMovies(mMovie.getId()); getMovieTrailers(mMovie.getId()); } public void AddData() { btnAddData.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { // if(!myDb.getID().contains(mMovie.getId())){ isInserted = myDb.insertData(id.getText().toString(), title.getText().toString(), description.getText().toString(), vote.getText().toString(), releaseData.getText().toString(), mMovie.getPoster().toString() );}else{ Toast.makeText(getActivity(),"Alerdy exist",Toast.LENGTH_SHORT).show(); } if (isInserted = true) Toast.makeText(getActivity(), "inserted Success", Toast.LENGTH_SHORT).show(); else Toast.makeText(getActivity(), "inserted Faild", Toast.LENGTH_SHORT).show(); } } ); } /////////////////////////////////////////////////Review//////////////////////////////////////////////// private void getReviewsMovies(String id_for_reveiwe) { RestAdapter restAdapter = new RestAdapter.Builder() .setEndpoint("http://api.themoviedb.org/3") .setRequestInterceptor(new RequestInterceptor() { @Override public void intercept(RequestInterceptor.RequestFacade request) { request.addEncodedQueryParam("api_key", "f93d0797460573f3254b707975a09ed5"); } }) .setLogLevel(RestAdapter.LogLevel.FULL) .build(); service = restAdapter.create(MoviesApiService.class); service.getReviewsMovies(id_for_reveiwe, new Callback<Review.RevieweResult>() { @Override public void success(Review.RevieweResult revieweResult, Response response) { reviewAdapter = new ReviewAdapter(getActivity(), revieweResult.getResults()); reviewList.setAdapter(reviewAdapter); } @Override public void failure(RetrofitError error) { error.printStackTrace(); Toast.makeText(getActivity(), "Reviewe FAILD connectting to server " , Toast.LENGTH_SHORT).show(); } }); } ///////////////////////////////////////////Trailer/////////////////////////////////////////////////// private void getMovieTrailers(String id_for_reveiwe) { RestAdapter restAdapter = new RestAdapter.Builder() .setEndpoint("http://api.themoviedb.org/3") .setRequestInterceptor(new RequestInterceptor() { @Override public void intercept(RequestInterceptor.RequestFacade request) { request.addEncodedQueryParam("api_key", "f93d0797460573f3254b707975a09ed5"); } }) .setLogLevel(RestAdapter.LogLevel.FULL) .build(); service = restAdapter.create(MoviesApiService.class); service.getMovieTrailers(id_for_reveiwe, new Callback<Trailer.TrailerResult>() { @Override public void success(Trailer.TrailerResult trailerResult, Response response) { // Toast.makeText(getActivity(), "Trailer success " , Toast.LENGTH_LONG).show(); trailerAdapter = new TrailerAdapter(getActivity(), trailerResult.getTResults()); trailerList.setAdapter(trailerAdapter); } @Override public void failure(RetrofitError error) { error.printStackTrace(); Toast.makeText(getActivity(), "Reviewe FAILD " , Toast.LENGTH_SHORT).show(); } }); } @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.menu_main, menu); } public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); // if (id == R.id.favorit) { // Intent intent = new Intent(getActivity(), M.class); // startActivity(intent); // // // // // } return true; } @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(getContext(), YoutubeTrailar.class); startActivity(intent); } }
038f7cebbc00e28bdae632bde2362ab4e11daf8c
280df24fad074dc529246404bcbd9326077a45f9
/src/main/java/net/mcreator/teztdummimod/gui/overlay/SaltyoverlayOverlay.java
1eddfd9734c27869b5b2c477c91588154125ec74
[]
no_license
TeztDummi/Tezt-Dummi-Mod
d7509150cb3fef11547745bd24f05612e547898a
869d9be8bab5e7cf36b53d8e6a81ff269936c14d
refs/heads/master
2023-06-14T04:21:13.025649
2021-07-16T00:43:13
2021-07-16T00:43:13
359,555,179
0
0
null
null
null
null
UTF-8
Java
false
false
2,572
java
package net.mcreator.teztdummimod.gui.overlay; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.eventbus.api.EventPriority; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.Dist; import net.minecraft.world.World; import net.minecraft.util.ResourceLocation; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.client.Minecraft; import net.mcreator.teztdummimod.procedures.SaltyoverlayDisplayOverlayIngameProcedure; import net.mcreator.teztdummimod.TeztDummiModModElements; import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.platform.GlStateManager; import com.google.common.collect.ImmutableMap; @TeztDummiModModElements.ModElement.Tag public class SaltyoverlayOverlay extends TeztDummiModModElements.ModElement { public SaltyoverlayOverlay(TeztDummiModModElements instance) { super(instance, 239); } @Override public void initElements() { MinecraftForge.EVENT_BUS.register(this); } @OnlyIn(Dist.CLIENT) @SubscribeEvent(priority = EventPriority.NORMAL) public void eventHandler(RenderGameOverlayEvent event) { if (!event.isCancelable() && event.getType() == RenderGameOverlayEvent.ElementType.HELMET) { int posX = (event.getWindow().getScaledWidth()) / 2; int posY = (event.getWindow().getScaledHeight()) / 2; PlayerEntity entity = Minecraft.getInstance().player; World world = entity.world; double x = entity.getPosX(); double y = entity.getPosY(); double z = entity.getPosZ(); RenderSystem.disableDepthTest(); RenderSystem.depthMask(false); RenderSystem.blendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.disableAlphaTest(); if (SaltyoverlayDisplayOverlayIngameProcedure.executeProcedure(ImmutableMap.of("entity", entity))) { Minecraft.getInstance().getTextureManager().bindTexture(new ResourceLocation("tezt_dummi_mod:textures/saltoverlay.png")); Minecraft.getInstance().ingameGUI.blit(event.getMatrixStack(), posX + -433, posY + -229, 0, 0, 854, 481, 854, 481); } RenderSystem.depthMask(true); RenderSystem.enableDepthTest(); RenderSystem.enableAlphaTest(); RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F); } } }
cb22202d8adccaec0f319cc34723576eef84d928
73aaf5e2262f3ae44098abc552f29bfb74a560d1
/src/test/java/com/michal/clinicals/ClinicalsapiApplicationTests.java
fb125272b52c62757885700687408e6eaeb9daf5
[]
no_license
michalbac/udemy-end-to-end-clinicals
658ee59f850f658ad66d12ae28ad01133b8fd483
727b4f7011e8be92ccee132e665ca9077bd6583d
refs/heads/master
2022-04-24T23:41:55.860399
2020-04-26T15:33:33
2020-04-26T15:33:33
259,066,098
0
0
null
null
null
null
UTF-8
Java
false
false
542
java
package com.michal.clinicals; import com.michal.clinicals.entities.ClinicalData; import com.michal.clinicals.entities.Patient; import com.michal.clinicals.service.PatientService; import com.michal.clinicals.util.ClinicalDataUtil; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import java.util.ArrayList; import java.util.List; @SpringBootTest class ClinicalsapiApplicationTests { @Test void contextLoads() { } }
28a63bda6c28f4f6246d894508dd8cd42dd65e17
67d7f6759992489e8db99f3a59ceb4528dcaf68d
/android/app/src/main/java/de/ktbl/eikotiger/view/viewmodel/indicator/IndicatorListItem.java
1471c79d9d24a1e431bf682ba5d3207ef72b8922
[ "MIT" ]
permissive
KTBL/icdl-tk
8b0a51cb68799d65205d0d5f1272cbbf76bd5a88
dba3464e3d4b00ecf4c880da7f55cfc8e51da11f
refs/heads/main
2023-05-28T21:46:15.548119
2021-06-10T08:55:54
2021-06-10T08:55:54
375,598,306
0
0
null
null
null
null
UTF-8
Java
false
false
3,268
java
package de.ktbl.eikotiger.view.viewmodel.indicator; import javax.inject.Inject; import de.ktbl.android.sharedlibrary.annotation.mock.Mock; import de.ktbl.android.sharedlibrary.navigation.NavigationCommand; import de.ktbl.android.sharedlibrary.util.Strings; import de.ktbl.android.sharedlibrary.view.adapter.Clickable; import de.ktbl.android.sharedlibrary.view.viewmodel.AbstractBaseViewModel; import de.ktbl.eikotiger.view.fragment.indicator.IndicatorInfoFragmentModes; import de.ktbl.eikotiger.view.fragment.indicator.IndicatorListFragmentDirections; import timber.log.Timber; public class IndicatorListItem extends AbstractBaseViewModel implements Clickable { private static final String TAG = IndicatorListItem.class.getSimpleName(); public static final int DEFAULT_DESCRIPTION_LENGTH = 100; public boolean isMock; @Mock() private String title; private Long id; private Long sectionId; protected boolean clickEnabled; @Mock(upperValueBound = 15) private String description; @Inject public IndicatorListItem() { this.clickEnabled = true; } public IndicatorListItem(String title, String description, Long id) { this(); this.id = id; //this.sectionId = sectionId; this.title = title; this.description = description; } public IndicatorListItem(String title, String description, Long id, int description_length) { this.title = title; // If the description has more than 40 characters we have to shorten it this.description = Strings.shorten(description, description_length, true); this.id = id; //this.sectionId = sectionId; this.enableClick(true); } @Override public void enableClick(boolean enabled) { this.clickEnabled = enabled; } //This provides the callback - sg public void showDetails() { if (!this.clickEnabled) { return; } if (id == null) { id = -1L; } if (sectionId == null) { sectionId = -1L; } IndicatorListFragmentDirections.ActionShowIndicatorInfo action = IndicatorListFragmentDirections.actionShowIndicatorInfo(id, IndicatorInfoFragmentModes .FULL_VIEW); //Change for testing -sg //action.setMock(true); - uncomment for testing without db - sg Timber.tag(TAG) .d("Navigate to indicator info with id %d", id); this.navigationEventHandler.notifyLiveEvent(new NavigationCommand(action)); } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } }
f8c5e9871716dec1ba91ed18cc6f370cf743646a
6d9e0152408328b7c843de7af1356edd25e4805f
/src/main/java/com/harms/stash/plugin/jenkins/job/intergration/StashEventListener.java
759e4366adc889c2e1d485f816cadc305039cede
[ "Apache-2.0" ]
permissive
umbrew/stash-pullrequest-jenkins
56c00c4d04ba06f530cc4c27547959cfb9ab885f
3621bb382dba7574648a72c742a066e6927537fa
refs/heads/master
2021-03-13T00:07:11.970566
2015-07-01T17:26:22
2015-07-01T17:26:22
24,818,695
2
2
null
2015-07-01T17:26:22
2014-10-05T15:24:23
Java
UTF-8
Java
false
false
7,568
java
package com.harms.stash.plugin.jenkins.job.intergration; import java.io.Serializable; import java.util.Calendar; import java.util.Date; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.atlassian.event.api.EventListener; import com.atlassian.sal.api.pluginsettings.PluginSettings; import com.atlassian.sal.api.pluginsettings.PluginSettingsFactory; import com.atlassian.scheduler.SchedulerService; import com.atlassian.scheduler.SchedulerServiceException; import com.atlassian.scheduler.config.JobConfig; import com.atlassian.scheduler.config.JobId; import com.atlassian.scheduler.config.RunMode; import com.atlassian.scheduler.config.Schedule; import com.atlassian.stash.event.pull.PullRequestDeclinedEvent; import com.atlassian.stash.event.pull.PullRequestEvent; import com.atlassian.stash.event.pull.PullRequestMergedEvent; import com.atlassian.stash.event.pull.PullRequestOpenedEvent; import com.atlassian.stash.event.pull.PullRequestReopenedEvent; import com.atlassian.stash.event.pull.PullRequestRescopedEvent; import com.atlassian.stash.pull.PullRequest; import com.atlassian.stash.repository.Repository; import com.atlassian.stash.user.StashAuthenticationContext; import com.harms.stash.plugin.jenkins.job.settings.PluginSettingsHelper; public class StashEventListener { private static final Logger log = LoggerFactory.getLogger(StashEventListener.class); private final PluginSettings settings; private final SchedulerService schedulerService; private final StashAuthenticationContext stashAuthContext; public StashEventListener(PluginSettingsFactory pluginSettingsFactory, SchedulerService pluginScheduler,StashAuthenticationContext stashAuthContext) { this.schedulerService = pluginScheduler; this.settings = pluginSettingsFactory.createGlobalSettings(); this.stashAuthContext = stashAuthContext; } /** * Return the Jenkins Trigger Job event type from the {@link PullRequestEvent} * @param pushEvent - The {@link PullRequest} eventtype * @return a {@link TriggerRequestEvent} */ private TriggerRequestEvent getTriggerEventType(PullRequestEvent pushEvent) { TriggerRequestEvent eventType = TriggerRequestEvent.PULLREQUEST_EVENT_CREATED; if (pushEvent instanceof PullRequestRescopedEvent) { eventType = TriggerRequestEvent.PULLREQUEST_EVENT_SOURCE_UPDATED; } else if (pushEvent instanceof PullRequestReopenedEvent) { eventType = TriggerRequestEvent.PULLREQUEST_EVENT_REOPEN; } return eventType; } @EventListener public void openPullRequest(PullRequestOpenedEvent pushEvent) { PullRequestData prd = new PullRequestData(pushEvent.getPullRequest()); boolean isDisableAutomaticBuildByDefault = PluginSettingsHelper.isDisableAutomaticBuildByDefault(prd.slug,settings); if (isDisableAutomaticBuildByDefault) { PluginSettingsHelper.enableAutomaticBuildFlag(prd.projectKey, prd.slug, prd.pullRequestId, settings); return; } boolean triggerBuildOnCreate = PluginSettingsHelper.isTriggerBuildOnCreate(prd.slug,settings); if (triggerBuildOnCreate) { scheduleJobTrigger(pushEvent, prd); } } @EventListener public void updatePullRequest(PullRequestRescopedEvent pushEvent) { PullRequestData prd = new PullRequestData(pushEvent.getPullRequest()); boolean isSourceChanged = !pushEvent.getPullRequest().getFromRef().getLatestChangeset().equals(pushEvent.getPreviousFromHash()); boolean automaticBuildDisabled = PluginSettingsHelper.isAutomaticBuildDisabled(prd.projectKey,prd.slug,prd.pullRequestId,settings); boolean triggerBuildOnUpdate = PluginSettingsHelper.isTriggerBuildOnUpdate(prd.slug,settings); if ((triggerBuildOnUpdate) && (!automaticBuildDisabled) && (isSourceChanged)) { scheduleJobTrigger(pushEvent, prd); } } @EventListener public void reopenPullRequest(PullRequestReopenedEvent pushEvent) { PullRequestData prd = new PullRequestData(pushEvent.getPullRequest()); boolean isDisableAutomaticBuildByDefault = PluginSettingsHelper.isDisableAutomaticBuildByDefault(prd.slug,settings); if (isDisableAutomaticBuildByDefault) { PluginSettingsHelper.enableAutomaticBuildFlag(prd.projectKey, prd.slug, prd.pullRequestId, settings); return; } boolean automaticBuildDisabled = PluginSettingsHelper.isAutomaticBuildDisabled(prd.projectKey,prd.slug,prd.pullRequestId,settings); boolean triggerBuildOnReopen = PluginSettingsHelper.isTriggerBuildOnReopen(prd.slug,settings); if (triggerBuildOnReopen && !automaticBuildDisabled) { scheduleJobTrigger(pushEvent, prd); } } /** * Schedule a job trigger if a job is not already scheduled. * @param pushEvent * @param prd */ private void scheduleJobTrigger(PullRequestEvent pushEvent, PullRequestData prd) { String scheduleJobKey = PluginSettingsHelper.getScheduleJobKey(prd.slug,prd.pullRequestId); final Calendar scheduleJobTime = PluginSettingsHelper.getScheduleJobTime(scheduleJobKey); if ((scheduleJobTime == null) || (System.currentTimeMillis() > scheduleJobTime.getTime().getTime())) { Map<String, Serializable> jobData = JenkinsJobScheduler.buildJobDataMap(pushEvent.getPullRequest(),stashAuthContext,getTriggerEventType(pushEvent)); Date jobTime = PluginSettingsHelper.generateScheduleJobTime(prd.slug, settings, prd.pullRequestId); try { schedulerService.scheduleJob( JobId.of(scheduleJobKey), JobConfig.forJobRunnerKey(JenkinsJobScheduler.jobRunnerKey) .withParameters(jobData) .withRunMode(RunMode.RUN_ONCE_PER_CLUSTER) .withSchedule(Schedule.runOnce(jobTime))); } catch (SchedulerServiceException e) { log.error(String.format("Not able to schedule jenkins build with job id %s at %t",scheduleJobKey,jobTime)); } } } /** * Remove the disable automatic build settins when the pull-request is merged or declined * @param pushEvent */ private void removeDisableAutomaticBuildProperty(PullRequestEvent pushEvent) { PullRequest pullRequest = pushEvent.getPullRequest(); Repository repository = pullRequest.getToRef().getRepository(); PluginSettingsHelper.clearAutomaticBuildFlag(repository.getProject().getKey(),repository.getSlug(),pullRequest.getId(),settings); } @EventListener public void declinedPullRequest(PullRequestDeclinedEvent pushEvent) { PluginSettingsHelper.resetScheduleTime(PluginSettingsHelper.getScheduleJobKey(pushEvent.getPullRequest().getFromRef().getRepository().getSlug(),pushEvent.getPullRequest().getId())); //make sure we clean up the disable automatic property removeDisableAutomaticBuildProperty(pushEvent); } @EventListener public void mergePullRequest(PullRequestMergedEvent pushEvent) { PluginSettingsHelper.resetScheduleTime(PluginSettingsHelper.getScheduleJobKey(pushEvent.getPullRequest().getFromRef().getRepository().getSlug(),pushEvent.getPullRequest().getId())); //make sure we clean up the disable automatic property removeDisableAutomaticBuildProperty(pushEvent); } }
adc45524120434f8ce6b3c75455683548df5dab9
2a045eff2be22f3dfb5bf2541903027f7fb266fd
/LabCenter/src/com/lifepics/neuron/admin/Merchant.java
75187c2198b1ec487f81b0ec1583ac332e43d53f
[]
no_license
htliu/labcenter
dbbc2fbbfb364e2d7772ecd0ec82430b685cb726
2c630317f922933d4923b90ec32c8af6a088d02e
refs/heads/master
2021-01-17T07:53:44.692102
2016-07-27T07:55:32
2016-07-27T07:55:32
64,288,024
0
0
null
null
null
null
UTF-8
Java
false
false
950
java
/* * Merchant.java */ package com.lifepics.neuron.admin; import com.lifepics.neuron.core.ValidationException; import com.lifepics.neuron.struct.*; /** * An object that holds information about a merchant. */ public class Merchant extends Structure { // --- fields --- public int merchantID; public String name; public Integer invoiceVersionID; // links public SoftwareVersion invoiceVersion; // --- structure --- public static final StructureDefinition sd = new StructureDefinition( Merchant.class, 0,0, new AbstractField[] { new IntegerField("merchantID","MerchantID"), new NullableStringField("name","Name"), new NullableIntegerField("invoiceVersionID","InvoiceVersionID") }); protected StructureDefinition sd() { return sd; } // --- validation --- public void validate() throws ValidationException { } }
5932693f050570139fff35b3480a5994ff42a0ab
fa32ceba8346d6f01719bed30a1d6d09c8e9d0e4
/src/main/java/onlineShop/service/CartService.java
ca460f5021567a5bc04cec2af4c7be7b98789277
[]
no_license
necall/OnlineShopping-System
7762d0f6473aed7dca46c85861c3078d868b98c9
32a51135570e3f7c4fa61322515c7487f3108531
refs/heads/master
2020-04-01T08:54:10.681659
2018-10-15T04:02:13
2018-10-15T04:02:13
153,051,383
1
0
null
null
null
null
UTF-8
Java
false
false
128
java
package onlineShop.service; import onlineShop.model.Cart; public interface CartService { Cart getCartById(int CartId); }
d540fd067d13025eb97f6247ececb8c622769e6d
0919746d1db9003f1a33231e8c89ac910c74998a
/src/main/java/TP/config/RestConfiguration.java
d722f78d83619d4d93367e0eb8d4c857c4d012b4
[]
no_license
AnassYKN/game-ui-AnassYKN
87126ed18c935c9a0e2200eb98878e4d45e639f3
002b832597411606886e777b94021e9ae4d9d6b2
refs/heads/master
2022-07-02T17:27:05.687781
2020-05-10T00:08:35
2020-05-10T00:08:35
262,676,743
1
0
null
2020-05-09T23:25:13
2020-05-09T23:25:12
null
UTF-8
Java
false
false
834
java
package TP.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.*; import org.springframework.http.client.support.BasicAuthenticationInterceptor; import org.springframework.web.client.RestTemplate; @Configuration public class RestConfiguration { @Value("${spring.security.user.name}") private String username; @Value("${spring.security.user.password}") private String password; @Bean public RestTemplate restTemplate(){ return new RestTemplate(); } @Bean public RestTemplate trainerApiRestTemplate(){ RestTemplate restTemplate = new RestTemplate(); restTemplate.getInterceptors().add(new BasicAuthenticationInterceptor("user","787f7228-60da-11ea-bc55-0242ac130003")); return restTemplate; } }
5794d0373815eabf57d2be51656098fc53d222da
fcc94289c7dcf2be103dfbc3ca140ef3c2ffae76
/src/main/java/com/cperbony/App.java
90749bd7c3dd4509adb7cb10b464707311d4f532
[]
no_license
Cperbony/jsf-2
853759fab7595f5cfec085d9b564ec416113fc8f
410258c5e45e22039a3ef4466d5acc04ade09696
refs/heads/master
2020-03-30T04:43:20.331808
2018-09-28T15:21:40
2018-09-28T15:21:40
150,758,738
0
0
null
null
null
null
UTF-8
Java
false
false
743
java
package com.cperbony; import java.sql.Connection; import java.sql.SQLException; import javax.faces.bean.ManagedBean; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; @ManagedBean(name="appBean", eager = true) public class App { // @Resource(name="jdbc/mysql") // private DataSource datasource; private DataSource dataSource; public App() throws SQLException{ try { Context ctx = new InitialContext(); dataSource = (DataSource) ctx.lookup("java:comp/env/jdbc/mysql"); Connection con = dataSource.getConnection(); } catch (NamingException e) { e.printStackTrace(); } } public String helloWorld() { return "Hello World"; } }
f7f246e24a4451259058bafbec37152495393c46
fa5eff7c4264420a960ab5aa44be69f6bfa7b56f
/src/main/java/com/payfix/packages/service/CategoryService.java
2e38bad3f7d84285bc641643d63923611e528b93
[]
no_license
biradarkailas/payfixResource
312eaa6f1879eafe0d6742764dc1033cbb0eec8b
5aa897f4f7731522b755831a3e71a23116915b85
refs/heads/main
2023-04-17T05:30:02.213438
2021-05-01T08:31:53
2021-05-01T08:31:53
356,812,614
0
0
null
null
null
null
UTF-8
Java
false
false
853
java
package com.payfix.packages.service; import com.payfix.packages.service.dto.CategoryDTO; import java.util.List; import java.util.Optional; /** * Service Interface for managing {@link com.payfix.packages.domain.Category}. */ public interface CategoryService { /** * Save a category. * * @param categoryDTO the entity to save. * @return the persisted entity. */ CategoryDTO save(CategoryDTO categoryDTO); /** * Get all the categories. * * @return the list of entities. */ List<CategoryDTO> findAll(); /** * Get the "id" category. * * @param id the id of the entity. * @return the entity. */ Optional<CategoryDTO> findOne(Long id); /** * Delete the "id" category. * * @param id the id of the entity. */ void delete(Long id); }
5a20e911deaba9ee8b4c455ec0096357834f252e
cfec1fd7f6d6ceebd37260f340f9c1facbeeb16f
/src/com/eims/tjxl_andorid/ui/user/complain/ComplainTipActivity.java
bc0edcdab9c2ad6ba7c64f6c196f4e116cb231aa
[]
no_license
caocf/Tjxl
adc21e67c86c438d592af26a9e30d22c2e565485
371b51d7ffe3909d003353139863bbc4ff771803
refs/heads/master
2021-01-18T12:21:29.000804
2015-07-28T07:26:16
2015-07-28T07:26:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,756
java
package com.eims.tjxl_andorid.ui.user.complain; import android.os.Bundle; import android.view.View; import android.widget.TextView; import com.eims.tjxl_andorid.R; import com.eims.tjxl_andorid.app.BaseActivity; import com.eims.tjxl_andorid.entity.ComplainResultBean; import com.eims.tjxl_andorid.weght.HeadView; /** * Created by kuangyong on 2015/7/2. */ public class ComplainTipActivity extends BaseActivity implements View.OnClickListener{ public static final String BEAN="bean"; private ComplainResultBean bean; private HeadView head; private TextView btn_comfirm;// 底部按钮 private TextView tv_tip;//提示 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.layout_complain_tip); bean=(ComplainResultBean)getIntent().getSerializableExtra(BEAN); findViews(); setlistener(); initheadview(); } private void setlistener() { btn_comfirm.setOnClickListener(this); } private void findViews() { this.head = (HeadView) findViewById(R.id.head); this.btn_comfirm = (TextView) findViewById(R.id.btn_comfirm); this.tv_tip = (TextView) findViewById(R.id.tv_tip); } private void initheadview() { head.setText(""); head.setGobackVisible(); head.setRightGone(); if(null!=bean.getData()){ tv_tip.setText("申诉编号:"+bean.getData().getAppeal_code()+"\n申诉密码:"+bean.getData().getAppeal_pwd()+"(请牢记!)"); } } @Override public void onClick(View v) { switch (v.getId()) { case R.id.btn_comfirm: finish(); break; } } }
036cfb649d8ca9e0fa5ddd2fb41fdde06b7b977b
612ef954aa14b4e7bdc2ec4b4f3b6d143e3afe6c
/android/app/src/main/java/com/rnthenovo/generated/BasePackageList.java
142032275a72e93e1917c46251f147b155adcf47
[]
no_license
barsnes-group/deNovoGame_ReactNative
5e1aa39ddedafb48d58e1a0b672696a9c55df2b6
218adf9944b938fa054f400e6501ca2ffe13ef10
refs/heads/master
2023-05-05T14:36:01.665542
2021-05-20T07:54:49
2021-05-20T07:54:49
337,724,322
0
0
null
null
null
null
UTF-8
Java
false
false
1,046
java
package com.rnthenovo.generated; import java.util.Arrays; import java.util.List; import org.unimodules.core.interfaces.Package; public class BasePackageList { public List<Package> getPackageList() { return Arrays.<Package>asList( new expo.modules.application.ApplicationPackage(), new expo.modules.constants.ConstantsPackage(), new expo.modules.errorrecovery.ErrorRecoveryPackage(), new expo.modules.filesystem.FileSystemPackage(), new expo.modules.font.FontLoaderPackage(), new expo.modules.imageloader.ImageLoaderPackage(), new expo.modules.keepawake.KeepAwakePackage(), new expo.modules.lineargradient.LinearGradientPackage(), new expo.modules.location.LocationPackage(), new expo.modules.permissions.PermissionsPackage(), new expo.modules.securestore.SecureStorePackage(), new expo.modules.splashscreen.SplashScreenPackage(), new expo.modules.sqlite.SQLitePackage(), new expo.modules.updates.UpdatesPackage() ); } }
a959e5171ce1f5cc0c2516785a088a4b7659ff4a
20628be0a5a791551df5a7369426a750e75c5065
/src/main/java/com/example/demo/expenseNoSQL/homePayment/HomePayment.java
1ca7bd10c8466b10e482dcdee0a9fa5048b8fba3
[]
no_license
TylerMcCoi/ExpenseCalc-backend
7ceac654e317426543ef10fff743558f0e8b27ff
5889cbb0535353f6517ee793b2e14796a5b24f5e
refs/heads/master
2023-04-28T23:28:05.077559
2021-05-05T18:36:07
2021-05-05T18:36:07
362,535,150
0
0
null
null
null
null
UTF-8
Java
false
false
180
java
package com.example.demo.expenseNoSQL.homePayment; import com.example.demo.expenseNoSQL.ExpenseNoSQL; public class HomePayment extends ExpenseNoSQL { private String address; }
a38a67b8ce313833901ee8bc2930932ca984ef9e
2445201afc3d71e1d3f7af28d708d7d23c1a6ddd
/trustline/src/main/java/com/ripple/trustline/service/MailReceiptService.java
2eb71c2e244646a3ba11109d5c8bf0873ca78b19
[]
no_license
shahabyou1/TrustLine
5e253bb52dca2159138eac5b5002503a3c4821d2
764c2eb5cfc7497139ebfbfe2596cda696c6db7e
refs/heads/master
2020-04-18T01:43:53.091022
2019-01-23T06:44:28
2019-01-23T06:44:28
167,131,117
0
0
null
null
null
null
UTF-8
Java
false
false
809
java
package com.ripple.trustline.service; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ripple.trustline.domain.Transaction; import com.ripple.trustline.repository.PartyRepository; import com.ripple.trustline.repository.TransactionRepository; @Service public class MailReceiptService { private TransactionRepository transactionRepository; private PartyRepository partyRepository; @Autowired public MailReceiptService(TransactionRepository transactionRepository, PartyRepository partyRepository) { super(); this.transactionRepository = transactionRepository; this.partyRepository = partyRepository; } public void sendMailReceipt(Transaction transaction) { } }
67c4d69e24d6b582875e1dfeb74ce11cc7ed45b4
7fb580d0fc2bbffc164ad18aae8102be30410666
/src/dragonball/view/BattleMode.java
1f627aef8c0fac537d4019416c2ed7c9b8b87488
[]
no_license
AmrAymanKhalil505/DragonBall_Game
f2c5f19d0f329d5552e6273f9f35127c91bcbfcb
14eec686f3f5fb55c5dc1b9a99fe46629fe8c24f
refs/heads/master
2021-06-16T16:57:39.182595
2017-05-12T23:40:37
2017-05-12T23:40:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,382
java
package dragonball.view; import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Image; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JLabel; import java.awt.GridLayout; public class BattleMode extends JFrame { private JPanel contentPane; /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { BattleMode frame = new BattleMode(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the frame. */ public BattleMode() { setTitle("DragonBall"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 500, 300); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); Image img = new ImageIcon(this.getClass().getResource("/Battle.jpg")).getImage(); contentPane.setLayout(null); JLabel lblNewLabel = new JLabel("Me"); lblNewLabel.setBounds(63, 130, 68, 121); contentPane.add(lblNewLabel); JLabel label1 = new JLabel("Battle"); label1.setBounds(5, 5, 474, 252); label1.setIcon(new ImageIcon(img)); contentPane.add(label1); } }
86adc9b25ab427f5f3b19af40de36a959cc79bf1
f424c8574eace16a3c5bd78420b4c0e6be932ac2
/target/tomcat/work/Tomcat/localhost/crm/org/apache/jsp/WEB_002dINF/workbench/activity/index_jsp.java
a187120413da1cfae41f62932723c4043b974735
[]
no_license
maoyuhao1/ssm
3a62c1c08764567348ae60cf16c46ba4e8b77fc3
9be27f43b05bf15ab4870173bd7be457fb0fb6d5
refs/heads/master
2023-01-23T05:14:51.789628
2020-11-23T11:29:01
2020-11-23T11:29:01
312,769,915
0
0
null
null
null
null
UTF-8
Java
false
false
35,627
java
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/7.0.47 * Generated at: 2020-11-21 13:32:50 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.apache.jsp.WEB_002dINF.workbench.activity; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final javax.servlet.jsp.JspFactory _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.tomcat.InstanceManager _jsp_instancemanager; public java.util.Map<java.lang.String,java.lang.Long> getDependants() { return _jspx_dependants; } public void _jspInit() { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); } public void _jspDestroy() { } public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("<!DOCTYPE html>\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta charset=\"UTF-8\">\r\n"); out.write("\r\n"); out.write("<link href=\"/crm/jquery/bootstrap_3.3.0/css/bootstrap.min.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n"); out.write("<link href=\"/crm/jquery/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n"); out.write("\r\n"); out.write("<script type=\"text/javascript\" src=\"/crm/jquery/jquery-1.11.1-min.js\"></script>\r\n"); out.write("<script type=\"text/javascript\" src=\"/crm/jquery/bootstrap_3.3.0/js/bootstrap.min.js\"></script>\r\n"); out.write("<script type=\"text/javascript\" src=\"/crm/jquery/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js\"></script>\r\n"); out.write("<script type=\"text/javascript\" src=\"/crm/jquery/bootstrap-datetimepicker-master/locale/bootstrap-datetimepicker.zh-CN.js\"></script>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("<link href=\"/crm/jquery/bs_pagination/jquery.bs_pagination.min.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n"); out.write("<script type=\"text/javascript\" src=\"/crm/jquery/bs_pagination/en.js\"></script>\r\n"); out.write("<script type=\"text/javascript\" src=\"/crm/jquery/bs_pagination/jquery.bs_pagination.min.js\"></script>\r\n"); out.write("<script type=\"text/javascript\"></script>\r\n"); out.write("\r\n"); out.write("\t\t</head>\r\n"); out.write("<body>\r\n"); out.write("\r\n"); out.write("\t<!-- 创建市场活动的模态窗口 -->\r\n"); out.write("\t<div class=\"modal fade\" id=\"createActivityModal\" role=\"dialog\">\r\n"); out.write("\t\t<div class=\"modal-dialog\" role=\"document\" style=\"width: 85%;\">\r\n"); out.write("\t\t\t<div class=\"modal-content\">\r\n"); out.write("\t\t\t\t<div class=\"modal-header\">\r\n"); out.write("\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">\r\n"); out.write("\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>\r\n"); out.write("\t\t\t\t\t</button>\r\n"); out.write("\t\t\t\t\t<h4 class=\"modal-title\" id=\"myModalLabel1\">创建市场活动</h4>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<div class=\"modal-body\">\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t\t<form class=\"form-horizontal\" role=\"form\" id=\"createActivtiyForm\">\r\n"); out.write("\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"create-marketActivityOwner\" class=\"col-sm-2 control-label\">所有者<span style=\"font-size: 15px; color: red;\">*</span></label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"create-marketActivityOwner\">\r\n"); out.write("\t\t\t\t\t\t\t\t</select>\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write(" <label for=\"create-marketActivityName\" class=\"col-sm-2 control-label\">名称<span style=\"font-size: 15px; color: red;\">*</span></label>\r\n"); out.write(" <div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write(" <input type=\"text\" class=\"form-control\" id=\"create-marketActivityName\">\r\n"); out.write(" </div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"create-startTime\" class=\"col-sm-2 control-label\">开始日期</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"create-startTime\">\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"create-endTime\" class=\"col-sm-2 control-label\">结束日期</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"create-endTime\">\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write(" <div class=\"form-group\">\r\n"); out.write("\r\n"); out.write(" <label for=\"create-cost\" class=\"col-sm-2 control-label\">成本</label>\r\n"); out.write(" <div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write(" <input type=\"text\" class=\"form-control\" id=\"create-cost\">\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"create-describe\" class=\"col-sm-2 control-label\">描述</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 81%;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<textarea class=\"form-control\" rows=\"3\" id=\"create-describe\"></textarea>\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t</form>\r\n"); out.write("\t\t\t\t\t\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<div class=\"modal-footer\">\r\n"); out.write("\t\t\t\t\t<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">关闭</button>\r\n"); out.write("\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary\" id=\"saveActivityBtn\" >保存</button>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t</div>\r\n"); out.write("\t</div>\r\n"); out.write("\t\r\n"); out.write("\t<!-- 修改市场活动的模态窗口 -->\r\n"); out.write("\t<div class=\"modal fade\" id=\"editActivityModal\" role=\"dialog\">\r\n"); out.write("\t\t<div class=\"modal-dialog\" role=\"document\" style=\"width: 85%;\">\r\n"); out.write("\t\t\t<div class=\"modal-content\">\r\n"); out.write("\t\t\t\t<div class=\"modal-header\">\r\n"); out.write("\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">\r\n"); out.write("\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>\r\n"); out.write("\t\t\t\t\t</button>\r\n"); out.write("\t\t\t\t\t<h4 class=\"modal-title\" id=\"myModalLabel2\">修改市场活动</h4>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<div class=\"modal-body\">\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t\t<form class=\"form-horizontal\" role=\"form\">\r\n"); out.write("\t\t\t\t\t\t<input id=\"aid\" type=\"hidden\">\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"edit-marketActivityOwner\" class=\"col-sm-2 control-label\">所有者<span style=\"font-size: 15px; color: red;\">*</span></label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<select class=\"form-control\" id=\"edit-marketActivityOwner\">\r\n"); out.write("\t\t\t\t\t\t\t\t</select>\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write(" <label for=\"edit-marketActivityName\" class=\"col-sm-2 control-label\">名称<span style=\"font-size: 15px; color: red;\">*</span></label>\r\n"); out.write(" <div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write(" <input type=\"text\" class=\"form-control\" id=\"edit-marketActivityName\" value=\"发传单\">\r\n"); out.write(" </div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"edit-startTime\" class=\"col-sm-2 control-label\">开始日期</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"edit-startTime\" value=\"2020-10-10\">\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"edit-endTime\" class=\"col-sm-2 control-label\">结束日期</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"edit-endTime\" value=\"2020-10-20\">\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"edit-cost\" class=\"col-sm-2 control-label\">成本</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 300px;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"edit-cost\" value=\"5,000\">\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t\t<div class=\"form-group\">\r\n"); out.write("\t\t\t\t\t\t\t<label for=\"edit-describe\" class=\"col-sm-2 control-label\">描述</label>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"col-sm-10\" style=\"width: 81%;\">\r\n"); out.write("\t\t\t\t\t\t\t\t<textarea class=\"form-control\" rows=\"3\" id=\"edit-describe\">市场活动Marketing,是指品牌主办或参与的展览会议与公关市场活动,包括自行主办的各类研讨会、客户交流会、演示会、新产品发布会、体验会、答谢会、年会和出席参加并布展或演讲的展览会、研讨会、行业交流会、颁奖典礼等</textarea>\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t</form>\r\n"); out.write("\t\t\t\t\t\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<div class=\"modal-footer\">\r\n"); out.write("\t\t\t\t\t<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">关闭</button>\r\n"); out.write("\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary\" id=\"ModelUpdateActivity\">更新</button>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t</div>\r\n"); out.write("\t</div>\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t<div>\r\n"); out.write("\t\t<div style=\"position: relative; left: 10px; top: -10px;\">\r\n"); out.write("\t\t\t<div class=\"page-header\">\r\n"); out.write("\t\t\t\t<h3>市场活动列表</h3>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t</div>\r\n"); out.write("\t</div>\r\n"); out.write("\t<div style=\"position: relative; top: -20px; left: 0px; width: 100%; height: 100%;\">\r\n"); out.write("\t\t<div style=\"width: 100%; position: absolute;top: 5px; left: 10px;\">\r\n"); out.write("\t\t\r\n"); out.write("\t\t\t<div class=\"btn-toolbar\" role=\"toolbar\" style=\"height: 80px;\">\r\n"); out.write("\t\t\t\t<form class=\"form-inline\" role=\"form\" style=\"position: relative;top: 8%; left: 5px;\">\r\n"); out.write("\t\t\t\t \r\n"); out.write("\t\t\t\t <div class=\"form-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group-addon\">名称</div>\r\n"); out.write("\t\t\t\t <input class=\"form-control\" type=\"text\" id=\"name\">\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t \r\n"); out.write("\t\t\t\t <div class=\"form-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group-addon\">所有者</div>\r\n"); out.write("\t\t\t\t <input class=\"form-control\" type=\"text\" id=\"owner\">\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t\t\t\t <div class=\"form-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group-addon\">开始日期</div>\r\n"); out.write("\t\t\t\t\t <input class=\"form-control\" type=\"text\" id=\"startTime\" />\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t <div class=\"form-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group\">\r\n"); out.write("\t\t\t\t <div class=\"input-group-addon\">结束日期</div>\r\n"); out.write("\t\t\t\t\t <input class=\"form-control\" type=\"text\" id=\"endTime\" >\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t </div>\r\n"); out.write("\t\t\t\t \r\n"); out.write("\t\t\t\t <button type=\"button\" class=\"btn btn-default\" onclick=\"queryActivity()\">查询</button>\r\n"); out.write("\t\t\t\t \r\n"); out.write("\t\t\t\t</form>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t\t<div class=\"btn-toolbar\" role=\"toolbar\" style=\"background-color: #F7F7F7; height: 50px; position: relative;top: 5px;\">\r\n"); out.write("\t\t\t\t<div class=\"btn-group\" style=\"position: relative; top: 18%;\">\r\n"); out.write("\t\t\t\t <button type=\"button\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#createActivityModal\" id=\"createActivity\"><span class=\"glyphicon glyphicon-plus\"></span> 创建</button>\r\n"); out.write("\t\t\t\t <button type=\"button\" class=\"btn btn-default\" data-toggle=\"modal\" id=\"updateActivity\"><span class=\"glyphicon glyphicon-pencil\"></span> 修改</button>\r\n"); out.write("\t\t\t\t <button type=\"button\" class=\"btn btn-danger\" id=\"deleteActivity\"><span class=\"glyphicon glyphicon-minus\" ></span> 删除</button>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t\t<div style=\"position: relative;top: 10px;\">\r\n"); out.write("\t\t\t\t<table class=\"table table-hover\">\r\n"); out.write("\t\t\t\t\t<thead>\r\n"); out.write("\t\t\t\t\t\t<tr style=\"color: #B3B3B3;\">\r\n"); out.write("\t\t\t\t\t\t\t<td><input type=\"checkbox\" id=\"father\"/></td>\r\n"); out.write("\t\t\t\t\t\t\t<td>名称</td>\r\n"); out.write(" <td>所有者</td>\r\n"); out.write("\t\t\t\t\t\t\t<td>开始日期</td>\r\n"); out.write("\t\t\t\t\t\t\t<td>结束日期</td>\r\n"); out.write("\t\t\t\t\t\t</tr>\r\n"); out.write("\t\t\t\t\t</thead>\r\n"); out.write("\t\t\t\t\t<tbody id=\"activityBody\">\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t</tbody>\r\n"); out.write("\t\t\t\t</table>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t\t"); out.write("\r\n"); out.write("\t\t\t<div style=\"height: 50px; position: relative;top: 30px;\">\r\n"); out.write("\t\t\t\t<div id=\"activityPage\"></div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t</div>\r\n"); out.write("\t\t\r\n"); out.write("\t</div>\r\n"); out.write("</body>\r\n"); out.write("</html>\r\n"); out.write("<script>\r\n"); out.write("\r\n"); out.write("\t//全选\r\n"); out.write("\t$('#father').click(function () {\r\n"); out.write("\t\t$('.son').each(function () {\r\n"); out.write("\t\t\t$(this).prop('checked', $('#father').prop('checked'))\r\n"); out.write("\t\t});\r\n"); out.write("\t})\r\n"); out.write("\r\n"); out.write("\t$('.son').each(function () {\r\n"); out.write("\t\t$(this).click(function () {\r\n"); out.write("\t\t\tvar selectAll = $('.son:checked');\r\n"); out.write("\t\t\tif (selectAll.length == $('.son').length) {\r\n"); out.write("\t\t\t\t$('#father').prop('checked', true);\r\n"); out.write("\t\t\t} else {\r\n"); out.write("\t\t\t\t$('#father').prop('checked', false);\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t})\r\n"); out.write("\t});\r\n"); out.write("\r\n"); out.write("\t//点击删除按钮\r\n"); out.write("\t$('#deleteActivity').click(function () {\r\n"); out.write("\t\tif ($('.son:checked').length == 0) {\r\n"); out.write("\t\t\talert(\"至少选择一条记录\");\r\n"); out.write("\t\t} else {\r\n"); out.write("\t\t\tif (confirm(\"您确定删除这些数据吗?\")) {\r\n"); out.write("\t\t\t\t//定义一个数据,用于存放勾中的id号\r\n"); out.write("\t\t\t\tvar idArray = [];\r\n"); out.write("\t\t\t\t//获取勾中的复选框\r\n"); out.write("\t\t\t\t$('.son:checked').each(function () {\r\n"); out.write("\t\t\t\t\tidArray.push($(this).val());\r\n"); out.write("\t\t\t\t});\r\n"); out.write("\t\t\t\t//join:将数组内容通过制定分隔符进行分割,并且拼接成字符串,默认的分隔符是,号\r\n"); out.write("\t\t\t\t//向后台发出删除请求idArray.join()\r\n"); out.write("\t\t\t\t//location.href = \"/ssm/deleteBatch?fids=\" + idArray.join();\r\n"); out.write("\t\t\t\t$.ajax({\r\n"); out.write("\t\t\t\t\turl: '/crm/workbench/activity/deleteActivity',\r\n"); out.write("\t\t\t\t\tdata:{\r\n"); out.write("\t\t\t\t\t\t'ids':idArray.join()\r\n"); out.write("\t\t\t\t\t},\r\n"); out.write("\t\t\t\t\ttype: 'get',\r\n"); out.write("\t\t\t\t\tdataType: 'json',\r\n"); out.write("\t\t\t\t\tsuccess: function (data) {\r\n"); out.write("\t\t\t\t\t\talert(data.mess)\r\n"); out.write("\t\t\t\t\t\t//调用pageList刷新页面\r\n"); out.write("\t\t\t\t\t\tpageList(1,2);\r\n"); out.write("\t\t\t\t\t}\r\n"); out.write("\t\t\t\t})\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t}\r\n"); out.write("\r\n"); out.write("\t})\r\n"); out.write("\r\n"); out.write("\t//点击更新按钮\r\n"); out.write("\t$('#ModelUpdateActivity').click(function () {\r\n"); out.write("\t\t//更新活动\r\n"); out.write("\t\t$.ajax({\r\n"); out.write("\t\t\turl: '/crm/workbench/activity/updateActivity',\r\n"); out.write("\t\t\tdata:{\r\n"); out.write("\t\t\t\t'id':$('#aid').val(),\r\n"); out.write("\t\t\t\t'owner' : $('#edit-marketActivityOwner').val(),\r\n"); out.write("\t\t\t\t'name' : $('#edit-marketActivityName').val(),\r\n"); out.write("\t\t\t\t'start_date' : $('#edit-startTime').val(),\r\n"); out.write("\t\t\t\t'end_date' : $('#edit-endTime').val(),\r\n"); out.write("\t\t\t\t'cost' :$('#edit-cost').val(),\r\n"); out.write("\t\t\t\t'description' : $('#edit-describe').val()\r\n"); out.write("\t\t\t},\r\n"); out.write("\t\t\ttype: 'get',\r\n"); out.write("\t\t\tdataType: 'json',\r\n"); out.write("\t\t\tsuccess: function (data) {\r\n"); out.write("\t\t\t\talert(data.mess)\r\n"); out.write("\t\t\t\t$('#editActivityModal').modal('hide');\r\n"); out.write("\r\n"); out.write("\t\t\t\t//调用pageList刷新页面\r\n"); out.write("\t\t\t\tpageList(1,2);\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t})\r\n"); out.write("\t})\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t//点击修改按钮\r\n"); out.write("\t$('#updateActivity').click(function () {\r\n"); out.write("\t\tif ($('.son:checked').length != 1) {\r\n"); out.write("\t\t\talert(\"请选择一条记录\");\r\n"); out.write("\t\t} else {\r\n"); out.write("\t\t\t$('#editActivityModal').modal('show')\r\n"); out.write("\t\t\t$.ajax({\r\n"); out.write("\t\t\t\turl: '/crm/workbench/activity/queryActivityById',\r\n"); out.write("\t\t\t\tdata:{\"activityId\":$('.son:checked').val()},\r\n"); out.write("\t\t\t\ttype: 'get',\r\n"); out.write("\t\t\t\tdataType: 'json',\r\n"); out.write("\t\t\t\tsuccess: function (updatedata) {\r\n"); out.write("\t\t\t\t\t$('#aid').val(updatedata[0].id)\r\n"); out.write("\t\t\t\t\t$('#edit-marketActivityName').val(updatedata[0].name)\r\n"); out.write("\t\t\t\t\t$('#edit-startTime').val(updatedata[0].start_date)\r\n"); out.write("\t\t\t\t\t$('#edit-endTime').val(updatedata[0].end_date)\r\n"); out.write("\t\t\t\t\t$('#edit-cost').val(updatedata[0].cost)\r\n"); out.write("\t\t\t\t\t$('#edit-describe').val(updatedata[0].description)\r\n"); out.write("\t\t\t\t\tdocument.getElementById('edit-marketActivityOwner').options.length = 0\r\n"); out.write("\t\t\t\t\t$.ajax({\r\n"); out.write("\t\t\t\t\t\turl: '/crm/workbench/activity/queryAllOwner',\r\n"); out.write("\t\t\t\t\t\ttype: 'get',\r\n"); out.write("\t\t\t\t\t\tdataType: 'json',\r\n"); out.write("\t\t\t\t\t\tsuccess: function (data) {\r\n"); out.write("\t\t\t\t\t\t\tfor (var i = 0 ;i < data.length;i++){\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t\t\t\t$('#edit-marketActivityOwner').append(\"<option value=\"+data[i].id+\">\"+data[i].name+\"</option>\")\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t\t\t//将owner回显\r\n"); out.write("\t\t\t\t\t\t\t$('#edit-marketActivityOwner option').each(function () {\r\n"); out.write("\t\t\t\t\t\t\t\tif ($(this).val() == updatedata[0].owner) {\r\n"); out.write("\t\t\t\t\t\t\t\t\t$(this).prop('selected', true)\r\n"); out.write("\t\t\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t\t\t})\r\n"); out.write("\t\t\t\t\t\t}\r\n"); out.write("\t\t\t\t\t})\r\n"); out.write("\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t})\r\n"); out.write("\r\n"); out.write("\t\t}\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t})\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t//点击保存按钮\r\n"); out.write("\t$('#saveActivityBtn').click(function () {\r\n"); out.write("\t\tif ($('#create-marketActivityName').val() == '' ){\r\n"); out.write("\t\t\talert(\"请输入名称\")\r\n"); out.write("\t\t}else {\r\n"); out.write("\t\t\t//插入活动\r\n"); out.write("\t\t\t$.ajax({\r\n"); out.write("\t\t\t\turl: '/crm/workbench/activity/createActivity',\r\n"); out.write("\t\t\t\tdata:{\r\n"); out.write("\t\t\t\t\t'owner' : $('#create-marketActivityOwner').val(),\r\n"); out.write("\t\t\t\t\t'name' : $('#create-marketActivityName').val(),\r\n"); out.write("\t\t\t\t\t'start_date' : $('#create-startTime').val(),\r\n"); out.write("\t\t\t\t\t'end_date' : $('#create-endTime').val(),\r\n"); out.write("\t\t\t\t\t'cost' :$('#create-cost').val(),\r\n"); out.write("\t\t\t\t\t'description' : $('#create-describe').val()\r\n"); out.write("\t\t\t\t},\r\n"); out.write("\t\t\t\ttype: 'get',\r\n"); out.write("\t\t\t\tdataType: 'json',\r\n"); out.write("\t\t\t\tsuccess: function (data) {\r\n"); out.write("\t\t\t\t\talert(data.mess)\r\n"); out.write("\t\t\t\t\t$('#createActivtiyForm')[0].reset();\r\n"); out.write("\t\t\t\t\t$('#createActivityModal').modal('hide');\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t//调用pageList刷新页面\r\n"); out.write("\t\t\t\t\tpageList(1,2);\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t})\r\n"); out.write("\t\t}\r\n"); out.write("\t})\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t//创建活动异步查询\r\n"); out.write("\t$('#createActivity').click(function () {\r\n"); out.write("\t\tdocument.getElementById('create-marketActivityOwner').options.length = 0\r\n"); out.write("\t\t$.ajax({\r\n"); out.write("\t\t\turl: '/crm/workbench/activity/queryAllOwner',\r\n"); out.write("\t\t\ttype: 'get',\r\n"); out.write("\t\t\tdataType: 'json',\r\n"); out.write("\t\t\tsuccess: function (data) {\r\n"); out.write("\t\t\t\tfor (var i = 0 ;i < data.length;i++){\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t$('#create-marketActivityOwner').append(\"<option value=\"+data[i].id+\">\"+data[i].name+\"</option>\")\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t})\r\n"); out.write("\t})\r\n"); out.write("\r\n"); out.write("\t//点击查询按钮\r\n"); out.write("\tfunction queryActivity(){\r\n"); out.write("\t\tpageList(1,2);\r\n"); out.write("\t}\r\n"); out.write("\r\n"); out.write("\tpageList(1,2)\r\n"); out.write("\r\n"); out.write("\tfunction pageList(page,pageSize) {\r\n"); out.write("\t\t$('#activityBody').html(\"\")\r\n"); out.write("\t\t$.ajax({\r\n"); out.write("\t\t\turl: '/crm/workbench/activity/queryList',\r\n"); out.write("\t\t\tdata:{\r\n"); out.write("\t\t\t\t'page':page,\r\n"); out.write("\t\t\t\t'pageSize':pageSize,\r\n"); out.write("\t\t\t\t'name':$('#name').val(),\r\n"); out.write("\t\t\t\t'owner':$('#owner').val(),\r\n"); out.write("\t\t\t\t'start_date':$('#startTime').val(),\r\n"); out.write("\t\t\t\t'end_date':$('#endTime').val(),\r\n"); out.write("\t\t\t},\r\n"); out.write("\t\t\ttype: 'get',\r\n"); out.write("\t\t\tdataType: 'json',\r\n"); out.write("\t\t\tsuccess: function (data) {\r\n"); out.write("\t\t\t\tvar dataList = data.pageInfo.list;\r\n"); out.write("\t\t\t\tfor (var i = 0; i < dataList.length; i++) {\r\n"); out.write("\t\t\t\t\tvar list = dataList[i]\r\n"); out.write("\t\t\t\t\t$('#activityBody').append(\"<tr class=\\\"active\\\">\\n\" +\r\n"); out.write("\t\t\t\t\t\t\t\"<td><input type=\\\"checkbox\\\" class=\\\"son\\\" value=\\\"\"+list.id+\"\\\"+/></td>\\n\" +\r\n"); out.write("\t\t\t\t\t\t\t\"<td><a style=\\\"text-decoration: none; cursor: pointer;\\\" href=/crm/workbench/activity/queryActivityDetailById?id=\"+list.id+\">\" + list.name + \"</a></td>\\n\" +\r\n"); out.write("\t\t\t\t\t\t\t\"<td>\" + list.uname + \"</td>\\n\" +\r\n"); out.write("\t\t\t\t\t\t\t\"<td>\" + list.start_date + \"</td>\\n\" +\r\n"); out.write("\t\t\t\t\t\t\t\"<td>\" + list.end_date + \"</td>\\n\" +\r\n"); out.write("\t\t\t\t\t\t\t\"</tr> \");\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\r\n"); out.write("\t\t\t\t/*将分页信息传入*/\r\n"); out.write("\t\t\t\t$(\"#activityPage\").bs_pagination({\r\n"); out.write("\t\t\t\t\tcurrentPage: data.page, // 页码\r\n"); out.write("\t\t\t\t\trowsPerPage: data.pageSize, // 每页显示的记录条数\r\n"); out.write("\t\t\t\t\tmaxRowsPerPage: 20, // 每页最多显示的记录条数\r\n"); out.write("\t\t\t\t\ttotalPages: data.totalPages, // 总页数\r\n"); out.write("\t\t\t\t\ttotalRows: data.totalRows, // 总记录条数\r\n"); out.write("\t\t\t\t\tvisiblePageLinks: 3, // 显示几个卡片\r\n"); out.write("\t\t\t\t\tshowGoToPage: true,\r\n"); out.write("\t\t\t\t\tshowRowsPerPage: true,\r\n"); out.write("\t\t\t\t\tshowRowsInfo: true,\r\n"); out.write("\t\t\t\t\tshowRowsDefaultInfo: true,\r\n"); out.write("\t\t\t\t\t//回调函数\r\n"); out.write("\t\t\t\t\tonChangePage: function (event, obj) {\r\n"); out.write("\t\t\t\t\t\tpageList(obj.currentPage, obj.rowsPerPage);\r\n"); out.write("\t\t\t\t\t}\r\n"); out.write("\t\t\t\t})\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t})\r\n"); out.write("\t}\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t//条件查询日历插件\r\n"); out.write("\t$(\"#startTime\").datetimepicker({\r\n"); out.write("\t\tlanguage: \"zh-CN\",\r\n"); out.write("\t\tformat: \"yyyy-mm-dd\",//显示格式\r\n"); out.write("\t\tminView: \"month\",//设置只显示到月份\r\n"); out.write("\t\tinitialDate: new Date(),//初始化当前日期\r\n"); out.write("\t\tautoclose: true,//选中自动关闭\r\n"); out.write("\t\ttodayBtn: true, //显示今日按钮\r\n"); out.write("\t\tclearBtn : true,\r\n"); out.write("\t\tpickerPosition: \"bottom-left\"\r\n"); out.write("\t});\r\n"); out.write("\r\n"); out.write("\t$(\"#endTime\").datetimepicker({\r\n"); out.write("\t\tlanguage: \"zh-CN\",\r\n"); out.write("\t\tformat: \"yyyy-mm-dd\",//显示格式\r\n"); out.write("\t\tminView: \"month\",//设置只显示到月份\r\n"); out.write("\t\tinitialDate: new Date(),//初始化当前日期\r\n"); out.write("\t\tautoclose: true,//选中自动关闭\r\n"); out.write("\t\ttodayBtn: true, //显示今日按钮\r\n"); out.write("\t\tclearBtn : true,\r\n"); out.write("\t\tpickerPosition: \"bottom-left\"\r\n"); out.write("\t});\r\n"); out.write("\r\n"); out.write("\t//创建市场活动日期\r\n"); out.write("\t$(\"#create-startTime\").datetimepicker({\r\n"); out.write("\t\tlanguage: \"zh-CN\",\r\n"); out.write("\t\tformat: \"yyyy-mm-dd\",//显示格式\r\n"); out.write("\t\tminView: \"month\",//设置只显示到月份\r\n"); out.write("\t\tinitialDate: new Date(),//初始化当前日期\r\n"); out.write("\t\tautoclose: true,//选中自动关闭\r\n"); out.write("\t\ttodayBtn: true, //显示今日按钮\r\n"); out.write("\t\tclearBtn : true,\r\n"); out.write("\t\tpickerPosition: \"bottom-left\"\r\n"); out.write("\t});\r\n"); out.write("\t$(\"#create-endTime\").datetimepicker({\r\n"); out.write("\t\tlanguage: \"zh-CN\",\r\n"); out.write("\t\tformat: \"yyyy-mm-dd\",//显示格式\r\n"); out.write("\t\tminView: \"month\",//设置只显示到月份\r\n"); out.write("\t\tinitialDate: new Date(),//初始化当前日期\r\n"); out.write("\t\tautoclose: true,//选中自动关闭\r\n"); out.write("\t\ttodayBtn: true, //显示今日按钮\r\n"); out.write("\t\tclearBtn : true,\r\n"); out.write("\t\tpickerPosition: \"bottom-left\"\r\n"); out.write("\t});\r\n"); out.write("\r\n"); out.write("\t//修改市场活动日期\r\n"); out.write("\t$(\"#edit-startTime\").datetimepicker({\r\n"); out.write("\t\tlanguage: \"zh-CN\",\r\n"); out.write("\t\tformat: \"yyyy-mm-dd\",//显示格式\r\n"); out.write("\t\tminView: \"month\",//设置只显示到月份\r\n"); out.write("\t\tinitialDate: new Date(),//初始化当前日期\r\n"); out.write("\t\tautoclose: true,//选中自动关闭\r\n"); out.write("\t\ttodayBtn: true, //显示今日按钮\r\n"); out.write("\t\tclearBtn : true,\r\n"); out.write("\t\tpickerPosition: \"bottom-left\"\r\n"); out.write("\t});\r\n"); out.write("\t$(\"#edit-endTime\").datetimepicker({\r\n"); out.write("\t\tlanguage: \"zh-CN\",\r\n"); out.write("\t\tformat: \"yyyy-mm-dd\",//显示格式\r\n"); out.write("\t\tminView: \"month\",//设置只显示到月份\r\n"); out.write("\t\tinitialDate: new Date(),//初始化当前日期\r\n"); out.write("\t\tautoclose: true,//选中自动关闭\r\n"); out.write("\t\ttodayBtn: true, //显示今日按钮\r\n"); out.write("\t\tclearBtn : true,\r\n"); out.write("\t\tpickerPosition: \"bottom-left\"\r\n"); out.write("\t});\r\n"); out.write("</script>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
4f9e88761338505d98f270bfd2c4f7de94a9725f
e16cf96f36bdb27a7ade926b1ca5383d1e45693d
/go-impl/src/main/java/com/goide/util/GoTargetSystem.java
3e6316fd8b6a3e7eaeeb076a34bf92b0ea50385b
[]
no_license
consulo/consulo-google-go
fb313e52fbb60557b98dc1463705a36dcb6d0567
395db75680ab98db1baa2a8f967ce228ffa907ba
refs/heads/master
2023-08-29T12:51:12.883006
2023-07-08T08:55:26
2023-07-08T08:55:26
220,055,526
2
0
null
2023-01-01T16:39:23
2019-11-06T17:43:52
Java
UTF-8
Java
false
false
3,932
java
/* * Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.goide.util; import com.goide.project.GoBuildTargetSettings; import com.goide.sdk.GoSdkService; import consulo.application.util.CachedValueProvider; import consulo.application.util.CachedValuesManager; import consulo.google.go.module.extension.GoModuleExtension; import consulo.language.util.ModuleUtilCore; import consulo.module.Module; import consulo.module.content.ProjectRootManager; import consulo.util.collection.ArrayUtil; import consulo.util.lang.ThreeState; import org.jetbrains.annotations.Contract; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.util.Collections; import java.util.HashSet; import java.util.Set; public class GoTargetSystem { private static final String GAE_BUILD_FLAG = "appengine"; @Nonnull public final String os; @Nonnull public final String arch; @Nullable public final String goVersion; @Nullable public final String compiler; @Nonnull public final ThreeState cgoEnabled; private final Set<String> customFlags = new HashSet<>(); public GoTargetSystem(@Nonnull String os, @Nonnull String arch, @Nullable String goVersion, @Nullable String compiler, @Nonnull ThreeState cgoEnabled, @Nonnull String... customFlags) { this.os = os; this.arch = arch; this.goVersion = goVersion; this.compiler = compiler; this.cgoEnabled = cgoEnabled; Collections.addAll(this.customFlags, customFlags); } public boolean supportsFlag(@Nonnull String flag) { return customFlags.contains(flag); } @Nullable public static GoTargetSystem forModule(@Nonnull Module module) { return CachedValuesManager.getManager(module.getProject()).getCachedValue(module, () -> { GoModuleExtension goModuleExtension = ModuleUtilCore.getExtension(module, GoModuleExtension.class); if (goModuleExtension == null) { return CachedValueProvider.Result.create(null, ProjectRootManager.getInstance(module.getProject())); } GoBuildTargetSettings settings = goModuleExtension.getBuildTargetSettings(); String os = realValue(settings.os, GoUtil.systemOS()); String arch = realValue(settings.arch, GoUtil.systemArch()); ThreeState cgo = settings.cgo == ThreeState.UNSURE ? GoUtil.systemCgo(os, arch) : settings.cgo; String moduleSdkVersion = GoSdkService.getInstance(module.getProject()).getSdkVersion(module); String[] customFlags = GoSdkService.getInstance(module.getProject()).isAppEngineSdk(module) ? ArrayUtil.prepend(GAE_BUILD_FLAG, settings.customFlags) : settings.customFlags; String compiler = GoBuildTargetSettings.ANY_COMPILER.equals(settings.compiler) ? null : settings.compiler; GoTargetSystem result = new GoTargetSystem(os, arch, realValue(settings.goVersion, moduleSdkVersion), compiler, cgo, customFlags); return CachedValueProvider.Result.create(result, ProjectRootManager.getInstance(module.getProject())); }); } @Contract("_,null->!null") private static String realValue(@Nonnull String value, @Nullable String defaultValue) { return GoBuildTargetSettings.DEFAULT.equals(value) ? defaultValue : value; } }
92247f700597f7cfc2ab7fd1e699487d7f3d969f
6cd1e4b15884a72ebc5af94b85a467893243ddeb
/SplitImage/gen/com/example/splitimage/BuildConfig.java
34ba0498c02c75a9856736fe72bad4d4e724c5dc
[]
no_license
ankurgupta85/Android-Apps
a3bfa2208bddc963167bfe07cf8234092134c43c
a578e3a8b0578838410f6a4067de7d1979f31341
refs/heads/master
2020-05-18T09:28:54.057125
2015-09-06T21:10:34
2015-09-06T21:10:34
13,005,493
0
0
null
null
null
null
UTF-8
Java
false
false
164
java
/** Automatically generated file. DO NOT MODIFY */ package com.example.splitimage; public final class BuildConfig { public final static boolean DEBUG = true; }
c7b54a7de8011b94f15f4bdbd5a2e0a30d6a6a1a
60fad7284f37aca5d45c1c19cde12f523aa51a84
/eclipse/demo/src/com/rankwave/sdkdemo/IntroActivity.java
d067f4a7861c5ef24c411c6283fdcd05c1752ed5
[]
no_license
dongmuni/connect-android
f89d3914d2a4f3413b1644330f2e42fff92d1849
c8ce4124148c62b6c5b8d6c8771283d09572aa09
refs/heads/master
2021-06-03T22:17:20.179538
2016-07-08T07:13:13
2016-07-08T07:13:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,496
java
package com.rankwave.sdkdemo; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.util.DisplayMetrics; import android.util.Log; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.view.animation.TranslateAnimation; import android.widget.ImageView; import com.rankwave.connect.sdk.Connect; public class IntroActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String payload = getIntent().getStringExtra(Connect.INTENT_PUSH_PAYLOAD); if (payload != null) { Log.d(AppConst.LOG_TAG, "Connect push notification with payload " + payload); } setContentView(R.layout.intro); ImageView iv_cloud1 = (ImageView)findViewById(R.id.iv_cloud_1); ImageView iv_cloud2 = (ImageView)findViewById(R.id.iv_cloud_2); ImageView iv_cloud3 = (ImageView)findViewById(R.id.iv_cloud_3); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); translateAnimation(-metrics.widthPixels, metrics.widthPixels, 2000, iv_cloud1); translateAnimation(metrics.widthPixels, -metrics.widthPixels, 2000, iv_cloud2); translateAnimation(-metrics.widthPixels, metrics.widthPixels, 4000, iv_cloud3); new Handler().postDelayed(new Runnable() { @Override public void run() { startActivity(new Intent(IntroActivity.this, LoginActivity.class)); finish(); } }, 1000); } public void translateAnimation(int formX, int toX, int duration, View view) { DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); Animation translate = new TranslateAnimation(formX, toX, 0.0f, 0.0f); translate.setDuration(duration); translate.setInterpolator(AnimationUtils.loadInterpolator( this, android.R.anim.accelerate_interpolator)); translate.setFillAfter(true); view.startAnimation(translate); } @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); String payload = getIntent().getStringExtra(Connect.INTENT_PUSH_PAYLOAD); if (payload != null) { Log.d(AppConst.LOG_TAG, "Connect push notification with payload " + payload); } } @Override public void onBackPressed() { // TODO Auto-generated method stub finish(); } }
04749189aaf1dac28d8177784fa5bfca204ea145
c84088fed6a7b4f392810bb166e66dbfe3df4286
/wms2014/src/main/java/com/yongjun/tdms/model/asset/spare/spareInAndOut/SpareInAndOutStoreMonthReportView.java
3ffe0c4ea3b44d7ab0b6c37840789233f8e40203
[]
no_license
1Will/Work1
4c419b9013d2989c4bbe6721c155de609e5ce9b5
16e707588da13e9dede5f7de97ca53e15a7d5a78
refs/heads/master
2020-05-22T16:52:56.501596
2018-03-20T01:21:01
2018-03-20T01:21:01
84,697,600
0
0
null
null
null
null
UTF-8
Java
false
false
4,375
java
package com.yongjun.tdms.model.asset.spare.spareInAndOut; import java.util.Date; import com.yongjun.pluto.model.security.User; import com.yongjun.tdms.model.BaseInfoEntity; /** * * <p>Title: SpareInAndOutStoreMonthReport * <p>Description:</P> * <p>Copyright:Copyright (c) 2008 yj-technology</P> * <p>Company:www.yj-technology.com</P> * @author [email protected] * @version $Id: SpareInAndOut.java 2009-3-1 下午01:44:03Z yli$ * @see com.yongjun.tdms.model.asset.spare.spareInAndOut */ public class SpareInAndOutStoreMonthReportView extends BaseInfoEntity{ private static final long serialVersionUID = 1L; //备件编号 private String spareNo; //备件名称 private String spareName; //型号 private String modelSpecs; //仓库,对应仓库id private Long warehouse; //仓库名称 private String warehouseName; //库区,对应库区id private Long regional; //库区名称 private String regionalName; //库位号 private String locationCode; //单位 private String unit; //单价 private Double unitPrice; //期初库存 private Long beforeStocks; //月入库数量 private Long inStocks; //月出库数量 private Long outStocks; //期末库存 private Long afterStocks; //实际发生时间 private Date createTime; //月份 private String month; //总价 private Double totalPrice; //标示工装和设备的类别 private String toolingDevFlag; //保管员[冗余字段] private String custos; //保管员 private User spareCustos; @Override public int hashCode() { return 0; } @Override public boolean equals(Object arg0) { return false; } public Long getAfterStocks() { return afterStocks; } public void setAfterStocks(Long afterStocks) { this.afterStocks = afterStocks; } public Long getBeforeStocks() { return beforeStocks; } public void setBeforeStocks(Long beforeStocks) { this.beforeStocks = beforeStocks; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getMonth() { return month; } public void setMonth(String month) { this.month = month; } public String getSpareName(){ return spareName; } public void setSpareName(String spareName) { this.spareName = spareName; } public String getSpareNo() { return spareNo; } public void setSpareNo(String spareNo) { this.spareNo = spareNo; } public Double getUnitPrice() { return unitPrice; } public void setUnitPrice(Double unitPrice) { this.unitPrice = unitPrice; } public Long getInStocks() { return inStocks; } public void setInStocks(Long inStocks) { this.inStocks = inStocks; } public Long getOutStocks() { return outStocks; } public void setOutStocks(Long outStocks) { this.outStocks = outStocks; } public String getToolingDevFlag() { return toolingDevFlag; } public void setToolingDevFlag(String toolingDevFlag) { this.toolingDevFlag = toolingDevFlag; } public String getModelSpecs() { return modelSpecs; } public void setModelSpecs(String modelSpecs) { this.modelSpecs = modelSpecs; } public Double getTotalPrice() { return totalPrice; } public void setTotalPrice(Double totalPrice) { this.totalPrice = totalPrice; } public String getUnit() { return unit; } public void setUnit(String unit) { this.unit = unit; } public String getCustos() { return custos; } public void setCustos(String custos) { this.custos = custos; } public User getSpareCustos() { return spareCustos; } public void setSpareCustos(User spareCustos) { this.spareCustos = spareCustos; } public String getLocationCode() { return locationCode; } public void setLocationCode(String locationCode) { this.locationCode = locationCode; } public Long getRegional() { return regional; } public void setRegional(Long regional) { this.regional = regional; } public String getRegionalName() { return regionalName; } public void setRegionalName(String regionalName) { this.regionalName = regionalName; } public Long getWarehouse() { return warehouse; } public void setWarehouse(Long warehouse) { this.warehouse = warehouse; } public String getWarehouseName() { return warehouseName; } public void setWarehouseName(String warehouseName) { this.warehouseName = warehouseName; } }
fb9d5b6a313c4fc24d3f0b8c9dad51bd3af78ac7
3ac20f01b64d23bda2a0069925a528d85da39d4c
/homework26/src/by/gerasimchik/Main.java
df1e6321e7763876b50bc4c299b7e29421e7c5cf
[]
no_license
pavelgerasimchik20/homework-first-repository
b95f7828e6f439811d814b76732ea3f8ea58bdd8
c6bb514cc2ab98428ad05378fab2e0da655518a0
refs/heads/master
2022-04-12T17:43:34.199473
2020-04-07T17:43:24
2020-04-07T17:43:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,330
java
package by.gerasimchik; import javax.swing.*; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) { int listSize = Integer.parseInt(JOptionPane.showInputDialog(null, "Сколько учеников должны получить отметки ???", " введите число сюда")); List<Integer> marks = new ArrayList<>(listSize); for (int i = 0; i < listSize; i++) { marks.add((int) (Math.random() * 10)); } JOptionPane.showMessageDialog(null, marks, "Отметки всего класса", JOptionPane.INFORMATION_MESSAGE); int x = Integer.parseInt(JOptionPane.showInputDialog(null, "Определите диапазон неудовлетворительных отметок от 0 до ...", " Найбольшая неудовлетворительная отметка")); for (int i = marks.size() - 1; i >= 0; i--) { int y = (int) marks.get(i); if (y <= x) { marks.remove(i); } } JOptionPane.showMessageDialog(null, marks, "Только положительные оценки в классе", JOptionPane.INFORMATION_MESSAGE); } }
67b9ff721a0960f6bab7209db7c43e4e5664e146
ef0c1514e9af6de3ba4a20e0d01de7cc3a915188
/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/models/VCoreSkuTier.java
adf7d2a348346650fe2f236c922554388f7040a4
[ "LicenseRef-scancode-generic-cla", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "CC0-1.0", "BSD-3-Clause", "UPL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
Azure/azure-sdk-for-java
0902d584b42d3654b4ce65b1dad8409f18ddf4bc
789bdc6c065dc44ce9b8b630e2f2e5896b2a7616
refs/heads/main
2023-09-04T09:36:35.821969
2023-09-02T01:53:56
2023-09-02T01:53:56
2,928,948
2,027
2,084
MIT
2023-09-14T21:37:15
2011-12-06T23:33:56
Java
UTF-8
Java
false
false
1,343
java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.powerbidedicated.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** The name of the Azure pricing tier to which the SKU applies. */ public final class VCoreSkuTier extends ExpandableStringEnum<VCoreSkuTier> { /** Static value AutoScale for VCoreSkuTier. */ public static final VCoreSkuTier AUTO_SCALE = fromString("AutoScale"); /** * Creates a new instance of VCoreSkuTier value. * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated public VCoreSkuTier() { } /** * Creates or finds a VCoreSkuTier from its string representation. * * @param name a name to look for. * @return the corresponding VCoreSkuTier. */ @JsonCreator public static VCoreSkuTier fromString(String name) { return fromString(name, VCoreSkuTier.class); } /** * Gets known VCoreSkuTier values. * * @return known VCoreSkuTier values. */ public static Collection<VCoreSkuTier> values() { return values(VCoreSkuTier.class); } }
81a2efe49d3cc0be45b3eb8d2343346cfa51cd7f
2c107c0051d942362a5632ca7eca477d6cd66468
/pao_user/app/src/main/java/common/repository/http/entity/order/OrderExplainResponseBean.java
b1ef139f60260d991b9799bf4eb9ee0337bb565b
[]
no_license
Mo-AG/xinlizixun_app
8ac23f9ef3091dd40b4aecc59d517808979b7139
40b587a5a69b72547b4b98fa45f4def4c0128fef
refs/heads/master
2023-03-20T06:12:51.074683
2020-06-09T23:03:53
2020-06-09T23:03:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
951
java
package common.repository.http.entity.order; import common.repository.http.param.BaseResponseBean; /** * Created by hpzhan on 2020/2/24. */ public class OrderExplainResponseBean extends BaseResponseBean { private int account; private DetailedDescriptionBean detailedDescription; public int getAccount() { return account; } public void setAccount(int account) { this.account = account; } public DetailedDescriptionBean getDetailedDescription() { return detailedDescription; } public void setDetailedDescription(DetailedDescriptionBean detailedDescription) { this.detailedDescription = detailedDescription; } public static class DetailedDescriptionBean { private String content; public String getContent() { return content; } public void setContent(String content) { this.content = content; } } }
2cd5e83416408388729aa4583b4a8af0d8a6f619
8ca4c36c0c84e697ebcc70c568420b64872fdb19
/src/cn/edu/szu/mytestproject/algorithm/QuickSort.java
212fc174b42e921b545f121e20ecad390a9517d7
[]
no_license
hengyilin/datastructAndalgorithm
9b7d9a69b2d6d7f8ccf92c20402481970305ea8e
3b1cbdc7fba227341e30d2f38fbaa8913a1b7387
refs/heads/master
2021-01-12T12:58:01.450615
2016-10-15T08:45:28
2016-10-15T08:45:28
70,133,535
0
0
null
null
null
null
UTF-8
Java
false
false
1,990
java
package cn.edu.szu.mytestproject.algorithm; /** * Author : hengyilin * Date : 16-10-6 * Version: 1.0 * Email : [email protected] * Github : www.github.com/hengyilin */ public class QuickSort { private static void quickSort(int[] array, int start, int end) { if (start < end) { int priorityIndex = quickSortParticition(array, start, end); quickSort(array, start, priorityIndex -1 ); quickSort(array, priorityIndex + 1, end); } } /*返回的那个index就是已经排好的元素*/ private static int quickSortParticition(int[] array, int start, int end) { int priority = array[start]; int low = start + 1; int hight = end; while (hight > low) { // 该循环直到hight == low 时退出 while (low <= hight && array[low] <= priority) { low++; } while (low <= hight && array[hight] > priority) { hight--; } if (hight > low) { int temp = array[hight]; array[hight] = array[low]; array[low] = temp; } } while (hight > start && array[hight] >= priority) { hight--; } /* 判断上述循环退出时原因是什么 */ if (array[hight] < priority) { array[start] = array[hight]; array[hight] = priority; return hight; } else { return start; } } public static void main(String[] args) { int[] array = {2, 8, 4, 5, 6, 3, 2, 1, 4, 5, 6, 9, 0}; System.out.println("排序前"); for (int i : array) { System.out.print(i + " "); } System.out.println(); System.out.println("排序后"); quickSort(array, 0, array.length - 1); for (int i : array) { System.out.print(i + " "); } } }
b31ac04d2c9bfdbfed8f027da2fa67c17e9ab367
83b92027d475732cab28f56355be8cd00b25b368
/app/models/BackgroundJobStatus.java
64f1da29be85934d0a50e03e0177ef307923966d
[ "Apache-2.0" ]
permissive
angebagui/odh-web
afebdf4a5b5250bed36de495cb2c464e7269650c
ea571d938bae8cbcc26f2495272082fc0a0f45e5
refs/heads/master
2021-01-17T18:16:38.315493
2012-10-28T21:51:43
2012-10-28T21:51:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
331
java
package models; import javax.persistence.MappedSuperclass; import play.db.jpa.Model; import com.fasterxml.jackson.annotation.JsonProperty; @MappedSuperclass public class BackgroundJobStatus extends BaseModel { @JsonProperty public Status status; public static enum Status { PENDING, FAIL, SUCCESS } }
943cf008e7aa8bda6512538601c56c966ce44bac
bd2c35be1037a706928809113dd81fe4929f0995
/src/SteamedMilk.java
e601f8930aaa409fe5ab656f12509bc428f7920e
[]
no_license
Tai112141/DecoratorPattern
3b632ef276bdb9537ac5d6d51e1c7e090d78c3c6
8b752a2469e83b55ca0895ad1e7aad8019f741a6
refs/heads/master
2020-07-26T20:33:30.619823
2019-09-16T09:17:43
2019-09-16T09:17:43
208,758,723
0
0
null
null
null
null
UTF-8
Java
false
false
296
java
public class SteamedMilk extends CondimentDecorator { Baverage beverage; public SteamedMilk(Baverage beverage){ this.beverage = beverage; } public String getDescription(){ return beverage.getDescription() + ",SteamedMilk"; } public double cost(){ return .10 + beverage.cost(); } }
fe5a1a23a56cbcca33478b2574fb92084026448d
92d056c527c7524c81f6700a37afc4644fbaa5e5
/pokedeck/src/main/java/upmc/pcg/game/Otaria.java
0064ac5e4dacb63776a810438866f3d9b28dd334
[ "Apache-2.0" ]
permissive
LauraPerinet/pokedeck
9715953a00722b8843925c26c32399a8ba0cdf46
6258aa2b43aa706f798038259420ce2c4e52c186
refs/heads/master
2021-08-28T00:50:23.776159
2017-12-10T23:31:11
2017-12-10T23:31:11
106,298,762
0
0
null
2017-10-09T15:05:49
2017-10-09T15:05:49
null
UTF-8
Java
false
false
1,243
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package upmc.pcg.game; import java.util.ArrayList; import java.util.HashMap; /** * * @author Laura */ public class Otaria extends Pokemon{ public Otaria(){ super(); this.name = "Otaria"; this.hp = 60; this.type="POKEMON"; this.energy_type="water"; this.attacks=setAttacksOtaria(); this.description="Un habitant des icebergs. En mer, il utilise sa corne pour briser les icebergs."; this.weakness="metal"; this.resistance="none"; this.retreat_cost=2; } private ArrayList setAttacksOtaria(){ ArrayList<String> need1=new ArrayList(); need1.add("colorless"); Attack attack1=new Attack("Coup d'keu", 10, need1); ArrayList<String> need2=new ArrayList(); need2.add("water"); need2.add("colorless"); Attack attack2=new Attack("Vent glacé", 20, need2); ArrayList attacks=new ArrayList(); attacks.add(attack1); attacks.add( attack2); return attacks; } }
296cbad189255c1ce6adca2f48ef149a459ce832
972f08883203901a97a6f82141577d2aaa5eb668
/app/src/main/java/wang/oo0oo/accountbook/pojo/Record.java
6c3b1c7133a2023b20c13af0729b28751a5b5582
[]
no_license
oo0oo2015/AccountBook
6ff2aaff2169a00dc47df5d19e0b6778f91ff3ea
9f28efb021c3dac6c024f9e1e5d3fd8bbf239576
refs/heads/master
2020-05-24T14:23:54.105516
2019-05-21T08:52:15
2019-05-21T08:52:15
187,309,095
0
0
null
null
null
null
UTF-8
Java
false
false
1,878
java
package wang.oo0oo.accountbook.pojo; import org.litepal.crud.DataSupport; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Record extends DataSupport { private int id; private String type; private String category; private Date date; private double amount; private String note; public Record() { } public Record(String type, String category, Date date, double amount, String note) { this.type = type; this.category = category; this.date = date; this.amount = amount; this.note = note; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public double getAmount() { return amount; } public void setAmount(double amount) { this.amount = amount; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } @Override public String toString() { return "Record{" + "id=" + id + '\'' + "type='" + type + '\'' + ", category='" + category + '\'' + ", date=" + (date != null ? new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).format(date) : null) + ", amount=" + amount + ", note='" + note + '\'' + '}'; } }
41008f39fe73b9d2bea3960b50f174bb090e4939
1d63aad51b7ad9e18d4a1ebaf6c9d28626987b69
/Wheels.java
ed3eb769b0eeda2f9490e5a701eb1e466da58ae9
[]
no_license
Akalanka-1996/Java_Automobile_project
a0fdf0513ab242f8ae9a1675bd683e3b6e71e01b
dc6602decd9008a1e843d02f575373e3f227988d
refs/heads/main
2023-07-16T20:34:24.955356
2021-08-28T19:48:05
2021-08-28T19:48:05
400,407,362
0
0
null
null
null
null
UTF-8
Java
false
false
860
java
package com.company; public class Wheels { private int numberOfWheels; private float pressure; private int durability; public Wheels() { } public Wheels(int numberOfWheels, float pressure, int durability) { this.numberOfWheels = numberOfWheels; this.pressure = pressure; this.durability = durability; } public int getNumberOfWheels() { return numberOfWheels; } public float getPressure() { return pressure; } public int getDurability() { return durability; } public void setDurability(int durability) { this.durability = durability; } public void setPressure(int pressure) { this.pressure = pressure; } public void setNumberOfWheels(int numberOfWheels) { this.numberOfWheels = numberOfWheels; } }
2cb72c23fe9234d34d56f55ce0f8556be56fc6be
43066bb10a2c0f4917a764a6b5de9e129aad3cc5
/BuilderClicker/src/sample/GameViewManager.java
d8a752c7474ab01894b86fc384fcb5796ad8b83b
[]
no_license
Bogysh/BuilderClicker
f3b443e2cebe333c3e1ec8d61249ef6ab03d2916
7667d8b44457ff5b2ce5c2146ba70bc315208311
refs/heads/master
2020-08-03T17:30:23.717901
2019-09-30T09:53:40
2019-09-30T09:53:40
211,828,551
0
0
null
null
null
null
UTF-8
Java
false
false
3,960
java
package sample; import javafx.application.Platform; import javafx.concurrent.Service; import javafx.concurrent.Task; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.image.Image; import javafx.scene.layout.*; import javafx.stage.Stage; import java.util.ArrayList; import java.util.List; import static java.lang.Math.pow; public class GameViewManager { int cityname; String[] backgroundTab = new String[3]; BackgroundImage backgroundImage; Background gameBackground; private BorderPane gamePane; private List<Floor> floorArray; private Label moneyLabel; private Label perSecLabel; private VBox container = new VBox(); private VBox labelContainer; private int money = 0; private int moneyPerSec = 0; private int cost = 40; private Button btn; public GameViewManager(int cityname) { addBackgrounds(); this.cityname=cityname; gamePane = new BorderPane(); setGameBackground(); floorArray = new ArrayList<>(); gamePane.setBottom(container); container.setLayoutX(300); moneyLabel = new Label("Zgromadzone pieniądze 0"); perSecLabel = new Label("Zarabiasz 0"); labelContainer = new VBox(); labelContainer.getChildren().addAll(moneyLabel, perSecLabel); gamePane.setTop(labelContainer); addBuyButton(); addFloor(10); gamePane.setPadding(new Insets(20, 20, 20, 20)); perSecLabel.setLayoutX(100); getMoneyPerSec(); } public Pane returnGamePane() { return gamePane; } public void addFloor(int amount) { floorArray.add(new Floor(amount)); container.getChildren().add(floorArray.get(floorArray.size() - 1)); } public void addBuyButton() { btn = new Button("Kup nowe pietro za 40"); container.setAlignment(Pos.CENTER); container.getChildren().add(btn); btn.setOnAction(e -> { if (money >= cost) { money -= cost; addFloor(10); cost = (int) pow(floorArray.size(), 2) * 40; btn.setText("Kup nowe pietro za " + cost); } } ); } public void getMoneyPerSec() { Service service = new Service() { @Override protected Task createTask() { return new Task() { @Override protected Object call() throws Exception { while (true) { moneyPerSec = GainButton.getMoneyPS(); money += moneyPerSec; Platform.runLater(() -> moneyLabel.setText("Zgromadzone pieniądze " + Integer.toString(money))); Platform.runLater(() -> perSecLabel.setText("Zarabiasz " + Integer.toString(moneyPerSec))); Thread.sleep(1000); } } }; } }; service.start(); } private void setGameBackground(){ backgroundImage = new BackgroundImage(new Image(backgroundTab[cityname],1024,768,false,true),BackgroundRepeat.NO_REPEAT,BackgroundRepeat.NO_REPEAT,BackgroundPosition.DEFAULT,BackgroundSize.DEFAULT); gameBackground = new Background(backgroundImage); gamePane.setBackground(gameBackground); } public void addBackgrounds(){ backgroundTab[0] = "/Resources/city.jpg"; backgroundTab[1] = "/Resources/sea.jpg"; backgroundTab[2] = "/Resources/japan.png"; } }
a6a92e750329de9e6db8392489064ee6b28a2e16
08e0b2b909ac50089b034f4dff95f1e69fadc7e7
/src/main/java/servlet/selectableTasksServlet.java
582b8cdb8d963fb8cebc92c2919889f7305fe1c5
[]
no_license
657671238/Bountytask
54ec3a6e13d65560845cb9bee1adc89e59ba1a69
dfb94927f6b6d75642ee167854601de8f1a91a80
refs/heads/master
2020-04-18T23:26:40.195864
2019-04-23T16:07:42
2019-04-23T16:07:42
167,821,697
1
0
null
null
null
null
UTF-8
Java
false
false
1,414
java
package servlet; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import bean.task; import service.taskService; import service.userService; import service_imp.taskService_imp; import service_imp.userService_imp; @WebServlet("/selectableTasksServlet") public class selectableTasksServlet extends HttpServlet { @Override public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // TODO Auto-generated method stub this.doPost(req, resp); } @Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // TODO Auto-generated method stub HttpSession session = req.getSession(); String us = (String) session.getAttribute("username"); if (us == null) { req.getRequestDispatcher("/pleaselogin.jsp").forward(req, resp); return; } taskService ts = new taskService_imp(); List<task> tasklist = ts.queryall(); userService uss = new userService_imp(); List<task> tasklists = uss.querytaskbody(tasklist); req.setAttribute("tasklist", tasklists); req.getRequestDispatcher("/selectableTasks.jsp").forward(req, resp); } }
a275e6d9cbd2f73cfd895b09c7468a51ec7a6a7f
ae0229767b812ed0ab1d8996bc547d495abd589a
/src/task4/part4/AutoRespondMain.java
e76d4120f0271f10f6161c832f6af20d467117be
[]
no_license
Silver1441/L5_DataHandling
cc9329d9fcd4f9b97bad19e68a4300619557961b
8283fd087c4bc7e10a9256663929934c2d1e1bee
refs/heads/master
2020-06-13T05:18:41.133856
2019-07-23T17:35:28
2019-07-23T17:35:28
194,549,335
0
0
null
null
null
null
UTF-8
Java
false
false
1,713
java
package task4.part4; //Дана строка-шаблон, содержащая заготовку письма. Например, "Уважаемый, $userName, извещаем вас о том, //что на вашем счете $номерСчета скопилась сумма, превышающая стоимость $числоМесяцев месяцев пользования //нашими услугами. Деньги продолжают поступать. Вероятно, вы неправильно настроили автоплатеж. С уважением, //$пользовательФИО $должностьПользователя" //Также дана одна пара строк. templateKey и templateValue. // Необходимо в строке заменить все placeholders (строки $имяШаблона, т.е. &#39;$&#39; //+ templateKey) на значения из templateValue. import task4.part4.entitie.CallCenterManager; import task4.part4.entitie.Client; import task4.part4.entitie.ClientBasic; import task4.part4.entitie.Employee; import task4.part4.service.TemplateHandler; import task4.part4.service.TemplateHandlerImpl; import static task4.part4.lib.TemplateHolder.respondOverpaymentAutopayment; public class AutoRespondMain { public static void main(String[] args) { Client mockClient = new ClientBasic(1, 236000535, "Petr", "Glinko", "Grigorievich"); Employee mockWorker = new CallCenterManager(1, "Victoria", "Fedorova", "Pavlovna"); TemplateHandler handler = new TemplateHandlerImpl(mockClient, mockWorker, respondOverpaymentAutopayment); System.out.println(handler.getFormattedText()); } }
658683a10a9528f492fd9d9efc192a0c46396494
8fc1bcf057df5effc3557cbc66554f215e238d89
/app/src/androidTest/java/com/noor/simplecalculator/ExampleInstrumentedTest.java
9ebc4d17f41f17627b6bcf621a5c5db0ff7d77f9
[]
no_license
NoorMohammedAnik/SimpleCalculator
79c5b11bf60495a3f6dc81e947896ef6afc48a75
9dbef539a30cd0159454d82a21fb919251f4d2ad
refs/heads/master
2021-01-11T16:46:54.648502
2017-01-21T20:53:10
2017-01-21T20:53:10
79,671,518
0
0
null
null
null
null
UTF-8
Java
false
false
754
java
package com.noor.simplecalculator; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.noor.simplecalculator", appContext.getPackageName()); } }
d3869afc0d744d0df196987975632be467092d68
27e5e7e37faaad5fa5297689c14faf3ac2439108
/bbrowser/src/breder/gui/task/RemoteTask.java
af4936d789d3a5b4187e272cf052e43bfc9726b0
[]
no_license
bernardobreder/agbreder
aa0402a6eb911d88b577a68a7e6b07d9ced235b8
3977b76a7f3f210a2a12fd9e6e260d6270a0e023
refs/heads/master
2021-07-01T14:02:10.289273
2017-09-22T23:46:38
2017-09-22T23:46:38
104,519,874
0
0
null
null
null
null
UTF-8
Java
false
false
379
java
package breder.gui.task; public abstract class RemoteTask extends Task { public abstract void perform() throws Throwable; public abstract void updateUI(); public abstract void handler(Throwable t); public abstract void step(String title, double percent); public void stop() { } public void start() { this.start(null); } public void start(Object index) { } }
3dd58185fdc714a439778fc968419577b1aba677
ffbb3b79ce846f36b0ad2f218e6e6d6b77f91e73
/app/src/main/java/com/italankin/fifteen/GameSurface.java
3c6f72e1c0d5425649167bc0830e5b3be18b930c
[ "MIT" ]
permissive
ogundimu1/15Puzzle
2b1286ade47ba6fd06551017812ecfaa673f37e3
4d5dc47ad41d2b683568f3142462987953ad4076
refs/heads/master
2020-09-23T14:00:55.557125
2019-12-03T03:19:05
2019-12-03T03:19:05
225,516,879
1
0
null
null
null
null
UTF-8
Java
false
false
15,063
java
package com.italankin.fifteen; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.preference.PreferenceManager; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; import com.italankin.fifteen.views.FieldOverlay; import com.italankin.fifteen.views.FieldView; import com.italankin.fifteen.views.InfoPanelView; import com.italankin.fifteen.views.LeaderboardView; import com.italankin.fifteen.views.SettingsView; import com.italankin.fifteen.views.TopPanelView; import java.util.List; import java.util.Random; public class GameSurface extends SurfaceView implements TopPanelView.Callbacks, SurfaceHolder.Callback { private static final int BTN_NEW = 0; private static final int BTN_SETTINGS = 1; private static final int BTN_LEADERBOARD = 2; private static final int BTN_PAUSE = 3; /** * Главный поток для перерисовки изображения */ private GameManager mGameLoopThread; /** * Помощник для работы с базой данных */ private DBHelper dbHelper; /** * Ресурсы приложения */ private Resources mResources; /** * Верхняя панель */ private TopPanelView mTopPanel; /** * Инфо панель */ private InfoPanelView mInfoPanel; private FieldView mField; /** * Экран настроек */ private SettingsView mSettings; /** * Экран рекордов */ private LeaderboardView mLeaderboard; /** * Оверлей конца игры */ private FieldOverlay mSolvedOverlay; /** * Оверлей паузы */ private FieldOverlay mPauseOverlay; /** * Область игрового поля */ private RectF mRectField = new RectF(); private Paint mDebugPaint; /** * Координата x начальной точки жеста */ private int mStartX; /** * Координата y начальной точки жеста */ private int mStartY; private int sAnim = 0; /** * Конструктор по умолчанию * * @param context контекст приложения */ public GameSurface(Context context) { super(context); dbHelper = new DBHelper(context); mResources = getResources(); getHolder().addCallback(this); } @Override public void surfaceCreated(SurfaceHolder holder) { mGameLoopThread = new GameManager(this, holder); Dimensions.update(this.getWidth(), this.getHeight(), 1.0f); mTopPanel = new TopPanelView(); mTopPanel.addButton(BTN_NEW, mResources.getString(R.string.action_new)); mTopPanel.addButton(BTN_SETTINGS, mResources.getString(R.string.action_settings)); mTopPanel.addButton(BTN_LEADERBOARD, mResources.getString(R.string.action_leaderboard)); mTopPanel.addButton(BTN_PAUSE, mResources.getString(R.string.action_about)); mTopPanel.addCallback(this); mInfoPanel = new InfoPanelView(mResources); mField = new FieldView(mRectField); mSettings = new SettingsView(mResources); mSettings.addCallback(needUpdate -> { if (needUpdate) { createNewGame(true); } updateViews(); }); mLeaderboard = new LeaderboardView(dbHelper, getResources()); mLeaderboard.addCallback(() -> { updateViews(); }); mSolvedOverlay = new FieldOverlay(mRectField, mResources.getString(R.string.info_win)); mPauseOverlay = new FieldOverlay(mRectField, mResources.getString(R.string.info_pause)); Game.addCallback(() -> { mSolvedOverlay.show(); dbHelper.insert( Settings.gameMode, Settings.gameWidth, Settings.gameHeight, Settings.hardmode ? 1 : 0, Game.getMoves() + 1, Game.getTime()); }); try { mGameLoopThread.start(); mGameLoopThread.setRunning(true); } catch (Exception e) { Tools.log("surfaceCreated: " + e.toString()); } mDebugPaint = new Paint(); mDebugPaint.setTypeface(Settings.typeface); mDebugPaint.setTextSize(Dimensions.interfaceFontSize * .75f); mDebugPaint.setTextAlign(Paint.Align.LEFT); mDebugPaint.setColor(Color.RED); updateViews(); createNewGame(false); } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } @Override public void surfaceDestroyed(SurfaceHolder holder) { mGameLoopThread.setRunning(false); while (true) { try { mGameLoopThread.join(); break; } catch (InterruptedException e) { Tools.log("surfaceDestroyed: " + e.toString()); } } mGameLoopThread = null; } /** * Обработка событий нажатия на экран */ public boolean onTouchEvent(MotionEvent event) { int action = event.getAction(); int x = (int) event.getX(); int y = (int) event.getY(); switch (action) { case MotionEvent.ACTION_DOWN: mStartX = x; mStartY = y; break; // ACTION_DOWN case MotionEvent.ACTION_UP: int dx = x - mStartX; int dy = y - mStartY; if (mLeaderboard.isShown()) { mLeaderboard.onClick(mStartX, mStartY, dx); return true; } else if (mSettings.isShown()) { mSettings.onClick(mStartX, mStartY, dx); return true; } else if (Game.isSolved() && mRectField.contains(x, y)) { createNewGame(true); return true; } else if (mTopPanel.onClick(x, y) || mInfoPanel.onClick(x, y)) { return true; } if (Math.sqrt(dx * dx + dy * dy) > (Dimensions.tileSize / 6.0f) && !Game.isPaused()) { mField.moveTiles(mStartX, mStartY, Tools.direction(dx, dy)); } else if (Game.isPaused() && mRectField.contains(x, y)) { Game.setPaused(false); mPauseOverlay.hide(); } else if (!Game.isSolved()) { mField.moveTiles(mStartX, mStartY, Tools.DIRECTION_DEFAULT); } break; // ACTION_UP } return true; } @Override public void onTopPanelButtonClick(int id) { switch (id) { case BTN_NEW: createNewGame(true); break; case BTN_SETTINGS: Game.setPaused(Game.getMoves() > 0); if (Game.isPaused()) { mPauseOverlay.setVisible(true); } mSettings.show(); break; case BTN_LEADERBOARD: Game.setPaused(Game.getMoves() > 0); mLeaderboard.show(); break; case BTN_PAUSE: if (!Game.isSolved()) { Game.invertPaused(); } if (mPauseOverlay.isShown()) { mPauseOverlay.hide(); } else { mPauseOverlay.show(); } break; } } /** * Нажатие клавиши "Назад" на устройстве */ public boolean onBackPressed() { return mSettings.hide() || mLeaderboard.hide(); } /** * Приостановка {@link android.app.Activity} */ public void onPause() { if (mGameLoopThread != null) { mGameLoopThread.setRunning(false); } } /** * Рендер изображения */ public void draw(Canvas canvas, long elapsed, String info) { super.draw(canvas); boolean paused = Game.isPaused(); boolean solved = Game.isSolved(); if (!paused && !solved) { Game.incTime(elapsed); } canvas.drawColor(Colors.getBackgroundColor()); mTopPanel.draw(canvas, elapsed); mInfoPanel.draw(canvas, elapsed); mField.draw(canvas, elapsed); if (solved && mSolvedOverlay.isShown() && !mSettings.isShown()) { mSolvedOverlay.draw(canvas, elapsed); } if (mLeaderboard.isShown()) { mLeaderboard.draw(canvas, elapsed); } else if (mSettings.isShown()) { mSettings.draw(canvas, elapsed); } else if (paused && !solved && mPauseOverlay.isShown()) { mPauseOverlay.draw(canvas, elapsed); } if (info != null) { canvas.drawText(info, 0, Dimensions.surfaceHeight, mDebugPaint); } } public void updateViews() { mTopPanel.update(); mInfoPanel.update(); mField.update(); mLeaderboard.update(); mSettings.update(); mPauseOverlay.update(); mSolvedOverlay.update(); } /** * Создание новой игры * * @param isUser <b>true</b>, если действие было вызвано пользователем */ private void createNewGame(boolean isUser) { Game.create(Settings.gameWidth, Settings.gameHeight); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); // если создание новой игры не было инициировано пользователем, // загружаем сохрененную игру (если имеется) if (prefs.contains(Settings.KEY_GAME_ARRAY) && !isUser && Settings.saveGame) { String strings = prefs.getString(Settings.KEY_GAME_ARRAY, null); if (strings != null) { List<Integer> list = Tools.getIntegerArray(strings.split("\\s*,\\s*")); if (list.size() == Game.getSize()) { Game.load(list, prefs.getInt(Settings.KEY_GAME_MOVES, 0), prefs.getLong(Settings.KEY_GAME_TIME, 0)); } } SharedPreferences.Editor editor = prefs.edit(); editor.remove(Settings.KEY_GAME_ARRAY); editor.remove(Settings.KEY_GAME_MOVES); editor.remove(Settings.KEY_GAME_TIME); editor.apply(); if (Game.getMoves() > 0) { Game.setPaused(true); mPauseOverlay.show(); } } // вычисление размеров Dimensions.update(this.getWidth(), this.getHeight(), 1.0f); mRectField.set( Dimensions.fieldMarginLeft - Dimensions.spacing, Dimensions.fieldMarginTop - Dimensions.spacing, Dimensions.fieldMarginLeft + Dimensions.fieldWidth + Dimensions.spacing, Dimensions.fieldMarginTop + Dimensions.fieldHeight + Dimensions.spacing); mField.clear(); Random rnd = new Random(); int size = Game.getSize(); // размер int animationType = ++sAnim % 10; // тип анимации int shift = size / 26 + 1; // коэффициент смещения анимации (группировка) int delay; // задержка появляения for (int index = 0; index < size; index++) { int number = Game.getAt(index); if (number > 0) { Tile t = new Tile(number, index); if (Settings.animations && !mSettings.isShown() && !mLeaderboard.isShown()) { switch (animationType) { case 1: // по порядку ячеек (сверху вниз) delay = index / shift; break; case 2: // в обратном порядке ячеек (снизу вверх) delay = (size - index) / shift; break; case 3: // случайный порядок delay = rnd.nextInt(10 + 10 * (shift - 1)); break; case 4: // по порядку (1, 2, 3, ..., n-1, n) delay = number / shift; break; case 5: // в обратном порядке (n, n-1, n-2, ..., 2, 1) delay = (size - number) / shift; break; case 6: // по строкам // 5 - задержка в кадрах между группами delay = index / Settings.gameWidth * 5; break; case 7: // по столбцам // 5 - задержка в кадрах между группами delay = index % Settings.gameWidth * 5; break; case 8: // по строкам в обратном порядке // 5 - задержка в кадрах между группами delay = (Settings.gameHeight - index / Settings.gameWidth) * 5; break; case 9: // по столбцам в обратном порядке // 5 - задержка в кадрах между группами delay = (Settings.gameWidth - index % Settings.gameWidth) * 5; break; default: // все вместе delay = 0; } t.animateAppearance(delay * Settings.TILE_ANIM_FRAME_MULTIPLIER); //t.setAnimation(Tile.Animation.SCALE, delay); } mField.addTile(t); } } } // END createNewGame }
5ea2721ec4db4dbb34e8d93adca70782a7c74cda
4710b9d5d319ea0f412469292d1de3dfb794c9bc
/src/main/java/com/ttsc/data/dao/user/BankInfoDao.java
21bccc3863d3e7fb75a4d7e2a2598bddf75534af
[]
no_license
stonezhu1985/ttsc-app
35205a0f4a2b301f99846af458df3cde6c8abbda
f72f9773dda41efd638c259cdf41cd3557328825
refs/heads/master
2021-01-10T03:31:28.330733
2015-11-22T07:28:35
2015-11-22T07:28:35
46,650,716
0
0
null
null
null
null
UTF-8
Java
false
false
333
java
package com.ttsc.data.dao.user; import java.util.List; import org.springframework.stereotype.Repository; import com.ttsc.data.entity.BankInfo; /** * 银行帐号信息 * @author stone.zhu * */ @Repository public interface BankInfoDao { /** * 获取账号信息 * @return */ public List<BankInfo> findBankInfo(); }
8f444dad9308dd3e7e8b5daaf96bb43fbaee484f
9fe7b8ae58ab96183d49df7cd248dc778f464cf3
/src/main/java/app/aria/robot/ArRobotMobile.java
0900dd86284c9afe3706fbf085b107fd85641db0
[ "MIT" ]
permissive
sauljabin/ariajava-p3dx
f475379fc7f9cebda05dc1f5e5b3d62ca4bd40f0
fd0add7c1737081d89fef6d5afefdd573e35121e
refs/heads/master
2021-01-10T04:03:57.200405
2017-12-07T13:33:21
2017-12-07T13:33:21
53,235,022
0
0
null
null
null
null
UTF-8
Java
false
false
2,952
java
/** * Copyright (c) 2014 Saúl Piña <[email protected]>, Jorge Parra <[email protected]>. * <p> * This file is part of AriaJava P3DX. * <p> * AriaJava P3DX is licensed under The MIT License. * For full copyright and license information please see the LICENSE file. */ package app.aria.robot; import app.map.Robot; import com.mobilerobots.Aria.ArPose; import com.mobilerobots.Aria.ArRangeDevice; import com.mobilerobots.Aria.ArRobot; import com.mobilerobots.Aria.ArSonarDevice; public class ArRobotMobile extends ArRobot { public static final int LONG = 455; public static final int WIDTH = 381; protected ArRangeDevice rangeSonar; private double relativeX; private double relativeY; private double relativeAngle; private double initX; private double initY; private double initAngle; private ArSonarDevice sonar; private Robot animatedRobot; private boolean completePath; public ArRobotMobile(double initX, double initY, double initAngle) { this.initX = initX; this.initY = initY; this.initAngle = initAngle; setEncoderTransform(new ArPose(initX, initY, initAngle)); sonar = new ArSonarDevice(); addRangeDevice(sonar); rangeSonar = findRangeDevice("sonar"); completePath = false; } public ArSonarDevice getSonar() { return sonar; } public void setSonar(ArSonarDevice sonar) { this.sonar = sonar; } public double getInitX() { return initX; } public void setInitX(double initX) { this.initX = initX; } public double getInitY() { return initY; } public void setInitY(double initY) { this.initY = initY; } public double getInitAngle() { return initAngle; } public void setInitAngle(double initAngle) { this.initAngle = initAngle; } public double getRelativeX() { return relativeX; } public void setRelativeX(double relativeX) { this.relativeX = relativeX; } public double getRelativeY() { return relativeY; } public void setRelativeY(double relativeY) { this.relativeY = relativeY; } public double getRelativeAngle() { return relativeAngle; } public void setRelativeAngle(double relativeAngle) { this.relativeAngle = relativeAngle; } public Robot getAnimatedRobot() { return animatedRobot; } public void setAnimatedRobot(Robot animatedRobot) { this.animatedRobot = animatedRobot; } public ArRangeDevice getRangeSonar() { return rangeSonar; } public void setRangeSonar(ArRangeDevice rangeSonar) { this.rangeSonar = rangeSonar; } public boolean isCompletePath() { return completePath; } public void setCompletePath(boolean completePath) { this.completePath = completePath; } }
4b760bc9faee11426e071a535d45083714368b06
f9c26417c53756fa03b089c3a3f2d1ba8c2a3565
/app/src/main/java/com/devmobile/ecoleenligne/checkEmail.java
7c8b8ca66a33d1dccff6ca72649ef8b3af6cddf3
[ "MIT" ]
permissive
Nassim18/EcoleEnLigne
1f494be84a3b940fc2973e601f6e61da89171697
655f03e68b4d445281ef7bdfd745b3380473bf5b
refs/heads/master
2022-09-01T14:29:58.705236
2020-05-29T17:38:16
2020-05-29T17:38:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
766
java
package com.devmobile.ecoleenligne; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; public class checkEmail extends AppCompatActivity { Button check; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.inscription_termine); check = findViewById(R.id.bt_verifierEmail); check.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent signIn = new Intent(checkEmail.this, login.class); startActivity(signIn); } }); } }
0f8a91ad27dee38e32acbc44938744a80febe682
d96112609030ee297fc7fce657d140d079ca8434
/app/src/test/java/com/example/kashmirtourguide/TestDemo.java
fc4e965e06df33be1cac04df5cba9843071e0a4f
[]
no_license
harish6471/KashmirTourGuide1
06887da748d8b15d03c5a194dcca36290a67bb9c
159d96c0ef4efa0e1e3146a492f506cbf5e3cb11
refs/heads/master
2020-09-25T03:41:16.024091
2019-12-04T13:28:49
2019-12-04T13:28:49
225,909,430
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package com.example.kashmirtourguide; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; public class TestDemo { Test t=new Test(); @org.junit.Test public void match() { assertEquals("umar","umar"); } @org.junit.Test public void summ() { int x=t.sum(10,20); assertEquals(x,30); } }
02458c8da64dadbd3e72b90b950a506373108f40
b522fba67d1b738dd446b78dc4f9980981327d67
/src/th/ac/npru/swe/atittaya/oop/Ractangle.java
d1f96d245f1b946ddb78f8468f1141a63fb62ec6
[]
no_license
captainatittaya/ObjectConcept
d77ad11db0dfa266e610f4f4dbb8293a35e7efa7
c1b677da08f369b7bd62424ce8b4a0a2dc6e121c
refs/heads/master
2022-02-11T15:53:21.500034
2019-07-22T09:09:34
2019-07-22T09:09:34
198,184,212
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
package th.ac.npru.swe.atittaya.oop; public class Ractangle extends Shape { private int length; private int width; public Ractangle(int lengthValue,int widthValue){ length = lengthValue; width = widthValue; } @Override public double getArea() { area = length * width; return area; } }
103120e00e638723736a56689ea744d1014a6320
1fa157fdd0e7a095655df93f7d2bbcbf6fd1a2b1
/src/main/java/com/example/sblesson17/Sblesson17Application.java
7d1a1566f0537a82481404af3bd448edefa1bd82
[]
no_license
SpringBootLessons/Lesson17
d060745d81b35c273ad89e1847b9e48b7e137a7b
a6c5b8b43b297be202deef09a9ad9b60cd0e0f71
refs/heads/master
2020-03-26T06:55:42.899301
2018-08-23T15:26:14
2018-08-23T15:26:14
144,628,197
1
0
null
null
null
null
UTF-8
Java
false
false
322
java
package com.example.sblesson17; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Sblesson17Application { public static void main(String[] args) { SpringApplication.run(Sblesson17Application.class, args); } }
70a44c0bdef59350b131a3040332b8c67cc0c832
76c8c39cd3353a3897f5cb1a8021f09be2ef2f11
/Spring/spring_day01_04_DI/src/main/java/com/hollay/service/impl/AccountServiceImpl.java
d5b43338824970eb2008ddbf4b6454fa36967e4e
[]
no_license
vk-hollay/SSM
7f35f3024c38cfc04ae5048f8f6c27e6f63bf6ab
e8f718a099a7288fd0c1a1853625e445128cf0d3
refs/heads/master
2023-07-28T16:18:06.693103
2021-09-09T02:14:51
2021-09-09T02:14:51
398,587,057
0
0
null
null
null
null
UTF-8
Java
false
false
660
java
package com.hollay.service.impl; import com.hollay.service.IAccountService; import java.util.Date; /** * 账户的业务层实现类 */ public class AccountServiceImpl implements IAccountService { //如果是经常变化的数据,并不适用于注入的方式 private String name; private Integer age; private Date birthday; public AccountServiceImpl(String name,Integer age,Date birthday){ this.name = name; this.age = age; this.birthday = birthday; } public void saveAccount(){ System.out.println("service中的saveAccount方法执行了。。。"+name+","+age+","+birthday); } }
ff1c92bb8aaf63b9ba550855956af7af5b06ad04
fb227b5d5eca7216f73c80d4b5471d80636453bd
/Utils/ReflectionUtils.java
ce75156ed5d7ae5c7c22712fb935dc9ca2f0ef68
[]
no_license
ByNeoX/HUBS
8dd2e8c23498bda026b60da8d6da5e46f9f0f3c0
6e350703bfe3a79a9d2320596c6d213452fb7d4b
refs/heads/master
2020-07-25T15:13:32.018923
2019-09-13T20:04:19
2019-09-13T20:04:19
208,335,261
0
0
null
2019-09-13T19:52:30
2019-09-13T19:45:41
Java
UTF-8
Java
false
false
27,926
java
package mlg.byneox.tc.Utils; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import org.bukkit.Bukkit; /** * <b>ReflectionUtils</b> * <p> * This class provides useful methods which makes dealing with reflection much easier, especially when working with Bukkit * <p> * You are welcome to use it, modify it and redistribute it under the following conditions: * <ul> * <li>Don't claim this class as your own * <li>Don't remove this disclaimer * </ul> * <p> * <i>It would be nice if you provide credit to me if you use this class in a published project</i> * * @author DarkBlade12 * @version 1.1 */ public final class ReflectionUtils { // Prevent accidental construction private ReflectionUtils() {} /** * Returns the constructor of a given class with the given parameter types * * @param clazz Target class * @param parameterTypes Parameter types of the desired constructor * @return The constructor of the target class with the specified parameter types * @throws NoSuchMethodException If the desired constructor with the specified parameter types cannot be found * @see DataType * @see DataType#getPrimitive(Class[]) * @see DataType#compare(Class[], Class[]) */ public static Constructor<?> getConstructor(Class<?> clazz, Class<?>... parameterTypes) throws NoSuchMethodException { Class<?>[] primitiveTypes = DataType.getPrimitive(parameterTypes); for (Constructor<?> constructor : clazz.getConstructors()) { if (!DataType.compare(DataType.getPrimitive(constructor.getParameterTypes()), primitiveTypes)) { continue; } return constructor; } throw new NoSuchMethodException("There is no such constructor in this class with the specified parameter types"); } /** * Returns the constructor of a desired class with the given parameter types * * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param parameterTypes Parameter types of the desired constructor * @return The constructor of the desired target class with the specified parameter types * @throws NoSuchMethodException If the desired constructor with the specified parameter types cannot be found * @throws ClassNotFoundException ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #getClass(String, PackageType) * @see #getConstructor(Class, Class...) */ public static Constructor<?> getConstructor(String className, PackageType packageType, Class<?>... parameterTypes) throws NoSuchMethodException, ClassNotFoundException { return getConstructor(packageType.getClass(className), parameterTypes); } /** * Returns an instance of a class with the given arguments * * @param clazz Target class * @param arguments Arguments which are used to construct an object of the target class * @return The instance of the target class with the specified arguments * @throws InstantiationException If you cannot create an instance of the target class due to certain circumstances * @throws IllegalAccessException If the desired constructor cannot be accessed due to certain circumstances * @throws IllegalArgumentException If the types of the arguments do not match the parameter types of the constructor (this should not occur since it searches for a constructor with the types of the arguments) * @throws InvocationTargetException If the desired constructor cannot be invoked * @throws NoSuchMethodException If the desired constructor with the specified arguments cannot be found */ public static Object instantiateObject(Class<?> clazz, Object... arguments) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException { return getConstructor(clazz, DataType.getPrimitive(arguments)).newInstance(arguments); } /** * Returns an instance of a desired class with the given arguments * * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param arguments Arguments which are used to construct an object of the desired target class * @return The instance of the desired target class with the specified arguments * @throws InstantiationException If you cannot create an instance of the desired target class due to certain circumstances * @throws IllegalAccessException If the desired constructor cannot be accessed due to certain circumstances * @throws IllegalArgumentException If the types of the arguments do not match the parameter types of the constructor (this should not occur since it searches for a constructor with the types of the arguments) * @throws InvocationTargetException If the desired constructor cannot be invoked * @throws NoSuchMethodException If the desired constructor with the specified arguments cannot be found * @throws ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #getClass(String, PackageType) * @see #instantiateObject(Class, Object...) */ public static Object instantiateObject(String className, PackageType packageType, Object... arguments) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException { return instantiateObject(packageType.getClass(className), arguments); } /** * Returns a method of a class with the given parameter types * * @param clazz Target class * @param methodName Name of the desired method * @param parameterTypes Parameter types of the desired method * @return The method of the target class with the specified name and parameter types * @throws NoSuchMethodException If the desired method of the target class with the specified name and parameter types cannot be found * @see DataType#getPrimitive(Class[]) * @see DataType#compare(Class[], Class[]) */ public static Method getMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException { Class<?>[] primitiveTypes = DataType.getPrimitive(parameterTypes); for (Method method : clazz.getMethods()) { if (!method.getName().equals(methodName) || !DataType.compare(DataType.getPrimitive(method.getParameterTypes()), primitiveTypes)) { continue; } return method; } throw new NoSuchMethodException("There is no such method in this class with the specified name and parameter types"); } /** * Returns a method of a desired class with the given parameter types * * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param methodName Name of the desired method * @param parameterTypes Parameter types of the desired method * @return The method of the desired target class with the specified name and parameter types * @throws NoSuchMethodException If the desired method of the desired target class with the specified name and parameter types cannot be found * @throws ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #getClass(String, PackageType) * @see #getMethod(Class, String, Class...) */ public static Method getMethod(String className, PackageType packageType, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException, ClassNotFoundException { return getMethod(packageType.getClass(className), methodName, parameterTypes); } /** * Invokes a method on an object with the given arguments * * @param instance Target object * @param methodName Name of the desired method * @param arguments Arguments which are used to invoke the desired method * @return The result of invoking the desired method on the target object * @throws IllegalAccessException If the desired method cannot be accessed due to certain circumstances * @throws IllegalArgumentException If the types of the arguments do not match the parameter types of the method (this should not occur since it searches for a method with the types of the arguments) * @throws InvocationTargetException If the desired method cannot be invoked on the target object * @throws NoSuchMethodException If the desired method of the class of the target object with the specified name and arguments cannot be found * @see #getMethod(Class, String, Class...) * @see DataType#getPrimitive(Object[]) */ public static Object invokeMethod(Object instance, String methodName, Object... arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException { return getMethod(instance.getClass(), methodName, DataType.getPrimitive(arguments)).invoke(instance, arguments); } /** * Invokes a method of the target class on an object with the given arguments * * @param instance Target object * @param clazz Target class * @param methodName Name of the desired method * @param arguments Arguments which are used to invoke the desired method * @return The result of invoking the desired method on the target object * @throws IllegalAccessException If the desired method cannot be accessed due to certain circumstances * @throws IllegalArgumentException If the types of the arguments do not match the parameter types of the method (this should not occur since it searches for a method with the types of the arguments) * @throws InvocationTargetException If the desired method cannot be invoked on the target object * @throws NoSuchMethodException If the desired method of the target class with the specified name and arguments cannot be found * @see #getMethod(Class, String, Class...) * @see DataType#getPrimitive(Object[]) */ public static Object invokeMethod(Object instance, Class<?> clazz, String methodName, Object... arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException { return getMethod(clazz, methodName, DataType.getPrimitive(arguments)).invoke(instance, arguments); } /** * Invokes a method of a desired class on an object with the given arguments * * @param instance Target object * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param methodName Name of the desired method * @param arguments Arguments which are used to invoke the desired method * @return The result of invoking the desired method on the target object * @throws IllegalAccessException If the desired method cannot be accessed due to certain circumstances * @throws IllegalArgumentException If the types of the arguments do not match the parameter types of the method (this should not occur since it searches for a method with the types of the arguments) * @throws InvocationTargetException If the desired method cannot be invoked on the target object * @throws NoSuchMethodException If the desired method of the desired target class with the specified name and arguments cannot be found * @throws ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #getClass(String, PackageType) * @see #invokeMethod(Object, Class, String, Object...) */ public static Object invokeMethod(Object instance, String className, PackageType packageType, String methodName, Object... arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException { return invokeMethod(instance, packageType.getClass(className), methodName, arguments); } /** * Returns a field of the target class with the given name * * @param clazz Target class * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @return The field of the target class with the specified name * @throws NoSuchFieldException If the desired field of the given class cannot be found * @throws SecurityException If the desired field cannot be made accessible */ public static Field getField(Class<?> clazz, boolean declared, String fieldName) throws NoSuchFieldException, SecurityException { Field field = declared ? clazz.getDeclaredField(fieldName) : clazz.getField(fieldName); field.setAccessible(true); return field; } /** * Returns a field of a desired class with the given name * * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @return The field of the desired target class with the specified name * @throws NoSuchFieldException If the desired field of the desired class cannot be found * @throws SecurityException If the desired field cannot be made accessible * @throws ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #getField(Class, boolean, String) */ public static Field getField(String className, PackageType packageType, boolean declared, String fieldName) throws NoSuchFieldException, SecurityException, ClassNotFoundException { return getField(packageType.getClass(className), declared, fieldName); } /** * Returns the value of a field of the given class of an object * * @param instance Target object * @param clazz Target class * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @return The value of field of the target object * @throws IllegalArgumentException If the target object does not feature the desired field * @throws IllegalAccessException If the desired field cannot be accessed * @throws NoSuchFieldException If the desired field of the target class cannot be found * @throws SecurityException If the desired field cannot be made accessible * @see #getField(Class, boolean, String) */ public static Object getValue(Object instance, Class<?> clazz, boolean declared, String fieldName) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { return getField(clazz, declared, fieldName).get(instance); } /** * Returns the value of a field of a desired class of an object * * @param instance Target object * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @return The value of field of the target object * @throws IllegalArgumentException If the target object does not feature the desired field * @throws IllegalAccessException If the desired field cannot be accessed * @throws NoSuchFieldException If the desired field of the desired class cannot be found * @throws SecurityException If the desired field cannot be made accessible * @throws ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #getValue(Object, Class, boolean, String) */ public static Object getValue(Object instance, String className, PackageType packageType, boolean declared, String fieldName) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ClassNotFoundException { return getValue(instance, packageType.getClass(className), declared, fieldName); } /** * Returns the value of a field with the given name of an object * * @param instance Target object * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @return The value of field of the target object * @throws IllegalArgumentException If the target object does not feature the desired field (should not occur since it searches for a field with the given name in the class of the object) * @throws IllegalAccessException If the desired field cannot be accessed * @throws NoSuchFieldException If the desired field of the target object cannot be found * @throws SecurityException If the desired field cannot be made accessible * @see #getValue(Object, Class, boolean, String) */ public static Object getValue(Object instance, boolean declared, String fieldName) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { return getValue(instance, instance.getClass(), declared, fieldName); } /** * Sets the value of a field of the given class of an object * * @param instance Target object * @param clazz Target class * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @param value New value * @throws IllegalArgumentException If the type of the value does not match the type of the desired field * @throws IllegalAccessException If the desired field cannot be accessed * @throws NoSuchFieldException If the desired field of the target class cannot be found * @throws SecurityException If the desired field cannot be made accessible * @see #getField(Class, boolean, String) */ public static void setValue(Object instance, Class<?> clazz, boolean declared, String fieldName, Object value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { getField(clazz, declared, fieldName).set(instance, value); } /** * Sets the value of a field of a desired class of an object * * @param instance Target object * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @param value New value * @throws IllegalArgumentException If the type of the value does not match the type of the desired field * @throws IllegalAccessException If the desired field cannot be accessed * @throws NoSuchFieldException If the desired field of the desired class cannot be found * @throws SecurityException If the desired field cannot be made accessible * @throws ClassNotFoundException If the desired target class with the specified name and package cannot be found * @see #setValue(Object, Class, boolean, String, Object) */ public static void setValue(Object instance, String className, PackageType packageType, boolean declared, String fieldName, Object value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException, ClassNotFoundException { setValue(instance, packageType.getClass(className), declared, fieldName, value); } /** * Sets the value of a field with the given name of an object * * @param instance Target object * @param declared Whether the desired field is declared or not * @param fieldName Name of the desired field * @param value New value * @throws IllegalArgumentException If the type of the value does not match the type of the desired field * @throws IllegalAccessException If the desired field cannot be accessed * @throws NoSuchFieldException If the desired field of the target object cannot be found * @throws SecurityException If the desired field cannot be made accessible * @see #setValue(Object, Class, boolean, String, Object) */ public static void setValue(Object instance, boolean declared, String fieldName, Object value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { setValue(instance, instance.getClass(), declared, fieldName, value); } /** * Represents an enumeration of dynamic packages of NMS and CraftBukkit * <p> * This class is part of the <b>ReflectionUtils</b> and follows the same usage conditions * * @author DarkBlade12 * @since 1.0 */ public enum PackageType { MINECRAFT_SERVER("net.minecraft.server." + getServerVersion()), CRAFTBUKKIT("org.bukkit.craftbukkit." + getServerVersion()), CRAFTBUKKIT_BLOCK(CRAFTBUKKIT, "block"), CRAFTBUKKIT_CHUNKIO(CRAFTBUKKIT, "chunkio"), CRAFTBUKKIT_COMMAND(CRAFTBUKKIT, "command"), CRAFTBUKKIT_CONVERSATIONS(CRAFTBUKKIT, "conversations"), CRAFTBUKKIT_ENCHANTMENS(CRAFTBUKKIT, "enchantments"), CRAFTBUKKIT_ENTITY(CRAFTBUKKIT, "entity"), CRAFTBUKKIT_EVENT(CRAFTBUKKIT, "event"), CRAFTBUKKIT_GENERATOR(CRAFTBUKKIT, "generator"), CRAFTBUKKIT_HELP(CRAFTBUKKIT, "help"), CRAFTBUKKIT_INVENTORY(CRAFTBUKKIT, "inventory"), CRAFTBUKKIT_MAP(CRAFTBUKKIT, "map"), CRAFTBUKKIT_METADATA(CRAFTBUKKIT, "metadata"), CRAFTBUKKIT_POTION(CRAFTBUKKIT, "potion"), CRAFTBUKKIT_PROJECTILES(CRAFTBUKKIT, "projectiles"), CRAFTBUKKIT_SCHEDULER(CRAFTBUKKIT, "scheduler"), CRAFTBUKKIT_SCOREBOARD(CRAFTBUKKIT, "scoreboard"), CRAFTBUKKIT_UPDATER(CRAFTBUKKIT, "updater"), CRAFTBUKKIT_UTIL(CRAFTBUKKIT, "util"); private final String path; /** * Construct a new package type * * @param path Path of the package */ private PackageType(String path) { this.path = path; } /** * Construct a new package type * * @param parent Parent package of the package * @param path Path of the package */ private PackageType(PackageType parent, String path) { this(parent + "." + path); } /** * Returns the path of this package type * * @return The path */ public String getPath() { return path; } /** * Returns the class with the given name * * @param className Name of the desired class * @return The class with the specified name * @throws ClassNotFoundException If the desired class with the specified name and package cannot be found */ public Class<?> getClass(String className) throws ClassNotFoundException { return Class.forName(this + "." + className); } // Override for convenience @Override public String toString() { return path; } /** * Returns the version of your server * * @return The server version */ public static String getServerVersion() { return Bukkit.getServer().getClass().getPackage().getName().substring(23); } } /** * Represents an enumeration of Java data types with corresponding classes * <p> * This class is part of the <b>ReflectionUtils</b> and follows the same usage conditions * * @author DarkBlade12 * @since 1.0 */ public enum DataType { BYTE(byte.class, Byte.class), SHORT(short.class, Short.class), INTEGER(int.class, Integer.class), LONG(long.class, Long.class), CHARACTER(char.class, Character.class), FLOAT(float.class, Float.class), DOUBLE(double.class, Double.class), BOOLEAN(boolean.class, Boolean.class); private static final Map<Class<?>, DataType> CLASS_MAP = new HashMap<Class<?>, DataType>(); private final Class<?> primitive; private final Class<?> reference; // Initialize map for quick class lookup static { for (DataType type : values()) { CLASS_MAP.put(type.primitive, type); CLASS_MAP.put(type.reference, type); } } /** * Construct a new data type * * @param primitive Primitive class of this data type * @param reference Reference class of this data type */ private DataType(Class<?> primitive, Class<?> reference) { this.primitive = primitive; this.reference = reference; } /** * Returns the primitive class of this data type * * @return The primitive class */ public Class<?> getPrimitive() { return primitive; } /** * Returns the reference class of this data type * * @return The reference class */ public Class<?> getReference() { return reference; } /** * Returns the data type with the given primitive/reference class * * @param clazz Primitive/Reference class of the data type * @return The data type */ public static DataType fromClass(Class<?> clazz) { return CLASS_MAP.get(clazz); } /** * Returns the primitive class of the data type with the given reference class * * @param clazz Reference class of the data type * @return The primitive class */ public static Class<?> getPrimitive(Class<?> clazz) { DataType type = fromClass(clazz); return type == null ? clazz : type.getPrimitive(); } /** * Returns the reference class of the data type with the given primitive class * * @param clazz Primitive class of the data type * @return The reference class */ public static Class<?> getReference(Class<?> clazz) { DataType type = fromClass(clazz); return type == null ? clazz : type.getReference(); } /** * Returns the primitive class array of the given class array * * @param classes Given class array * @return The primitive class array */ public static Class<?>[] getPrimitive(Class<?>[] classes) { int length = classes == null ? 0 : classes.length; Class<?>[] types = new Class<?>[length]; for (int index = 0; index < length; index++) { types[index] = getPrimitive(classes[index]); } return types; } /** * Returns the reference class array of the given class array * * @param classes Given class array * @return The reference class array */ public static Class<?>[] getReference(Class<?>[] classes) { int length = classes == null ? 0 : classes.length; Class<?>[] types = new Class<?>[length]; for (int index = 0; index < length; index++) { types[index] = getReference(classes[index]); } return types; } /** * Returns the primitive class array of the given object array * * @param object Given object array * @return The primitive class array */ public static Class<?>[] getPrimitive(Object[] objects) { int length = objects == null ? 0 : objects.length; Class<?>[] types = new Class<?>[length]; for (int index = 0; index < length; index++) { types[index] = getPrimitive(objects[index].getClass()); } return types; } /** * Returns the reference class array of the given object array * * @param object Given object array * @return The reference class array */ public static Class<?>[] getReference(Object[] objects) { int length = objects == null ? 0 : objects.length; Class<?>[] types = new Class<?>[length]; for (int index = 0; index < length; index++) { types[index] = getReference(objects[index].getClass()); } return types; } /** * Compares two class arrays on equivalence * * @param primary Primary class array * @param secondary Class array which is compared to the primary array * @return Whether these arrays are equal or not */ public static boolean compare(Class<?>[] primary, Class<?>[] secondary) { if (primary == null || secondary == null || primary.length != secondary.length) { return false; } for (int index = 0; index < primary.length; index++) { Class<?> primaryClass = primary[index]; Class<?> secondaryClass = secondary[index]; if (primaryClass.equals(secondaryClass) || primaryClass.isAssignableFrom(secondaryClass)) { continue; } return false; } return true; } } }
a74d5c2e81c9d12f1bafa65b828525cd2f03b710
1f2ea54799f9422e27f5a14f0fc39a1ff79eb8f6
/BookStore/src/main/java/com/cg/dao/BookyDao.java
3d7a6c57e0cb995ddce57d4c6b8e4b04caf0ade0
[]
no_license
sakshi-lan/book-app
ad05336b943330ab60ea51bd4596aa5c30eaabce
1d307dc3f8af7f6afe116ffb65c26a3b643e104d
refs/heads/master
2022-11-06T23:25:21.861490
2020-07-16T15:47:19
2020-07-16T15:47:19
280,191,744
0
0
null
null
null
null
UTF-8
Java
false
false
241
java
package com.cg.dao; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.cg.entity.Book; @Repository public interface BookyDao extends JpaRepository<Book, Integer>{ }
846e63dc11b31325b5bd836bb80ab2f88ae8a662
399b3ab0b1375c4b943c078efb5f07f1d0e118fa
/Projectile.java
7c0adb02bf32f4d0f6f4e9717826f7424bf589d9
[]
no_license
ER2-1017/Java4Lesson6
477110993fba014d7836b06e080db6c100a235bd
30c98612c5f66051f042bcc8fe8743ff0e832a00
refs/heads/master
2022-09-30T04:12:17.451901
2020-06-05T00:06:12
2020-06-05T00:06:12
269,490,663
0
0
null
null
null
null
UTF-8
Java
false
false
1,658
java
package com.dune.game.core; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector2; public class Projectile extends GameObject implements Poolable { private TextureRegion texture; private Vector2 velocity; private float speed; private float angle; private boolean active; private Tank owner; public Tank getOwner() { return owner; } @Override public boolean isActive() { return active; } public void deactivate() { active = false; } public Projectile(GameController gc) { super(gc); this.velocity = new Vector2(); this.speed = 640.0f; } public void setup(Tank owner, Vector2 startPosition, float angle, TextureRegion texture) { this.owner = owner; this.texture = texture; this.position.set(startPosition); this.angle = angle; this.velocity.set(speed * MathUtils.cosDeg(angle), speed * MathUtils.sinDeg(angle)); this.active = true; } /* public void checkCollision (){ if (this.position.x == Tank.getX()){ System.out.println("CheckPosition"); } }*/ public void render(SpriteBatch batch) { batch.draw(texture, position.x - 8, position.y - 8); } public void update(float dt) { position.mulAdd(velocity, dt); if (position.x < 0 || position.x > 1280 || position.y < 0 || position.y > 720) { deactivate(); } } }
2aad225b8a1194f9fec53300fe5d670cea08cba2
13a99632212c1f65455b02236ff70881b86aadad
/src/CPP14Parser.java
f9f62e9d021a9dfb01082204f93e37379ca1774e
[]
no_license
gudiseva/AntlrProj2
ee6ffc64607300ca60da8669a0deb6653750ab03
6329cb8339ffc323dee5c9fdfa4fea21250e97f4
refs/heads/main
2023-08-15T18:06:23.532667
2021-09-09T18:20:05
2021-09-09T18:20:05
404,804,121
0
0
null
null
null
null
UTF-8
Java
false
false
531,841
java
// Generated from CPP14.g4 by ANTLR 4.8 import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.tree.*; import java.util.List; import java.util.Iterator; import java.util.ArrayList; @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) public class CPP14Parser extends Parser { static { RuntimeMetaData.checkVersion("4.8", RuntimeMetaData.VERSION); } protected static final DFA[] _decisionToDFA; protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); public static final int Directive=1, Alignas=2, Alignof=3, Asm=4, Auto=5, Bool=6, Break=7, Case=8, Catch=9, Char=10, Char16=11, Char32=12, Class=13, Const=14, Constexpr=15, Const_cast=16, Continue=17, Decltype=18, Default=19, Delete=20, Do=21, Double=22, Dynamic_cast=23, Else=24, Enum=25, Explicit=26, Export=27, Extern=28, False=29, Final=30, Float=31, For=32, Friend=33, Goto=34, If=35, Inline=36, Int=37, Long=38, Mutable=39, Namespace=40, New=41, Noexcept=42, Nullptr=43, Operator=44, Override=45, Private=46, Protected=47, Public=48, Register=49, Reinterpret_cast=50, Return=51, Short=52, Signed=53, Sizeof=54, Static=55, Static_assert=56, Static_cast=57, Struct=58, Switch=59, Template=60, This=61, Thread_local=62, Throw=63, True=64, Try=65, Typedef=66, Typeid=67, Typename=68, Union=69, Unsigned=70, Using=71, Virtual=72, Void=73, Volatile=74, Wchar=75, While=76, LeftParen=77, RightParen=78, LeftBracket=79, RightBracket=80, LeftBrace=81, RightBrace=82, Plus=83, Minus=84, Star=85, Div=86, Mod=87, Caret=88, And=89, Or=90, Tilde=91, Not=92, Assign=93, Less=94, Greater=95, PlusAssign=96, MinusAssign=97, StarAssign=98, DivAssign=99, ModAssign=100, XorAssign=101, AndAssign=102, OrAssign=103, LeftShift=104, LeftShiftAssign=105, Equal=106, NotEqual=107, LessEqual=108, GreaterEqual=109, AndAnd=110, OrOr=111, PlusPlus=112, MinusMinus=113, Comma=114, ArrowStar=115, Arrow=116, Question=117, Colon=118, Doublecolon=119, Semi=120, Dot=121, DotStar=122, Ellipsis=123, Identifier=124, Integerliteral=125, Decimalliteral=126, Octalliteral=127, Hexadecimalliteral=128, Binaryliteral=129, Integersuffix=130, Characterliteral=131, Floatingliteral=132, Stringliteral=133, Userdefinedintegerliteral=134, Userdefinedfloatingliteral=135, Userdefinedstringliteral=136, Userdefinedcharacterliteral=137, Whitespace=138, Newline=139, BlockComment=140, LineComment=141; public static final int RULE_translationunit = 0, RULE_primaryexpression = 1, RULE_idexpression = 2, RULE_unqualifiedid = 3, RULE_qualifiedid = 4, RULE_nestednamespecifier = 5, RULE_lambdaexpression = 6, RULE_lambdaintroducer = 7, RULE_lambdacapture = 8, RULE_capturedefault = 9, RULE_capturelist = 10, RULE_capture = 11, RULE_simplecapture = 12, RULE_initcapture = 13, RULE_lambdadeclarator = 14, RULE_postfixexpression = 15, RULE_expressionlist = 16, RULE_pseudodestructorname = 17, RULE_unaryexpression = 18, RULE_unaryoperator = 19, RULE_newexpression = 20, RULE_newplacement = 21, RULE_newtypeid = 22, RULE_newdeclarator = 23, RULE_noptrnewdeclarator = 24, RULE_newinitializer = 25, RULE_deleteexpression = 26, RULE_noexceptexpression = 27, RULE_castexpression = 28, RULE_pmexpression = 29, RULE_multiplicativeexpression = 30, RULE_additiveexpression = 31, RULE_shiftexpression = 32, RULE_relationalexpression = 33, RULE_equalityexpression = 34, RULE_andexpression = 35, RULE_exclusiveorexpression = 36, RULE_inclusiveorexpression = 37, RULE_logicalandexpression = 38, RULE_logicalorexpression = 39, RULE_conditionalexpression = 40, RULE_assignmentexpression = 41, RULE_assignmentoperator = 42, RULE_expression = 43, RULE_constantexpression = 44, RULE_statement = 45, RULE_labeledstatement = 46, RULE_expressionstatement = 47, RULE_compoundstatement = 48, RULE_statementseq = 49, RULE_selectionstatement = 50, RULE_condition = 51, RULE_iterationstatement = 52, RULE_forinitstatement = 53, RULE_forrangedeclaration = 54, RULE_forrangeinitializer = 55, RULE_jumpstatement = 56, RULE_declarationstatement = 57, RULE_declarationseq = 58, RULE_declaration = 59, RULE_blockdeclaration = 60, RULE_aliasdeclaration = 61, RULE_simpledeclaration = 62, RULE_static_assertdeclaration = 63, RULE_emptydeclaration = 64, RULE_attributedeclaration = 65, RULE_declspecifier = 66, RULE_declspecifierseq = 67, RULE_storageclassspecifier = 68, RULE_functionspecifier = 69, RULE_typedefname = 70, RULE_typespecifier = 71, RULE_trailingtypespecifier = 72, RULE_typespecifierseq = 73, RULE_trailingtypespecifierseq = 74, RULE_simpletypespecifier = 75, RULE_typename = 76, RULE_decltypespecifier = 77, RULE_elaboratedtypespecifier = 78, RULE_enumname = 79, RULE_enumspecifier = 80, RULE_enumhead = 81, RULE_opaqueenumdeclaration = 82, RULE_enumkey = 83, RULE_enumbase = 84, RULE_enumeratorlist = 85, RULE_enumeratordefinition = 86, RULE_enumerator = 87, RULE_namespacename = 88, RULE_originalnamespacename = 89, RULE_namespacedefinition = 90, RULE_namednamespacedefinition = 91, RULE_originalnamespacedefinition = 92, RULE_extensionnamespacedefinition = 93, RULE_unnamednamespacedefinition = 94, RULE_namespacebody = 95, RULE_namespacealias = 96, RULE_namespacealiasdefinition = 97, RULE_qualifiednamespacespecifier = 98, RULE_usingdeclaration = 99, RULE_usingdirective = 100, RULE_asmdefinition = 101, RULE_linkagespecification = 102, RULE_attributespecifierseq = 103, RULE_attributespecifier = 104, RULE_alignmentspecifier = 105, RULE_attributelist = 106, RULE_attribute = 107, RULE_attributetoken = 108, RULE_attributescopedtoken = 109, RULE_attributenamespace = 110, RULE_attributeargumentclause = 111, RULE_balancedtokenseq = 112, RULE_balancedtoken = 113, RULE_initdeclaratorlist = 114, RULE_initdeclarator = 115, RULE_declarator = 116, RULE_ptrdeclarator = 117, RULE_noptrdeclarator = 118, RULE_parametersandqualifiers = 119, RULE_trailingreturntype = 120, RULE_ptroperator = 121, RULE_cvqualifierseq = 122, RULE_cvqualifier = 123, RULE_refqualifier = 124, RULE_declaratorid = 125, RULE_typeid = 126, RULE_abstractdeclarator = 127, RULE_ptrabstractdeclarator = 128, RULE_noptrabstractdeclarator = 129, RULE_abstractpackdeclarator = 130, RULE_noptrabstractpackdeclarator = 131, RULE_parameterdeclarationclause = 132, RULE_parameterdeclarationlist = 133, RULE_parameterdeclaration = 134, RULE_functiondefinition = 135, RULE_functionbody = 136, RULE_initializer = 137, RULE_braceorequalinitializer = 138, RULE_initializerclause = 139, RULE_initializerlist = 140, RULE_bracedinitlist = 141, RULE_classname = 142, RULE_classspecifier = 143, RULE_classhead = 144, RULE_classheadname = 145, RULE_classvirtspecifier = 146, RULE_classkey = 147, RULE_memberspecification = 148, RULE_memberdeclaration = 149, RULE_memberdeclaratorlist = 150, RULE_memberdeclarator = 151, RULE_virtspecifierseq = 152, RULE_virtspecifier = 153, RULE_purespecifier = 154, RULE_baseclause = 155, RULE_basespecifierlist = 156, RULE_basespecifier = 157, RULE_classordecltype = 158, RULE_basetypespecifier = 159, RULE_accessspecifier = 160, RULE_conversionfunctionid = 161, RULE_conversiontypeid = 162, RULE_conversiondeclarator = 163, RULE_ctorinitializer = 164, RULE_meminitializerlist = 165, RULE_meminitializer = 166, RULE_meminitializerid = 167, RULE_operatorfunctionid = 168, RULE_literaloperatorid = 169, RULE_templatedeclaration = 170, RULE_templateparameterlist = 171, RULE_templateparameter = 172, RULE_typeparameter = 173, RULE_simpletemplateid = 174, RULE_templateid = 175, RULE_templatename = 176, RULE_templateargumentlist = 177, RULE_templateargument = 178, RULE_typenamespecifier = 179, RULE_explicitinstantiation = 180, RULE_explicitspecialization = 181, RULE_tryblock = 182, RULE_functiontryblock = 183, RULE_handlerseq = 184, RULE_handler = 185, RULE_exceptiondeclaration = 186, RULE_throwexpression = 187, RULE_exceptionspecification = 188, RULE_dynamicexceptionspecification = 189, RULE_typeidlist = 190, RULE_noexceptspecification = 191, RULE_rightShift = 192, RULE_rightShiftAssign = 193, RULE_operator = 194, RULE_literal = 195, RULE_booleanliteral = 196, RULE_pointerliteral = 197, RULE_userdefinedliteral = 198; private static String[] makeRuleNames() { return new String[] { "translationunit", "primaryexpression", "idexpression", "unqualifiedid", "qualifiedid", "nestednamespecifier", "lambdaexpression", "lambdaintroducer", "lambdacapture", "capturedefault", "capturelist", "capture", "simplecapture", "initcapture", "lambdadeclarator", "postfixexpression", "expressionlist", "pseudodestructorname", "unaryexpression", "unaryoperator", "newexpression", "newplacement", "newtypeid", "newdeclarator", "noptrnewdeclarator", "newinitializer", "deleteexpression", "noexceptexpression", "castexpression", "pmexpression", "multiplicativeexpression", "additiveexpression", "shiftexpression", "relationalexpression", "equalityexpression", "andexpression", "exclusiveorexpression", "inclusiveorexpression", "logicalandexpression", "logicalorexpression", "conditionalexpression", "assignmentexpression", "assignmentoperator", "expression", "constantexpression", "statement", "labeledstatement", "expressionstatement", "compoundstatement", "statementseq", "selectionstatement", "condition", "iterationstatement", "forinitstatement", "forrangedeclaration", "forrangeinitializer", "jumpstatement", "declarationstatement", "declarationseq", "declaration", "blockdeclaration", "aliasdeclaration", "simpledeclaration", "static_assertdeclaration", "emptydeclaration", "attributedeclaration", "declspecifier", "declspecifierseq", "storageclassspecifier", "functionspecifier", "typedefname", "typespecifier", "trailingtypespecifier", "typespecifierseq", "trailingtypespecifierseq", "simpletypespecifier", "typename", "decltypespecifier", "elaboratedtypespecifier", "enumname", "enumspecifier", "enumhead", "opaqueenumdeclaration", "enumkey", "enumbase", "enumeratorlist", "enumeratordefinition", "enumerator", "namespacename", "originalnamespacename", "namespacedefinition", "namednamespacedefinition", "originalnamespacedefinition", "extensionnamespacedefinition", "unnamednamespacedefinition", "namespacebody", "namespacealias", "namespacealiasdefinition", "qualifiednamespacespecifier", "usingdeclaration", "usingdirective", "asmdefinition", "linkagespecification", "attributespecifierseq", "attributespecifier", "alignmentspecifier", "attributelist", "attribute", "attributetoken", "attributescopedtoken", "attributenamespace", "attributeargumentclause", "balancedtokenseq", "balancedtoken", "initdeclaratorlist", "initdeclarator", "declarator", "ptrdeclarator", "noptrdeclarator", "parametersandqualifiers", "trailingreturntype", "ptroperator", "cvqualifierseq", "cvqualifier", "refqualifier", "declaratorid", "typeid", "abstractdeclarator", "ptrabstractdeclarator", "noptrabstractdeclarator", "abstractpackdeclarator", "noptrabstractpackdeclarator", "parameterdeclarationclause", "parameterdeclarationlist", "parameterdeclaration", "functiondefinition", "functionbody", "initializer", "braceorequalinitializer", "initializerclause", "initializerlist", "bracedinitlist", "classname", "classspecifier", "classhead", "classheadname", "classvirtspecifier", "classkey", "memberspecification", "memberdeclaration", "memberdeclaratorlist", "memberdeclarator", "virtspecifierseq", "virtspecifier", "purespecifier", "baseclause", "basespecifierlist", "basespecifier", "classordecltype", "basetypespecifier", "accessspecifier", "conversionfunctionid", "conversiontypeid", "conversiondeclarator", "ctorinitializer", "meminitializerlist", "meminitializer", "meminitializerid", "operatorfunctionid", "literaloperatorid", "templatedeclaration", "templateparameterlist", "templateparameter", "typeparameter", "simpletemplateid", "templateid", "templatename", "templateargumentlist", "templateargument", "typenamespecifier", "explicitinstantiation", "explicitspecialization", "tryblock", "functiontryblock", "handlerseq", "handler", "exceptiondeclaration", "throwexpression", "exceptionspecification", "dynamicexceptionspecification", "typeidlist", "noexceptspecification", "rightShift", "rightShiftAssign", "operator", "literal", "booleanliteral", "pointerliteral", "userdefinedliteral" }; } public static final String[] ruleNames = makeRuleNames(); private static String[] makeLiteralNames() { return new String[] { null, null, "'alignas'", "'alignof'", "'asm'", "'auto'", "'bool'", "'break'", "'case'", "'catch'", "'char'", "'char16_t'", "'char32_t'", "'class'", "'const'", "'constexpr'", "'const_cast'", "'continue'", "'decltype'", "'default'", "'delete'", "'do'", "'double'", "'dynamic_cast'", "'else'", "'enum'", "'explicit'", "'export'", "'extern'", "'false'", "'final'", "'float'", "'for'", "'friend'", "'goto'", "'if'", "'inline'", "'int'", "'long'", "'mutable'", "'namespace'", "'new'", "'noexcept'", "'nullptr'", "'operator'", "'override'", "'private'", "'protected'", "'public'", "'register'", "'reinterpret_cast'", "'return'", "'short'", "'signed'", "'sizeof'", "'static'", "'static_assert'", "'static_cast'", "'struct'", "'switch'", "'template'", "'this'", "'thread_local'", "'throw'", "'true'", "'try'", "'typedef'", "'typeid'", "'typename'", "'union'", "'unsigned'", "'using'", "'virtual'", "'void'", "'volatile'", "'wchar_t'", "'while'", "'('", "')'", "'['", "']'", "'{'", "'}'", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "'&'", "'|'", "'~'", "'!'", "'='", "'<'", "'>'", "'+='", "'-='", "'*='", "'/='", "'%='", "'^='", "'&='", "'|='", "'<<'", "'<<='", "'=='", "'!='", "'<='", "'>='", "'&&'", "'||'", "'++'", "'--'", "','", "'->*'", "'->'", "'?'", "':'", "'::'", "';'", "'.'", "'.*'", "'...'" }; } private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { null, "Directive", "Alignas", "Alignof", "Asm", "Auto", "Bool", "Break", "Case", "Catch", "Char", "Char16", "Char32", "Class", "Const", "Constexpr", "Const_cast", "Continue", "Decltype", "Default", "Delete", "Do", "Double", "Dynamic_cast", "Else", "Enum", "Explicit", "Export", "Extern", "False", "Final", "Float", "For", "Friend", "Goto", "If", "Inline", "Int", "Long", "Mutable", "Namespace", "New", "Noexcept", "Nullptr", "Operator", "Override", "Private", "Protected", "Public", "Register", "Reinterpret_cast", "Return", "Short", "Signed", "Sizeof", "Static", "Static_assert", "Static_cast", "Struct", "Switch", "Template", "This", "Thread_local", "Throw", "True", "Try", "Typedef", "Typeid", "Typename", "Union", "Unsigned", "Using", "Virtual", "Void", "Volatile", "Wchar", "While", "LeftParen", "RightParen", "LeftBracket", "RightBracket", "LeftBrace", "RightBrace", "Plus", "Minus", "Star", "Div", "Mod", "Caret", "And", "Or", "Tilde", "Not", "Assign", "Less", "Greater", "PlusAssign", "MinusAssign", "StarAssign", "DivAssign", "ModAssign", "XorAssign", "AndAssign", "OrAssign", "LeftShift", "LeftShiftAssign", "Equal", "NotEqual", "LessEqual", "GreaterEqual", "AndAnd", "OrOr", "PlusPlus", "MinusMinus", "Comma", "ArrowStar", "Arrow", "Question", "Colon", "Doublecolon", "Semi", "Dot", "DotStar", "Ellipsis", "Identifier", "Integerliteral", "Decimalliteral", "Octalliteral", "Hexadecimalliteral", "Binaryliteral", "Integersuffix", "Characterliteral", "Floatingliteral", "Stringliteral", "Userdefinedintegerliteral", "Userdefinedfloatingliteral", "Userdefinedstringliteral", "Userdefinedcharacterliteral", "Whitespace", "Newline", "BlockComment", "LineComment" }; } private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames(); public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); /** * @deprecated Use {@link #VOCABULARY} instead. */ @Deprecated public static final String[] tokenNames; static { tokenNames = new String[_SYMBOLIC_NAMES.length]; for (int i = 0; i < tokenNames.length; i++) { tokenNames[i] = VOCABULARY.getLiteralName(i); if (tokenNames[i] == null) { tokenNames[i] = VOCABULARY.getSymbolicName(i); } if (tokenNames[i] == null) { tokenNames[i] = "<INVALID>"; } } } @Override @Deprecated public String[] getTokenNames() { return tokenNames; } @Override public Vocabulary getVocabulary() { return VOCABULARY; } @Override public String getGrammarFileName() { return "CPP14.g4"; } @Override public String[] getRuleNames() { return ruleNames; } @Override public String getSerializedATN() { return _serializedATN; } @Override public ATN getATN() { return _ATN; } public CPP14Parser(TokenStream input) { super(input); _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); } public static class TranslationunitContext extends ParserRuleContext { public TerminalNode EOF() { return getToken(CPP14Parser.EOF, 0); } public DeclarationseqContext declarationseq() { return getRuleContext(DeclarationseqContext.class,0); } public TranslationunitContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_translationunit; } } public final TranslationunitContext translationunit() throws RecognitionException { TranslationunitContext _localctx = new TranslationunitContext(_ctx, getState()); enterRule(_localctx, 0, RULE_translationunit); int _la; try { enterOuterAlt(_localctx, 1); { setState(399); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Asm) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Namespace) | (1L << Operator) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Static_assert) | (1L << Struct) | (1L << Template) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Using - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftParen - 66)) | (1L << (LeftBracket - 66)) | (1L << (Star - 66)) | (1L << (And - 66)) | (1L << (Tilde - 66)) | (1L << (AndAnd - 66)) | (1L << (Doublecolon - 66)) | (1L << (Semi - 66)) | (1L << (Ellipsis - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(398); declarationseq(0); } } setState(401); match(EOF); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PrimaryexpressionContext extends ParserRuleContext { public LiteralContext literal() { return getRuleContext(LiteralContext.class,0); } public TerminalNode This() { return getToken(CPP14Parser.This, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public IdexpressionContext idexpression() { return getRuleContext(IdexpressionContext.class,0); } public LambdaexpressionContext lambdaexpression() { return getRuleContext(LambdaexpressionContext.class,0); } public PrimaryexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_primaryexpression; } } public final PrimaryexpressionContext primaryexpression() throws RecognitionException { PrimaryexpressionContext _localctx = new PrimaryexpressionContext(_ctx, getState()); enterRule(_localctx, 2, RULE_primaryexpression); try { setState(411); _errHandler.sync(this); switch (_input.LA(1)) { case False: case Nullptr: case True: case Integerliteral: case Characterliteral: case Floatingliteral: case Stringliteral: case Userdefinedintegerliteral: case Userdefinedfloatingliteral: case Userdefinedstringliteral: case Userdefinedcharacterliteral: enterOuterAlt(_localctx, 1); { setState(403); literal(); } break; case This: enterOuterAlt(_localctx, 2); { setState(404); match(This); } break; case LeftParen: enterOuterAlt(_localctx, 3); { setState(405); match(LeftParen); setState(406); expression(0); setState(407); match(RightParen); } break; case Decltype: case Operator: case Tilde: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 4); { setState(409); idexpression(); } break; case LeftBracket: enterOuterAlt(_localctx, 5); { setState(410); lambdaexpression(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class IdexpressionContext extends ParserRuleContext { public UnqualifiedidContext unqualifiedid() { return getRuleContext(UnqualifiedidContext.class,0); } public QualifiedidContext qualifiedid() { return getRuleContext(QualifiedidContext.class,0); } public IdexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_idexpression; } } public final IdexpressionContext idexpression() throws RecognitionException { IdexpressionContext _localctx = new IdexpressionContext(_ctx, getState()); enterRule(_localctx, 4, RULE_idexpression); try { setState(415); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(413); unqualifiedid(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(414); qualifiedid(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UnqualifiedidContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public OperatorfunctionidContext operatorfunctionid() { return getRuleContext(OperatorfunctionidContext.class,0); } public ConversionfunctionidContext conversionfunctionid() { return getRuleContext(ConversionfunctionidContext.class,0); } public LiteraloperatoridContext literaloperatorid() { return getRuleContext(LiteraloperatoridContext.class,0); } public TerminalNode Tilde() { return getToken(CPP14Parser.Tilde, 0); } public ClassnameContext classname() { return getRuleContext(ClassnameContext.class,0); } public DecltypespecifierContext decltypespecifier() { return getRuleContext(DecltypespecifierContext.class,0); } public TemplateidContext templateid() { return getRuleContext(TemplateidContext.class,0); } public UnqualifiedidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_unqualifiedid; } } public final UnqualifiedidContext unqualifiedid() throws RecognitionException { UnqualifiedidContext _localctx = new UnqualifiedidContext(_ctx, getState()); enterRule(_localctx, 6, RULE_unqualifiedid); try { setState(426); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(417); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { setState(418); operatorfunctionid(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(419); conversionfunctionid(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(420); literaloperatorid(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(421); match(Tilde); setState(422); classname(); } break; case 6: enterOuterAlt(_localctx, 6); { setState(423); match(Tilde); setState(424); decltypespecifier(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(425); templateid(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class QualifiedidContext extends ParserRuleContext { public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public UnqualifiedidContext unqualifiedid() { return getRuleContext(UnqualifiedidContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public QualifiedidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_qualifiedid; } } public final QualifiedidContext qualifiedid() throws RecognitionException { QualifiedidContext _localctx = new QualifiedidContext(_ctx, getState()); enterRule(_localctx, 8, RULE_qualifiedid); int _la; try { enterOuterAlt(_localctx, 1); { setState(428); nestednamespecifier(0); setState(430); _errHandler.sync(this); _la = _input.LA(1); if (_la==Template) { { setState(429); match(Template); } } setState(432); unqualifiedid(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NestednamespecifierContext extends ParserRuleContext { public TerminalNode Doublecolon() { return getToken(CPP14Parser.Doublecolon, 0); } public TypenameContext typename() { return getRuleContext(TypenameContext.class,0); } public NamespacenameContext namespacename() { return getRuleContext(NamespacenameContext.class,0); } public DecltypespecifierContext decltypespecifier() { return getRuleContext(DecltypespecifierContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public NestednamespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_nestednamespecifier; } } public final NestednamespecifierContext nestednamespecifier() throws RecognitionException { return nestednamespecifier(0); } private NestednamespecifierContext nestednamespecifier(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); NestednamespecifierContext _localctx = new NestednamespecifierContext(_ctx, _parentState); NestednamespecifierContext _prevctx = _localctx; int _startState = 10; enterRecursionRule(_localctx, 10, RULE_nestednamespecifier, _p); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(445); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,5,_ctx) ) { case 1: { setState(435); match(Doublecolon); } break; case 2: { setState(436); typename(); setState(437); match(Doublecolon); } break; case 3: { setState(439); namespacename(); setState(440); match(Doublecolon); } break; case 4: { setState(442); decltypespecifier(); setState(443); match(Doublecolon); } break; } _ctx.stop = _input.LT(-1); setState(459); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,8,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(457); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,7,_ctx) ) { case 1: { _localctx = new NestednamespecifierContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_nestednamespecifier); setState(447); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(448); match(Identifier); setState(449); match(Doublecolon); } break; case 2: { _localctx = new NestednamespecifierContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_nestednamespecifier); setState(450); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(452); _errHandler.sync(this); _la = _input.LA(1); if (_la==Template) { { setState(451); match(Template); } } setState(454); simpletemplateid(); setState(455); match(Doublecolon); } break; } } } setState(461); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,8,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class LambdaexpressionContext extends ParserRuleContext { public LambdaintroducerContext lambdaintroducer() { return getRuleContext(LambdaintroducerContext.class,0); } public CompoundstatementContext compoundstatement() { return getRuleContext(CompoundstatementContext.class,0); } public LambdadeclaratorContext lambdadeclarator() { return getRuleContext(LambdadeclaratorContext.class,0); } public LambdaexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_lambdaexpression; } } public final LambdaexpressionContext lambdaexpression() throws RecognitionException { LambdaexpressionContext _localctx = new LambdaexpressionContext(_ctx, getState()); enterRule(_localctx, 12, RULE_lambdaexpression); int _la; try { enterOuterAlt(_localctx, 1); { setState(462); lambdaintroducer(); setState(464); _errHandler.sync(this); _la = _input.LA(1); if (_la==LeftParen) { { setState(463); lambdadeclarator(); } } setState(466); compoundstatement(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LambdaintroducerContext extends ParserRuleContext { public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public LambdacaptureContext lambdacapture() { return getRuleContext(LambdacaptureContext.class,0); } public LambdaintroducerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_lambdaintroducer; } } public final LambdaintroducerContext lambdaintroducer() throws RecognitionException { LambdaintroducerContext _localctx = new LambdaintroducerContext(_ctx, getState()); enterRule(_localctx, 14, RULE_lambdaintroducer); int _la; try { enterOuterAlt(_localctx, 1); { setState(468); match(LeftBracket); setState(470); _errHandler.sync(this); _la = _input.LA(1); if (((((_la - 61)) & ~0x3f) == 0 && ((1L << (_la - 61)) & ((1L << (This - 61)) | (1L << (And - 61)) | (1L << (Assign - 61)) | (1L << (Identifier - 61)))) != 0)) { { setState(469); lambdacapture(); } } setState(472); match(RightBracket); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LambdacaptureContext extends ParserRuleContext { public CapturedefaultContext capturedefault() { return getRuleContext(CapturedefaultContext.class,0); } public CapturelistContext capturelist() { return getRuleContext(CapturelistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public LambdacaptureContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_lambdacapture; } } public final LambdacaptureContext lambdacapture() throws RecognitionException { LambdacaptureContext _localctx = new LambdacaptureContext(_ctx, getState()); enterRule(_localctx, 16, RULE_lambdacapture); try { setState(480); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(474); capturedefault(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(475); capturelist(0); } break; case 3: enterOuterAlt(_localctx, 3); { setState(476); capturedefault(); setState(477); match(Comma); setState(478); capturelist(0); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CapturedefaultContext extends ParserRuleContext { public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public CapturedefaultContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_capturedefault; } } public final CapturedefaultContext capturedefault() throws RecognitionException { CapturedefaultContext _localctx = new CapturedefaultContext(_ctx, getState()); enterRule(_localctx, 18, RULE_capturedefault); int _la; try { enterOuterAlt(_localctx, 1); { setState(482); _la = _input.LA(1); if ( !(_la==And || _la==Assign) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CapturelistContext extends ParserRuleContext { public CaptureContext capture() { return getRuleContext(CaptureContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public CapturelistContext capturelist() { return getRuleContext(CapturelistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public CapturelistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_capturelist; } } public final CapturelistContext capturelist() throws RecognitionException { return capturelist(0); } private CapturelistContext capturelist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); CapturelistContext _localctx = new CapturelistContext(_ctx, _parentState); CapturelistContext _prevctx = _localctx; int _startState = 20; enterRecursionRule(_localctx, 20, RULE_capturelist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(485); capture(); setState(487); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) { case 1: { setState(486); match(Ellipsis); } break; } } _ctx.stop = _input.LT(-1); setState(497); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,14,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new CapturelistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_capturelist); setState(489); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(490); match(Comma); setState(491); capture(); setState(493); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) { case 1: { setState(492); match(Ellipsis); } break; } } } } setState(499); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,14,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class CaptureContext extends ParserRuleContext { public SimplecaptureContext simplecapture() { return getRuleContext(SimplecaptureContext.class,0); } public InitcaptureContext initcapture() { return getRuleContext(InitcaptureContext.class,0); } public CaptureContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_capture; } } public final CaptureContext capture() throws RecognitionException { CaptureContext _localctx = new CaptureContext(_ctx, getState()); enterRule(_localctx, 22, RULE_capture); try { setState(502); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(500); simplecapture(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(501); initcapture(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class SimplecaptureContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public TerminalNode This() { return getToken(CPP14Parser.This, 0); } public SimplecaptureContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_simplecapture; } } public final SimplecaptureContext simplecapture() throws RecognitionException { SimplecaptureContext _localctx = new SimplecaptureContext(_ctx, getState()); enterRule(_localctx, 24, RULE_simplecapture); try { setState(508); _errHandler.sync(this); switch (_input.LA(1)) { case Identifier: enterOuterAlt(_localctx, 1); { setState(504); match(Identifier); } break; case And: enterOuterAlt(_localctx, 2); { setState(505); match(And); setState(506); match(Identifier); } break; case This: enterOuterAlt(_localctx, 3); { setState(507); match(This); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class InitcaptureContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public InitializerContext initializer() { return getRuleContext(InitializerContext.class,0); } public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public InitcaptureContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_initcapture; } } public final InitcaptureContext initcapture() throws RecognitionException { InitcaptureContext _localctx = new InitcaptureContext(_ctx, getState()); enterRule(_localctx, 26, RULE_initcapture); try { setState(515); _errHandler.sync(this); switch (_input.LA(1)) { case Identifier: enterOuterAlt(_localctx, 1); { setState(510); match(Identifier); setState(511); initializer(); } break; case And: enterOuterAlt(_localctx, 2); { setState(512); match(And); setState(513); match(Identifier); setState(514); initializer(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LambdadeclaratorContext extends ParserRuleContext { public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ParameterdeclarationclauseContext parameterdeclarationclause() { return getRuleContext(ParameterdeclarationclauseContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode Mutable() { return getToken(CPP14Parser.Mutable, 0); } public ExceptionspecificationContext exceptionspecification() { return getRuleContext(ExceptionspecificationContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TrailingreturntypeContext trailingreturntype() { return getRuleContext(TrailingreturntypeContext.class,0); } public LambdadeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_lambdadeclarator; } } public final LambdadeclaratorContext lambdadeclarator() throws RecognitionException { LambdadeclaratorContext _localctx = new LambdadeclaratorContext(_ctx, getState()); enterRule(_localctx, 28, RULE_lambdadeclarator); int _la; try { enterOuterAlt(_localctx, 1); { setState(517); match(LeftParen); setState(518); parameterdeclarationclause(); setState(519); match(RightParen); setState(521); _errHandler.sync(this); _la = _input.LA(1); if (_la==Mutable) { { setState(520); match(Mutable); } } setState(524); _errHandler.sync(this); _la = _input.LA(1); if (_la==Noexcept || _la==Throw) { { setState(523); exceptionspecification(); } } setState(527); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(526); attributespecifierseq(0); } } setState(530); _errHandler.sync(this); _la = _input.LA(1); if (_la==Arrow) { { setState(529); trailingreturntype(); } } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PostfixexpressionContext extends ParserRuleContext { public PrimaryexpressionContext primaryexpression() { return getRuleContext(PrimaryexpressionContext.class,0); } public SimpletypespecifierContext simpletypespecifier() { return getRuleContext(SimpletypespecifierContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public ExpressionlistContext expressionlist() { return getRuleContext(ExpressionlistContext.class,0); } public TypenamespecifierContext typenamespecifier() { return getRuleContext(TypenamespecifierContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public TerminalNode Dynamic_cast() { return getToken(CPP14Parser.Dynamic_cast, 0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode Static_cast() { return getToken(CPP14Parser.Static_cast, 0); } public TerminalNode Reinterpret_cast() { return getToken(CPP14Parser.Reinterpret_cast, 0); } public TerminalNode Const_cast() { return getToken(CPP14Parser.Const_cast, 0); } public TerminalNode Typeid() { return getToken(CPP14Parser.Typeid, 0); } public PostfixexpressionContext postfixexpression() { return getRuleContext(PostfixexpressionContext.class,0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public TerminalNode Dot() { return getToken(CPP14Parser.Dot, 0); } public IdexpressionContext idexpression() { return getRuleContext(IdexpressionContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public TerminalNode Arrow() { return getToken(CPP14Parser.Arrow, 0); } public PseudodestructornameContext pseudodestructorname() { return getRuleContext(PseudodestructornameContext.class,0); } public TerminalNode PlusPlus() { return getToken(CPP14Parser.PlusPlus, 0); } public TerminalNode MinusMinus() { return getToken(CPP14Parser.MinusMinus, 0); } public PostfixexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_postfixexpression; } } public final PostfixexpressionContext postfixexpression() throws RecognitionException { return postfixexpression(0); } private PostfixexpressionContext postfixexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); PostfixexpressionContext _localctx = new PostfixexpressionContext(_ctx, _parentState); PostfixexpressionContext _prevctx = _localctx; int _startState = 30; enterRecursionRule(_localctx, 30, RULE_postfixexpression, _p); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(596); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) { case 1: { setState(533); primaryexpression(); } break; case 2: { setState(534); simpletypespecifier(); setState(535); match(LeftParen); setState(537); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (LeftBrace - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(536); expressionlist(); } } setState(539); match(RightParen); } break; case 3: { setState(541); typenamespecifier(); setState(542); match(LeftParen); setState(544); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (LeftBrace - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(543); expressionlist(); } } setState(546); match(RightParen); } break; case 4: { setState(548); simpletypespecifier(); setState(549); bracedinitlist(); } break; case 5: { setState(551); typenamespecifier(); setState(552); bracedinitlist(); } break; case 6: { setState(554); match(Dynamic_cast); setState(555); match(Less); setState(556); typeid(); setState(557); match(Greater); setState(558); match(LeftParen); setState(559); expression(0); setState(560); match(RightParen); } break; case 7: { setState(562); match(Static_cast); setState(563); match(Less); setState(564); typeid(); setState(565); match(Greater); setState(566); match(LeftParen); setState(567); expression(0); setState(568); match(RightParen); } break; case 8: { setState(570); match(Reinterpret_cast); setState(571); match(Less); setState(572); typeid(); setState(573); match(Greater); setState(574); match(LeftParen); setState(575); expression(0); setState(576); match(RightParen); } break; case 9: { setState(578); match(Const_cast); setState(579); match(Less); setState(580); typeid(); setState(581); match(Greater); setState(582); match(LeftParen); setState(583); expression(0); setState(584); match(RightParen); } break; case 10: { setState(586); match(Typeid); setState(587); match(LeftParen); setState(588); expression(0); setState(589); match(RightParen); } break; case 11: { setState(591); match(Typeid); setState(592); match(LeftParen); setState(593); typeid(); setState(594); match(RightParen); } break; } _ctx.stop = _input.LT(-1); setState(638); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,29,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(636); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) { case 1: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(598); if (!(precpred(_ctx, 19))) throw new FailedPredicateException(this, "precpred(_ctx, 19)"); setState(599); match(LeftBracket); setState(600); expression(0); setState(601); match(RightBracket); } break; case 2: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(603); if (!(precpred(_ctx, 18))) throw new FailedPredicateException(this, "precpred(_ctx, 18)"); setState(604); match(LeftBracket); setState(605); bracedinitlist(); setState(606); match(RightBracket); } break; case 3: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(608); if (!(precpred(_ctx, 17))) throw new FailedPredicateException(this, "precpred(_ctx, 17)"); setState(609); match(LeftParen); setState(611); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (LeftBrace - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(610); expressionlist(); } } setState(613); match(RightParen); } break; case 4: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(614); if (!(precpred(_ctx, 12))) throw new FailedPredicateException(this, "precpred(_ctx, 12)"); setState(615); match(Dot); setState(617); _errHandler.sync(this); _la = _input.LA(1); if (_la==Template) { { setState(616); match(Template); } } setState(619); idexpression(); } break; case 5: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(620); if (!(precpred(_ctx, 11))) throw new FailedPredicateException(this, "precpred(_ctx, 11)"); setState(621); match(Arrow); setState(623); _errHandler.sync(this); _la = _input.LA(1); if (_la==Template) { { setState(622); match(Template); } } setState(625); idexpression(); } break; case 6: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(626); if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)"); setState(627); match(Dot); setState(628); pseudodestructorname(); } break; case 7: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(629); if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)"); setState(630); match(Arrow); setState(631); pseudodestructorname(); } break; case 8: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(632); if (!(precpred(_ctx, 8))) throw new FailedPredicateException(this, "precpred(_ctx, 8)"); setState(633); match(PlusPlus); } break; case 9: { _localctx = new PostfixexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_postfixexpression); setState(634); if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)"); setState(635); match(MinusMinus); } break; } } } setState(640); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,29,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ExpressionlistContext extends ParserRuleContext { public InitializerlistContext initializerlist() { return getRuleContext(InitializerlistContext.class,0); } public ExpressionlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_expressionlist; } } public final ExpressionlistContext expressionlist() throws RecognitionException { ExpressionlistContext _localctx = new ExpressionlistContext(_ctx, getState()); enterRule(_localctx, 32, RULE_expressionlist); try { enterOuterAlt(_localctx, 1); { setState(641); initializerlist(0); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PseudodestructornameContext extends ParserRuleContext { public List<TypenameContext> typename() { return getRuleContexts(TypenameContext.class); } public TypenameContext typename(int i) { return getRuleContext(TypenameContext.class,i); } public TerminalNode Doublecolon() { return getToken(CPP14Parser.Doublecolon, 0); } public TerminalNode Tilde() { return getToken(CPP14Parser.Tilde, 0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public DecltypespecifierContext decltypespecifier() { return getRuleContext(DecltypespecifierContext.class,0); } public PseudodestructornameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_pseudodestructorname; } } public final PseudodestructornameContext pseudodestructorname() throws RecognitionException { PseudodestructornameContext _localctx = new PseudodestructornameContext(_ctx, getState()); enterRule(_localctx, 34, RULE_pseudodestructorname); int _la; try { setState(665); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(644); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,30,_ctx) ) { case 1: { setState(643); nestednamespecifier(0); } break; } setState(646); typename(); setState(647); match(Doublecolon); setState(648); match(Tilde); setState(649); typename(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(651); nestednamespecifier(0); setState(652); match(Template); setState(653); simpletemplateid(); setState(654); match(Doublecolon); setState(655); match(Tilde); setState(656); typename(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(659); _errHandler.sync(this); _la = _input.LA(1); if (_la==Decltype || _la==Doublecolon || _la==Identifier) { { setState(658); nestednamespecifier(0); } } setState(661); match(Tilde); setState(662); typename(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(663); match(Tilde); setState(664); decltypespecifier(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UnaryexpressionContext extends ParserRuleContext { public PostfixexpressionContext postfixexpression() { return getRuleContext(PostfixexpressionContext.class,0); } public TerminalNode PlusPlus() { return getToken(CPP14Parser.PlusPlus, 0); } public CastexpressionContext castexpression() { return getRuleContext(CastexpressionContext.class,0); } public TerminalNode MinusMinus() { return getToken(CPP14Parser.MinusMinus, 0); } public UnaryoperatorContext unaryoperator() { return getRuleContext(UnaryoperatorContext.class,0); } public TerminalNode Sizeof() { return getToken(CPP14Parser.Sizeof, 0); } public UnaryexpressionContext unaryexpression() { return getRuleContext(UnaryexpressionContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Alignof() { return getToken(CPP14Parser.Alignof, 0); } public NoexceptexpressionContext noexceptexpression() { return getRuleContext(NoexceptexpressionContext.class,0); } public NewexpressionContext newexpression() { return getRuleContext(NewexpressionContext.class,0); } public DeleteexpressionContext deleteexpression() { return getRuleContext(DeleteexpressionContext.class,0); } public UnaryexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_unaryexpression; } } public final UnaryexpressionContext unaryexpression() throws RecognitionException { UnaryexpressionContext _localctx = new UnaryexpressionContext(_ctx, getState()); enterRule(_localctx, 36, RULE_unaryexpression); try { setState(695); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(667); postfixexpression(0); } break; case 2: enterOuterAlt(_localctx, 2); { setState(668); match(PlusPlus); setState(669); castexpression(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(670); match(MinusMinus); setState(671); castexpression(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(672); unaryoperator(); setState(673); castexpression(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(675); match(Sizeof); setState(676); unaryexpression(); } break; case 6: enterOuterAlt(_localctx, 6); { setState(677); match(Sizeof); setState(678); match(LeftParen); setState(679); typeid(); setState(680); match(RightParen); } break; case 7: enterOuterAlt(_localctx, 7); { setState(682); match(Sizeof); setState(683); match(Ellipsis); setState(684); match(LeftParen); setState(685); match(Identifier); setState(686); match(RightParen); } break; case 8: enterOuterAlt(_localctx, 8); { setState(687); match(Alignof); setState(688); match(LeftParen); setState(689); typeid(); setState(690); match(RightParen); } break; case 9: enterOuterAlt(_localctx, 9); { setState(692); noexceptexpression(); } break; case 10: enterOuterAlt(_localctx, 10); { setState(693); newexpression(); } break; case 11: enterOuterAlt(_localctx, 11); { setState(694); deleteexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UnaryoperatorContext extends ParserRuleContext { public TerminalNode Or() { return getToken(CPP14Parser.Or, 0); } public TerminalNode Star() { return getToken(CPP14Parser.Star, 0); } public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public TerminalNode Plus() { return getToken(CPP14Parser.Plus, 0); } public TerminalNode Not() { return getToken(CPP14Parser.Not, 0); } public TerminalNode Tilde() { return getToken(CPP14Parser.Tilde, 0); } public TerminalNode Minus() { return getToken(CPP14Parser.Minus, 0); } public UnaryoperatorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_unaryoperator; } } public final UnaryoperatorContext unaryoperator() throws RecognitionException { UnaryoperatorContext _localctx = new UnaryoperatorContext(_ctx, getState()); enterRule(_localctx, 38, RULE_unaryoperator); int _la; try { enterOuterAlt(_localctx, 1); { setState(697); _la = _input.LA(1); if ( !(((((_la - 83)) & ~0x3f) == 0 && ((1L << (_la - 83)) & ((1L << (Plus - 83)) | (1L << (Minus - 83)) | (1L << (Star - 83)) | (1L << (And - 83)) | (1L << (Or - 83)) | (1L << (Tilde - 83)) | (1L << (Not - 83)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NewexpressionContext extends ParserRuleContext { public TerminalNode New() { return getToken(CPP14Parser.New, 0); } public NewtypeidContext newtypeid() { return getRuleContext(NewtypeidContext.class,0); } public TerminalNode Doublecolon() { return getToken(CPP14Parser.Doublecolon, 0); } public NewplacementContext newplacement() { return getRuleContext(NewplacementContext.class,0); } public NewinitializerContext newinitializer() { return getRuleContext(NewinitializerContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public NewexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_newexpression; } } public final NewexpressionContext newexpression() throws RecognitionException { NewexpressionContext _localctx = new NewexpressionContext(_ctx, getState()); enterRule(_localctx, 40, RULE_newexpression); int _la; try { setState(723); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,40,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(700); _errHandler.sync(this); _la = _input.LA(1); if (_la==Doublecolon) { { setState(699); match(Doublecolon); } } setState(702); match(New); setState(704); _errHandler.sync(this); _la = _input.LA(1); if (_la==LeftParen) { { setState(703); newplacement(); } } setState(706); newtypeid(); setState(708); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,36,_ctx) ) { case 1: { setState(707); newinitializer(); } break; } } break; case 2: enterOuterAlt(_localctx, 2); { setState(711); _errHandler.sync(this); _la = _input.LA(1); if (_la==Doublecolon) { { setState(710); match(Doublecolon); } } setState(713); match(New); setState(715); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,38,_ctx) ) { case 1: { setState(714); newplacement(); } break; } setState(717); match(LeftParen); setState(718); typeid(); setState(719); match(RightParen); setState(721); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,39,_ctx) ) { case 1: { setState(720); newinitializer(); } break; } } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NewplacementContext extends ParserRuleContext { public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ExpressionlistContext expressionlist() { return getRuleContext(ExpressionlistContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public NewplacementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_newplacement; } } public final NewplacementContext newplacement() throws RecognitionException { NewplacementContext _localctx = new NewplacementContext(_ctx, getState()); enterRule(_localctx, 42, RULE_newplacement); try { enterOuterAlt(_localctx, 1); { setState(725); match(LeftParen); setState(726); expressionlist(); setState(727); match(RightParen); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NewtypeidContext extends ParserRuleContext { public TypespecifierseqContext typespecifierseq() { return getRuleContext(TypespecifierseqContext.class,0); } public NewdeclaratorContext newdeclarator() { return getRuleContext(NewdeclaratorContext.class,0); } public NewtypeidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_newtypeid; } } public final NewtypeidContext newtypeid() throws RecognitionException { NewtypeidContext _localctx = new NewtypeidContext(_ctx, getState()); enterRule(_localctx, 44, RULE_newtypeid); try { enterOuterAlt(_localctx, 1); { setState(729); typespecifierseq(); setState(731); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,41,_ctx) ) { case 1: { setState(730); newdeclarator(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NewdeclaratorContext extends ParserRuleContext { public PtroperatorContext ptroperator() { return getRuleContext(PtroperatorContext.class,0); } public NewdeclaratorContext newdeclarator() { return getRuleContext(NewdeclaratorContext.class,0); } public NoptrnewdeclaratorContext noptrnewdeclarator() { return getRuleContext(NoptrnewdeclaratorContext.class,0); } public NewdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_newdeclarator; } } public final NewdeclaratorContext newdeclarator() throws RecognitionException { NewdeclaratorContext _localctx = new NewdeclaratorContext(_ctx, getState()); enterRule(_localctx, 46, RULE_newdeclarator); try { setState(738); _errHandler.sync(this); switch (_input.LA(1)) { case Decltype: case Star: case And: case AndAnd: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 1); { setState(733); ptroperator(); setState(735); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,42,_ctx) ) { case 1: { setState(734); newdeclarator(); } break; } } break; case LeftBracket: enterOuterAlt(_localctx, 2); { setState(737); noptrnewdeclarator(0); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NoptrnewdeclaratorContext extends ParserRuleContext { public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public NoptrnewdeclaratorContext noptrnewdeclarator() { return getRuleContext(NoptrnewdeclaratorContext.class,0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public NoptrnewdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_noptrnewdeclarator; } } public final NoptrnewdeclaratorContext noptrnewdeclarator() throws RecognitionException { return noptrnewdeclarator(0); } private NoptrnewdeclaratorContext noptrnewdeclarator(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); NoptrnewdeclaratorContext _localctx = new NoptrnewdeclaratorContext(_ctx, _parentState); NoptrnewdeclaratorContext _prevctx = _localctx; int _startState = 48; enterRecursionRule(_localctx, 48, RULE_noptrnewdeclarator, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(741); match(LeftBracket); setState(742); expression(0); setState(743); match(RightBracket); setState(745); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,44,_ctx) ) { case 1: { setState(744); attributespecifierseq(0); } break; } } _ctx.stop = _input.LT(-1); setState(756); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,46,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new NoptrnewdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrnewdeclarator); setState(747); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(748); match(LeftBracket); setState(749); constantexpression(); setState(750); match(RightBracket); setState(752); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,45,_ctx) ) { case 1: { setState(751); attributespecifierseq(0); } break; } } } } setState(758); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,46,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class NewinitializerContext extends ParserRuleContext { public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public ExpressionlistContext expressionlist() { return getRuleContext(ExpressionlistContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public NewinitializerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_newinitializer; } } public final NewinitializerContext newinitializer() throws RecognitionException { NewinitializerContext _localctx = new NewinitializerContext(_ctx, getState()); enterRule(_localctx, 50, RULE_newinitializer); int _la; try { setState(765); _errHandler.sync(this); switch (_input.LA(1)) { case LeftParen: enterOuterAlt(_localctx, 1); { setState(759); match(LeftParen); setState(761); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (LeftBrace - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(760); expressionlist(); } } setState(763); match(RightParen); } break; case LeftBrace: enterOuterAlt(_localctx, 2); { setState(764); bracedinitlist(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeleteexpressionContext extends ParserRuleContext { public TerminalNode Delete() { return getToken(CPP14Parser.Delete, 0); } public CastexpressionContext castexpression() { return getRuleContext(CastexpressionContext.class,0); } public TerminalNode Doublecolon() { return getToken(CPP14Parser.Doublecolon, 0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public DeleteexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_deleteexpression; } } public final DeleteexpressionContext deleteexpression() throws RecognitionException { DeleteexpressionContext _localctx = new DeleteexpressionContext(_ctx, getState()); enterRule(_localctx, 52, RULE_deleteexpression); int _la; try { setState(779); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,51,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(768); _errHandler.sync(this); _la = _input.LA(1); if (_la==Doublecolon) { { setState(767); match(Doublecolon); } } setState(770); match(Delete); setState(771); castexpression(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(773); _errHandler.sync(this); _la = _input.LA(1); if (_la==Doublecolon) { { setState(772); match(Doublecolon); } } setState(775); match(Delete); setState(776); match(LeftBracket); setState(777); match(RightBracket); setState(778); castexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NoexceptexpressionContext extends ParserRuleContext { public TerminalNode Noexcept() { return getToken(CPP14Parser.Noexcept, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public NoexceptexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_noexceptexpression; } } public final NoexceptexpressionContext noexceptexpression() throws RecognitionException { NoexceptexpressionContext _localctx = new NoexceptexpressionContext(_ctx, getState()); enterRule(_localctx, 54, RULE_noexceptexpression); try { enterOuterAlt(_localctx, 1); { setState(781); match(Noexcept); setState(782); match(LeftParen); setState(783); expression(0); setState(784); match(RightParen); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CastexpressionContext extends ParserRuleContext { public UnaryexpressionContext unaryexpression() { return getRuleContext(UnaryexpressionContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public CastexpressionContext castexpression() { return getRuleContext(CastexpressionContext.class,0); } public CastexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_castexpression; } } public final CastexpressionContext castexpression() throws RecognitionException { CastexpressionContext _localctx = new CastexpressionContext(_ctx, getState()); enterRule(_localctx, 56, RULE_castexpression); try { setState(792); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,52,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(786); unaryexpression(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(787); match(LeftParen); setState(788); typeid(); setState(789); match(RightParen); setState(790); castexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PmexpressionContext extends ParserRuleContext { public CastexpressionContext castexpression() { return getRuleContext(CastexpressionContext.class,0); } public PmexpressionContext pmexpression() { return getRuleContext(PmexpressionContext.class,0); } public TerminalNode DotStar() { return getToken(CPP14Parser.DotStar, 0); } public TerminalNode ArrowStar() { return getToken(CPP14Parser.ArrowStar, 0); } public PmexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_pmexpression; } } public final PmexpressionContext pmexpression() throws RecognitionException { return pmexpression(0); } private PmexpressionContext pmexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); PmexpressionContext _localctx = new PmexpressionContext(_ctx, _parentState); PmexpressionContext _prevctx = _localctx; int _startState = 58; enterRecursionRule(_localctx, 58, RULE_pmexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(795); castexpression(); } _ctx.stop = _input.LT(-1); setState(805); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,54,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(803); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,53,_ctx) ) { case 1: { _localctx = new PmexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_pmexpression); setState(797); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(798); match(DotStar); setState(799); castexpression(); } break; case 2: { _localctx = new PmexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_pmexpression); setState(800); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(801); match(ArrowStar); setState(802); castexpression(); } break; } } } setState(807); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,54,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class MultiplicativeexpressionContext extends ParserRuleContext { public PmexpressionContext pmexpression() { return getRuleContext(PmexpressionContext.class,0); } public MultiplicativeexpressionContext multiplicativeexpression() { return getRuleContext(MultiplicativeexpressionContext.class,0); } public TerminalNode Star() { return getToken(CPP14Parser.Star, 0); } public TerminalNode Div() { return getToken(CPP14Parser.Div, 0); } public TerminalNode Mod() { return getToken(CPP14Parser.Mod, 0); } public MultiplicativeexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_multiplicativeexpression; } } public final MultiplicativeexpressionContext multiplicativeexpression() throws RecognitionException { return multiplicativeexpression(0); } private MultiplicativeexpressionContext multiplicativeexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); MultiplicativeexpressionContext _localctx = new MultiplicativeexpressionContext(_ctx, _parentState); MultiplicativeexpressionContext _prevctx = _localctx; int _startState = 60; enterRecursionRule(_localctx, 60, RULE_multiplicativeexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(809); pmexpression(0); } _ctx.stop = _input.LT(-1); setState(822); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,56,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(820); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,55,_ctx) ) { case 1: { _localctx = new MultiplicativeexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_multiplicativeexpression); setState(811); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(812); match(Star); setState(813); pmexpression(0); } break; case 2: { _localctx = new MultiplicativeexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_multiplicativeexpression); setState(814); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(815); match(Div); setState(816); pmexpression(0); } break; case 3: { _localctx = new MultiplicativeexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_multiplicativeexpression); setState(817); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(818); match(Mod); setState(819); pmexpression(0); } break; } } } setState(824); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,56,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class AdditiveexpressionContext extends ParserRuleContext { public MultiplicativeexpressionContext multiplicativeexpression() { return getRuleContext(MultiplicativeexpressionContext.class,0); } public AdditiveexpressionContext additiveexpression() { return getRuleContext(AdditiveexpressionContext.class,0); } public TerminalNode Plus() { return getToken(CPP14Parser.Plus, 0); } public TerminalNode Minus() { return getToken(CPP14Parser.Minus, 0); } public AdditiveexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_additiveexpression; } } public final AdditiveexpressionContext additiveexpression() throws RecognitionException { return additiveexpression(0); } private AdditiveexpressionContext additiveexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); AdditiveexpressionContext _localctx = new AdditiveexpressionContext(_ctx, _parentState); AdditiveexpressionContext _prevctx = _localctx; int _startState = 62; enterRecursionRule(_localctx, 62, RULE_additiveexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(826); multiplicativeexpression(0); } _ctx.stop = _input.LT(-1); setState(836); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,58,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(834); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,57,_ctx) ) { case 1: { _localctx = new AdditiveexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_additiveexpression); setState(828); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(829); match(Plus); setState(830); multiplicativeexpression(0); } break; case 2: { _localctx = new AdditiveexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_additiveexpression); setState(831); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(832); match(Minus); setState(833); multiplicativeexpression(0); } break; } } } setState(838); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,58,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ShiftexpressionContext extends ParserRuleContext { public AdditiveexpressionContext additiveexpression() { return getRuleContext(AdditiveexpressionContext.class,0); } public ShiftexpressionContext shiftexpression() { return getRuleContext(ShiftexpressionContext.class,0); } public TerminalNode LeftShift() { return getToken(CPP14Parser.LeftShift, 0); } public RightShiftContext rightShift() { return getRuleContext(RightShiftContext.class,0); } public ShiftexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_shiftexpression; } } public final ShiftexpressionContext shiftexpression() throws RecognitionException { return shiftexpression(0); } private ShiftexpressionContext shiftexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); ShiftexpressionContext _localctx = new ShiftexpressionContext(_ctx, _parentState); ShiftexpressionContext _prevctx = _localctx; int _startState = 64; enterRecursionRule(_localctx, 64, RULE_shiftexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(840); additiveexpression(0); } _ctx.stop = _input.LT(-1); setState(851); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,60,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(849); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,59,_ctx) ) { case 1: { _localctx = new ShiftexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_shiftexpression); setState(842); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(843); match(LeftShift); setState(844); additiveexpression(0); } break; case 2: { _localctx = new ShiftexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_shiftexpression); setState(845); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(846); rightShift(); setState(847); additiveexpression(0); } break; } } } setState(853); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,60,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class RelationalexpressionContext extends ParserRuleContext { public ShiftexpressionContext shiftexpression() { return getRuleContext(ShiftexpressionContext.class,0); } public RelationalexpressionContext relationalexpression() { return getRuleContext(RelationalexpressionContext.class,0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public TerminalNode LessEqual() { return getToken(CPP14Parser.LessEqual, 0); } public TerminalNode GreaterEqual() { return getToken(CPP14Parser.GreaterEqual, 0); } public RelationalexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_relationalexpression; } } public final RelationalexpressionContext relationalexpression() throws RecognitionException { return relationalexpression(0); } private RelationalexpressionContext relationalexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); RelationalexpressionContext _localctx = new RelationalexpressionContext(_ctx, _parentState); RelationalexpressionContext _prevctx = _localctx; int _startState = 66; enterRecursionRule(_localctx, 66, RULE_relationalexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(855); shiftexpression(0); } _ctx.stop = _input.LT(-1); setState(871); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,62,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(869); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,61,_ctx) ) { case 1: { _localctx = new RelationalexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_relationalexpression); setState(857); if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); setState(858); match(Less); setState(859); shiftexpression(0); } break; case 2: { _localctx = new RelationalexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_relationalexpression); setState(860); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(861); match(Greater); setState(862); shiftexpression(0); } break; case 3: { _localctx = new RelationalexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_relationalexpression); setState(863); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(864); match(LessEqual); setState(865); shiftexpression(0); } break; case 4: { _localctx = new RelationalexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_relationalexpression); setState(866); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(867); match(GreaterEqual); setState(868); shiftexpression(0); } break; } } } setState(873); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,62,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class EqualityexpressionContext extends ParserRuleContext { public RelationalexpressionContext relationalexpression() { return getRuleContext(RelationalexpressionContext.class,0); } public EqualityexpressionContext equalityexpression() { return getRuleContext(EqualityexpressionContext.class,0); } public TerminalNode Equal() { return getToken(CPP14Parser.Equal, 0); } public TerminalNode NotEqual() { return getToken(CPP14Parser.NotEqual, 0); } public EqualityexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_equalityexpression; } } public final EqualityexpressionContext equalityexpression() throws RecognitionException { return equalityexpression(0); } private EqualityexpressionContext equalityexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); EqualityexpressionContext _localctx = new EqualityexpressionContext(_ctx, _parentState); EqualityexpressionContext _prevctx = _localctx; int _startState = 68; enterRecursionRule(_localctx, 68, RULE_equalityexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(875); relationalexpression(0); } _ctx.stop = _input.LT(-1); setState(885); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,64,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(883); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,63,_ctx) ) { case 1: { _localctx = new EqualityexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_equalityexpression); setState(877); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(878); match(Equal); setState(879); relationalexpression(0); } break; case 2: { _localctx = new EqualityexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_equalityexpression); setState(880); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(881); match(NotEqual); setState(882); relationalexpression(0); } break; } } } setState(887); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,64,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class AndexpressionContext extends ParserRuleContext { public EqualityexpressionContext equalityexpression() { return getRuleContext(EqualityexpressionContext.class,0); } public AndexpressionContext andexpression() { return getRuleContext(AndexpressionContext.class,0); } public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public AndexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_andexpression; } } public final AndexpressionContext andexpression() throws RecognitionException { return andexpression(0); } private AndexpressionContext andexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); AndexpressionContext _localctx = new AndexpressionContext(_ctx, _parentState); AndexpressionContext _prevctx = _localctx; int _startState = 70; enterRecursionRule(_localctx, 70, RULE_andexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(889); equalityexpression(0); } _ctx.stop = _input.LT(-1); setState(896); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,65,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new AndexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_andexpression); setState(891); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(892); match(And); setState(893); equalityexpression(0); } } } setState(898); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,65,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ExclusiveorexpressionContext extends ParserRuleContext { public AndexpressionContext andexpression() { return getRuleContext(AndexpressionContext.class,0); } public ExclusiveorexpressionContext exclusiveorexpression() { return getRuleContext(ExclusiveorexpressionContext.class,0); } public TerminalNode Caret() { return getToken(CPP14Parser.Caret, 0); } public ExclusiveorexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_exclusiveorexpression; } } public final ExclusiveorexpressionContext exclusiveorexpression() throws RecognitionException { return exclusiveorexpression(0); } private ExclusiveorexpressionContext exclusiveorexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); ExclusiveorexpressionContext _localctx = new ExclusiveorexpressionContext(_ctx, _parentState); ExclusiveorexpressionContext _prevctx = _localctx; int _startState = 72; enterRecursionRule(_localctx, 72, RULE_exclusiveorexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(900); andexpression(0); } _ctx.stop = _input.LT(-1); setState(907); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,66,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new ExclusiveorexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_exclusiveorexpression); setState(902); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(903); match(Caret); setState(904); andexpression(0); } } } setState(909); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,66,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class InclusiveorexpressionContext extends ParserRuleContext { public ExclusiveorexpressionContext exclusiveorexpression() { return getRuleContext(ExclusiveorexpressionContext.class,0); } public InclusiveorexpressionContext inclusiveorexpression() { return getRuleContext(InclusiveorexpressionContext.class,0); } public TerminalNode Or() { return getToken(CPP14Parser.Or, 0); } public InclusiveorexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_inclusiveorexpression; } } public final InclusiveorexpressionContext inclusiveorexpression() throws RecognitionException { return inclusiveorexpression(0); } private InclusiveorexpressionContext inclusiveorexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); InclusiveorexpressionContext _localctx = new InclusiveorexpressionContext(_ctx, _parentState); InclusiveorexpressionContext _prevctx = _localctx; int _startState = 74; enterRecursionRule(_localctx, 74, RULE_inclusiveorexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(911); exclusiveorexpression(0); } _ctx.stop = _input.LT(-1); setState(918); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,67,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new InclusiveorexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_inclusiveorexpression); setState(913); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(914); match(Or); setState(915); exclusiveorexpression(0); } } } setState(920); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,67,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class LogicalandexpressionContext extends ParserRuleContext { public InclusiveorexpressionContext inclusiveorexpression() { return getRuleContext(InclusiveorexpressionContext.class,0); } public LogicalandexpressionContext logicalandexpression() { return getRuleContext(LogicalandexpressionContext.class,0); } public TerminalNode AndAnd() { return getToken(CPP14Parser.AndAnd, 0); } public LogicalandexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_logicalandexpression; } } public final LogicalandexpressionContext logicalandexpression() throws RecognitionException { return logicalandexpression(0); } private LogicalandexpressionContext logicalandexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); LogicalandexpressionContext _localctx = new LogicalandexpressionContext(_ctx, _parentState); LogicalandexpressionContext _prevctx = _localctx; int _startState = 76; enterRecursionRule(_localctx, 76, RULE_logicalandexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(922); inclusiveorexpression(0); } _ctx.stop = _input.LT(-1); setState(929); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,68,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new LogicalandexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_logicalandexpression); setState(924); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(925); match(AndAnd); setState(926); inclusiveorexpression(0); } } } setState(931); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,68,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class LogicalorexpressionContext extends ParserRuleContext { public LogicalandexpressionContext logicalandexpression() { return getRuleContext(LogicalandexpressionContext.class,0); } public LogicalorexpressionContext logicalorexpression() { return getRuleContext(LogicalorexpressionContext.class,0); } public TerminalNode OrOr() { return getToken(CPP14Parser.OrOr, 0); } public LogicalorexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_logicalorexpression; } } public final LogicalorexpressionContext logicalorexpression() throws RecognitionException { return logicalorexpression(0); } private LogicalorexpressionContext logicalorexpression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); LogicalorexpressionContext _localctx = new LogicalorexpressionContext(_ctx, _parentState); LogicalorexpressionContext _prevctx = _localctx; int _startState = 78; enterRecursionRule(_localctx, 78, RULE_logicalorexpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(933); logicalandexpression(0); } _ctx.stop = _input.LT(-1); setState(940); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,69,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new LogicalorexpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_logicalorexpression); setState(935); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(936); match(OrOr); setState(937); logicalandexpression(0); } } } setState(942); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,69,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ConditionalexpressionContext extends ParserRuleContext { public LogicalorexpressionContext logicalorexpression() { return getRuleContext(LogicalorexpressionContext.class,0); } public TerminalNode Question() { return getToken(CPP14Parser.Question, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public AssignmentexpressionContext assignmentexpression() { return getRuleContext(AssignmentexpressionContext.class,0); } public ConditionalexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_conditionalexpression; } } public final ConditionalexpressionContext conditionalexpression() throws RecognitionException { ConditionalexpressionContext _localctx = new ConditionalexpressionContext(_ctx, getState()); enterRule(_localctx, 80, RULE_conditionalexpression); try { setState(950); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,70,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(943); logicalorexpression(0); } break; case 2: enterOuterAlt(_localctx, 2); { setState(944); logicalorexpression(0); setState(945); match(Question); setState(946); expression(0); setState(947); match(Colon); setState(948); assignmentexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AssignmentexpressionContext extends ParserRuleContext { public ConditionalexpressionContext conditionalexpression() { return getRuleContext(ConditionalexpressionContext.class,0); } public LogicalorexpressionContext logicalorexpression() { return getRuleContext(LogicalorexpressionContext.class,0); } public AssignmentoperatorContext assignmentoperator() { return getRuleContext(AssignmentoperatorContext.class,0); } public InitializerclauseContext initializerclause() { return getRuleContext(InitializerclauseContext.class,0); } public ThrowexpressionContext throwexpression() { return getRuleContext(ThrowexpressionContext.class,0); } public AssignmentexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_assignmentexpression; } } public final AssignmentexpressionContext assignmentexpression() throws RecognitionException { AssignmentexpressionContext _localctx = new AssignmentexpressionContext(_ctx, getState()); enterRule(_localctx, 82, RULE_assignmentexpression); try { setState(958); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,71,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(952); conditionalexpression(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(953); logicalorexpression(0); setState(954); assignmentoperator(); setState(955); initializerclause(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(957); throwexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AssignmentoperatorContext extends ParserRuleContext { public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public TerminalNode StarAssign() { return getToken(CPP14Parser.StarAssign, 0); } public TerminalNode DivAssign() { return getToken(CPP14Parser.DivAssign, 0); } public TerminalNode ModAssign() { return getToken(CPP14Parser.ModAssign, 0); } public TerminalNode PlusAssign() { return getToken(CPP14Parser.PlusAssign, 0); } public TerminalNode MinusAssign() { return getToken(CPP14Parser.MinusAssign, 0); } public RightShiftAssignContext rightShiftAssign() { return getRuleContext(RightShiftAssignContext.class,0); } public TerminalNode LeftShiftAssign() { return getToken(CPP14Parser.LeftShiftAssign, 0); } public TerminalNode AndAssign() { return getToken(CPP14Parser.AndAssign, 0); } public TerminalNode XorAssign() { return getToken(CPP14Parser.XorAssign, 0); } public TerminalNode OrAssign() { return getToken(CPP14Parser.OrAssign, 0); } public AssignmentoperatorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_assignmentoperator; } } public final AssignmentoperatorContext assignmentoperator() throws RecognitionException { AssignmentoperatorContext _localctx = new AssignmentoperatorContext(_ctx, getState()); enterRule(_localctx, 84, RULE_assignmentoperator); try { setState(971); _errHandler.sync(this); switch (_input.LA(1)) { case Assign: enterOuterAlt(_localctx, 1); { setState(960); match(Assign); } break; case StarAssign: enterOuterAlt(_localctx, 2); { setState(961); match(StarAssign); } break; case DivAssign: enterOuterAlt(_localctx, 3); { setState(962); match(DivAssign); } break; case ModAssign: enterOuterAlt(_localctx, 4); { setState(963); match(ModAssign); } break; case PlusAssign: enterOuterAlt(_localctx, 5); { setState(964); match(PlusAssign); } break; case MinusAssign: enterOuterAlt(_localctx, 6); { setState(965); match(MinusAssign); } break; case Greater: enterOuterAlt(_localctx, 7); { setState(966); rightShiftAssign(); } break; case LeftShiftAssign: enterOuterAlt(_localctx, 8); { setState(967); match(LeftShiftAssign); } break; case AndAssign: enterOuterAlt(_localctx, 9); { setState(968); match(AndAssign); } break; case XorAssign: enterOuterAlt(_localctx, 10); { setState(969); match(XorAssign); } break; case OrAssign: enterOuterAlt(_localctx, 11); { setState(970); match(OrAssign); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExpressionContext extends ParserRuleContext { public AssignmentexpressionContext assignmentexpression() { return getRuleContext(AssignmentexpressionContext.class,0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public ExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_expression; } } public final ExpressionContext expression() throws RecognitionException { return expression(0); } private ExpressionContext expression(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); ExpressionContext _localctx = new ExpressionContext(_ctx, _parentState); ExpressionContext _prevctx = _localctx; int _startState = 86; enterRecursionRule(_localctx, 86, RULE_expression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(974); assignmentexpression(); } _ctx.stop = _input.LT(-1); setState(981); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,73,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new ExpressionContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_expression); setState(976); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(977); match(Comma); setState(978); assignmentexpression(); } } } setState(983); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,73,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ConstantexpressionContext extends ParserRuleContext { public ConditionalexpressionContext conditionalexpression() { return getRuleContext(ConditionalexpressionContext.class,0); } public ConstantexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_constantexpression; } } public final ConstantexpressionContext constantexpression() throws RecognitionException { ConstantexpressionContext _localctx = new ConstantexpressionContext(_ctx, getState()); enterRule(_localctx, 88, RULE_constantexpression); try { enterOuterAlt(_localctx, 1); { setState(984); conditionalexpression(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class StatementContext extends ParserRuleContext { public LabeledstatementContext labeledstatement() { return getRuleContext(LabeledstatementContext.class,0); } public ExpressionstatementContext expressionstatement() { return getRuleContext(ExpressionstatementContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public CompoundstatementContext compoundstatement() { return getRuleContext(CompoundstatementContext.class,0); } public SelectionstatementContext selectionstatement() { return getRuleContext(SelectionstatementContext.class,0); } public IterationstatementContext iterationstatement() { return getRuleContext(IterationstatementContext.class,0); } public JumpstatementContext jumpstatement() { return getRuleContext(JumpstatementContext.class,0); } public DeclarationstatementContext declarationstatement() { return getRuleContext(DeclarationstatementContext.class,0); } public TryblockContext tryblock() { return getRuleContext(TryblockContext.class,0); } public StatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_statement; } } public final StatementContext statement() throws RecognitionException { StatementContext _localctx = new StatementContext(_ctx, getState()); enterRule(_localctx, 90, RULE_statement); int _la; try { setState(1012); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,80,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(986); labeledstatement(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(988); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,74,_ctx) ) { case 1: { setState(987); attributespecifierseq(0); } break; } setState(990); expressionstatement(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(992); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(991); attributespecifierseq(0); } } setState(994); compoundstatement(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(996); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(995); attributespecifierseq(0); } } setState(998); selectionstatement(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(1000); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(999); attributespecifierseq(0); } } setState(1002); iterationstatement(); } break; case 6: enterOuterAlt(_localctx, 6); { setState(1004); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1003); attributespecifierseq(0); } } setState(1006); jumpstatement(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(1007); declarationstatement(); } break; case 8: enterOuterAlt(_localctx, 8); { setState(1009); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1008); attributespecifierseq(0); } } setState(1011); tryblock(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LabeledstatementContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public StatementContext statement() { return getRuleContext(StatementContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode Case() { return getToken(CPP14Parser.Case, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public TerminalNode Default() { return getToken(CPP14Parser.Default, 0); } public LabeledstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_labeledstatement; } } public final LabeledstatementContext labeledstatement() throws RecognitionException { LabeledstatementContext _localctx = new LabeledstatementContext(_ctx, getState()); enterRule(_localctx, 92, RULE_labeledstatement); int _la; try { setState(1034); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,84,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1015); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1014); attributespecifierseq(0); } } setState(1017); match(Identifier); setState(1018); match(Colon); setState(1019); statement(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1021); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1020); attributespecifierseq(0); } } setState(1023); match(Case); setState(1024); constantexpression(); setState(1025); match(Colon); setState(1026); statement(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1029); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1028); attributespecifierseq(0); } } setState(1031); match(Default); setState(1032); match(Colon); setState(1033); statement(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExpressionstatementContext extends ParserRuleContext { public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public ExpressionstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_expressionstatement; } } public final ExpressionstatementContext expressionstatement() throws RecognitionException { ExpressionstatementContext _localctx = new ExpressionstatementContext(_ctx, getState()); enterRule(_localctx, 94, RULE_expressionstatement); int _la; try { enterOuterAlt(_localctx, 1); { setState(1037); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1036); expression(0); } } setState(1039); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CompoundstatementContext extends ParserRuleContext { public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public StatementseqContext statementseq() { return getRuleContext(StatementseqContext.class,0); } public CompoundstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_compoundstatement; } } public final CompoundstatementContext compoundstatement() throws RecognitionException { CompoundstatementContext _localctx = new CompoundstatementContext(_ctx, getState()); enterRule(_localctx, 96, RULE_compoundstatement); int _la; try { enterOuterAlt(_localctx, 1); { setState(1041); match(LeftBrace); setState(1043); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Alignof) | (1L << Asm) | (1L << Auto) | (1L << Bool) | (1L << Break) | (1L << Case) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Const_cast) | (1L << Continue) | (1L << Decltype) | (1L << Default) | (1L << Delete) | (1L << Do) | (1L << Double) | (1L << Dynamic_cast) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << False) | (1L << Float) | (1L << For) | (1L << Friend) | (1L << Goto) | (1L << If) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Namespace) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Register) | (1L << Reinterpret_cast) | (1L << Return) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static) | (1L << Static_assert) | (1L << Static_cast) | (1L << Struct) | (1L << Switch) | (1L << This) | (1L << Thread_local) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Try - 64)) | (1L << (Typedef - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Union - 64)) | (1L << (Unsigned - 64)) | (1L << (Using - 64)) | (1L << (Virtual - 64)) | (1L << (Void - 64)) | (1L << (Volatile - 64)) | (1L << (Wchar - 64)) | (1L << (While - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (LeftBrace - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (AndAnd - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Semi - 64)) | (1L << (Ellipsis - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1042); statementseq(0); } } setState(1045); match(RightBrace); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class StatementseqContext extends ParserRuleContext { public StatementContext statement() { return getRuleContext(StatementContext.class,0); } public StatementseqContext statementseq() { return getRuleContext(StatementseqContext.class,0); } public StatementseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_statementseq; } } public final StatementseqContext statementseq() throws RecognitionException { return statementseq(0); } private StatementseqContext statementseq(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); StatementseqContext _localctx = new StatementseqContext(_ctx, _parentState); StatementseqContext _prevctx = _localctx; int _startState = 98; enterRecursionRule(_localctx, 98, RULE_statementseq, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1048); statement(); } _ctx.stop = _input.LT(-1); setState(1054); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,87,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new StatementseqContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_statementseq); setState(1050); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1051); statement(); } } } setState(1056); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,87,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class SelectionstatementContext extends ParserRuleContext { public TerminalNode If() { return getToken(CPP14Parser.If, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ConditionContext condition() { return getRuleContext(ConditionContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public List<StatementContext> statement() { return getRuleContexts(StatementContext.class); } public StatementContext statement(int i) { return getRuleContext(StatementContext.class,i); } public TerminalNode Else() { return getToken(CPP14Parser.Else, 0); } public TerminalNode Switch() { return getToken(CPP14Parser.Switch, 0); } public SelectionstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_selectionstatement; } } public final SelectionstatementContext selectionstatement() throws RecognitionException { SelectionstatementContext _localctx = new SelectionstatementContext(_ctx, getState()); enterRule(_localctx, 100, RULE_selectionstatement); try { setState(1077); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,88,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1057); match(If); setState(1058); match(LeftParen); setState(1059); condition(); setState(1060); match(RightParen); setState(1061); statement(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1063); match(If); setState(1064); match(LeftParen); setState(1065); condition(); setState(1066); match(RightParen); setState(1067); statement(); setState(1068); match(Else); setState(1069); statement(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1071); match(Switch); setState(1072); match(LeftParen); setState(1073); condition(); setState(1074); match(RightParen); setState(1075); statement(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ConditionContext extends ParserRuleContext { public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public InitializerclauseContext initializerclause() { return getRuleContext(InitializerclauseContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public ConditionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_condition; } } public final ConditionContext condition() throws RecognitionException { ConditionContext _localctx = new ConditionContext(_ctx, getState()); enterRule(_localctx, 102, RULE_condition); int _la; try { setState(1095); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,91,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1079); expression(0); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1081); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1080); attributespecifierseq(0); } } setState(1083); declspecifierseq(); setState(1084); declarator(); setState(1085); match(Assign); setState(1086); initializerclause(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1089); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1088); attributespecifierseq(0); } } setState(1091); declspecifierseq(); setState(1092); declarator(); setState(1093); bracedinitlist(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class IterationstatementContext extends ParserRuleContext { public TerminalNode While() { return getToken(CPP14Parser.While, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ConditionContext condition() { return getRuleContext(ConditionContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public StatementContext statement() { return getRuleContext(StatementContext.class,0); } public TerminalNode Do() { return getToken(CPP14Parser.Do, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public TerminalNode For() { return getToken(CPP14Parser.For, 0); } public ForinitstatementContext forinitstatement() { return getRuleContext(ForinitstatementContext.class,0); } public ForrangedeclarationContext forrangedeclaration() { return getRuleContext(ForrangedeclarationContext.class,0); } public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public ForrangeinitializerContext forrangeinitializer() { return getRuleContext(ForrangeinitializerContext.class,0); } public IterationstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_iterationstatement; } } public final IterationstatementContext iterationstatement() throws RecognitionException { IterationstatementContext _localctx = new IterationstatementContext(_ctx, getState()); enterRule(_localctx, 104, RULE_iterationstatement); int _la; try { setState(1132); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,94,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1097); match(While); setState(1098); match(LeftParen); setState(1099); condition(); setState(1100); match(RightParen); setState(1101); statement(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1103); match(Do); setState(1104); statement(); setState(1105); match(While); setState(1106); match(LeftParen); setState(1107); expression(0); setState(1108); match(RightParen); setState(1109); match(Semi); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1111); match(For); setState(1112); match(LeftParen); setState(1113); forinitstatement(); setState(1115); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << False) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Register) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static) | (1L << Static_cast) | (1L << Struct) | (1L << This) | (1L << Thread_local) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typedef - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Union - 64)) | (1L << (Unsigned - 64)) | (1L << (Virtual - 64)) | (1L << (Void - 64)) | (1L << (Volatile - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1114); condition(); } } setState(1117); match(Semi); setState(1119); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1118); expression(0); } } setState(1121); match(RightParen); setState(1122); statement(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1124); match(For); setState(1125); match(LeftParen); setState(1126); forrangedeclaration(); setState(1127); match(Colon); setState(1128); forrangeinitializer(); setState(1129); match(RightParen); setState(1130); statement(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ForinitstatementContext extends ParserRuleContext { public ExpressionstatementContext expressionstatement() { return getRuleContext(ExpressionstatementContext.class,0); } public SimpledeclarationContext simpledeclaration() { return getRuleContext(SimpledeclarationContext.class,0); } public ForinitstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_forinitstatement; } } public final ForinitstatementContext forinitstatement() throws RecognitionException { ForinitstatementContext _localctx = new ForinitstatementContext(_ctx, getState()); enterRule(_localctx, 106, RULE_forinitstatement); try { setState(1136); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,95,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1134); expressionstatement(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1135); simpledeclaration(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ForrangedeclarationContext extends ParserRuleContext { public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public ForrangedeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_forrangedeclaration; } } public final ForrangedeclarationContext forrangedeclaration() throws RecognitionException { ForrangedeclarationContext _localctx = new ForrangedeclarationContext(_ctx, getState()); enterRule(_localctx, 108, RULE_forrangedeclaration); int _la; try { enterOuterAlt(_localctx, 1); { setState(1139); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1138); attributespecifierseq(0); } } setState(1141); declspecifierseq(); setState(1142); declarator(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ForrangeinitializerContext extends ParserRuleContext { public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public ForrangeinitializerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_forrangeinitializer; } } public final ForrangeinitializerContext forrangeinitializer() throws RecognitionException { ForrangeinitializerContext _localctx = new ForrangeinitializerContext(_ctx, getState()); enterRule(_localctx, 110, RULE_forrangeinitializer); try { setState(1146); _errHandler.sync(this); switch (_input.LA(1)) { case Alignof: case Auto: case Bool: case Char: case Char16: case Char32: case Const_cast: case Decltype: case Delete: case Double: case Dynamic_cast: case False: case Float: case Int: case Long: case New: case Noexcept: case Nullptr: case Operator: case Reinterpret_cast: case Short: case Signed: case Sizeof: case Static_cast: case This: case Throw: case True: case Typeid: case Typename: case Unsigned: case Void: case Wchar: case LeftParen: case LeftBracket: case Plus: case Minus: case Star: case And: case Or: case Tilde: case Not: case PlusPlus: case MinusMinus: case Doublecolon: case Identifier: case Integerliteral: case Characterliteral: case Floatingliteral: case Stringliteral: case Userdefinedintegerliteral: case Userdefinedfloatingliteral: case Userdefinedstringliteral: case Userdefinedcharacterliteral: enterOuterAlt(_localctx, 1); { setState(1144); expression(0); } break; case LeftBrace: enterOuterAlt(_localctx, 2); { setState(1145); bracedinitlist(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class JumpstatementContext extends ParserRuleContext { public TerminalNode Break() { return getToken(CPP14Parser.Break, 0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public TerminalNode Continue() { return getToken(CPP14Parser.Continue, 0); } public TerminalNode Return() { return getToken(CPP14Parser.Return, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public TerminalNode Goto() { return getToken(CPP14Parser.Goto, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public JumpstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_jumpstatement; } } public final JumpstatementContext jumpstatement() throws RecognitionException { JumpstatementContext _localctx = new JumpstatementContext(_ctx, getState()); enterRule(_localctx, 112, RULE_jumpstatement); int _la; try { setState(1164); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,99,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1148); match(Break); setState(1149); match(Semi); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1150); match(Continue); setState(1151); match(Semi); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1152); match(Return); setState(1154); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1153); expression(0); } } setState(1156); match(Semi); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1157); match(Return); setState(1158); bracedinitlist(); setState(1159); match(Semi); } break; case 5: enterOuterAlt(_localctx, 5); { setState(1161); match(Goto); setState(1162); match(Identifier); setState(1163); match(Semi); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeclarationstatementContext extends ParserRuleContext { public BlockdeclarationContext blockdeclaration() { return getRuleContext(BlockdeclarationContext.class,0); } public DeclarationstatementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declarationstatement; } } public final DeclarationstatementContext declarationstatement() throws RecognitionException { DeclarationstatementContext _localctx = new DeclarationstatementContext(_ctx, getState()); enterRule(_localctx, 114, RULE_declarationstatement); try { enterOuterAlt(_localctx, 1); { setState(1166); blockdeclaration(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeclarationseqContext extends ParserRuleContext { public DeclarationContext declaration() { return getRuleContext(DeclarationContext.class,0); } public DeclarationseqContext declarationseq() { return getRuleContext(DeclarationseqContext.class,0); } public DeclarationseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declarationseq; } } public final DeclarationseqContext declarationseq() throws RecognitionException { return declarationseq(0); } private DeclarationseqContext declarationseq(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); DeclarationseqContext _localctx = new DeclarationseqContext(_ctx, _parentState); DeclarationseqContext _prevctx = _localctx; int _startState = 116; enterRecursionRule(_localctx, 116, RULE_declarationseq, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1169); declaration(); } _ctx.stop = _input.LT(-1); setState(1175); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,100,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new DeclarationseqContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_declarationseq); setState(1171); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1172); declaration(); } } } setState(1177); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,100,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class DeclarationContext extends ParserRuleContext { public BlockdeclarationContext blockdeclaration() { return getRuleContext(BlockdeclarationContext.class,0); } public FunctiondefinitionContext functiondefinition() { return getRuleContext(FunctiondefinitionContext.class,0); } public TemplatedeclarationContext templatedeclaration() { return getRuleContext(TemplatedeclarationContext.class,0); } public ExplicitinstantiationContext explicitinstantiation() { return getRuleContext(ExplicitinstantiationContext.class,0); } public ExplicitspecializationContext explicitspecialization() { return getRuleContext(ExplicitspecializationContext.class,0); } public LinkagespecificationContext linkagespecification() { return getRuleContext(LinkagespecificationContext.class,0); } public NamespacedefinitionContext namespacedefinition() { return getRuleContext(NamespacedefinitionContext.class,0); } public EmptydeclarationContext emptydeclaration() { return getRuleContext(EmptydeclarationContext.class,0); } public AttributedeclarationContext attributedeclaration() { return getRuleContext(AttributedeclarationContext.class,0); } public DeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declaration; } } public final DeclarationContext declaration() throws RecognitionException { DeclarationContext _localctx = new DeclarationContext(_ctx, getState()); enterRule(_localctx, 118, RULE_declaration); try { setState(1187); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,101,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1178); blockdeclaration(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1179); functiondefinition(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1180); templatedeclaration(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1181); explicitinstantiation(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(1182); explicitspecialization(); } break; case 6: enterOuterAlt(_localctx, 6); { setState(1183); linkagespecification(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(1184); namespacedefinition(); } break; case 8: enterOuterAlt(_localctx, 8); { setState(1185); emptydeclaration(); } break; case 9: enterOuterAlt(_localctx, 9); { setState(1186); attributedeclaration(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BlockdeclarationContext extends ParserRuleContext { public SimpledeclarationContext simpledeclaration() { return getRuleContext(SimpledeclarationContext.class,0); } public AsmdefinitionContext asmdefinition() { return getRuleContext(AsmdefinitionContext.class,0); } public NamespacealiasdefinitionContext namespacealiasdefinition() { return getRuleContext(NamespacealiasdefinitionContext.class,0); } public UsingdeclarationContext usingdeclaration() { return getRuleContext(UsingdeclarationContext.class,0); } public UsingdirectiveContext usingdirective() { return getRuleContext(UsingdirectiveContext.class,0); } public Static_assertdeclarationContext static_assertdeclaration() { return getRuleContext(Static_assertdeclarationContext.class,0); } public AliasdeclarationContext aliasdeclaration() { return getRuleContext(AliasdeclarationContext.class,0); } public OpaqueenumdeclarationContext opaqueenumdeclaration() { return getRuleContext(OpaqueenumdeclarationContext.class,0); } public BlockdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_blockdeclaration; } } public final BlockdeclarationContext blockdeclaration() throws RecognitionException { BlockdeclarationContext _localctx = new BlockdeclarationContext(_ctx, getState()); enterRule(_localctx, 120, RULE_blockdeclaration); try { setState(1197); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,102,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1189); simpledeclaration(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1190); asmdefinition(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1191); namespacealiasdefinition(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1192); usingdeclaration(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(1193); usingdirective(); } break; case 6: enterOuterAlt(_localctx, 6); { setState(1194); static_assertdeclaration(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(1195); aliasdeclaration(); } break; case 8: enterOuterAlt(_localctx, 8); { setState(1196); opaqueenumdeclaration(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AliasdeclarationContext extends ParserRuleContext { public TerminalNode Using() { return getToken(CPP14Parser.Using, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public AliasdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_aliasdeclaration; } } public final AliasdeclarationContext aliasdeclaration() throws RecognitionException { AliasdeclarationContext _localctx = new AliasdeclarationContext(_ctx, getState()); enterRule(_localctx, 122, RULE_aliasdeclaration); int _la; try { enterOuterAlt(_localctx, 1); { setState(1199); match(Using); setState(1200); match(Identifier); setState(1202); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1201); attributespecifierseq(0); } } setState(1204); match(Assign); setState(1205); typeid(); setState(1206); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class SimpledeclarationContext extends ParserRuleContext { public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public InitdeclaratorlistContext initdeclaratorlist() { return getRuleContext(InitdeclaratorlistContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public SimpledeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_simpledeclaration; } } public final SimpledeclarationContext simpledeclaration() throws RecognitionException { SimpledeclarationContext _localctx = new SimpledeclarationContext(_ctx, getState()); enterRule(_localctx, 124, RULE_simpledeclaration); int _la; try { setState(1222); _errHandler.sync(this); switch (_input.LA(1)) { case Auto: case Bool: case Char: case Char16: case Char32: case Class: case Const: case Constexpr: case Decltype: case Double: case Enum: case Explicit: case Extern: case Float: case Friend: case Inline: case Int: case Long: case Mutable: case Operator: case Register: case Short: case Signed: case Static: case Struct: case Thread_local: case Typedef: case Typename: case Union: case Unsigned: case Virtual: case Void: case Volatile: case Wchar: case LeftParen: case Star: case And: case Tilde: case AndAnd: case Doublecolon: case Semi: case Ellipsis: case Identifier: enterOuterAlt(_localctx, 1); { setState(1209); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,104,_ctx) ) { case 1: { setState(1208); declspecifierseq(); } break; } setState(1212); _errHandler.sync(this); _la = _input.LA(1); if (_la==Decltype || _la==Operator || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & ((1L << (LeftParen - 77)) | (1L << (Star - 77)) | (1L << (And - 77)) | (1L << (Tilde - 77)) | (1L << (AndAnd - 77)) | (1L << (Doublecolon - 77)) | (1L << (Ellipsis - 77)) | (1L << (Identifier - 77)))) != 0)) { { setState(1211); initdeclaratorlist(0); } } setState(1214); match(Semi); } break; case Alignas: case LeftBracket: enterOuterAlt(_localctx, 2); { setState(1215); attributespecifierseq(0); setState(1217); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,106,_ctx) ) { case 1: { setState(1216); declspecifierseq(); } break; } setState(1219); initdeclaratorlist(0); setState(1220); match(Semi); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class Static_assertdeclarationContext extends ParserRuleContext { public TerminalNode Static_assert() { return getToken(CPP14Parser.Static_assert, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public TerminalNode Stringliteral() { return getToken(CPP14Parser.Stringliteral, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public Static_assertdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_static_assertdeclaration; } } public final Static_assertdeclarationContext static_assertdeclaration() throws RecognitionException { Static_assertdeclarationContext _localctx = new Static_assertdeclarationContext(_ctx, getState()); enterRule(_localctx, 126, RULE_static_assertdeclaration); try { enterOuterAlt(_localctx, 1); { setState(1224); match(Static_assert); setState(1225); match(LeftParen); setState(1226); constantexpression(); setState(1227); match(Comma); setState(1228); match(Stringliteral); setState(1229); match(RightParen); setState(1230); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EmptydeclarationContext extends ParserRuleContext { public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public EmptydeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_emptydeclaration; } } public final EmptydeclarationContext emptydeclaration() throws RecognitionException { EmptydeclarationContext _localctx = new EmptydeclarationContext(_ctx, getState()); enterRule(_localctx, 128, RULE_emptydeclaration); try { enterOuterAlt(_localctx, 1); { setState(1232); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributedeclarationContext extends ParserRuleContext { public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public AttributedeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributedeclaration; } } public final AttributedeclarationContext attributedeclaration() throws RecognitionException { AttributedeclarationContext _localctx = new AttributedeclarationContext(_ctx, getState()); enterRule(_localctx, 130, RULE_attributedeclaration); try { enterOuterAlt(_localctx, 1); { setState(1234); attributespecifierseq(0); setState(1235); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeclspecifierContext extends ParserRuleContext { public StorageclassspecifierContext storageclassspecifier() { return getRuleContext(StorageclassspecifierContext.class,0); } public TypespecifierContext typespecifier() { return getRuleContext(TypespecifierContext.class,0); } public FunctionspecifierContext functionspecifier() { return getRuleContext(FunctionspecifierContext.class,0); } public TerminalNode Friend() { return getToken(CPP14Parser.Friend, 0); } public TerminalNode Typedef() { return getToken(CPP14Parser.Typedef, 0); } public TerminalNode Constexpr() { return getToken(CPP14Parser.Constexpr, 0); } public DeclspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declspecifier; } } public final DeclspecifierContext declspecifier() throws RecognitionException { DeclspecifierContext _localctx = new DeclspecifierContext(_ctx, getState()); enterRule(_localctx, 132, RULE_declspecifier); try { setState(1243); _errHandler.sync(this); switch (_input.LA(1)) { case Extern: case Mutable: case Register: case Static: case Thread_local: enterOuterAlt(_localctx, 1); { setState(1237); storageclassspecifier(); } break; case Auto: case Bool: case Char: case Char16: case Char32: case Class: case Const: case Decltype: case Double: case Enum: case Float: case Int: case Long: case Short: case Signed: case Struct: case Typename: case Union: case Unsigned: case Void: case Volatile: case Wchar: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 2); { setState(1238); typespecifier(); } break; case Explicit: case Inline: case Virtual: enterOuterAlt(_localctx, 3); { setState(1239); functionspecifier(); } break; case Friend: enterOuterAlt(_localctx, 4); { setState(1240); match(Friend); } break; case Typedef: enterOuterAlt(_localctx, 5); { setState(1241); match(Typedef); } break; case Constexpr: enterOuterAlt(_localctx, 6); { setState(1242); match(Constexpr); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeclspecifierseqContext extends ParserRuleContext { public DeclspecifierContext declspecifier() { return getRuleContext(DeclspecifierContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public DeclspecifierseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declspecifierseq; } } public final DeclspecifierseqContext declspecifierseq() throws RecognitionException { DeclspecifierseqContext _localctx = new DeclspecifierseqContext(_ctx, getState()); enterRule(_localctx, 134, RULE_declspecifierseq); try { setState(1252); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,110,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1245); declspecifier(); setState(1247); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,109,_ctx) ) { case 1: { setState(1246); attributespecifierseq(0); } break; } } break; case 2: enterOuterAlt(_localctx, 2); { setState(1249); declspecifier(); setState(1250); declspecifierseq(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class StorageclassspecifierContext extends ParserRuleContext { public TerminalNode Register() { return getToken(CPP14Parser.Register, 0); } public TerminalNode Static() { return getToken(CPP14Parser.Static, 0); } public TerminalNode Thread_local() { return getToken(CPP14Parser.Thread_local, 0); } public TerminalNode Extern() { return getToken(CPP14Parser.Extern, 0); } public TerminalNode Mutable() { return getToken(CPP14Parser.Mutable, 0); } public StorageclassspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_storageclassspecifier; } } public final StorageclassspecifierContext storageclassspecifier() throws RecognitionException { StorageclassspecifierContext _localctx = new StorageclassspecifierContext(_ctx, getState()); enterRule(_localctx, 136, RULE_storageclassspecifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(1254); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Extern) | (1L << Mutable) | (1L << Register) | (1L << Static) | (1L << Thread_local))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class FunctionspecifierContext extends ParserRuleContext { public TerminalNode Inline() { return getToken(CPP14Parser.Inline, 0); } public TerminalNode Virtual() { return getToken(CPP14Parser.Virtual, 0); } public TerminalNode Explicit() { return getToken(CPP14Parser.Explicit, 0); } public FunctionspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_functionspecifier; } } public final FunctionspecifierContext functionspecifier() throws RecognitionException { FunctionspecifierContext _localctx = new FunctionspecifierContext(_ctx, getState()); enterRule(_localctx, 138, RULE_functionspecifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(1256); _la = _input.LA(1); if ( !(((((_la - 26)) & ~0x3f) == 0 && ((1L << (_la - 26)) & ((1L << (Explicit - 26)) | (1L << (Inline - 26)) | (1L << (Virtual - 26)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypedefnameContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TypedefnameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typedefname; } } public final TypedefnameContext typedefname() throws RecognitionException { TypedefnameContext _localctx = new TypedefnameContext(_ctx, getState()); enterRule(_localctx, 140, RULE_typedefname); try { enterOuterAlt(_localctx, 1); { setState(1258); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypespecifierContext extends ParserRuleContext { public TrailingtypespecifierContext trailingtypespecifier() { return getRuleContext(TrailingtypespecifierContext.class,0); } public ClassspecifierContext classspecifier() { return getRuleContext(ClassspecifierContext.class,0); } public EnumspecifierContext enumspecifier() { return getRuleContext(EnumspecifierContext.class,0); } public TypespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typespecifier; } } public final TypespecifierContext typespecifier() throws RecognitionException { TypespecifierContext _localctx = new TypespecifierContext(_ctx, getState()); enterRule(_localctx, 142, RULE_typespecifier); try { setState(1263); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,111,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1260); trailingtypespecifier(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1261); classspecifier(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1262); enumspecifier(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TrailingtypespecifierContext extends ParserRuleContext { public SimpletypespecifierContext simpletypespecifier() { return getRuleContext(SimpletypespecifierContext.class,0); } public ElaboratedtypespecifierContext elaboratedtypespecifier() { return getRuleContext(ElaboratedtypespecifierContext.class,0); } public TypenamespecifierContext typenamespecifier() { return getRuleContext(TypenamespecifierContext.class,0); } public CvqualifierContext cvqualifier() { return getRuleContext(CvqualifierContext.class,0); } public TrailingtypespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_trailingtypespecifier; } } public final TrailingtypespecifierContext trailingtypespecifier() throws RecognitionException { TrailingtypespecifierContext _localctx = new TrailingtypespecifierContext(_ctx, getState()); enterRule(_localctx, 144, RULE_trailingtypespecifier); try { setState(1269); _errHandler.sync(this); switch (_input.LA(1)) { case Auto: case Bool: case Char: case Char16: case Char32: case Decltype: case Double: case Float: case Int: case Long: case Short: case Signed: case Unsigned: case Void: case Wchar: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 1); { setState(1265); simpletypespecifier(); } break; case Class: case Enum: case Struct: case Union: enterOuterAlt(_localctx, 2); { setState(1266); elaboratedtypespecifier(); } break; case Typename: enterOuterAlt(_localctx, 3); { setState(1267); typenamespecifier(); } break; case Const: case Volatile: enterOuterAlt(_localctx, 4); { setState(1268); cvqualifier(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypespecifierseqContext extends ParserRuleContext { public TypespecifierContext typespecifier() { return getRuleContext(TypespecifierContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TypespecifierseqContext typespecifierseq() { return getRuleContext(TypespecifierseqContext.class,0); } public TypespecifierseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typespecifierseq; } } public final TypespecifierseqContext typespecifierseq() throws RecognitionException { TypespecifierseqContext _localctx = new TypespecifierseqContext(_ctx, getState()); enterRule(_localctx, 146, RULE_typespecifierseq); try { setState(1278); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,114,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1271); typespecifier(); setState(1273); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,113,_ctx) ) { case 1: { setState(1272); attributespecifierseq(0); } break; } } break; case 2: enterOuterAlt(_localctx, 2); { setState(1275); typespecifier(); setState(1276); typespecifierseq(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TrailingtypespecifierseqContext extends ParserRuleContext { public TrailingtypespecifierContext trailingtypespecifier() { return getRuleContext(TrailingtypespecifierContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TrailingtypespecifierseqContext trailingtypespecifierseq() { return getRuleContext(TrailingtypespecifierseqContext.class,0); } public TrailingtypespecifierseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_trailingtypespecifierseq; } } public final TrailingtypespecifierseqContext trailingtypespecifierseq() throws RecognitionException { TrailingtypespecifierseqContext _localctx = new TrailingtypespecifierseqContext(_ctx, getState()); enterRule(_localctx, 148, RULE_trailingtypespecifierseq); try { setState(1287); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,116,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1280); trailingtypespecifier(); setState(1282); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,115,_ctx) ) { case 1: { setState(1281); attributespecifierseq(0); } break; } } break; case 2: enterOuterAlt(_localctx, 2); { setState(1284); trailingtypespecifier(); setState(1285); trailingtypespecifierseq(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class SimpletypespecifierContext extends ParserRuleContext { public TypenameContext typename() { return getRuleContext(TypenameContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public TerminalNode Char() { return getToken(CPP14Parser.Char, 0); } public TerminalNode Char16() { return getToken(CPP14Parser.Char16, 0); } public TerminalNode Char32() { return getToken(CPP14Parser.Char32, 0); } public TerminalNode Wchar() { return getToken(CPP14Parser.Wchar, 0); } public TerminalNode Bool() { return getToken(CPP14Parser.Bool, 0); } public TerminalNode Short() { return getToken(CPP14Parser.Short, 0); } public TerminalNode Int() { return getToken(CPP14Parser.Int, 0); } public TerminalNode Long() { return getToken(CPP14Parser.Long, 0); } public TerminalNode Signed() { return getToken(CPP14Parser.Signed, 0); } public TerminalNode Unsigned() { return getToken(CPP14Parser.Unsigned, 0); } public TerminalNode Float() { return getToken(CPP14Parser.Float, 0); } public TerminalNode Double() { return getToken(CPP14Parser.Double, 0); } public TerminalNode Void() { return getToken(CPP14Parser.Void, 0); } public TerminalNode Auto() { return getToken(CPP14Parser.Auto, 0); } public DecltypespecifierContext decltypespecifier() { return getRuleContext(DecltypespecifierContext.class,0); } public SimpletypespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_simpletypespecifier; } } public final SimpletypespecifierContext simpletypespecifier() throws RecognitionException { SimpletypespecifierContext _localctx = new SimpletypespecifierContext(_ctx, getState()); enterRule(_localctx, 150, RULE_simpletypespecifier); try { setState(1312); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,118,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1290); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,117,_ctx) ) { case 1: { setState(1289); nestednamespecifier(0); } break; } setState(1292); typename(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1293); nestednamespecifier(0); setState(1294); match(Template); setState(1295); simpletemplateid(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1297); match(Char); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1298); match(Char16); } break; case 5: enterOuterAlt(_localctx, 5); { setState(1299); match(Char32); } break; case 6: enterOuterAlt(_localctx, 6); { setState(1300); match(Wchar); } break; case 7: enterOuterAlt(_localctx, 7); { setState(1301); match(Bool); } break; case 8: enterOuterAlt(_localctx, 8); { setState(1302); match(Short); } break; case 9: enterOuterAlt(_localctx, 9); { setState(1303); match(Int); } break; case 10: enterOuterAlt(_localctx, 10); { setState(1304); match(Long); } break; case 11: enterOuterAlt(_localctx, 11); { setState(1305); match(Signed); } break; case 12: enterOuterAlt(_localctx, 12); { setState(1306); match(Unsigned); } break; case 13: enterOuterAlt(_localctx, 13); { setState(1307); match(Float); } break; case 14: enterOuterAlt(_localctx, 14); { setState(1308); match(Double); } break; case 15: enterOuterAlt(_localctx, 15); { setState(1309); match(Void); } break; case 16: enterOuterAlt(_localctx, 16); { setState(1310); match(Auto); } break; case 17: enterOuterAlt(_localctx, 17); { setState(1311); decltypespecifier(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypenameContext extends ParserRuleContext { public ClassnameContext classname() { return getRuleContext(ClassnameContext.class,0); } public EnumnameContext enumname() { return getRuleContext(EnumnameContext.class,0); } public TypedefnameContext typedefname() { return getRuleContext(TypedefnameContext.class,0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public TypenameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typename; } } public final TypenameContext typename() throws RecognitionException { TypenameContext _localctx = new TypenameContext(_ctx, getState()); enterRule(_localctx, 152, RULE_typename); try { setState(1318); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,119,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1314); classname(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1315); enumname(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1316); typedefname(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1317); simpletemplateid(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DecltypespecifierContext extends ParserRuleContext { public TerminalNode Decltype() { return getToken(CPP14Parser.Decltype, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ExpressionContext expression() { return getRuleContext(ExpressionContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode Auto() { return getToken(CPP14Parser.Auto, 0); } public DecltypespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_decltypespecifier; } } public final DecltypespecifierContext decltypespecifier() throws RecognitionException { DecltypespecifierContext _localctx = new DecltypespecifierContext(_ctx, getState()); enterRule(_localctx, 154, RULE_decltypespecifier); try { setState(1329); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,120,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1320); match(Decltype); setState(1321); match(LeftParen); setState(1322); expression(0); setState(1323); match(RightParen); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1325); match(Decltype); setState(1326); match(LeftParen); setState(1327); match(Auto); setState(1328); match(RightParen); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ElaboratedtypespecifierContext extends ParserRuleContext { public ClasskeyContext classkey() { return getRuleContext(ClasskeyContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public TerminalNode Enum() { return getToken(CPP14Parser.Enum, 0); } public ElaboratedtypespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_elaboratedtypespecifier; } } public final ElaboratedtypespecifierContext elaboratedtypespecifier() throws RecognitionException { ElaboratedtypespecifierContext _localctx = new ElaboratedtypespecifierContext(_ctx, getState()); enterRule(_localctx, 156, RULE_elaboratedtypespecifier); int _la; try { setState(1355); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,125,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1331); classkey(); setState(1333); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1332); attributespecifierseq(0); } } setState(1336); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,122,_ctx) ) { case 1: { setState(1335); nestednamespecifier(0); } break; } setState(1338); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1340); classkey(); setState(1341); simpletemplateid(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1343); classkey(); setState(1344); nestednamespecifier(0); setState(1346); _errHandler.sync(this); _la = _input.LA(1); if (_la==Template) { { setState(1345); match(Template); } } setState(1348); simpletemplateid(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1350); match(Enum); setState(1352); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,124,_ctx) ) { case 1: { setState(1351); nestednamespecifier(0); } break; } setState(1354); match(Identifier); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumnameContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public EnumnameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumname; } } public final EnumnameContext enumname() throws RecognitionException { EnumnameContext _localctx = new EnumnameContext(_ctx, getState()); enterRule(_localctx, 158, RULE_enumname); try { enterOuterAlt(_localctx, 1); { setState(1357); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumspecifierContext extends ParserRuleContext { public EnumheadContext enumhead() { return getRuleContext(EnumheadContext.class,0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public EnumeratorlistContext enumeratorlist() { return getRuleContext(EnumeratorlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public EnumspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumspecifier; } } public final EnumspecifierContext enumspecifier() throws RecognitionException { EnumspecifierContext _localctx = new EnumspecifierContext(_ctx, getState()); enterRule(_localctx, 160, RULE_enumspecifier); int _la; try { setState(1372); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,127,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1359); enumhead(); setState(1360); match(LeftBrace); setState(1362); _errHandler.sync(this); _la = _input.LA(1); if (_la==Identifier) { { setState(1361); enumeratorlist(0); } } setState(1364); match(RightBrace); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1366); enumhead(); setState(1367); match(LeftBrace); setState(1368); enumeratorlist(0); setState(1369); match(Comma); setState(1370); match(RightBrace); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumheadContext extends ParserRuleContext { public EnumkeyContext enumkey() { return getRuleContext(EnumkeyContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public EnumbaseContext enumbase() { return getRuleContext(EnumbaseContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public EnumheadContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumhead; } } public final EnumheadContext enumhead() throws RecognitionException { EnumheadContext _localctx = new EnumheadContext(_ctx, getState()); enterRule(_localctx, 162, RULE_enumhead); int _la; try { setState(1393); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,133,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1374); enumkey(); setState(1376); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1375); attributespecifierseq(0); } } setState(1379); _errHandler.sync(this); _la = _input.LA(1); if (_la==Identifier) { { setState(1378); match(Identifier); } } setState(1382); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(1381); enumbase(); } } } break; case 2: enterOuterAlt(_localctx, 2); { setState(1384); enumkey(); setState(1386); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1385); attributespecifierseq(0); } } setState(1388); nestednamespecifier(0); setState(1389); match(Identifier); setState(1391); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(1390); enumbase(); } } } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OpaqueenumdeclarationContext extends ParserRuleContext { public EnumkeyContext enumkey() { return getRuleContext(EnumkeyContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public EnumbaseContext enumbase() { return getRuleContext(EnumbaseContext.class,0); } public OpaqueenumdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_opaqueenumdeclaration; } } public final OpaqueenumdeclarationContext opaqueenumdeclaration() throws RecognitionException { OpaqueenumdeclarationContext _localctx = new OpaqueenumdeclarationContext(_ctx, getState()); enterRule(_localctx, 164, RULE_opaqueenumdeclaration); int _la; try { enterOuterAlt(_localctx, 1); { setState(1395); enumkey(); setState(1397); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1396); attributespecifierseq(0); } } setState(1399); match(Identifier); setState(1401); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(1400); enumbase(); } } setState(1403); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumkeyContext extends ParserRuleContext { public TerminalNode Enum() { return getToken(CPP14Parser.Enum, 0); } public TerminalNode Class() { return getToken(CPP14Parser.Class, 0); } public TerminalNode Struct() { return getToken(CPP14Parser.Struct, 0); } public EnumkeyContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumkey; } } public final EnumkeyContext enumkey() throws RecognitionException { EnumkeyContext _localctx = new EnumkeyContext(_ctx, getState()); enterRule(_localctx, 166, RULE_enumkey); try { setState(1410); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,136,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1405); match(Enum); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1406); match(Enum); setState(1407); match(Class); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1408); match(Enum); setState(1409); match(Struct); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumbaseContext extends ParserRuleContext { public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public TypespecifierseqContext typespecifierseq() { return getRuleContext(TypespecifierseqContext.class,0); } public EnumbaseContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumbase; } } public final EnumbaseContext enumbase() throws RecognitionException { EnumbaseContext _localctx = new EnumbaseContext(_ctx, getState()); enterRule(_localctx, 168, RULE_enumbase); try { enterOuterAlt(_localctx, 1); { setState(1412); match(Colon); setState(1413); typespecifierseq(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumeratorlistContext extends ParserRuleContext { public EnumeratordefinitionContext enumeratordefinition() { return getRuleContext(EnumeratordefinitionContext.class,0); } public EnumeratorlistContext enumeratorlist() { return getRuleContext(EnumeratorlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public EnumeratorlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumeratorlist; } } public final EnumeratorlistContext enumeratorlist() throws RecognitionException { return enumeratorlist(0); } private EnumeratorlistContext enumeratorlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); EnumeratorlistContext _localctx = new EnumeratorlistContext(_ctx, _parentState); EnumeratorlistContext _prevctx = _localctx; int _startState = 170; enterRecursionRule(_localctx, 170, RULE_enumeratorlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1416); enumeratordefinition(); } _ctx.stop = _input.LT(-1); setState(1423); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,137,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new EnumeratorlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_enumeratorlist); setState(1418); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1419); match(Comma); setState(1420); enumeratordefinition(); } } } setState(1425); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,137,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class EnumeratordefinitionContext extends ParserRuleContext { public EnumeratorContext enumerator() { return getRuleContext(EnumeratorContext.class,0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public EnumeratordefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumeratordefinition; } } public final EnumeratordefinitionContext enumeratordefinition() throws RecognitionException { EnumeratordefinitionContext _localctx = new EnumeratordefinitionContext(_ctx, getState()); enterRule(_localctx, 172, RULE_enumeratordefinition); try { setState(1431); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,138,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1426); enumerator(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1427); enumerator(); setState(1428); match(Assign); setState(1429); constantexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class EnumeratorContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public EnumeratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_enumerator; } } public final EnumeratorContext enumerator() throws RecognitionException { EnumeratorContext _localctx = new EnumeratorContext(_ctx, getState()); enterRule(_localctx, 174, RULE_enumerator); try { enterOuterAlt(_localctx, 1); { setState(1433); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NamespacenameContext extends ParserRuleContext { public OriginalnamespacenameContext originalnamespacename() { return getRuleContext(OriginalnamespacenameContext.class,0); } public NamespacealiasContext namespacealias() { return getRuleContext(NamespacealiasContext.class,0); } public NamespacenameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_namespacename; } } public final NamespacenameContext namespacename() throws RecognitionException { NamespacenameContext _localctx = new NamespacenameContext(_ctx, getState()); enterRule(_localctx, 176, RULE_namespacename); try { setState(1437); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,139,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1435); originalnamespacename(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1436); namespacealias(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OriginalnamespacenameContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public OriginalnamespacenameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_originalnamespacename; } } public final OriginalnamespacenameContext originalnamespacename() throws RecognitionException { OriginalnamespacenameContext _localctx = new OriginalnamespacenameContext(_ctx, getState()); enterRule(_localctx, 178, RULE_originalnamespacename); try { enterOuterAlt(_localctx, 1); { setState(1439); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NamespacedefinitionContext extends ParserRuleContext { public NamednamespacedefinitionContext namednamespacedefinition() { return getRuleContext(NamednamespacedefinitionContext.class,0); } public UnnamednamespacedefinitionContext unnamednamespacedefinition() { return getRuleContext(UnnamednamespacedefinitionContext.class,0); } public NamespacedefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_namespacedefinition; } } public final NamespacedefinitionContext namespacedefinition() throws RecognitionException { NamespacedefinitionContext _localctx = new NamespacedefinitionContext(_ctx, getState()); enterRule(_localctx, 180, RULE_namespacedefinition); try { setState(1443); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,140,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1441); namednamespacedefinition(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1442); unnamednamespacedefinition(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NamednamespacedefinitionContext extends ParserRuleContext { public OriginalnamespacedefinitionContext originalnamespacedefinition() { return getRuleContext(OriginalnamespacedefinitionContext.class,0); } public ExtensionnamespacedefinitionContext extensionnamespacedefinition() { return getRuleContext(ExtensionnamespacedefinitionContext.class,0); } public NamednamespacedefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_namednamespacedefinition; } } public final NamednamespacedefinitionContext namednamespacedefinition() throws RecognitionException { NamednamespacedefinitionContext _localctx = new NamednamespacedefinitionContext(_ctx, getState()); enterRule(_localctx, 182, RULE_namednamespacedefinition); try { setState(1447); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,141,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1445); originalnamespacedefinition(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1446); extensionnamespacedefinition(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OriginalnamespacedefinitionContext extends ParserRuleContext { public TerminalNode Namespace() { return getToken(CPP14Parser.Namespace, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public NamespacebodyContext namespacebody() { return getRuleContext(NamespacebodyContext.class,0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public TerminalNode Inline() { return getToken(CPP14Parser.Inline, 0); } public OriginalnamespacedefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_originalnamespacedefinition; } } public final OriginalnamespacedefinitionContext originalnamespacedefinition() throws RecognitionException { OriginalnamespacedefinitionContext _localctx = new OriginalnamespacedefinitionContext(_ctx, getState()); enterRule(_localctx, 184, RULE_originalnamespacedefinition); int _la; try { enterOuterAlt(_localctx, 1); { setState(1450); _errHandler.sync(this); _la = _input.LA(1); if (_la==Inline) { { setState(1449); match(Inline); } } setState(1452); match(Namespace); setState(1453); match(Identifier); setState(1454); match(LeftBrace); setState(1455); namespacebody(); setState(1456); match(RightBrace); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExtensionnamespacedefinitionContext extends ParserRuleContext { public TerminalNode Namespace() { return getToken(CPP14Parser.Namespace, 0); } public OriginalnamespacenameContext originalnamespacename() { return getRuleContext(OriginalnamespacenameContext.class,0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public NamespacebodyContext namespacebody() { return getRuleContext(NamespacebodyContext.class,0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public TerminalNode Inline() { return getToken(CPP14Parser.Inline, 0); } public ExtensionnamespacedefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_extensionnamespacedefinition; } } public final ExtensionnamespacedefinitionContext extensionnamespacedefinition() throws RecognitionException { ExtensionnamespacedefinitionContext _localctx = new ExtensionnamespacedefinitionContext(_ctx, getState()); enterRule(_localctx, 186, RULE_extensionnamespacedefinition); int _la; try { enterOuterAlt(_localctx, 1); { setState(1459); _errHandler.sync(this); _la = _input.LA(1); if (_la==Inline) { { setState(1458); match(Inline); } } setState(1461); match(Namespace); setState(1462); originalnamespacename(); setState(1463); match(LeftBrace); setState(1464); namespacebody(); setState(1465); match(RightBrace); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UnnamednamespacedefinitionContext extends ParserRuleContext { public TerminalNode Namespace() { return getToken(CPP14Parser.Namespace, 0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public NamespacebodyContext namespacebody() { return getRuleContext(NamespacebodyContext.class,0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public TerminalNode Inline() { return getToken(CPP14Parser.Inline, 0); } public UnnamednamespacedefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_unnamednamespacedefinition; } } public final UnnamednamespacedefinitionContext unnamednamespacedefinition() throws RecognitionException { UnnamednamespacedefinitionContext _localctx = new UnnamednamespacedefinitionContext(_ctx, getState()); enterRule(_localctx, 188, RULE_unnamednamespacedefinition); int _la; try { enterOuterAlt(_localctx, 1); { setState(1468); _errHandler.sync(this); _la = _input.LA(1); if (_la==Inline) { { setState(1467); match(Inline); } } setState(1470); match(Namespace); setState(1471); match(LeftBrace); setState(1472); namespacebody(); setState(1473); match(RightBrace); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NamespacebodyContext extends ParserRuleContext { public DeclarationseqContext declarationseq() { return getRuleContext(DeclarationseqContext.class,0); } public NamespacebodyContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_namespacebody; } } public final NamespacebodyContext namespacebody() throws RecognitionException { NamespacebodyContext _localctx = new NamespacebodyContext(_ctx, getState()); enterRule(_localctx, 190, RULE_namespacebody); int _la; try { enterOuterAlt(_localctx, 1); { setState(1476); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Asm) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Namespace) | (1L << Operator) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Static_assert) | (1L << Struct) | (1L << Template) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Using - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftParen - 66)) | (1L << (LeftBracket - 66)) | (1L << (Star - 66)) | (1L << (And - 66)) | (1L << (Tilde - 66)) | (1L << (AndAnd - 66)) | (1L << (Doublecolon - 66)) | (1L << (Semi - 66)) | (1L << (Ellipsis - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(1475); declarationseq(0); } } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NamespacealiasContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public NamespacealiasContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_namespacealias; } } public final NamespacealiasContext namespacealias() throws RecognitionException { NamespacealiasContext _localctx = new NamespacealiasContext(_ctx, getState()); enterRule(_localctx, 192, RULE_namespacealias); try { enterOuterAlt(_localctx, 1); { setState(1478); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NamespacealiasdefinitionContext extends ParserRuleContext { public TerminalNode Namespace() { return getToken(CPP14Parser.Namespace, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public QualifiednamespacespecifierContext qualifiednamespacespecifier() { return getRuleContext(QualifiednamespacespecifierContext.class,0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public NamespacealiasdefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_namespacealiasdefinition; } } public final NamespacealiasdefinitionContext namespacealiasdefinition() throws RecognitionException { NamespacealiasdefinitionContext _localctx = new NamespacealiasdefinitionContext(_ctx, getState()); enterRule(_localctx, 194, RULE_namespacealiasdefinition); try { enterOuterAlt(_localctx, 1); { setState(1480); match(Namespace); setState(1481); match(Identifier); setState(1482); match(Assign); setState(1483); qualifiednamespacespecifier(); setState(1484); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class QualifiednamespacespecifierContext extends ParserRuleContext { public NamespacenameContext namespacename() { return getRuleContext(NamespacenameContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public QualifiednamespacespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_qualifiednamespacespecifier; } } public final QualifiednamespacespecifierContext qualifiednamespacespecifier() throws RecognitionException { QualifiednamespacespecifierContext _localctx = new QualifiednamespacespecifierContext(_ctx, getState()); enterRule(_localctx, 196, RULE_qualifiednamespacespecifier); try { enterOuterAlt(_localctx, 1); { setState(1487); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,146,_ctx) ) { case 1: { setState(1486); nestednamespecifier(0); } break; } setState(1489); namespacename(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UsingdeclarationContext extends ParserRuleContext { public TerminalNode Using() { return getToken(CPP14Parser.Using, 0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public UnqualifiedidContext unqualifiedid() { return getRuleContext(UnqualifiedidContext.class,0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public TerminalNode Typename() { return getToken(CPP14Parser.Typename, 0); } public TerminalNode Doublecolon() { return getToken(CPP14Parser.Doublecolon, 0); } public UsingdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_usingdeclaration; } } public final UsingdeclarationContext usingdeclaration() throws RecognitionException { UsingdeclarationContext _localctx = new UsingdeclarationContext(_ctx, getState()); enterRule(_localctx, 198, RULE_usingdeclaration); int _la; try { setState(1504); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,148,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1491); match(Using); setState(1493); _errHandler.sync(this); _la = _input.LA(1); if (_la==Typename) { { setState(1492); match(Typename); } } setState(1495); nestednamespecifier(0); setState(1496); unqualifiedid(); setState(1497); match(Semi); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1499); match(Using); setState(1500); match(Doublecolon); setState(1501); unqualifiedid(); setState(1502); match(Semi); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UsingdirectiveContext extends ParserRuleContext { public TerminalNode Using() { return getToken(CPP14Parser.Using, 0); } public TerminalNode Namespace() { return getToken(CPP14Parser.Namespace, 0); } public NamespacenameContext namespacename() { return getRuleContext(NamespacenameContext.class,0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public UsingdirectiveContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_usingdirective; } } public final UsingdirectiveContext usingdirective() throws RecognitionException { UsingdirectiveContext _localctx = new UsingdirectiveContext(_ctx, getState()); enterRule(_localctx, 200, RULE_usingdirective); int _la; try { enterOuterAlt(_localctx, 1); { setState(1507); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1506); attributespecifierseq(0); } } setState(1509); match(Using); setState(1510); match(Namespace); setState(1512); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,150,_ctx) ) { case 1: { setState(1511); nestednamespecifier(0); } break; } setState(1514); namespacename(); setState(1515); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AsmdefinitionContext extends ParserRuleContext { public TerminalNode Asm() { return getToken(CPP14Parser.Asm, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TerminalNode Stringliteral() { return getToken(CPP14Parser.Stringliteral, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public AsmdefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_asmdefinition; } } public final AsmdefinitionContext asmdefinition() throws RecognitionException { AsmdefinitionContext _localctx = new AsmdefinitionContext(_ctx, getState()); enterRule(_localctx, 202, RULE_asmdefinition); try { enterOuterAlt(_localctx, 1); { setState(1517); match(Asm); setState(1518); match(LeftParen); setState(1519); match(Stringliteral); setState(1520); match(RightParen); setState(1521); match(Semi); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LinkagespecificationContext extends ParserRuleContext { public TerminalNode Extern() { return getToken(CPP14Parser.Extern, 0); } public TerminalNode Stringliteral() { return getToken(CPP14Parser.Stringliteral, 0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public DeclarationseqContext declarationseq() { return getRuleContext(DeclarationseqContext.class,0); } public DeclarationContext declaration() { return getRuleContext(DeclarationContext.class,0); } public LinkagespecificationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_linkagespecification; } } public final LinkagespecificationContext linkagespecification() throws RecognitionException { LinkagespecificationContext _localctx = new LinkagespecificationContext(_ctx, getState()); enterRule(_localctx, 204, RULE_linkagespecification); int _la; try { setState(1533); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,152,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1523); match(Extern); setState(1524); match(Stringliteral); setState(1525); match(LeftBrace); setState(1527); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Asm) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Namespace) | (1L << Operator) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Static_assert) | (1L << Struct) | (1L << Template) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Using - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftParen - 66)) | (1L << (LeftBracket - 66)) | (1L << (Star - 66)) | (1L << (And - 66)) | (1L << (Tilde - 66)) | (1L << (AndAnd - 66)) | (1L << (Doublecolon - 66)) | (1L << (Semi - 66)) | (1L << (Ellipsis - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(1526); declarationseq(0); } } setState(1529); match(RightBrace); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1530); match(Extern); setState(1531); match(Stringliteral); setState(1532); declaration(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributespecifierseqContext extends ParserRuleContext { public AttributespecifierContext attributespecifier() { return getRuleContext(AttributespecifierContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public AttributespecifierseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributespecifierseq; } } public final AttributespecifierseqContext attributespecifierseq() throws RecognitionException { return attributespecifierseq(0); } private AttributespecifierseqContext attributespecifierseq(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); AttributespecifierseqContext _localctx = new AttributespecifierseqContext(_ctx, _parentState); AttributespecifierseqContext _prevctx = _localctx; int _startState = 206; enterRecursionRule(_localctx, 206, RULE_attributespecifierseq, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1536); attributespecifier(); } _ctx.stop = _input.LT(-1); setState(1542); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,153,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new AttributespecifierseqContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_attributespecifierseq); setState(1538); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1539); attributespecifier(); } } } setState(1544); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,153,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class AttributespecifierContext extends ParserRuleContext { public List<TerminalNode> LeftBracket() { return getTokens(CPP14Parser.LeftBracket); } public TerminalNode LeftBracket(int i) { return getToken(CPP14Parser.LeftBracket, i); } public AttributelistContext attributelist() { return getRuleContext(AttributelistContext.class,0); } public List<TerminalNode> RightBracket() { return getTokens(CPP14Parser.RightBracket); } public TerminalNode RightBracket(int i) { return getToken(CPP14Parser.RightBracket, i); } public AlignmentspecifierContext alignmentspecifier() { return getRuleContext(AlignmentspecifierContext.class,0); } public AttributespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributespecifier; } } public final AttributespecifierContext attributespecifier() throws RecognitionException { AttributespecifierContext _localctx = new AttributespecifierContext(_ctx, getState()); enterRule(_localctx, 208, RULE_attributespecifier); try { setState(1552); _errHandler.sync(this); switch (_input.LA(1)) { case LeftBracket: enterOuterAlt(_localctx, 1); { setState(1545); match(LeftBracket); setState(1546); match(LeftBracket); setState(1547); attributelist(0); setState(1548); match(RightBracket); setState(1549); match(RightBracket); } break; case Alignas: enterOuterAlt(_localctx, 2); { setState(1551); alignmentspecifier(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AlignmentspecifierContext extends ParserRuleContext { public TerminalNode Alignas() { return getToken(CPP14Parser.Alignas, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public AlignmentspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_alignmentspecifier; } } public final AlignmentspecifierContext alignmentspecifier() throws RecognitionException { AlignmentspecifierContext _localctx = new AlignmentspecifierContext(_ctx, getState()); enterRule(_localctx, 210, RULE_alignmentspecifier); int _la; try { setState(1570); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,157,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1554); match(Alignas); setState(1555); match(LeftParen); setState(1556); typeid(); setState(1558); _errHandler.sync(this); _la = _input.LA(1); if (_la==Ellipsis) { { setState(1557); match(Ellipsis); } } setState(1560); match(RightParen); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1562); match(Alignas); setState(1563); match(LeftParen); setState(1564); constantexpression(); setState(1566); _errHandler.sync(this); _la = _input.LA(1); if (_la==Ellipsis) { { setState(1565); match(Ellipsis); } } setState(1568); match(RightParen); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributelistContext extends ParserRuleContext { public AttributeContext attribute() { return getRuleContext(AttributeContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public AttributelistContext attributelist() { return getRuleContext(AttributelistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public AttributelistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributelist; } } public final AttributelistContext attributelist() throws RecognitionException { return attributelist(0); } private AttributelistContext attributelist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); AttributelistContext _localctx = new AttributelistContext(_ctx, _parentState); AttributelistContext _prevctx = _localctx; int _startState = 212; enterRecursionRule(_localctx, 212, RULE_attributelist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { setState(1579); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,159,_ctx) ) { case 1: { setState(1574); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,158,_ctx) ) { case 1: { setState(1573); attribute(); } break; } } break; case 2: { setState(1576); attribute(); setState(1577); match(Ellipsis); } break; } _ctx.stop = _input.LT(-1); setState(1593); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,162,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(1591); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,161,_ctx) ) { case 1: { _localctx = new AttributelistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_attributelist); setState(1581); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(1582); match(Comma); setState(1584); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,160,_ctx) ) { case 1: { setState(1583); attribute(); } break; } } break; case 2: { _localctx = new AttributelistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_attributelist); setState(1586); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1587); match(Comma); setState(1588); attribute(); setState(1589); match(Ellipsis); } break; } } } setState(1595); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,162,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class AttributeContext extends ParserRuleContext { public AttributetokenContext attributetoken() { return getRuleContext(AttributetokenContext.class,0); } public AttributeargumentclauseContext attributeargumentclause() { return getRuleContext(AttributeargumentclauseContext.class,0); } public AttributeContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attribute; } } public final AttributeContext attribute() throws RecognitionException { AttributeContext _localctx = new AttributeContext(_ctx, getState()); enterRule(_localctx, 214, RULE_attribute); try { enterOuterAlt(_localctx, 1); { setState(1596); attributetoken(); setState(1598); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,163,_ctx) ) { case 1: { setState(1597); attributeargumentclause(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributetokenContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public AttributescopedtokenContext attributescopedtoken() { return getRuleContext(AttributescopedtokenContext.class,0); } public AttributetokenContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributetoken; } } public final AttributetokenContext attributetoken() throws RecognitionException { AttributetokenContext _localctx = new AttributetokenContext(_ctx, getState()); enterRule(_localctx, 216, RULE_attributetoken); try { setState(1602); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,164,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1600); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1601); attributescopedtoken(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributescopedtokenContext extends ParserRuleContext { public AttributenamespaceContext attributenamespace() { return getRuleContext(AttributenamespaceContext.class,0); } public TerminalNode Doublecolon() { return getToken(CPP14Parser.Doublecolon, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public AttributescopedtokenContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributescopedtoken; } } public final AttributescopedtokenContext attributescopedtoken() throws RecognitionException { AttributescopedtokenContext _localctx = new AttributescopedtokenContext(_ctx, getState()); enterRule(_localctx, 218, RULE_attributescopedtoken); try { enterOuterAlt(_localctx, 1); { setState(1604); attributenamespace(); setState(1605); match(Doublecolon); setState(1606); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributenamespaceContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public AttributenamespaceContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributenamespace; } } public final AttributenamespaceContext attributenamespace() throws RecognitionException { AttributenamespaceContext _localctx = new AttributenamespaceContext(_ctx, getState()); enterRule(_localctx, 220, RULE_attributenamespace); try { enterOuterAlt(_localctx, 1); { setState(1608); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AttributeargumentclauseContext extends ParserRuleContext { public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public BalancedtokenseqContext balancedtokenseq() { return getRuleContext(BalancedtokenseqContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public AttributeargumentclauseContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_attributeargumentclause; } } public final AttributeargumentclauseContext attributeargumentclause() throws RecognitionException { AttributeargumentclauseContext _localctx = new AttributeargumentclauseContext(_ctx, getState()); enterRule(_localctx, 222, RULE_attributeargumentclause); try { enterOuterAlt(_localctx, 1); { setState(1610); match(LeftParen); setState(1611); balancedtokenseq(0); setState(1612); match(RightParen); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BalancedtokenseqContext extends ParserRuleContext { public BalancedtokenContext balancedtoken() { return getRuleContext(BalancedtokenContext.class,0); } public BalancedtokenseqContext balancedtokenseq() { return getRuleContext(BalancedtokenseqContext.class,0); } public BalancedtokenseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_balancedtokenseq; } } public final BalancedtokenseqContext balancedtokenseq() throws RecognitionException { return balancedtokenseq(0); } private BalancedtokenseqContext balancedtokenseq(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); BalancedtokenseqContext _localctx = new BalancedtokenseqContext(_ctx, _parentState); BalancedtokenseqContext _prevctx = _localctx; int _startState = 224; enterRecursionRule(_localctx, 224, RULE_balancedtokenseq, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1616); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,165,_ctx) ) { case 1: { setState(1615); balancedtoken(); } break; } } _ctx.stop = _input.LT(-1); setState(1622); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,166,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new BalancedtokenseqContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_balancedtokenseq); setState(1618); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1619); balancedtoken(); } } } setState(1624); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,166,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class BalancedtokenContext extends ParserRuleContext { public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public BalancedtokenseqContext balancedtokenseq() { return getRuleContext(BalancedtokenseqContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public BalancedtokenContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_balancedtoken; } } public final BalancedtokenContext balancedtoken() throws RecognitionException { BalancedtokenContext _localctx = new BalancedtokenContext(_ctx, getState()); enterRule(_localctx, 226, RULE_balancedtoken); try { setState(1637); _errHandler.sync(this); switch (_input.LA(1)) { case LeftParen: enterOuterAlt(_localctx, 1); { setState(1625); match(LeftParen); setState(1626); balancedtokenseq(0); setState(1627); match(RightParen); } break; case LeftBracket: enterOuterAlt(_localctx, 2); { setState(1629); match(LeftBracket); setState(1630); balancedtokenseq(0); setState(1631); match(RightBracket); } break; case LeftBrace: enterOuterAlt(_localctx, 3); { setState(1633); match(LeftBrace); setState(1634); balancedtokenseq(0); setState(1635); match(RightBrace); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class InitdeclaratorlistContext extends ParserRuleContext { public InitdeclaratorContext initdeclarator() { return getRuleContext(InitdeclaratorContext.class,0); } public InitdeclaratorlistContext initdeclaratorlist() { return getRuleContext(InitdeclaratorlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public InitdeclaratorlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_initdeclaratorlist; } } public final InitdeclaratorlistContext initdeclaratorlist() throws RecognitionException { return initdeclaratorlist(0); } private InitdeclaratorlistContext initdeclaratorlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); InitdeclaratorlistContext _localctx = new InitdeclaratorlistContext(_ctx, _parentState); InitdeclaratorlistContext _prevctx = _localctx; int _startState = 228; enterRecursionRule(_localctx, 228, RULE_initdeclaratorlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1640); initdeclarator(); } _ctx.stop = _input.LT(-1); setState(1647); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,168,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new InitdeclaratorlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_initdeclaratorlist); setState(1642); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1643); match(Comma); setState(1644); initdeclarator(); } } } setState(1649); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,168,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class InitdeclaratorContext extends ParserRuleContext { public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public InitializerContext initializer() { return getRuleContext(InitializerContext.class,0); } public InitdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_initdeclarator; } } public final InitdeclaratorContext initdeclarator() throws RecognitionException { InitdeclaratorContext _localctx = new InitdeclaratorContext(_ctx, getState()); enterRule(_localctx, 230, RULE_initdeclarator); try { enterOuterAlt(_localctx, 1); { setState(1650); declarator(); setState(1652); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,169,_ctx) ) { case 1: { setState(1651); initializer(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeclaratorContext extends ParserRuleContext { public PtrdeclaratorContext ptrdeclarator() { return getRuleContext(PtrdeclaratorContext.class,0); } public NoptrdeclaratorContext noptrdeclarator() { return getRuleContext(NoptrdeclaratorContext.class,0); } public ParametersandqualifiersContext parametersandqualifiers() { return getRuleContext(ParametersandqualifiersContext.class,0); } public TrailingreturntypeContext trailingreturntype() { return getRuleContext(TrailingreturntypeContext.class,0); } public DeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declarator; } } public final DeclaratorContext declarator() throws RecognitionException { DeclaratorContext _localctx = new DeclaratorContext(_ctx, getState()); enterRule(_localctx, 232, RULE_declarator); try { setState(1659); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,170,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1654); ptrdeclarator(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1655); noptrdeclarator(0); setState(1656); parametersandqualifiers(); setState(1657); trailingreturntype(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PtrdeclaratorContext extends ParserRuleContext { public NoptrdeclaratorContext noptrdeclarator() { return getRuleContext(NoptrdeclaratorContext.class,0); } public PtroperatorContext ptroperator() { return getRuleContext(PtroperatorContext.class,0); } public PtrdeclaratorContext ptrdeclarator() { return getRuleContext(PtrdeclaratorContext.class,0); } public PtrdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_ptrdeclarator; } } public final PtrdeclaratorContext ptrdeclarator() throws RecognitionException { PtrdeclaratorContext _localctx = new PtrdeclaratorContext(_ctx, getState()); enterRule(_localctx, 234, RULE_ptrdeclarator); try { setState(1665); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,171,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1661); noptrdeclarator(0); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1662); ptroperator(); setState(1663); ptrdeclarator(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NoptrdeclaratorContext extends ParserRuleContext { public DeclaratoridContext declaratorid() { return getRuleContext(DeclaratoridContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public PtrdeclaratorContext ptrdeclarator() { return getRuleContext(PtrdeclaratorContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public NoptrdeclaratorContext noptrdeclarator() { return getRuleContext(NoptrdeclaratorContext.class,0); } public ParametersandqualifiersContext parametersandqualifiers() { return getRuleContext(ParametersandqualifiersContext.class,0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public NoptrdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_noptrdeclarator; } } public final NoptrdeclaratorContext noptrdeclarator() throws RecognitionException { return noptrdeclarator(0); } private NoptrdeclaratorContext noptrdeclarator(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); NoptrdeclaratorContext _localctx = new NoptrdeclaratorContext(_ctx, _parentState); NoptrdeclaratorContext _prevctx = _localctx; int _startState = 236; enterRecursionRule(_localctx, 236, RULE_noptrdeclarator, _p); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(1676); _errHandler.sync(this); switch (_input.LA(1)) { case Decltype: case Operator: case Tilde: case Doublecolon: case Ellipsis: case Identifier: { setState(1668); declaratorid(); setState(1670); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,172,_ctx) ) { case 1: { setState(1669); attributespecifierseq(0); } break; } } break; case LeftParen: { setState(1672); match(LeftParen); setState(1673); ptrdeclarator(); setState(1674); match(RightParen); } break; default: throw new NoViableAltException(this); } _ctx.stop = _input.LT(-1); setState(1691); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,177,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(1689); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,176,_ctx) ) { case 1: { _localctx = new NoptrdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrdeclarator); setState(1678); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(1679); parametersandqualifiers(); } break; case 2: { _localctx = new NoptrdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrdeclarator); setState(1680); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(1681); match(LeftBracket); setState(1683); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1682); constantexpression(); } } setState(1685); match(RightBracket); setState(1687); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,175,_ctx) ) { case 1: { setState(1686); attributespecifierseq(0); } break; } } break; } } } setState(1693); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,177,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ParametersandqualifiersContext extends ParserRuleContext { public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ParameterdeclarationclauseContext parameterdeclarationclause() { return getRuleContext(ParameterdeclarationclauseContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public CvqualifierseqContext cvqualifierseq() { return getRuleContext(CvqualifierseqContext.class,0); } public RefqualifierContext refqualifier() { return getRuleContext(RefqualifierContext.class,0); } public ExceptionspecificationContext exceptionspecification() { return getRuleContext(ExceptionspecificationContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public ParametersandqualifiersContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_parametersandqualifiers; } } public final ParametersandqualifiersContext parametersandqualifiers() throws RecognitionException { ParametersandqualifiersContext _localctx = new ParametersandqualifiersContext(_ctx, getState()); enterRule(_localctx, 238, RULE_parametersandqualifiers); try { enterOuterAlt(_localctx, 1); { setState(1694); match(LeftParen); setState(1695); parameterdeclarationclause(); setState(1696); match(RightParen); setState(1698); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,178,_ctx) ) { case 1: { setState(1697); cvqualifierseq(); } break; } setState(1701); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,179,_ctx) ) { case 1: { setState(1700); refqualifier(); } break; } setState(1704); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,180,_ctx) ) { case 1: { setState(1703); exceptionspecification(); } break; } setState(1707); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,181,_ctx) ) { case 1: { setState(1706); attributespecifierseq(0); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TrailingreturntypeContext extends ParserRuleContext { public TerminalNode Arrow() { return getToken(CPP14Parser.Arrow, 0); } public TrailingtypespecifierseqContext trailingtypespecifierseq() { return getRuleContext(TrailingtypespecifierseqContext.class,0); } public AbstractdeclaratorContext abstractdeclarator() { return getRuleContext(AbstractdeclaratorContext.class,0); } public TrailingreturntypeContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_trailingreturntype; } } public final TrailingreturntypeContext trailingreturntype() throws RecognitionException { TrailingreturntypeContext _localctx = new TrailingreturntypeContext(_ctx, getState()); enterRule(_localctx, 240, RULE_trailingreturntype); try { enterOuterAlt(_localctx, 1); { setState(1709); match(Arrow); setState(1710); trailingtypespecifierseq(); setState(1712); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,182,_ctx) ) { case 1: { setState(1711); abstractdeclarator(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PtroperatorContext extends ParserRuleContext { public TerminalNode Star() { return getToken(CPP14Parser.Star, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public CvqualifierseqContext cvqualifierseq() { return getRuleContext(CvqualifierseqContext.class,0); } public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public TerminalNode AndAnd() { return getToken(CPP14Parser.AndAnd, 0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public PtroperatorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_ptroperator; } } public final PtroperatorContext ptroperator() throws RecognitionException { PtroperatorContext _localctx = new PtroperatorContext(_ctx, getState()); enterRule(_localctx, 242, RULE_ptroperator); try { setState(1737); _errHandler.sync(this); switch (_input.LA(1)) { case Star: enterOuterAlt(_localctx, 1); { setState(1714); match(Star); setState(1716); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,183,_ctx) ) { case 1: { setState(1715); attributespecifierseq(0); } break; } setState(1719); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,184,_ctx) ) { case 1: { setState(1718); cvqualifierseq(); } break; } } break; case And: enterOuterAlt(_localctx, 2); { setState(1721); match(And); setState(1723); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,185,_ctx) ) { case 1: { setState(1722); attributespecifierseq(0); } break; } } break; case AndAnd: enterOuterAlt(_localctx, 3); { setState(1725); match(AndAnd); setState(1727); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,186,_ctx) ) { case 1: { setState(1726); attributespecifierseq(0); } break; } } break; case Decltype: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 4); { setState(1729); nestednamespecifier(0); setState(1730); match(Star); setState(1732); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,187,_ctx) ) { case 1: { setState(1731); attributespecifierseq(0); } break; } setState(1735); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,188,_ctx) ) { case 1: { setState(1734); cvqualifierseq(); } break; } } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CvqualifierseqContext extends ParserRuleContext { public CvqualifierContext cvqualifier() { return getRuleContext(CvqualifierContext.class,0); } public CvqualifierseqContext cvqualifierseq() { return getRuleContext(CvqualifierseqContext.class,0); } public CvqualifierseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_cvqualifierseq; } } public final CvqualifierseqContext cvqualifierseq() throws RecognitionException { CvqualifierseqContext _localctx = new CvqualifierseqContext(_ctx, getState()); enterRule(_localctx, 244, RULE_cvqualifierseq); try { enterOuterAlt(_localctx, 1); { setState(1739); cvqualifier(); setState(1741); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,190,_ctx) ) { case 1: { setState(1740); cvqualifierseq(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CvqualifierContext extends ParserRuleContext { public TerminalNode Const() { return getToken(CPP14Parser.Const, 0); } public TerminalNode Volatile() { return getToken(CPP14Parser.Volatile, 0); } public CvqualifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_cvqualifier; } } public final CvqualifierContext cvqualifier() throws RecognitionException { CvqualifierContext _localctx = new CvqualifierContext(_ctx, getState()); enterRule(_localctx, 246, RULE_cvqualifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(1743); _la = _input.LA(1); if ( !(_la==Const || _la==Volatile) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class RefqualifierContext extends ParserRuleContext { public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public TerminalNode AndAnd() { return getToken(CPP14Parser.AndAnd, 0); } public RefqualifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_refqualifier; } } public final RefqualifierContext refqualifier() throws RecognitionException { RefqualifierContext _localctx = new RefqualifierContext(_ctx, getState()); enterRule(_localctx, 248, RULE_refqualifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(1745); _la = _input.LA(1); if ( !(_la==And || _la==AndAnd) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DeclaratoridContext extends ParserRuleContext { public IdexpressionContext idexpression() { return getRuleContext(IdexpressionContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public DeclaratoridContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_declaratorid; } } public final DeclaratoridContext declaratorid() throws RecognitionException { DeclaratoridContext _localctx = new DeclaratoridContext(_ctx, getState()); enterRule(_localctx, 250, RULE_declaratorid); int _la; try { enterOuterAlt(_localctx, 1); { setState(1748); _errHandler.sync(this); _la = _input.LA(1); if (_la==Ellipsis) { { setState(1747); match(Ellipsis); } } setState(1750); idexpression(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypeidContext extends ParserRuleContext { public TypespecifierseqContext typespecifierseq() { return getRuleContext(TypespecifierseqContext.class,0); } public AbstractdeclaratorContext abstractdeclarator() { return getRuleContext(AbstractdeclaratorContext.class,0); } public TypeidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typeid; } } public final TypeidContext typeid() throws RecognitionException { TypeidContext _localctx = new TypeidContext(_ctx, getState()); enterRule(_localctx, 252, RULE_typeid); try { enterOuterAlt(_localctx, 1); { setState(1752); typespecifierseq(); setState(1754); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,192,_ctx) ) { case 1: { setState(1753); abstractdeclarator(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AbstractdeclaratorContext extends ParserRuleContext { public PtrabstractdeclaratorContext ptrabstractdeclarator() { return getRuleContext(PtrabstractdeclaratorContext.class,0); } public ParametersandqualifiersContext parametersandqualifiers() { return getRuleContext(ParametersandqualifiersContext.class,0); } public TrailingreturntypeContext trailingreturntype() { return getRuleContext(TrailingreturntypeContext.class,0); } public NoptrabstractdeclaratorContext noptrabstractdeclarator() { return getRuleContext(NoptrabstractdeclaratorContext.class,0); } public AbstractpackdeclaratorContext abstractpackdeclarator() { return getRuleContext(AbstractpackdeclaratorContext.class,0); } public AbstractdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_abstractdeclarator; } } public final AbstractdeclaratorContext abstractdeclarator() throws RecognitionException { AbstractdeclaratorContext _localctx = new AbstractdeclaratorContext(_ctx, getState()); enterRule(_localctx, 254, RULE_abstractdeclarator); try { setState(1764); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,194,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1756); ptrabstractdeclarator(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1758); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,193,_ctx) ) { case 1: { setState(1757); noptrabstractdeclarator(0); } break; } setState(1760); parametersandqualifiers(); setState(1761); trailingreturntype(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1763); abstractpackdeclarator(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PtrabstractdeclaratorContext extends ParserRuleContext { public NoptrabstractdeclaratorContext noptrabstractdeclarator() { return getRuleContext(NoptrabstractdeclaratorContext.class,0); } public PtroperatorContext ptroperator() { return getRuleContext(PtroperatorContext.class,0); } public PtrabstractdeclaratorContext ptrabstractdeclarator() { return getRuleContext(PtrabstractdeclaratorContext.class,0); } public PtrabstractdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_ptrabstractdeclarator; } } public final PtrabstractdeclaratorContext ptrabstractdeclarator() throws RecognitionException { PtrabstractdeclaratorContext _localctx = new PtrabstractdeclaratorContext(_ctx, getState()); enterRule(_localctx, 256, RULE_ptrabstractdeclarator); try { setState(1771); _errHandler.sync(this); switch (_input.LA(1)) { case LeftParen: case LeftBracket: enterOuterAlt(_localctx, 1); { setState(1766); noptrabstractdeclarator(0); } break; case Decltype: case Star: case And: case AndAnd: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 2); { setState(1767); ptroperator(); setState(1769); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,195,_ctx) ) { case 1: { setState(1768); ptrabstractdeclarator(); } break; } } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NoptrabstractdeclaratorContext extends ParserRuleContext { public ParametersandqualifiersContext parametersandqualifiers() { return getRuleContext(ParametersandqualifiersContext.class,0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public PtrabstractdeclaratorContext ptrabstractdeclarator() { return getRuleContext(PtrabstractdeclaratorContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public NoptrabstractdeclaratorContext noptrabstractdeclarator() { return getRuleContext(NoptrabstractdeclaratorContext.class,0); } public NoptrabstractdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_noptrabstractdeclarator; } } public final NoptrabstractdeclaratorContext noptrabstractdeclarator() throws RecognitionException { return noptrabstractdeclarator(0); } private NoptrabstractdeclaratorContext noptrabstractdeclarator(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); NoptrabstractdeclaratorContext _localctx = new NoptrabstractdeclaratorContext(_ctx, _parentState); NoptrabstractdeclaratorContext _prevctx = _localctx; int _startState = 258; enterRecursionRule(_localctx, 258, RULE_noptrabstractdeclarator, _p); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(1787); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,199,_ctx) ) { case 1: { setState(1774); parametersandqualifiers(); } break; case 2: { setState(1775); match(LeftBracket); setState(1777); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1776); constantexpression(); } } setState(1779); match(RightBracket); setState(1781); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,198,_ctx) ) { case 1: { setState(1780); attributespecifierseq(0); } break; } } break; case 3: { setState(1783); match(LeftParen); setState(1784); ptrabstractdeclarator(); setState(1785); match(RightParen); } break; } _ctx.stop = _input.LT(-1); setState(1802); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,203,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(1800); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,202,_ctx) ) { case 1: { _localctx = new NoptrabstractdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrabstractdeclarator); setState(1789); if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); setState(1790); parametersandqualifiers(); } break; case 2: { _localctx = new NoptrabstractdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrabstractdeclarator); setState(1791); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(1792); match(LeftBracket); setState(1794); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1793); constantexpression(); } } setState(1796); match(RightBracket); setState(1798); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,201,_ctx) ) { case 1: { setState(1797); attributespecifierseq(0); } break; } } break; } } } setState(1804); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,203,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class AbstractpackdeclaratorContext extends ParserRuleContext { public NoptrabstractpackdeclaratorContext noptrabstractpackdeclarator() { return getRuleContext(NoptrabstractpackdeclaratorContext.class,0); } public PtroperatorContext ptroperator() { return getRuleContext(PtroperatorContext.class,0); } public AbstractpackdeclaratorContext abstractpackdeclarator() { return getRuleContext(AbstractpackdeclaratorContext.class,0); } public AbstractpackdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_abstractpackdeclarator; } } public final AbstractpackdeclaratorContext abstractpackdeclarator() throws RecognitionException { AbstractpackdeclaratorContext _localctx = new AbstractpackdeclaratorContext(_ctx, getState()); enterRule(_localctx, 260, RULE_abstractpackdeclarator); try { setState(1809); _errHandler.sync(this); switch (_input.LA(1)) { case Ellipsis: enterOuterAlt(_localctx, 1); { setState(1805); noptrabstractpackdeclarator(0); } break; case Decltype: case Star: case And: case AndAnd: case Doublecolon: case Identifier: enterOuterAlt(_localctx, 2); { setState(1806); ptroperator(); setState(1807); abstractpackdeclarator(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NoptrabstractpackdeclaratorContext extends ParserRuleContext { public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public NoptrabstractpackdeclaratorContext noptrabstractpackdeclarator() { return getRuleContext(NoptrabstractpackdeclaratorContext.class,0); } public ParametersandqualifiersContext parametersandqualifiers() { return getRuleContext(ParametersandqualifiersContext.class,0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public NoptrabstractpackdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_noptrabstractpackdeclarator; } } public final NoptrabstractpackdeclaratorContext noptrabstractpackdeclarator() throws RecognitionException { return noptrabstractpackdeclarator(0); } private NoptrabstractpackdeclaratorContext noptrabstractpackdeclarator(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); NoptrabstractpackdeclaratorContext _localctx = new NoptrabstractpackdeclaratorContext(_ctx, _parentState); NoptrabstractpackdeclaratorContext _prevctx = _localctx; int _startState = 262; enterRecursionRule(_localctx, 262, RULE_noptrabstractpackdeclarator, _p); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1812); match(Ellipsis); } _ctx.stop = _input.LT(-1); setState(1827); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,208,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { setState(1825); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,207,_ctx) ) { case 1: { _localctx = new NoptrabstractpackdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrabstractpackdeclarator); setState(1814); if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)"); setState(1815); parametersandqualifiers(); } break; case 2: { _localctx = new NoptrabstractpackdeclaratorContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_noptrabstractpackdeclarator); setState(1816); if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); setState(1817); match(LeftBracket); setState(1819); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(1818); constantexpression(); } } setState(1821); match(RightBracket); setState(1823); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,206,_ctx) ) { case 1: { setState(1822); attributespecifierseq(0); } break; } } break; } } } setState(1829); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,208,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ParameterdeclarationclauseContext extends ParserRuleContext { public ParameterdeclarationlistContext parameterdeclarationlist() { return getRuleContext(ParameterdeclarationlistContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public ParameterdeclarationclauseContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_parameterdeclarationclause; } } public final ParameterdeclarationclauseContext parameterdeclarationclause() throws RecognitionException { ParameterdeclarationclauseContext _localctx = new ParameterdeclarationclauseContext(_ctx, getState()); enterRule(_localctx, 264, RULE_parameterdeclarationclause); int _la; try { setState(1840); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,211,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1831); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Struct) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftBracket - 66)) | (1L << (Doublecolon - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(1830); parameterdeclarationlist(0); } } setState(1834); _errHandler.sync(this); _la = _input.LA(1); if (_la==Ellipsis) { { setState(1833); match(Ellipsis); } } } break; case 2: enterOuterAlt(_localctx, 2); { setState(1836); parameterdeclarationlist(0); setState(1837); match(Comma); setState(1838); match(Ellipsis); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ParameterdeclarationlistContext extends ParserRuleContext { public ParameterdeclarationContext parameterdeclaration() { return getRuleContext(ParameterdeclarationContext.class,0); } public ParameterdeclarationlistContext parameterdeclarationlist() { return getRuleContext(ParameterdeclarationlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public ParameterdeclarationlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_parameterdeclarationlist; } } public final ParameterdeclarationlistContext parameterdeclarationlist() throws RecognitionException { return parameterdeclarationlist(0); } private ParameterdeclarationlistContext parameterdeclarationlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); ParameterdeclarationlistContext _localctx = new ParameterdeclarationlistContext(_ctx, _parentState); ParameterdeclarationlistContext _prevctx = _localctx; int _startState = 266; enterRecursionRule(_localctx, 266, RULE_parameterdeclarationlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1843); parameterdeclaration(); } _ctx.stop = _input.LT(-1); setState(1850); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,212,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new ParameterdeclarationlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_parameterdeclarationlist); setState(1845); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1846); match(Comma); setState(1847); parameterdeclaration(); } } } setState(1852); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,212,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class ParameterdeclarationContext extends ParserRuleContext { public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public InitializerclauseContext initializerclause() { return getRuleContext(InitializerclauseContext.class,0); } public AbstractdeclaratorContext abstractdeclarator() { return getRuleContext(AbstractdeclaratorContext.class,0); } public ParameterdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_parameterdeclaration; } } public final ParameterdeclarationContext parameterdeclaration() throws RecognitionException { ParameterdeclarationContext _localctx = new ParameterdeclarationContext(_ctx, getState()); enterRule(_localctx, 268, RULE_parameterdeclaration); int _la; try { setState(1884); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,219,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1854); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1853); attributespecifierseq(0); } } setState(1856); declspecifierseq(); setState(1857); declarator(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1860); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1859); attributespecifierseq(0); } } setState(1862); declspecifierseq(); setState(1863); declarator(); setState(1864); match(Assign); setState(1865); initializerclause(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1868); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1867); attributespecifierseq(0); } } setState(1870); declspecifierseq(); setState(1872); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,216,_ctx) ) { case 1: { setState(1871); abstractdeclarator(); } break; } } break; case 4: enterOuterAlt(_localctx, 4); { setState(1875); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1874); attributespecifierseq(0); } } setState(1877); declspecifierseq(); setState(1879); _errHandler.sync(this); _la = _input.LA(1); if (_la==Decltype || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & ((1L << (LeftParen - 77)) | (1L << (LeftBracket - 77)) | (1L << (Star - 77)) | (1L << (And - 77)) | (1L << (AndAnd - 77)) | (1L << (Doublecolon - 77)) | (1L << (Ellipsis - 77)) | (1L << (Identifier - 77)))) != 0)) { { setState(1878); abstractdeclarator(); } } setState(1881); match(Assign); setState(1882); initializerclause(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class FunctiondefinitionContext extends ParserRuleContext { public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public FunctionbodyContext functionbody() { return getRuleContext(FunctionbodyContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public VirtspecifierseqContext virtspecifierseq() { return getRuleContext(VirtspecifierseqContext.class,0); } public FunctiondefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_functiondefinition; } } public final FunctiondefinitionContext functiondefinition() throws RecognitionException { FunctiondefinitionContext _localctx = new FunctiondefinitionContext(_ctx, getState()); enterRule(_localctx, 270, RULE_functiondefinition); int _la; try { enterOuterAlt(_localctx, 1); { setState(1887); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1886); attributespecifierseq(0); } } setState(1890); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,221,_ctx) ) { case 1: { setState(1889); declspecifierseq(); } break; } setState(1892); declarator(); setState(1894); _errHandler.sync(this); _la = _input.LA(1); if (_la==Final || _la==Override) { { setState(1893); virtspecifierseq(0); } } setState(1896); functionbody(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class FunctionbodyContext extends ParserRuleContext { public CompoundstatementContext compoundstatement() { return getRuleContext(CompoundstatementContext.class,0); } public CtorinitializerContext ctorinitializer() { return getRuleContext(CtorinitializerContext.class,0); } public FunctiontryblockContext functiontryblock() { return getRuleContext(FunctiontryblockContext.class,0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public TerminalNode Default() { return getToken(CPP14Parser.Default, 0); } public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public TerminalNode Delete() { return getToken(CPP14Parser.Delete, 0); } public FunctionbodyContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_functionbody; } } public final FunctionbodyContext functionbody() throws RecognitionException { FunctionbodyContext _localctx = new FunctionbodyContext(_ctx, getState()); enterRule(_localctx, 272, RULE_functionbody); int _la; try { setState(1909); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,224,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1899); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(1898); ctorinitializer(); } } setState(1901); compoundstatement(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1902); functiontryblock(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(1903); match(Assign); setState(1904); match(Default); setState(1905); match(Semi); } break; case 4: enterOuterAlt(_localctx, 4); { setState(1906); match(Assign); setState(1907); match(Delete); setState(1908); match(Semi); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class InitializerContext extends ParserRuleContext { public BraceorequalinitializerContext braceorequalinitializer() { return getRuleContext(BraceorequalinitializerContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ExpressionlistContext expressionlist() { return getRuleContext(ExpressionlistContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public InitializerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_initializer; } } public final InitializerContext initializer() throws RecognitionException { InitializerContext _localctx = new InitializerContext(_ctx, getState()); enterRule(_localctx, 274, RULE_initializer); try { setState(1916); _errHandler.sync(this); switch (_input.LA(1)) { case LeftBrace: case Assign: enterOuterAlt(_localctx, 1); { setState(1911); braceorequalinitializer(); } break; case LeftParen: enterOuterAlt(_localctx, 2); { setState(1912); match(LeftParen); setState(1913); expressionlist(); setState(1914); match(RightParen); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BraceorequalinitializerContext extends ParserRuleContext { public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public InitializerclauseContext initializerclause() { return getRuleContext(InitializerclauseContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public BraceorequalinitializerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_braceorequalinitializer; } } public final BraceorequalinitializerContext braceorequalinitializer() throws RecognitionException { BraceorequalinitializerContext _localctx = new BraceorequalinitializerContext(_ctx, getState()); enterRule(_localctx, 276, RULE_braceorequalinitializer); try { setState(1921); _errHandler.sync(this); switch (_input.LA(1)) { case Assign: enterOuterAlt(_localctx, 1); { setState(1918); match(Assign); setState(1919); initializerclause(); } break; case LeftBrace: enterOuterAlt(_localctx, 2); { setState(1920); bracedinitlist(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class InitializerclauseContext extends ParserRuleContext { public AssignmentexpressionContext assignmentexpression() { return getRuleContext(AssignmentexpressionContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public InitializerclauseContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_initializerclause; } } public final InitializerclauseContext initializerclause() throws RecognitionException { InitializerclauseContext _localctx = new InitializerclauseContext(_ctx, getState()); enterRule(_localctx, 278, RULE_initializerclause); try { setState(1925); _errHandler.sync(this); switch (_input.LA(1)) { case Alignof: case Auto: case Bool: case Char: case Char16: case Char32: case Const_cast: case Decltype: case Delete: case Double: case Dynamic_cast: case False: case Float: case Int: case Long: case New: case Noexcept: case Nullptr: case Operator: case Reinterpret_cast: case Short: case Signed: case Sizeof: case Static_cast: case This: case Throw: case True: case Typeid: case Typename: case Unsigned: case Void: case Wchar: case LeftParen: case LeftBracket: case Plus: case Minus: case Star: case And: case Or: case Tilde: case Not: case PlusPlus: case MinusMinus: case Doublecolon: case Identifier: case Integerliteral: case Characterliteral: case Floatingliteral: case Stringliteral: case Userdefinedintegerliteral: case Userdefinedfloatingliteral: case Userdefinedstringliteral: case Userdefinedcharacterliteral: enterOuterAlt(_localctx, 1); { setState(1923); assignmentexpression(); } break; case LeftBrace: enterOuterAlt(_localctx, 2); { setState(1924); bracedinitlist(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class InitializerlistContext extends ParserRuleContext { public InitializerclauseContext initializerclause() { return getRuleContext(InitializerclauseContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public InitializerlistContext initializerlist() { return getRuleContext(InitializerlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public InitializerlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_initializerlist; } } public final InitializerlistContext initializerlist() throws RecognitionException { return initializerlist(0); } private InitializerlistContext initializerlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); InitializerlistContext _localctx = new InitializerlistContext(_ctx, _parentState); InitializerlistContext _prevctx = _localctx; int _startState = 280; enterRecursionRule(_localctx, 280, RULE_initializerlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(1928); initializerclause(); setState(1930); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,228,_ctx) ) { case 1: { setState(1929); match(Ellipsis); } break; } } _ctx.stop = _input.LT(-1); setState(1940); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,230,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new InitializerlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_initializerlist); setState(1932); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(1933); match(Comma); setState(1934); initializerclause(); setState(1936); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,229,_ctx) ) { case 1: { setState(1935); match(Ellipsis); } break; } } } } setState(1942); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,230,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class BracedinitlistContext extends ParserRuleContext { public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public InitializerlistContext initializerlist() { return getRuleContext(InitializerlistContext.class,0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public BracedinitlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_bracedinitlist; } } public final BracedinitlistContext bracedinitlist() throws RecognitionException { BracedinitlistContext _localctx = new BracedinitlistContext(_ctx, getState()); enterRule(_localctx, 282, RULE_bracedinitlist); int _la; try { setState(1952); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,232,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1943); match(LeftBrace); setState(1944); initializerlist(0); setState(1946); _errHandler.sync(this); _la = _input.LA(1); if (_la==Comma) { { setState(1945); match(Comma); } } setState(1948); match(RightBrace); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1950); match(LeftBrace); setState(1951); match(RightBrace); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClassnameContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public ClassnameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classname; } } public final ClassnameContext classname() throws RecognitionException { ClassnameContext _localctx = new ClassnameContext(_ctx, getState()); enterRule(_localctx, 284, RULE_classname); try { setState(1956); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,233,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1954); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { setState(1955); simpletemplateid(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClassspecifierContext extends ParserRuleContext { public ClassheadContext classhead() { return getRuleContext(ClassheadContext.class,0); } public TerminalNode LeftBrace() { return getToken(CPP14Parser.LeftBrace, 0); } public TerminalNode RightBrace() { return getToken(CPP14Parser.RightBrace, 0); } public MemberspecificationContext memberspecification() { return getRuleContext(MemberspecificationContext.class,0); } public ClassspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classspecifier; } } public final ClassspecifierContext classspecifier() throws RecognitionException { ClassspecifierContext _localctx = new ClassspecifierContext(_ctx, getState()); enterRule(_localctx, 286, RULE_classspecifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(1958); classhead(); setState(1959); match(LeftBrace); setState(1961); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Operator) | (1L << Private) | (1L << Protected) | (1L << Public) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Static_assert) | (1L << Struct) | (1L << Template) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Using - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftParen - 66)) | (1L << (LeftBracket - 66)) | (1L << (Star - 66)) | (1L << (And - 66)) | (1L << (Tilde - 66)) | (1L << (AndAnd - 66)) | (1L << (Colon - 66)) | (1L << (Doublecolon - 66)) | (1L << (Semi - 66)) | (1L << (Ellipsis - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(1960); memberspecification(); } } setState(1963); match(RightBrace); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClassheadContext extends ParserRuleContext { public ClasskeyContext classkey() { return getRuleContext(ClasskeyContext.class,0); } public ClassheadnameContext classheadname() { return getRuleContext(ClassheadnameContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public ClassvirtspecifierContext classvirtspecifier() { return getRuleContext(ClassvirtspecifierContext.class,0); } public BaseclauseContext baseclause() { return getRuleContext(BaseclauseContext.class,0); } public ClassheadContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classhead; } } public final ClassheadContext classhead() throws RecognitionException { ClassheadContext _localctx = new ClassheadContext(_ctx, getState()); enterRule(_localctx, 288, RULE_classhead); int _la; try { setState(1983); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,240,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(1965); classkey(); setState(1967); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1966); attributespecifierseq(0); } } setState(1969); classheadname(); setState(1971); _errHandler.sync(this); _la = _input.LA(1); if (_la==Final) { { setState(1970); classvirtspecifier(); } } setState(1974); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(1973); baseclause(); } } } break; case 2: enterOuterAlt(_localctx, 2); { setState(1976); classkey(); setState(1978); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(1977); attributespecifierseq(0); } } setState(1981); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(1980); baseclause(); } } } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClassheadnameContext extends ParserRuleContext { public ClassnameContext classname() { return getRuleContext(ClassnameContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public ClassheadnameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classheadname; } } public final ClassheadnameContext classheadname() throws RecognitionException { ClassheadnameContext _localctx = new ClassheadnameContext(_ctx, getState()); enterRule(_localctx, 290, RULE_classheadname); try { enterOuterAlt(_localctx, 1); { setState(1986); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,241,_ctx) ) { case 1: { setState(1985); nestednamespecifier(0); } break; } setState(1988); classname(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClassvirtspecifierContext extends ParserRuleContext { public TerminalNode Final() { return getToken(CPP14Parser.Final, 0); } public ClassvirtspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classvirtspecifier; } } public final ClassvirtspecifierContext classvirtspecifier() throws RecognitionException { ClassvirtspecifierContext _localctx = new ClassvirtspecifierContext(_ctx, getState()); enterRule(_localctx, 292, RULE_classvirtspecifier); try { enterOuterAlt(_localctx, 1); { setState(1990); match(Final); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClasskeyContext extends ParserRuleContext { public TerminalNode Class() { return getToken(CPP14Parser.Class, 0); } public TerminalNode Struct() { return getToken(CPP14Parser.Struct, 0); } public TerminalNode Union() { return getToken(CPP14Parser.Union, 0); } public ClasskeyContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classkey; } } public final ClasskeyContext classkey() throws RecognitionException { ClasskeyContext _localctx = new ClasskeyContext(_ctx, getState()); enterRule(_localctx, 294, RULE_classkey); int _la; try { enterOuterAlt(_localctx, 1); { setState(1992); _la = _input.LA(1); if ( !(((((_la - 13)) & ~0x3f) == 0 && ((1L << (_la - 13)) & ((1L << (Class - 13)) | (1L << (Struct - 13)) | (1L << (Union - 13)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class MemberspecificationContext extends ParserRuleContext { public MemberdeclarationContext memberdeclaration() { return getRuleContext(MemberdeclarationContext.class,0); } public MemberspecificationContext memberspecification() { return getRuleContext(MemberspecificationContext.class,0); } public AccessspecifierContext accessspecifier() { return getRuleContext(AccessspecifierContext.class,0); } public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public MemberspecificationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_memberspecification; } } public final MemberspecificationContext memberspecification() throws RecognitionException { MemberspecificationContext _localctx = new MemberspecificationContext(_ctx, getState()); enterRule(_localctx, 296, RULE_memberspecification); int _la; try { setState(2003); _errHandler.sync(this); switch (_input.LA(1)) { case Alignas: case Auto: case Bool: case Char: case Char16: case Char32: case Class: case Const: case Constexpr: case Decltype: case Double: case Enum: case Explicit: case Extern: case Float: case Friend: case Inline: case Int: case Long: case Mutable: case Operator: case Register: case Short: case Signed: case Static: case Static_assert: case Struct: case Template: case Thread_local: case Typedef: case Typename: case Union: case Unsigned: case Using: case Virtual: case Void: case Volatile: case Wchar: case LeftParen: case LeftBracket: case Star: case And: case Tilde: case AndAnd: case Colon: case Doublecolon: case Semi: case Ellipsis: case Identifier: enterOuterAlt(_localctx, 1); { setState(1994); memberdeclaration(); setState(1996); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Operator) | (1L << Private) | (1L << Protected) | (1L << Public) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Static_assert) | (1L << Struct) | (1L << Template) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Using - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftParen - 66)) | (1L << (LeftBracket - 66)) | (1L << (Star - 66)) | (1L << (And - 66)) | (1L << (Tilde - 66)) | (1L << (AndAnd - 66)) | (1L << (Colon - 66)) | (1L << (Doublecolon - 66)) | (1L << (Semi - 66)) | (1L << (Ellipsis - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(1995); memberspecification(); } } } break; case Private: case Protected: case Public: enterOuterAlt(_localctx, 2); { setState(1998); accessspecifier(); setState(1999); match(Colon); setState(2001); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Constexpr) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Explicit) | (1L << Extern) | (1L << Float) | (1L << Friend) | (1L << Inline) | (1L << Int) | (1L << Long) | (1L << Mutable) | (1L << Operator) | (1L << Private) | (1L << Protected) | (1L << Public) | (1L << Register) | (1L << Short) | (1L << Signed) | (1L << Static) | (1L << Static_assert) | (1L << Struct) | (1L << Template) | (1L << Thread_local))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (Typedef - 66)) | (1L << (Typename - 66)) | (1L << (Union - 66)) | (1L << (Unsigned - 66)) | (1L << (Using - 66)) | (1L << (Virtual - 66)) | (1L << (Void - 66)) | (1L << (Volatile - 66)) | (1L << (Wchar - 66)) | (1L << (LeftParen - 66)) | (1L << (LeftBracket - 66)) | (1L << (Star - 66)) | (1L << (And - 66)) | (1L << (Tilde - 66)) | (1L << (AndAnd - 66)) | (1L << (Colon - 66)) | (1L << (Doublecolon - 66)) | (1L << (Semi - 66)) | (1L << (Ellipsis - 66)) | (1L << (Identifier - 66)))) != 0)) { { setState(2000); memberspecification(); } } } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class MemberdeclarationContext extends ParserRuleContext { public TerminalNode Semi() { return getToken(CPP14Parser.Semi, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public DeclspecifierseqContext declspecifierseq() { return getRuleContext(DeclspecifierseqContext.class,0); } public MemberdeclaratorlistContext memberdeclaratorlist() { return getRuleContext(MemberdeclaratorlistContext.class,0); } public FunctiondefinitionContext functiondefinition() { return getRuleContext(FunctiondefinitionContext.class,0); } public UsingdeclarationContext usingdeclaration() { return getRuleContext(UsingdeclarationContext.class,0); } public Static_assertdeclarationContext static_assertdeclaration() { return getRuleContext(Static_assertdeclarationContext.class,0); } public TemplatedeclarationContext templatedeclaration() { return getRuleContext(TemplatedeclarationContext.class,0); } public AliasdeclarationContext aliasdeclaration() { return getRuleContext(AliasdeclarationContext.class,0); } public EmptydeclarationContext emptydeclaration() { return getRuleContext(EmptydeclarationContext.class,0); } public MemberdeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_memberdeclaration; } } public final MemberdeclarationContext memberdeclaration() throws RecognitionException { MemberdeclarationContext _localctx = new MemberdeclarationContext(_ctx, getState()); enterRule(_localctx, 298, RULE_memberdeclaration); int _la; try { setState(2021); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,248,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2006); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,245,_ctx) ) { case 1: { setState(2005); attributespecifierseq(0); } break; } setState(2009); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,246,_ctx) ) { case 1: { setState(2008); declspecifierseq(); } break; } setState(2012); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignas) | (1L << Decltype) | (1L << Operator))) != 0) || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & ((1L << (LeftParen - 77)) | (1L << (LeftBracket - 77)) | (1L << (Star - 77)) | (1L << (And - 77)) | (1L << (Tilde - 77)) | (1L << (AndAnd - 77)) | (1L << (Colon - 77)) | (1L << (Doublecolon - 77)) | (1L << (Ellipsis - 77)) | (1L << (Identifier - 77)))) != 0)) { { setState(2011); memberdeclaratorlist(0); } } setState(2014); match(Semi); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2015); functiondefinition(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(2016); usingdeclaration(); } break; case 4: enterOuterAlt(_localctx, 4); { setState(2017); static_assertdeclaration(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(2018); templatedeclaration(); } break; case 6: enterOuterAlt(_localctx, 6); { setState(2019); aliasdeclaration(); } break; case 7: enterOuterAlt(_localctx, 7); { setState(2020); emptydeclaration(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class MemberdeclaratorlistContext extends ParserRuleContext { public MemberdeclaratorContext memberdeclarator() { return getRuleContext(MemberdeclaratorContext.class,0); } public MemberdeclaratorlistContext memberdeclaratorlist() { return getRuleContext(MemberdeclaratorlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public MemberdeclaratorlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_memberdeclaratorlist; } } public final MemberdeclaratorlistContext memberdeclaratorlist() throws RecognitionException { return memberdeclaratorlist(0); } private MemberdeclaratorlistContext memberdeclaratorlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); MemberdeclaratorlistContext _localctx = new MemberdeclaratorlistContext(_ctx, _parentState); MemberdeclaratorlistContext _prevctx = _localctx; int _startState = 300; enterRecursionRule(_localctx, 300, RULE_memberdeclaratorlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(2024); memberdeclarator(); } _ctx.stop = _input.LT(-1); setState(2031); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,249,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new MemberdeclaratorlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_memberdeclaratorlist); setState(2026); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(2027); match(Comma); setState(2028); memberdeclarator(); } } } setState(2033); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,249,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class MemberdeclaratorContext extends ParserRuleContext { public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public VirtspecifierseqContext virtspecifierseq() { return getRuleContext(VirtspecifierseqContext.class,0); } public PurespecifierContext purespecifier() { return getRuleContext(PurespecifierContext.class,0); } public BraceorequalinitializerContext braceorequalinitializer() { return getRuleContext(BraceorequalinitializerContext.class,0); } public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public MemberdeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_memberdeclarator; } } public final MemberdeclaratorContext memberdeclarator() throws RecognitionException { MemberdeclaratorContext _localctx = new MemberdeclaratorContext(_ctx, getState()); enterRule(_localctx, 302, RULE_memberdeclarator); int _la; try { setState(2053); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,255,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2034); declarator(); setState(2036); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,250,_ctx) ) { case 1: { setState(2035); virtspecifierseq(0); } break; } setState(2039); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,251,_ctx) ) { case 1: { setState(2038); purespecifier(); } break; } } break; case 2: enterOuterAlt(_localctx, 2); { setState(2041); declarator(); setState(2043); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,252,_ctx) ) { case 1: { setState(2042); braceorequalinitializer(); } break; } } break; case 3: enterOuterAlt(_localctx, 3); { setState(2046); _errHandler.sync(this); _la = _input.LA(1); if (_la==Identifier) { { setState(2045); match(Identifier); } } setState(2049); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(2048); attributespecifierseq(0); } } setState(2051); match(Colon); setState(2052); constantexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class VirtspecifierseqContext extends ParserRuleContext { public VirtspecifierContext virtspecifier() { return getRuleContext(VirtspecifierContext.class,0); } public VirtspecifierseqContext virtspecifierseq() { return getRuleContext(VirtspecifierseqContext.class,0); } public VirtspecifierseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_virtspecifierseq; } } public final VirtspecifierseqContext virtspecifierseq() throws RecognitionException { return virtspecifierseq(0); } private VirtspecifierseqContext virtspecifierseq(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); VirtspecifierseqContext _localctx = new VirtspecifierseqContext(_ctx, _parentState); VirtspecifierseqContext _prevctx = _localctx; int _startState = 304; enterRecursionRule(_localctx, 304, RULE_virtspecifierseq, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(2056); virtspecifier(); } _ctx.stop = _input.LT(-1); setState(2062); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,256,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new VirtspecifierseqContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_virtspecifierseq); setState(2058); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(2059); virtspecifier(); } } } setState(2064); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,256,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class VirtspecifierContext extends ParserRuleContext { public TerminalNode Override() { return getToken(CPP14Parser.Override, 0); } public TerminalNode Final() { return getToken(CPP14Parser.Final, 0); } public VirtspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_virtspecifier; } } public final VirtspecifierContext virtspecifier() throws RecognitionException { VirtspecifierContext _localctx = new VirtspecifierContext(_ctx, getState()); enterRule(_localctx, 306, RULE_virtspecifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(2065); _la = _input.LA(1); if ( !(_la==Final || _la==Override) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PurespecifierContext extends ParserRuleContext { public Token val; public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public TerminalNode Octalliteral() { return getToken(CPP14Parser.Octalliteral, 0); } public PurespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_purespecifier; } } public final PurespecifierContext purespecifier() throws RecognitionException { PurespecifierContext _localctx = new PurespecifierContext(_ctx, getState()); enterRule(_localctx, 308, RULE_purespecifier); try { enterOuterAlt(_localctx, 1); { setState(2067); match(Assign); setState(2068); ((PurespecifierContext)_localctx).val = match(Octalliteral); if((((PurespecifierContext)_localctx).val!=null?((PurespecifierContext)_localctx).val.getText():null).compareTo("0")!=0) throw new InputMismatchException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BaseclauseContext extends ParserRuleContext { public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public BasespecifierlistContext basespecifierlist() { return getRuleContext(BasespecifierlistContext.class,0); } public BaseclauseContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_baseclause; } } public final BaseclauseContext baseclause() throws RecognitionException { BaseclauseContext _localctx = new BaseclauseContext(_ctx, getState()); enterRule(_localctx, 310, RULE_baseclause); try { enterOuterAlt(_localctx, 1); { setState(2071); match(Colon); setState(2072); basespecifierlist(0); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BasespecifierlistContext extends ParserRuleContext { public BasespecifierContext basespecifier() { return getRuleContext(BasespecifierContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public BasespecifierlistContext basespecifierlist() { return getRuleContext(BasespecifierlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public BasespecifierlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_basespecifierlist; } } public final BasespecifierlistContext basespecifierlist() throws RecognitionException { return basespecifierlist(0); } private BasespecifierlistContext basespecifierlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); BasespecifierlistContext _localctx = new BasespecifierlistContext(_ctx, _parentState); BasespecifierlistContext _prevctx = _localctx; int _startState = 312; enterRecursionRule(_localctx, 312, RULE_basespecifierlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(2075); basespecifier(); setState(2077); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,257,_ctx) ) { case 1: { setState(2076); match(Ellipsis); } break; } } _ctx.stop = _input.LT(-1); setState(2087); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,259,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new BasespecifierlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_basespecifierlist); setState(2079); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(2080); match(Comma); setState(2081); basespecifier(); setState(2083); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,258,_ctx) ) { case 1: { setState(2082); match(Ellipsis); } break; } } } } setState(2089); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,259,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class BasespecifierContext extends ParserRuleContext { public BasetypespecifierContext basetypespecifier() { return getRuleContext(BasetypespecifierContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public TerminalNode Virtual() { return getToken(CPP14Parser.Virtual, 0); } public AccessspecifierContext accessspecifier() { return getRuleContext(AccessspecifierContext.class,0); } public BasespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_basespecifier; } } public final BasespecifierContext basespecifier() throws RecognitionException { BasespecifierContext _localctx = new BasespecifierContext(_ctx, getState()); enterRule(_localctx, 314, RULE_basespecifier); int _la; try { setState(2111); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,265,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2091); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(2090); attributespecifierseq(0); } } setState(2093); basetypespecifier(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2095); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(2094); attributespecifierseq(0); } } setState(2097); match(Virtual); setState(2099); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Private) | (1L << Protected) | (1L << Public))) != 0)) { { setState(2098); accessspecifier(); } } setState(2101); basetypespecifier(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(2103); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(2102); attributespecifierseq(0); } } setState(2105); accessspecifier(); setState(2107); _errHandler.sync(this); _la = _input.LA(1); if (_la==Virtual) { { setState(2106); match(Virtual); } } setState(2109); basetypespecifier(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ClassordecltypeContext extends ParserRuleContext { public ClassnameContext classname() { return getRuleContext(ClassnameContext.class,0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public DecltypespecifierContext decltypespecifier() { return getRuleContext(DecltypespecifierContext.class,0); } public ClassordecltypeContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_classordecltype; } } public final ClassordecltypeContext classordecltype() throws RecognitionException { ClassordecltypeContext _localctx = new ClassordecltypeContext(_ctx, getState()); enterRule(_localctx, 316, RULE_classordecltype); try { setState(2118); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,267,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2114); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,266,_ctx) ) { case 1: { setState(2113); nestednamespecifier(0); } break; } setState(2116); classname(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2117); decltypespecifier(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BasetypespecifierContext extends ParserRuleContext { public ClassordecltypeContext classordecltype() { return getRuleContext(ClassordecltypeContext.class,0); } public BasetypespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_basetypespecifier; } } public final BasetypespecifierContext basetypespecifier() throws RecognitionException { BasetypespecifierContext _localctx = new BasetypespecifierContext(_ctx, getState()); enterRule(_localctx, 318, RULE_basetypespecifier); try { enterOuterAlt(_localctx, 1); { setState(2120); classordecltype(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class AccessspecifierContext extends ParserRuleContext { public TerminalNode Private() { return getToken(CPP14Parser.Private, 0); } public TerminalNode Protected() { return getToken(CPP14Parser.Protected, 0); } public TerminalNode Public() { return getToken(CPP14Parser.Public, 0); } public AccessspecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_accessspecifier; } } public final AccessspecifierContext accessspecifier() throws RecognitionException { AccessspecifierContext _localctx = new AccessspecifierContext(_ctx, getState()); enterRule(_localctx, 320, RULE_accessspecifier); int _la; try { enterOuterAlt(_localctx, 1); { setState(2122); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Private) | (1L << Protected) | (1L << Public))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ConversionfunctionidContext extends ParserRuleContext { public TerminalNode Operator() { return getToken(CPP14Parser.Operator, 0); } public ConversiontypeidContext conversiontypeid() { return getRuleContext(ConversiontypeidContext.class,0); } public ConversionfunctionidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_conversionfunctionid; } } public final ConversionfunctionidContext conversionfunctionid() throws RecognitionException { ConversionfunctionidContext _localctx = new ConversionfunctionidContext(_ctx, getState()); enterRule(_localctx, 322, RULE_conversionfunctionid); try { enterOuterAlt(_localctx, 1); { setState(2124); match(Operator); setState(2125); conversiontypeid(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ConversiontypeidContext extends ParserRuleContext { public TypespecifierseqContext typespecifierseq() { return getRuleContext(TypespecifierseqContext.class,0); } public ConversiondeclaratorContext conversiondeclarator() { return getRuleContext(ConversiondeclaratorContext.class,0); } public ConversiontypeidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_conversiontypeid; } } public final ConversiontypeidContext conversiontypeid() throws RecognitionException { ConversiontypeidContext _localctx = new ConversiontypeidContext(_ctx, getState()); enterRule(_localctx, 324, RULE_conversiontypeid); try { enterOuterAlt(_localctx, 1); { setState(2127); typespecifierseq(); setState(2129); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,268,_ctx) ) { case 1: { setState(2128); conversiondeclarator(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ConversiondeclaratorContext extends ParserRuleContext { public PtroperatorContext ptroperator() { return getRuleContext(PtroperatorContext.class,0); } public ConversiondeclaratorContext conversiondeclarator() { return getRuleContext(ConversiondeclaratorContext.class,0); } public ConversiondeclaratorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_conversiondeclarator; } } public final ConversiondeclaratorContext conversiondeclarator() throws RecognitionException { ConversiondeclaratorContext _localctx = new ConversiondeclaratorContext(_ctx, getState()); enterRule(_localctx, 326, RULE_conversiondeclarator); try { enterOuterAlt(_localctx, 1); { setState(2131); ptroperator(); setState(2133); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,269,_ctx) ) { case 1: { setState(2132); conversiondeclarator(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class CtorinitializerContext extends ParserRuleContext { public TerminalNode Colon() { return getToken(CPP14Parser.Colon, 0); } public MeminitializerlistContext meminitializerlist() { return getRuleContext(MeminitializerlistContext.class,0); } public CtorinitializerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_ctorinitializer; } } public final CtorinitializerContext ctorinitializer() throws RecognitionException { CtorinitializerContext _localctx = new CtorinitializerContext(_ctx, getState()); enterRule(_localctx, 328, RULE_ctorinitializer); try { enterOuterAlt(_localctx, 1); { setState(2135); match(Colon); setState(2136); meminitializerlist(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class MeminitializerlistContext extends ParserRuleContext { public MeminitializerContext meminitializer() { return getRuleContext(MeminitializerContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public MeminitializerlistContext meminitializerlist() { return getRuleContext(MeminitializerlistContext.class,0); } public MeminitializerlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_meminitializerlist; } } public final MeminitializerlistContext meminitializerlist() throws RecognitionException { MeminitializerlistContext _localctx = new MeminitializerlistContext(_ctx, getState()); enterRule(_localctx, 330, RULE_meminitializerlist); int _la; try { setState(2149); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,272,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2138); meminitializer(); setState(2140); _errHandler.sync(this); _la = _input.LA(1); if (_la==Ellipsis) { { setState(2139); match(Ellipsis); } } } break; case 2: enterOuterAlt(_localctx, 2); { setState(2142); meminitializer(); setState(2144); _errHandler.sync(this); _la = _input.LA(1); if (_la==Ellipsis) { { setState(2143); match(Ellipsis); } } setState(2146); match(Comma); setState(2147); meminitializerlist(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class MeminitializerContext extends ParserRuleContext { public MeminitializeridContext meminitializerid() { return getRuleContext(MeminitializeridContext.class,0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public ExpressionlistContext expressionlist() { return getRuleContext(ExpressionlistContext.class,0); } public BracedinitlistContext bracedinitlist() { return getRuleContext(BracedinitlistContext.class,0); } public MeminitializerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_meminitializer; } } public final MeminitializerContext meminitializer() throws RecognitionException { MeminitializerContext _localctx = new MeminitializerContext(_ctx, getState()); enterRule(_localctx, 332, RULE_meminitializer); int _la; try { setState(2161); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,274,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2151); meminitializerid(); setState(2152); match(LeftParen); setState(2154); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << This) | (1L << Throw))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (LeftBrace - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(2153); expressionlist(); } } setState(2156); match(RightParen); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2158); meminitializerid(); setState(2159); bracedinitlist(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class MeminitializeridContext extends ParserRuleContext { public ClassordecltypeContext classordecltype() { return getRuleContext(ClassordecltypeContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public MeminitializeridContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_meminitializerid; } } public final MeminitializeridContext meminitializerid() throws RecognitionException { MeminitializeridContext _localctx = new MeminitializeridContext(_ctx, getState()); enterRule(_localctx, 334, RULE_meminitializerid); try { setState(2165); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,275,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2163); classordecltype(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2164); match(Identifier); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OperatorfunctionidContext extends ParserRuleContext { public TerminalNode Operator() { return getToken(CPP14Parser.Operator, 0); } public OperatorContext operator() { return getRuleContext(OperatorContext.class,0); } public OperatorfunctionidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_operatorfunctionid; } } public final OperatorfunctionidContext operatorfunctionid() throws RecognitionException { OperatorfunctionidContext _localctx = new OperatorfunctionidContext(_ctx, getState()); enterRule(_localctx, 336, RULE_operatorfunctionid); try { enterOuterAlt(_localctx, 1); { setState(2167); match(Operator); setState(2168); operator(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LiteraloperatoridContext extends ParserRuleContext { public TerminalNode Operator() { return getToken(CPP14Parser.Operator, 0); } public TerminalNode Stringliteral() { return getToken(CPP14Parser.Stringliteral, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Userdefinedstringliteral() { return getToken(CPP14Parser.Userdefinedstringliteral, 0); } public LiteraloperatoridContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_literaloperatorid; } } public final LiteraloperatoridContext literaloperatorid() throws RecognitionException { LiteraloperatoridContext _localctx = new LiteraloperatoridContext(_ctx, getState()); enterRule(_localctx, 338, RULE_literaloperatorid); try { setState(2175); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,276,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2170); match(Operator); setState(2171); match(Stringliteral); setState(2172); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2173); match(Operator); setState(2174); match(Userdefinedstringliteral); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TemplatedeclarationContext extends ParserRuleContext { public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TemplateparameterlistContext templateparameterlist() { return getRuleContext(TemplateparameterlistContext.class,0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public DeclarationContext declaration() { return getRuleContext(DeclarationContext.class,0); } public TemplatedeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templatedeclaration; } } public final TemplatedeclarationContext templatedeclaration() throws RecognitionException { TemplatedeclarationContext _localctx = new TemplatedeclarationContext(_ctx, getState()); enterRule(_localctx, 340, RULE_templatedeclaration); try { enterOuterAlt(_localctx, 1); { setState(2177); match(Template); setState(2178); match(Less); setState(2179); templateparameterlist(0); setState(2180); match(Greater); setState(2181); declaration(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TemplateparameterlistContext extends ParserRuleContext { public TemplateparameterContext templateparameter() { return getRuleContext(TemplateparameterContext.class,0); } public TemplateparameterlistContext templateparameterlist() { return getRuleContext(TemplateparameterlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public TemplateparameterlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templateparameterlist; } } public final TemplateparameterlistContext templateparameterlist() throws RecognitionException { return templateparameterlist(0); } private TemplateparameterlistContext templateparameterlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); TemplateparameterlistContext _localctx = new TemplateparameterlistContext(_ctx, _parentState); TemplateparameterlistContext _prevctx = _localctx; int _startState = 342; enterRecursionRule(_localctx, 342, RULE_templateparameterlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(2184); templateparameter(); } _ctx.stop = _input.LT(-1); setState(2191); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,277,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new TemplateparameterlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_templateparameterlist); setState(2186); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(2187); match(Comma); setState(2188); templateparameter(); } } } setState(2193); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,277,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class TemplateparameterContext extends ParserRuleContext { public TypeparameterContext typeparameter() { return getRuleContext(TypeparameterContext.class,0); } public ParameterdeclarationContext parameterdeclaration() { return getRuleContext(ParameterdeclarationContext.class,0); } public TemplateparameterContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templateparameter; } } public final TemplateparameterContext templateparameter() throws RecognitionException { TemplateparameterContext _localctx = new TemplateparameterContext(_ctx, getState()); enterRule(_localctx, 344, RULE_templateparameter); try { setState(2196); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,278,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2194); typeparameter(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2195); parameterdeclaration(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypeparameterContext extends ParserRuleContext { public TerminalNode Class() { return getToken(CPP14Parser.Class, 0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode Typename() { return getToken(CPP14Parser.Typename, 0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TemplateparameterlistContext templateparameterlist() { return getRuleContext(TemplateparameterlistContext.class,0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public IdexpressionContext idexpression() { return getRuleContext(IdexpressionContext.class,0); } public TypeparameterContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typeparameter; } } public final TypeparameterContext typeparameter() throws RecognitionException { TypeparameterContext _localctx = new TypeparameterContext(_ctx, getState()); enterRule(_localctx, 346, RULE_typeparameter); int _la; try { setState(2246); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,288,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2198); match(Class); setState(2200); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,279,_ctx) ) { case 1: { setState(2199); match(Ellipsis); } break; } setState(2203); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,280,_ctx) ) { case 1: { setState(2202); match(Identifier); } break; } } break; case 2: enterOuterAlt(_localctx, 2); { setState(2205); match(Class); setState(2207); _errHandler.sync(this); _la = _input.LA(1); if (_la==Identifier) { { setState(2206); match(Identifier); } } setState(2209); match(Assign); setState(2210); typeid(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(2211); match(Typename); setState(2213); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,282,_ctx) ) { case 1: { setState(2212); match(Ellipsis); } break; } setState(2216); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,283,_ctx) ) { case 1: { setState(2215); match(Identifier); } break; } } break; case 4: enterOuterAlt(_localctx, 4); { setState(2218); match(Typename); setState(2220); _errHandler.sync(this); _la = _input.LA(1); if (_la==Identifier) { { setState(2219); match(Identifier); } } setState(2222); match(Assign); setState(2223); typeid(); } break; case 5: enterOuterAlt(_localctx, 5); { setState(2224); match(Template); setState(2225); match(Less); setState(2226); templateparameterlist(0); setState(2227); match(Greater); setState(2228); match(Class); setState(2230); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,285,_ctx) ) { case 1: { setState(2229); match(Ellipsis); } break; } setState(2233); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,286,_ctx) ) { case 1: { setState(2232); match(Identifier); } break; } } break; case 6: enterOuterAlt(_localctx, 6); { setState(2235); match(Template); setState(2236); match(Less); setState(2237); templateparameterlist(0); setState(2238); match(Greater); setState(2239); match(Class); setState(2241); _errHandler.sync(this); _la = _input.LA(1); if (_la==Identifier) { { setState(2240); match(Identifier); } } setState(2243); match(Assign); setState(2244); idexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class SimpletemplateidContext extends ParserRuleContext { public TemplatenameContext templatename() { return getRuleContext(TemplatenameContext.class,0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public TemplateargumentlistContext templateargumentlist() { return getRuleContext(TemplateargumentlistContext.class,0); } public SimpletemplateidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_simpletemplateid; } } public final SimpletemplateidContext simpletemplateid() throws RecognitionException { SimpletemplateidContext _localctx = new SimpletemplateidContext(_ctx, getState()); enterRule(_localctx, 348, RULE_simpletemplateid); int _la; try { enterOuterAlt(_localctx, 1); { setState(2248); templatename(); setState(2249); match(Less); setState(2251); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << Enum) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << Struct) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Union - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Volatile - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(2250); templateargumentlist(0); } } setState(2253); match(Greater); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TemplateidContext extends ParserRuleContext { public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public OperatorfunctionidContext operatorfunctionid() { return getRuleContext(OperatorfunctionidContext.class,0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public TemplateargumentlistContext templateargumentlist() { return getRuleContext(TemplateargumentlistContext.class,0); } public LiteraloperatoridContext literaloperatorid() { return getRuleContext(LiteraloperatoridContext.class,0); } public TemplateidContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templateid; } } public final TemplateidContext templateid() throws RecognitionException { TemplateidContext _localctx = new TemplateidContext(_ctx, getState()); enterRule(_localctx, 350, RULE_templateid); int _la; try { setState(2270); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,292,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2255); simpletemplateid(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2256); operatorfunctionid(); setState(2257); match(Less); setState(2259); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << Enum) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << Struct) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Union - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Volatile - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(2258); templateargumentlist(0); } } setState(2261); match(Greater); } break; case 3: enterOuterAlt(_localctx, 3); { setState(2263); literaloperatorid(); setState(2264); match(Less); setState(2266); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Alignof) | (1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Const_cast) | (1L << Decltype) | (1L << Delete) | (1L << Double) | (1L << Dynamic_cast) | (1L << Enum) | (1L << False) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << New) | (1L << Noexcept) | (1L << Nullptr) | (1L << Operator) | (1L << Reinterpret_cast) | (1L << Short) | (1L << Signed) | (1L << Sizeof) | (1L << Static_cast) | (1L << Struct) | (1L << This))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (True - 64)) | (1L << (Typeid - 64)) | (1L << (Typename - 64)) | (1L << (Union - 64)) | (1L << (Unsigned - 64)) | (1L << (Void - 64)) | (1L << (Volatile - 64)) | (1L << (Wchar - 64)) | (1L << (LeftParen - 64)) | (1L << (LeftBracket - 64)) | (1L << (Plus - 64)) | (1L << (Minus - 64)) | (1L << (Star - 64)) | (1L << (And - 64)) | (1L << (Or - 64)) | (1L << (Tilde - 64)) | (1L << (Not - 64)) | (1L << (PlusPlus - 64)) | (1L << (MinusMinus - 64)) | (1L << (Doublecolon - 64)) | (1L << (Identifier - 64)) | (1L << (Integerliteral - 64)))) != 0) || ((((_la - 131)) & ~0x3f) == 0 && ((1L << (_la - 131)) & ((1L << (Characterliteral - 131)) | (1L << (Floatingliteral - 131)) | (1L << (Stringliteral - 131)) | (1L << (Userdefinedintegerliteral - 131)) | (1L << (Userdefinedfloatingliteral - 131)) | (1L << (Userdefinedstringliteral - 131)) | (1L << (Userdefinedcharacterliteral - 131)))) != 0)) { { setState(2265); templateargumentlist(0); } } setState(2268); match(Greater); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TemplatenameContext extends ParserRuleContext { public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public TemplatenameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templatename; } } public final TemplatenameContext templatename() throws RecognitionException { TemplatenameContext _localctx = new TemplatenameContext(_ctx, getState()); enterRule(_localctx, 352, RULE_templatename); try { enterOuterAlt(_localctx, 1); { setState(2272); match(Identifier); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TemplateargumentlistContext extends ParserRuleContext { public TemplateargumentContext templateargument() { return getRuleContext(TemplateargumentContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public TemplateargumentlistContext templateargumentlist() { return getRuleContext(TemplateargumentlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public TemplateargumentlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templateargumentlist; } } public final TemplateargumentlistContext templateargumentlist() throws RecognitionException { return templateargumentlist(0); } private TemplateargumentlistContext templateargumentlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); TemplateargumentlistContext _localctx = new TemplateargumentlistContext(_ctx, _parentState); TemplateargumentlistContext _prevctx = _localctx; int _startState = 354; enterRecursionRule(_localctx, 354, RULE_templateargumentlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(2275); templateargument(); setState(2277); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,293,_ctx) ) { case 1: { setState(2276); match(Ellipsis); } break; } } _ctx.stop = _input.LT(-1); setState(2287); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,295,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new TemplateargumentlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_templateargumentlist); setState(2279); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(2280); match(Comma); setState(2281); templateargument(); setState(2283); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,294,_ctx) ) { case 1: { setState(2282); match(Ellipsis); } break; } } } } setState(2289); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,295,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class TemplateargumentContext extends ParserRuleContext { public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public IdexpressionContext idexpression() { return getRuleContext(IdexpressionContext.class,0); } public TemplateargumentContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_templateargument; } } public final TemplateargumentContext templateargument() throws RecognitionException { TemplateargumentContext _localctx = new TemplateargumentContext(_ctx, getState()); enterRule(_localctx, 356, RULE_templateargument); try { setState(2293); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,296,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2290); constantexpression(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2291); typeid(); } break; case 3: enterOuterAlt(_localctx, 3); { setState(2292); idexpression(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypenamespecifierContext extends ParserRuleContext { public TerminalNode Typename() { return getToken(CPP14Parser.Typename, 0); } public NestednamespecifierContext nestednamespecifier() { return getRuleContext(NestednamespecifierContext.class,0); } public TerminalNode Identifier() { return getToken(CPP14Parser.Identifier, 0); } public SimpletemplateidContext simpletemplateid() { return getRuleContext(SimpletemplateidContext.class,0); } public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public TypenamespecifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typenamespecifier; } } public final TypenamespecifierContext typenamespecifier() throws RecognitionException { TypenamespecifierContext _localctx = new TypenamespecifierContext(_ctx, getState()); enterRule(_localctx, 358, RULE_typenamespecifier); int _la; try { setState(2306); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,298,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2295); match(Typename); setState(2296); nestednamespecifier(0); setState(2297); match(Identifier); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2299); match(Typename); setState(2300); nestednamespecifier(0); setState(2302); _errHandler.sync(this); _la = _input.LA(1); if (_la==Template) { { setState(2301); match(Template); } } setState(2304); simpletemplateid(); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExplicitinstantiationContext extends ParserRuleContext { public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public DeclarationContext declaration() { return getRuleContext(DeclarationContext.class,0); } public TerminalNode Extern() { return getToken(CPP14Parser.Extern, 0); } public ExplicitinstantiationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_explicitinstantiation; } } public final ExplicitinstantiationContext explicitinstantiation() throws RecognitionException { ExplicitinstantiationContext _localctx = new ExplicitinstantiationContext(_ctx, getState()); enterRule(_localctx, 360, RULE_explicitinstantiation); int _la; try { enterOuterAlt(_localctx, 1); { setState(2309); _errHandler.sync(this); _la = _input.LA(1); if (_la==Extern) { { setState(2308); match(Extern); } } setState(2311); match(Template); setState(2312); declaration(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExplicitspecializationContext extends ParserRuleContext { public TerminalNode Template() { return getToken(CPP14Parser.Template, 0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public DeclarationContext declaration() { return getRuleContext(DeclarationContext.class,0); } public ExplicitspecializationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_explicitspecialization; } } public final ExplicitspecializationContext explicitspecialization() throws RecognitionException { ExplicitspecializationContext _localctx = new ExplicitspecializationContext(_ctx, getState()); enterRule(_localctx, 362, RULE_explicitspecialization); try { enterOuterAlt(_localctx, 1); { setState(2314); match(Template); setState(2315); match(Less); setState(2316); match(Greater); setState(2317); declaration(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TryblockContext extends ParserRuleContext { public TerminalNode Try() { return getToken(CPP14Parser.Try, 0); } public CompoundstatementContext compoundstatement() { return getRuleContext(CompoundstatementContext.class,0); } public HandlerseqContext handlerseq() { return getRuleContext(HandlerseqContext.class,0); } public TryblockContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_tryblock; } } public final TryblockContext tryblock() throws RecognitionException { TryblockContext _localctx = new TryblockContext(_ctx, getState()); enterRule(_localctx, 364, RULE_tryblock); try { enterOuterAlt(_localctx, 1); { setState(2319); match(Try); setState(2320); compoundstatement(); setState(2321); handlerseq(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class FunctiontryblockContext extends ParserRuleContext { public TerminalNode Try() { return getToken(CPP14Parser.Try, 0); } public CompoundstatementContext compoundstatement() { return getRuleContext(CompoundstatementContext.class,0); } public HandlerseqContext handlerseq() { return getRuleContext(HandlerseqContext.class,0); } public CtorinitializerContext ctorinitializer() { return getRuleContext(CtorinitializerContext.class,0); } public FunctiontryblockContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_functiontryblock; } } public final FunctiontryblockContext functiontryblock() throws RecognitionException { FunctiontryblockContext _localctx = new FunctiontryblockContext(_ctx, getState()); enterRule(_localctx, 366, RULE_functiontryblock); int _la; try { enterOuterAlt(_localctx, 1); { setState(2323); match(Try); setState(2325); _errHandler.sync(this); _la = _input.LA(1); if (_la==Colon) { { setState(2324); ctorinitializer(); } } setState(2327); compoundstatement(); setState(2328); handlerseq(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class HandlerseqContext extends ParserRuleContext { public HandlerContext handler() { return getRuleContext(HandlerContext.class,0); } public HandlerseqContext handlerseq() { return getRuleContext(HandlerseqContext.class,0); } public HandlerseqContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_handlerseq; } } public final HandlerseqContext handlerseq() throws RecognitionException { HandlerseqContext _localctx = new HandlerseqContext(_ctx, getState()); enterRule(_localctx, 368, RULE_handlerseq); try { enterOuterAlt(_localctx, 1); { setState(2330); handler(); setState(2332); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,301,_ctx) ) { case 1: { setState(2331); handlerseq(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class HandlerContext extends ParserRuleContext { public TerminalNode Catch() { return getToken(CPP14Parser.Catch, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ExceptiondeclarationContext exceptiondeclaration() { return getRuleContext(ExceptiondeclarationContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public CompoundstatementContext compoundstatement() { return getRuleContext(CompoundstatementContext.class,0); } public HandlerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_handler; } } public final HandlerContext handler() throws RecognitionException { HandlerContext _localctx = new HandlerContext(_ctx, getState()); enterRule(_localctx, 370, RULE_handler); try { enterOuterAlt(_localctx, 1); { setState(2334); match(Catch); setState(2335); match(LeftParen); setState(2336); exceptiondeclaration(); setState(2337); match(RightParen); setState(2338); compoundstatement(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExceptiondeclarationContext extends ParserRuleContext { public TypespecifierseqContext typespecifierseq() { return getRuleContext(TypespecifierseqContext.class,0); } public DeclaratorContext declarator() { return getRuleContext(DeclaratorContext.class,0); } public AttributespecifierseqContext attributespecifierseq() { return getRuleContext(AttributespecifierseqContext.class,0); } public AbstractdeclaratorContext abstractdeclarator() { return getRuleContext(AbstractdeclaratorContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public ExceptiondeclarationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_exceptiondeclaration; } } public final ExceptiondeclarationContext exceptiondeclaration() throws RecognitionException { ExceptiondeclarationContext _localctx = new ExceptiondeclarationContext(_ctx, getState()); enterRule(_localctx, 372, RULE_exceptiondeclaration); int _la; try { setState(2354); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,305,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2341); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(2340); attributespecifierseq(0); } } setState(2343); typespecifierseq(); setState(2344); declarator(); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2347); _errHandler.sync(this); _la = _input.LA(1); if (_la==Alignas || _la==LeftBracket) { { setState(2346); attributespecifierseq(0); } } setState(2349); typespecifierseq(); setState(2351); _errHandler.sync(this); _la = _input.LA(1); if (_la==Decltype || ((((_la - 77)) & ~0x3f) == 0 && ((1L << (_la - 77)) & ((1L << (LeftParen - 77)) | (1L << (LeftBracket - 77)) | (1L << (Star - 77)) | (1L << (And - 77)) | (1L << (AndAnd - 77)) | (1L << (Doublecolon - 77)) | (1L << (Ellipsis - 77)) | (1L << (Identifier - 77)))) != 0)) { { setState(2350); abstractdeclarator(); } } } break; case 3: enterOuterAlt(_localctx, 3); { setState(2353); match(Ellipsis); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ThrowexpressionContext extends ParserRuleContext { public TerminalNode Throw() { return getToken(CPP14Parser.Throw, 0); } public AssignmentexpressionContext assignmentexpression() { return getRuleContext(AssignmentexpressionContext.class,0); } public ThrowexpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_throwexpression; } } public final ThrowexpressionContext throwexpression() throws RecognitionException { ThrowexpressionContext _localctx = new ThrowexpressionContext(_ctx, getState()); enterRule(_localctx, 374, RULE_throwexpression); try { enterOuterAlt(_localctx, 1); { setState(2356); match(Throw); setState(2358); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,306,_ctx) ) { case 1: { setState(2357); assignmentexpression(); } break; } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExceptionspecificationContext extends ParserRuleContext { public DynamicexceptionspecificationContext dynamicexceptionspecification() { return getRuleContext(DynamicexceptionspecificationContext.class,0); } public NoexceptspecificationContext noexceptspecification() { return getRuleContext(NoexceptspecificationContext.class,0); } public ExceptionspecificationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_exceptionspecification; } } public final ExceptionspecificationContext exceptionspecification() throws RecognitionException { ExceptionspecificationContext _localctx = new ExceptionspecificationContext(_ctx, getState()); enterRule(_localctx, 376, RULE_exceptionspecification); try { setState(2362); _errHandler.sync(this); switch (_input.LA(1)) { case Throw: enterOuterAlt(_localctx, 1); { setState(2360); dynamicexceptionspecification(); } break; case Noexcept: enterOuterAlt(_localctx, 2); { setState(2361); noexceptspecification(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DynamicexceptionspecificationContext extends ParserRuleContext { public TerminalNode Throw() { return getToken(CPP14Parser.Throw, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public TypeidlistContext typeidlist() { return getRuleContext(TypeidlistContext.class,0); } public DynamicexceptionspecificationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_dynamicexceptionspecification; } } public final DynamicexceptionspecificationContext dynamicexceptionspecification() throws RecognitionException { DynamicexceptionspecificationContext _localctx = new DynamicexceptionspecificationContext(_ctx, getState()); enterRule(_localctx, 378, RULE_dynamicexceptionspecification); int _la; try { enterOuterAlt(_localctx, 1); { setState(2364); match(Throw); setState(2365); match(LeftParen); setState(2367); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << Auto) | (1L << Bool) | (1L << Char) | (1L << Char16) | (1L << Char32) | (1L << Class) | (1L << Const) | (1L << Decltype) | (1L << Double) | (1L << Enum) | (1L << Float) | (1L << Int) | (1L << Long) | (1L << Short) | (1L << Signed) | (1L << Struct))) != 0) || ((((_la - 68)) & ~0x3f) == 0 && ((1L << (_la - 68)) & ((1L << (Typename - 68)) | (1L << (Union - 68)) | (1L << (Unsigned - 68)) | (1L << (Void - 68)) | (1L << (Volatile - 68)) | (1L << (Wchar - 68)) | (1L << (Doublecolon - 68)) | (1L << (Identifier - 68)))) != 0)) { { setState(2366); typeidlist(0); } } setState(2369); match(RightParen); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TypeidlistContext extends ParserRuleContext { public TypeidContext typeid() { return getRuleContext(TypeidContext.class,0); } public TerminalNode Ellipsis() { return getToken(CPP14Parser.Ellipsis, 0); } public TypeidlistContext typeidlist() { return getRuleContext(TypeidlistContext.class,0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public TypeidlistContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_typeidlist; } } public final TypeidlistContext typeidlist() throws RecognitionException { return typeidlist(0); } private TypeidlistContext typeidlist(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; int _parentState = getState(); TypeidlistContext _localctx = new TypeidlistContext(_ctx, _parentState); TypeidlistContext _prevctx = _localctx; int _startState = 380; enterRecursionRule(_localctx, 380, RULE_typeidlist, _p); try { int _alt; enterOuterAlt(_localctx, 1); { { setState(2372); typeid(); setState(2374); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,309,_ctx) ) { case 1: { setState(2373); match(Ellipsis); } break; } } _ctx.stop = _input.LT(-1); setState(2384); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,311,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { if ( _parseListeners!=null ) triggerExitRuleEvent(); _prevctx = _localctx; { { _localctx = new TypeidlistContext(_parentctx, _parentState); pushNewRecursionContext(_localctx, _startState, RULE_typeidlist); setState(2376); if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); setState(2377); match(Comma); setState(2378); typeid(); setState(2380); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,310,_ctx) ) { case 1: { setState(2379); match(Ellipsis); } break; } } } } setState(2386); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,311,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { unrollRecursionContexts(_parentctx); } return _localctx; } public static class NoexceptspecificationContext extends ParserRuleContext { public TerminalNode Noexcept() { return getToken(CPP14Parser.Noexcept, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public ConstantexpressionContext constantexpression() { return getRuleContext(ConstantexpressionContext.class,0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public NoexceptspecificationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_noexceptspecification; } } public final NoexceptspecificationContext noexceptspecification() throws RecognitionException { NoexceptspecificationContext _localctx = new NoexceptspecificationContext(_ctx, getState()); enterRule(_localctx, 382, RULE_noexceptspecification); try { setState(2393); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,312,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2387); match(Noexcept); setState(2388); match(LeftParen); setState(2389); constantexpression(); setState(2390); match(RightParen); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2392); match(Noexcept); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class RightShiftContext extends ParserRuleContext { public List<TerminalNode> Greater() { return getTokens(CPP14Parser.Greater); } public TerminalNode Greater(int i) { return getToken(CPP14Parser.Greater, i); } public RightShiftContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_rightShift; } } public final RightShiftContext rightShift() throws RecognitionException { RightShiftContext _localctx = new RightShiftContext(_ctx, getState()); enterRule(_localctx, 384, RULE_rightShift); try { enterOuterAlt(_localctx, 1); { setState(2395); match(Greater); setState(2396); match(Greater); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class RightShiftAssignContext extends ParserRuleContext { public List<TerminalNode> Greater() { return getTokens(CPP14Parser.Greater); } public TerminalNode Greater(int i) { return getToken(CPP14Parser.Greater, i); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public RightShiftAssignContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_rightShiftAssign; } } public final RightShiftAssignContext rightShiftAssign() throws RecognitionException { RightShiftAssignContext _localctx = new RightShiftAssignContext(_ctx, getState()); enterRule(_localctx, 386, RULE_rightShiftAssign); try { enterOuterAlt(_localctx, 1); { setState(2398); match(Greater); setState(2399); match(Greater); setState(2400); match(Assign); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OperatorContext extends ParserRuleContext { public TerminalNode New() { return getToken(CPP14Parser.New, 0); } public TerminalNode Delete() { return getToken(CPP14Parser.Delete, 0); } public TerminalNode LeftBracket() { return getToken(CPP14Parser.LeftBracket, 0); } public TerminalNode RightBracket() { return getToken(CPP14Parser.RightBracket, 0); } public TerminalNode Plus() { return getToken(CPP14Parser.Plus, 0); } public TerminalNode Minus() { return getToken(CPP14Parser.Minus, 0); } public TerminalNode Star() { return getToken(CPP14Parser.Star, 0); } public TerminalNode Div() { return getToken(CPP14Parser.Div, 0); } public TerminalNode Mod() { return getToken(CPP14Parser.Mod, 0); } public TerminalNode Caret() { return getToken(CPP14Parser.Caret, 0); } public TerminalNode And() { return getToken(CPP14Parser.And, 0); } public TerminalNode Or() { return getToken(CPP14Parser.Or, 0); } public TerminalNode Tilde() { return getToken(CPP14Parser.Tilde, 0); } public TerminalNode Not() { return getToken(CPP14Parser.Not, 0); } public TerminalNode Assign() { return getToken(CPP14Parser.Assign, 0); } public TerminalNode Less() { return getToken(CPP14Parser.Less, 0); } public TerminalNode Greater() { return getToken(CPP14Parser.Greater, 0); } public TerminalNode PlusAssign() { return getToken(CPP14Parser.PlusAssign, 0); } public TerminalNode MinusAssign() { return getToken(CPP14Parser.MinusAssign, 0); } public TerminalNode StarAssign() { return getToken(CPP14Parser.StarAssign, 0); } public TerminalNode DivAssign() { return getToken(CPP14Parser.DivAssign, 0); } public TerminalNode ModAssign() { return getToken(CPP14Parser.ModAssign, 0); } public TerminalNode XorAssign() { return getToken(CPP14Parser.XorAssign, 0); } public TerminalNode AndAssign() { return getToken(CPP14Parser.AndAssign, 0); } public TerminalNode OrAssign() { return getToken(CPP14Parser.OrAssign, 0); } public TerminalNode LeftShift() { return getToken(CPP14Parser.LeftShift, 0); } public RightShiftContext rightShift() { return getRuleContext(RightShiftContext.class,0); } public RightShiftAssignContext rightShiftAssign() { return getRuleContext(RightShiftAssignContext.class,0); } public TerminalNode LeftShiftAssign() { return getToken(CPP14Parser.LeftShiftAssign, 0); } public TerminalNode Equal() { return getToken(CPP14Parser.Equal, 0); } public TerminalNode NotEqual() { return getToken(CPP14Parser.NotEqual, 0); } public TerminalNode LessEqual() { return getToken(CPP14Parser.LessEqual, 0); } public TerminalNode GreaterEqual() { return getToken(CPP14Parser.GreaterEqual, 0); } public TerminalNode AndAnd() { return getToken(CPP14Parser.AndAnd, 0); } public TerminalNode OrOr() { return getToken(CPP14Parser.OrOr, 0); } public TerminalNode PlusPlus() { return getToken(CPP14Parser.PlusPlus, 0); } public TerminalNode MinusMinus() { return getToken(CPP14Parser.MinusMinus, 0); } public TerminalNode Comma() { return getToken(CPP14Parser.Comma, 0); } public TerminalNode ArrowStar() { return getToken(CPP14Parser.ArrowStar, 0); } public TerminalNode Arrow() { return getToken(CPP14Parser.Arrow, 0); } public TerminalNode LeftParen() { return getToken(CPP14Parser.LeftParen, 0); } public TerminalNode RightParen() { return getToken(CPP14Parser.RightParen, 0); } public OperatorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_operator; } } public final OperatorContext operator() throws RecognitionException { OperatorContext _localctx = new OperatorContext(_ctx, getState()); enterRule(_localctx, 388, RULE_operator); try { setState(2450); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,313,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(2402); match(New); } break; case 2: enterOuterAlt(_localctx, 2); { setState(2403); match(Delete); } break; case 3: enterOuterAlt(_localctx, 3); { setState(2404); match(New); setState(2405); match(LeftBracket); setState(2406); match(RightBracket); } break; case 4: enterOuterAlt(_localctx, 4); { setState(2407); match(Delete); setState(2408); match(LeftBracket); setState(2409); match(RightBracket); } break; case 5: enterOuterAlt(_localctx, 5); { setState(2410); match(Plus); } break; case 6: enterOuterAlt(_localctx, 6); { setState(2411); match(Minus); } break; case 7: enterOuterAlt(_localctx, 7); { setState(2412); match(Star); } break; case 8: enterOuterAlt(_localctx, 8); { setState(2413); match(Div); } break; case 9: enterOuterAlt(_localctx, 9); { setState(2414); match(Mod); } break; case 10: enterOuterAlt(_localctx, 10); { setState(2415); match(Caret); } break; case 11: enterOuterAlt(_localctx, 11); { setState(2416); match(And); } break; case 12: enterOuterAlt(_localctx, 12); { setState(2417); match(Or); } break; case 13: enterOuterAlt(_localctx, 13); { setState(2418); match(Tilde); } break; case 14: enterOuterAlt(_localctx, 14); { setState(2419); match(Not); } break; case 15: enterOuterAlt(_localctx, 15); { setState(2420); match(Assign); } break; case 16: enterOuterAlt(_localctx, 16); { setState(2421); match(Less); } break; case 17: enterOuterAlt(_localctx, 17); { setState(2422); match(Greater); } break; case 18: enterOuterAlt(_localctx, 18); { setState(2423); match(PlusAssign); } break; case 19: enterOuterAlt(_localctx, 19); { setState(2424); match(MinusAssign); } break; case 20: enterOuterAlt(_localctx, 20); { setState(2425); match(StarAssign); } break; case 21: enterOuterAlt(_localctx, 21); { setState(2426); match(DivAssign); } break; case 22: enterOuterAlt(_localctx, 22); { setState(2427); match(ModAssign); } break; case 23: enterOuterAlt(_localctx, 23); { setState(2428); match(XorAssign); } break; case 24: enterOuterAlt(_localctx, 24); { setState(2429); match(AndAssign); } break; case 25: enterOuterAlt(_localctx, 25); { setState(2430); match(OrAssign); } break; case 26: enterOuterAlt(_localctx, 26); { setState(2431); match(LeftShift); } break; case 27: enterOuterAlt(_localctx, 27); { setState(2432); rightShift(); } break; case 28: enterOuterAlt(_localctx, 28); { setState(2433); rightShiftAssign(); } break; case 29: enterOuterAlt(_localctx, 29); { setState(2434); match(LeftShiftAssign); } break; case 30: enterOuterAlt(_localctx, 30); { setState(2435); match(Equal); } break; case 31: enterOuterAlt(_localctx, 31); { setState(2436); match(NotEqual); } break; case 32: enterOuterAlt(_localctx, 32); { setState(2437); match(LessEqual); } break; case 33: enterOuterAlt(_localctx, 33); { setState(2438); match(GreaterEqual); } break; case 34: enterOuterAlt(_localctx, 34); { setState(2439); match(AndAnd); } break; case 35: enterOuterAlt(_localctx, 35); { setState(2440); match(OrOr); } break; case 36: enterOuterAlt(_localctx, 36); { setState(2441); match(PlusPlus); } break; case 37: enterOuterAlt(_localctx, 37); { setState(2442); match(MinusMinus); } break; case 38: enterOuterAlt(_localctx, 38); { setState(2443); match(Comma); } break; case 39: enterOuterAlt(_localctx, 39); { setState(2444); match(ArrowStar); } break; case 40: enterOuterAlt(_localctx, 40); { setState(2445); match(Arrow); } break; case 41: enterOuterAlt(_localctx, 41); { setState(2446); match(LeftParen); setState(2447); match(RightParen); } break; case 42: enterOuterAlt(_localctx, 42); { setState(2448); match(LeftBracket); setState(2449); match(RightBracket); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class LiteralContext extends ParserRuleContext { public TerminalNode Integerliteral() { return getToken(CPP14Parser.Integerliteral, 0); } public TerminalNode Characterliteral() { return getToken(CPP14Parser.Characterliteral, 0); } public TerminalNode Floatingliteral() { return getToken(CPP14Parser.Floatingliteral, 0); } public TerminalNode Stringliteral() { return getToken(CPP14Parser.Stringliteral, 0); } public BooleanliteralContext booleanliteral() { return getRuleContext(BooleanliteralContext.class,0); } public PointerliteralContext pointerliteral() { return getRuleContext(PointerliteralContext.class,0); } public UserdefinedliteralContext userdefinedliteral() { return getRuleContext(UserdefinedliteralContext.class,0); } public LiteralContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_literal; } } public final LiteralContext literal() throws RecognitionException { LiteralContext _localctx = new LiteralContext(_ctx, getState()); enterRule(_localctx, 390, RULE_literal); try { setState(2459); _errHandler.sync(this); switch (_input.LA(1)) { case Integerliteral: enterOuterAlt(_localctx, 1); { setState(2452); match(Integerliteral); } break; case Characterliteral: enterOuterAlt(_localctx, 2); { setState(2453); match(Characterliteral); } break; case Floatingliteral: enterOuterAlt(_localctx, 3); { setState(2454); match(Floatingliteral); } break; case Stringliteral: enterOuterAlt(_localctx, 4); { setState(2455); match(Stringliteral); } break; case False: case True: enterOuterAlt(_localctx, 5); { setState(2456); booleanliteral(); } break; case Nullptr: enterOuterAlt(_localctx, 6); { setState(2457); pointerliteral(); } break; case Userdefinedintegerliteral: case Userdefinedfloatingliteral: case Userdefinedstringliteral: case Userdefinedcharacterliteral: enterOuterAlt(_localctx, 7); { setState(2458); userdefinedliteral(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class BooleanliteralContext extends ParserRuleContext { public TerminalNode False() { return getToken(CPP14Parser.False, 0); } public TerminalNode True() { return getToken(CPP14Parser.True, 0); } public BooleanliteralContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_booleanliteral; } } public final BooleanliteralContext booleanliteral() throws RecognitionException { BooleanliteralContext _localctx = new BooleanliteralContext(_ctx, getState()); enterRule(_localctx, 392, RULE_booleanliteral); int _la; try { enterOuterAlt(_localctx, 1); { setState(2461); _la = _input.LA(1); if ( !(_la==False || _la==True) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PointerliteralContext extends ParserRuleContext { public TerminalNode Nullptr() { return getToken(CPP14Parser.Nullptr, 0); } public PointerliteralContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_pointerliteral; } } public final PointerliteralContext pointerliteral() throws RecognitionException { PointerliteralContext _localctx = new PointerliteralContext(_ctx, getState()); enterRule(_localctx, 394, RULE_pointerliteral); try { enterOuterAlt(_localctx, 1); { setState(2463); match(Nullptr); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UserdefinedliteralContext extends ParserRuleContext { public TerminalNode Userdefinedintegerliteral() { return getToken(CPP14Parser.Userdefinedintegerliteral, 0); } public TerminalNode Userdefinedfloatingliteral() { return getToken(CPP14Parser.Userdefinedfloatingliteral, 0); } public TerminalNode Userdefinedstringliteral() { return getToken(CPP14Parser.Userdefinedstringliteral, 0); } public TerminalNode Userdefinedcharacterliteral() { return getToken(CPP14Parser.Userdefinedcharacterliteral, 0); } public UserdefinedliteralContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_userdefinedliteral; } } public final UserdefinedliteralContext userdefinedliteral() throws RecognitionException { UserdefinedliteralContext _localctx = new UserdefinedliteralContext(_ctx, getState()); enterRule(_localctx, 396, RULE_userdefinedliteral); int _la; try { enterOuterAlt(_localctx, 1); { setState(2465); _la = _input.LA(1); if ( !(((((_la - 134)) & ~0x3f) == 0 && ((1L << (_la - 134)) & ((1L << (Userdefinedintegerliteral - 134)) | (1L << (Userdefinedfloatingliteral - 134)) | (1L << (Userdefinedstringliteral - 134)) | (1L << (Userdefinedcharacterliteral - 134)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) { switch (ruleIndex) { case 5: return nestednamespecifier_sempred((NestednamespecifierContext)_localctx, predIndex); case 10: return capturelist_sempred((CapturelistContext)_localctx, predIndex); case 15: return postfixexpression_sempred((PostfixexpressionContext)_localctx, predIndex); case 24: return noptrnewdeclarator_sempred((NoptrnewdeclaratorContext)_localctx, predIndex); case 29: return pmexpression_sempred((PmexpressionContext)_localctx, predIndex); case 30: return multiplicativeexpression_sempred((MultiplicativeexpressionContext)_localctx, predIndex); case 31: return additiveexpression_sempred((AdditiveexpressionContext)_localctx, predIndex); case 32: return shiftexpression_sempred((ShiftexpressionContext)_localctx, predIndex); case 33: return relationalexpression_sempred((RelationalexpressionContext)_localctx, predIndex); case 34: return equalityexpression_sempred((EqualityexpressionContext)_localctx, predIndex); case 35: return andexpression_sempred((AndexpressionContext)_localctx, predIndex); case 36: return exclusiveorexpression_sempred((ExclusiveorexpressionContext)_localctx, predIndex); case 37: return inclusiveorexpression_sempred((InclusiveorexpressionContext)_localctx, predIndex); case 38: return logicalandexpression_sempred((LogicalandexpressionContext)_localctx, predIndex); case 39: return logicalorexpression_sempred((LogicalorexpressionContext)_localctx, predIndex); case 43: return expression_sempred((ExpressionContext)_localctx, predIndex); case 49: return statementseq_sempred((StatementseqContext)_localctx, predIndex); case 58: return declarationseq_sempred((DeclarationseqContext)_localctx, predIndex); case 85: return enumeratorlist_sempred((EnumeratorlistContext)_localctx, predIndex); case 103: return attributespecifierseq_sempred((AttributespecifierseqContext)_localctx, predIndex); case 106: return attributelist_sempred((AttributelistContext)_localctx, predIndex); case 112: return balancedtokenseq_sempred((BalancedtokenseqContext)_localctx, predIndex); case 114: return initdeclaratorlist_sempred((InitdeclaratorlistContext)_localctx, predIndex); case 118: return noptrdeclarator_sempred((NoptrdeclaratorContext)_localctx, predIndex); case 129: return noptrabstractdeclarator_sempred((NoptrabstractdeclaratorContext)_localctx, predIndex); case 131: return noptrabstractpackdeclarator_sempred((NoptrabstractpackdeclaratorContext)_localctx, predIndex); case 133: return parameterdeclarationlist_sempred((ParameterdeclarationlistContext)_localctx, predIndex); case 140: return initializerlist_sempred((InitializerlistContext)_localctx, predIndex); case 150: return memberdeclaratorlist_sempred((MemberdeclaratorlistContext)_localctx, predIndex); case 152: return virtspecifierseq_sempred((VirtspecifierseqContext)_localctx, predIndex); case 156: return basespecifierlist_sempred((BasespecifierlistContext)_localctx, predIndex); case 171: return templateparameterlist_sempred((TemplateparameterlistContext)_localctx, predIndex); case 177: return templateargumentlist_sempred((TemplateargumentlistContext)_localctx, predIndex); case 190: return typeidlist_sempred((TypeidlistContext)_localctx, predIndex); } return true; } private boolean nestednamespecifier_sempred(NestednamespecifierContext _localctx, int predIndex) { switch (predIndex) { case 0: return precpred(_ctx, 2); case 1: return precpred(_ctx, 1); } return true; } private boolean capturelist_sempred(CapturelistContext _localctx, int predIndex) { switch (predIndex) { case 2: return precpred(_ctx, 1); } return true; } private boolean postfixexpression_sempred(PostfixexpressionContext _localctx, int predIndex) { switch (predIndex) { case 3: return precpred(_ctx, 19); case 4: return precpred(_ctx, 18); case 5: return precpred(_ctx, 17); case 6: return precpred(_ctx, 12); case 7: return precpred(_ctx, 11); case 8: return precpred(_ctx, 10); case 9: return precpred(_ctx, 9); case 10: return precpred(_ctx, 8); case 11: return precpred(_ctx, 7); } return true; } private boolean noptrnewdeclarator_sempred(NoptrnewdeclaratorContext _localctx, int predIndex) { switch (predIndex) { case 12: return precpred(_ctx, 1); } return true; } private boolean pmexpression_sempred(PmexpressionContext _localctx, int predIndex) { switch (predIndex) { case 13: return precpred(_ctx, 2); case 14: return precpred(_ctx, 1); } return true; } private boolean multiplicativeexpression_sempred(MultiplicativeexpressionContext _localctx, int predIndex) { switch (predIndex) { case 15: return precpred(_ctx, 3); case 16: return precpred(_ctx, 2); case 17: return precpred(_ctx, 1); } return true; } private boolean additiveexpression_sempred(AdditiveexpressionContext _localctx, int predIndex) { switch (predIndex) { case 18: return precpred(_ctx, 2); case 19: return precpred(_ctx, 1); } return true; } private boolean shiftexpression_sempred(ShiftexpressionContext _localctx, int predIndex) { switch (predIndex) { case 20: return precpred(_ctx, 2); case 21: return precpred(_ctx, 1); } return true; } private boolean relationalexpression_sempred(RelationalexpressionContext _localctx, int predIndex) { switch (predIndex) { case 22: return precpred(_ctx, 4); case 23: return precpred(_ctx, 3); case 24: return precpred(_ctx, 2); case 25: return precpred(_ctx, 1); } return true; } private boolean equalityexpression_sempred(EqualityexpressionContext _localctx, int predIndex) { switch (predIndex) { case 26: return precpred(_ctx, 2); case 27: return precpred(_ctx, 1); } return true; } private boolean andexpression_sempred(AndexpressionContext _localctx, int predIndex) { switch (predIndex) { case 28: return precpred(_ctx, 1); } return true; } private boolean exclusiveorexpression_sempred(ExclusiveorexpressionContext _localctx, int predIndex) { switch (predIndex) { case 29: return precpred(_ctx, 1); } return true; } private boolean inclusiveorexpression_sempred(InclusiveorexpressionContext _localctx, int predIndex) { switch (predIndex) { case 30: return precpred(_ctx, 1); } return true; } private boolean logicalandexpression_sempred(LogicalandexpressionContext _localctx, int predIndex) { switch (predIndex) { case 31: return precpred(_ctx, 1); } return true; } private boolean logicalorexpression_sempred(LogicalorexpressionContext _localctx, int predIndex) { switch (predIndex) { case 32: return precpred(_ctx, 1); } return true; } private boolean expression_sempred(ExpressionContext _localctx, int predIndex) { switch (predIndex) { case 33: return precpred(_ctx, 1); } return true; } private boolean statementseq_sempred(StatementseqContext _localctx, int predIndex) { switch (predIndex) { case 34: return precpred(_ctx, 1); } return true; } private boolean declarationseq_sempred(DeclarationseqContext _localctx, int predIndex) { switch (predIndex) { case 35: return precpred(_ctx, 1); } return true; } private boolean enumeratorlist_sempred(EnumeratorlistContext _localctx, int predIndex) { switch (predIndex) { case 36: return precpred(_ctx, 1); } return true; } private boolean attributespecifierseq_sempred(AttributespecifierseqContext _localctx, int predIndex) { switch (predIndex) { case 37: return precpred(_ctx, 1); } return true; } private boolean attributelist_sempred(AttributelistContext _localctx, int predIndex) { switch (predIndex) { case 38: return precpred(_ctx, 3); case 39: return precpred(_ctx, 1); } return true; } private boolean balancedtokenseq_sempred(BalancedtokenseqContext _localctx, int predIndex) { switch (predIndex) { case 40: return precpred(_ctx, 1); } return true; } private boolean initdeclaratorlist_sempred(InitdeclaratorlistContext _localctx, int predIndex) { switch (predIndex) { case 41: return precpred(_ctx, 1); } return true; } private boolean noptrdeclarator_sempred(NoptrdeclaratorContext _localctx, int predIndex) { switch (predIndex) { case 42: return precpred(_ctx, 3); case 43: return precpred(_ctx, 2); } return true; } private boolean noptrabstractdeclarator_sempred(NoptrabstractdeclaratorContext _localctx, int predIndex) { switch (predIndex) { case 44: return precpred(_ctx, 5); case 45: return precpred(_ctx, 3); } return true; } private boolean noptrabstractpackdeclarator_sempred(NoptrabstractpackdeclaratorContext _localctx, int predIndex) { switch (predIndex) { case 46: return precpred(_ctx, 3); case 47: return precpred(_ctx, 2); } return true; } private boolean parameterdeclarationlist_sempred(ParameterdeclarationlistContext _localctx, int predIndex) { switch (predIndex) { case 48: return precpred(_ctx, 1); } return true; } private boolean initializerlist_sempred(InitializerlistContext _localctx, int predIndex) { switch (predIndex) { case 49: return precpred(_ctx, 1); } return true; } private boolean memberdeclaratorlist_sempred(MemberdeclaratorlistContext _localctx, int predIndex) { switch (predIndex) { case 50: return precpred(_ctx, 1); } return true; } private boolean virtspecifierseq_sempred(VirtspecifierseqContext _localctx, int predIndex) { switch (predIndex) { case 51: return precpred(_ctx, 1); } return true; } private boolean basespecifierlist_sempred(BasespecifierlistContext _localctx, int predIndex) { switch (predIndex) { case 52: return precpred(_ctx, 1); } return true; } private boolean templateparameterlist_sempred(TemplateparameterlistContext _localctx, int predIndex) { switch (predIndex) { case 53: return precpred(_ctx, 1); } return true; } private boolean templateargumentlist_sempred(TemplateargumentlistContext _localctx, int predIndex) { switch (predIndex) { case 54: return precpred(_ctx, 1); } return true; } private boolean typeidlist_sempred(TypeidlistContext _localctx, int predIndex) { switch (predIndex) { case 55: return precpred(_ctx, 1); } return true; } private static final int _serializedATNSegments = 2; private static final String _serializedATNSegment0 = "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u008f\u09a6\4\2\t"+ "\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+ "\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+ "\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+ "\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+ "\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+ ",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+ "\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\4<\t<\4=\t="+ "\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I"+ "\tI\4J\tJ\4K\tK\4L\tL\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT"+ "\4U\tU\4V\tV\4W\tW\4X\tX\4Y\tY\4Z\tZ\4[\t[\4\\\t\\\4]\t]\4^\t^\4_\t_\4"+ "`\t`\4a\ta\4b\tb\4c\tc\4d\td\4e\te\4f\tf\4g\tg\4h\th\4i\ti\4j\tj\4k\t"+ "k\4l\tl\4m\tm\4n\tn\4o\to\4p\tp\4q\tq\4r\tr\4s\ts\4t\tt\4u\tu\4v\tv\4"+ "w\tw\4x\tx\4y\ty\4z\tz\4{\t{\4|\t|\4}\t}\4~\t~\4\177\t\177\4\u0080\t\u0080"+ "\4\u0081\t\u0081\4\u0082\t\u0082\4\u0083\t\u0083\4\u0084\t\u0084\4\u0085"+ "\t\u0085\4\u0086\t\u0086\4\u0087\t\u0087\4\u0088\t\u0088\4\u0089\t\u0089"+ "\4\u008a\t\u008a\4\u008b\t\u008b\4\u008c\t\u008c\4\u008d\t\u008d\4\u008e"+ "\t\u008e\4\u008f\t\u008f\4\u0090\t\u0090\4\u0091\t\u0091\4\u0092\t\u0092"+ "\4\u0093\t\u0093\4\u0094\t\u0094\4\u0095\t\u0095\4\u0096\t\u0096\4\u0097"+ "\t\u0097\4\u0098\t\u0098\4\u0099\t\u0099\4\u009a\t\u009a\4\u009b\t\u009b"+ "\4\u009c\t\u009c\4\u009d\t\u009d\4\u009e\t\u009e\4\u009f\t\u009f\4\u00a0"+ "\t\u00a0\4\u00a1\t\u00a1\4\u00a2\t\u00a2\4\u00a3\t\u00a3\4\u00a4\t\u00a4"+ "\4\u00a5\t\u00a5\4\u00a6\t\u00a6\4\u00a7\t\u00a7\4\u00a8\t\u00a8\4\u00a9"+ "\t\u00a9\4\u00aa\t\u00aa\4\u00ab\t\u00ab\4\u00ac\t\u00ac\4\u00ad\t\u00ad"+ "\4\u00ae\t\u00ae\4\u00af\t\u00af\4\u00b0\t\u00b0\4\u00b1\t\u00b1\4\u00b2"+ "\t\u00b2\4\u00b3\t\u00b3\4\u00b4\t\u00b4\4\u00b5\t\u00b5\4\u00b6\t\u00b6"+ "\4\u00b7\t\u00b7\4\u00b8\t\u00b8\4\u00b9\t\u00b9\4\u00ba\t\u00ba\4\u00bb"+ "\t\u00bb\4\u00bc\t\u00bc\4\u00bd\t\u00bd\4\u00be\t\u00be\4\u00bf\t\u00bf"+ "\4\u00c0\t\u00c0\4\u00c1\t\u00c1\4\u00c2\t\u00c2\4\u00c3\t\u00c3\4\u00c4"+ "\t\u00c4\4\u00c5\t\u00c5\4\u00c6\t\u00c6\4\u00c7\t\u00c7\4\u00c8\t\u00c8"+ "\3\2\5\2\u0192\n\2\3\2\3\2\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\5\3\u019e\n"+ "\3\3\4\3\4\5\4\u01a2\n\4\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\3\5\5\5\u01ad"+ "\n\5\3\6\3\6\5\6\u01b1\n\6\3\6\3\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7"+ "\3\7\3\7\5\7\u01c0\n\7\3\7\3\7\3\7\3\7\3\7\5\7\u01c7\n\7\3\7\3\7\3\7\7"+ "\7\u01cc\n\7\f\7\16\7\u01cf\13\7\3\b\3\b\5\b\u01d3\n\b\3\b\3\b\3\t\3\t"+ "\5\t\u01d9\n\t\3\t\3\t\3\n\3\n\3\n\3\n\3\n\3\n\5\n\u01e3\n\n\3\13\3\13"+ "\3\f\3\f\3\f\5\f\u01ea\n\f\3\f\3\f\3\f\3\f\5\f\u01f0\n\f\7\f\u01f2\n\f"+ "\f\f\16\f\u01f5\13\f\3\r\3\r\5\r\u01f9\n\r\3\16\3\16\3\16\3\16\5\16\u01ff"+ "\n\16\3\17\3\17\3\17\3\17\3\17\5\17\u0206\n\17\3\20\3\20\3\20\3\20\5\20"+ "\u020c\n\20\3\20\5\20\u020f\n\20\3\20\5\20\u0212\n\20\3\20\5\20\u0215"+ "\n\20\3\21\3\21\3\21\3\21\3\21\5\21\u021c\n\21\3\21\3\21\3\21\3\21\3\21"+ "\5\21\u0223\n\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21"+ "\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21"+ "\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21"+ "\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\5\21\u0257\n\21"+ "\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\5\21"+ "\u0266\n\21\3\21\3\21\3\21\3\21\5\21\u026c\n\21\3\21\3\21\3\21\3\21\5"+ "\21\u0272\n\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21"+ "\7\21\u027f\n\21\f\21\16\21\u0282\13\21\3\22\3\22\3\23\5\23\u0287\n\23"+ "\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\5\23"+ "\u0296\n\23\3\23\3\23\3\23\3\23\5\23\u029c\n\23\3\24\3\24\3\24\3\24\3"+ "\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3"+ "\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\5\24\u02ba\n\24\3\25"+ "\3\25\3\26\5\26\u02bf\n\26\3\26\3\26\5\26\u02c3\n\26\3\26\3\26\5\26\u02c7"+ "\n\26\3\26\5\26\u02ca\n\26\3\26\3\26\5\26\u02ce\n\26\3\26\3\26\3\26\3"+ "\26\5\26\u02d4\n\26\5\26\u02d6\n\26\3\27\3\27\3\27\3\27\3\30\3\30\5\30"+ "\u02de\n\30\3\31\3\31\5\31\u02e2\n\31\3\31\5\31\u02e5\n\31\3\32\3\32\3"+ "\32\3\32\3\32\5\32\u02ec\n\32\3\32\3\32\3\32\3\32\3\32\5\32\u02f3\n\32"+ "\7\32\u02f5\n\32\f\32\16\32\u02f8\13\32\3\33\3\33\5\33\u02fc\n\33\3\33"+ "\3\33\5\33\u0300\n\33\3\34\5\34\u0303\n\34\3\34\3\34\3\34\5\34\u0308\n"+ "\34\3\34\3\34\3\34\3\34\5\34\u030e\n\34\3\35\3\35\3\35\3\35\3\35\3\36"+ "\3\36\3\36\3\36\3\36\3\36\5\36\u031b\n\36\3\37\3\37\3\37\3\37\3\37\3\37"+ "\3\37\3\37\3\37\7\37\u0326\n\37\f\37\16\37\u0329\13\37\3 \3 \3 \3 \3 "+ "\3 \3 \3 \3 \3 \3 \3 \7 \u0337\n \f \16 \u033a\13 \3!\3!\3!\3!\3!\3!\3"+ "!\3!\3!\7!\u0345\n!\f!\16!\u0348\13!\3\"\3\"\3\"\3\"\3\"\3\"\3\"\3\"\3"+ "\"\3\"\7\"\u0354\n\"\f\"\16\"\u0357\13\"\3#\3#\3#\3#\3#\3#\3#\3#\3#\3"+ "#\3#\3#\3#\3#\3#\7#\u0368\n#\f#\16#\u036b\13#\3$\3$\3$\3$\3$\3$\3$\3$"+ "\3$\7$\u0376\n$\f$\16$\u0379\13$\3%\3%\3%\3%\3%\3%\7%\u0381\n%\f%\16%"+ "\u0384\13%\3&\3&\3&\3&\3&\3&\7&\u038c\n&\f&\16&\u038f\13&\3\'\3\'\3\'"+ "\3\'\3\'\3\'\7\'\u0397\n\'\f\'\16\'\u039a\13\'\3(\3(\3(\3(\3(\3(\7(\u03a2"+ "\n(\f(\16(\u03a5\13(\3)\3)\3)\3)\3)\3)\7)\u03ad\n)\f)\16)\u03b0\13)\3"+ "*\3*\3*\3*\3*\3*\3*\5*\u03b9\n*\3+\3+\3+\3+\3+\3+\5+\u03c1\n+\3,\3,\3"+ ",\3,\3,\3,\3,\3,\3,\3,\3,\5,\u03ce\n,\3-\3-\3-\3-\3-\3-\7-\u03d6\n-\f"+ "-\16-\u03d9\13-\3.\3.\3/\3/\5/\u03df\n/\3/\3/\5/\u03e3\n/\3/\3/\5/\u03e7"+ "\n/\3/\3/\5/\u03eb\n/\3/\3/\5/\u03ef\n/\3/\3/\3/\5/\u03f4\n/\3/\5/\u03f7"+ "\n/\3\60\5\60\u03fa\n\60\3\60\3\60\3\60\3\60\5\60\u0400\n\60\3\60\3\60"+ "\3\60\3\60\3\60\3\60\5\60\u0408\n\60\3\60\3\60\3\60\5\60\u040d\n\60\3"+ "\61\5\61\u0410\n\61\3\61\3\61\3\62\3\62\5\62\u0416\n\62\3\62\3\62\3\63"+ "\3\63\3\63\3\63\3\63\7\63\u041f\n\63\f\63\16\63\u0422\13\63\3\64\3\64"+ "\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64\3\64"+ "\3\64\3\64\3\64\3\64\5\64\u0438\n\64\3\65\3\65\5\65\u043c\n\65\3\65\3"+ "\65\3\65\3\65\3\65\3\65\5\65\u0444\n\65\3\65\3\65\3\65\3\65\5\65\u044a"+ "\n\65\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66"+ "\3\66\3\66\3\66\3\66\3\66\5\66\u045e\n\66\3\66\3\66\5\66\u0462\n\66\3"+ "\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\5\66\u046f\n\66"+ "\3\67\3\67\5\67\u0473\n\67\38\58\u0476\n8\38\38\38\39\39\59\u047d\n9\3"+ ":\3:\3:\3:\3:\3:\5:\u0485\n:\3:\3:\3:\3:\3:\3:\3:\3:\5:\u048f\n:\3;\3"+ ";\3<\3<\3<\3<\3<\7<\u0498\n<\f<\16<\u049b\13<\3=\3=\3=\3=\3=\3=\3=\3="+ "\3=\5=\u04a6\n=\3>\3>\3>\3>\3>\3>\3>\3>\5>\u04b0\n>\3?\3?\3?\5?\u04b5"+ "\n?\3?\3?\3?\3?\3@\5@\u04bc\n@\3@\5@\u04bf\n@\3@\3@\3@\5@\u04c4\n@\3@"+ "\3@\3@\5@\u04c9\n@\3A\3A\3A\3A\3A\3A\3A\3A\3B\3B\3C\3C\3C\3D\3D\3D\3D"+ "\3D\3D\5D\u04de\nD\3E\3E\5E\u04e2\nE\3E\3E\3E\5E\u04e7\nE\3F\3F\3G\3G"+ "\3H\3H\3I\3I\3I\5I\u04f2\nI\3J\3J\3J\3J\5J\u04f8\nJ\3K\3K\5K\u04fc\nK"+ "\3K\3K\3K\5K\u0501\nK\3L\3L\5L\u0505\nL\3L\3L\3L\5L\u050a\nL\3M\5M\u050d"+ "\nM\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\3M\5M\u0523"+ "\nM\3N\3N\3N\3N\5N\u0529\nN\3O\3O\3O\3O\3O\3O\3O\3O\3O\5O\u0534\nO\3P"+ "\3P\5P\u0538\nP\3P\5P\u053b\nP\3P\3P\3P\3P\3P\3P\3P\3P\5P\u0545\nP\3P"+ "\3P\3P\3P\5P\u054b\nP\3P\5P\u054e\nP\3Q\3Q\3R\3R\3R\5R\u0555\nR\3R\3R"+ "\3R\3R\3R\3R\3R\3R\5R\u055f\nR\3S\3S\5S\u0563\nS\3S\5S\u0566\nS\3S\5S"+ "\u0569\nS\3S\3S\5S\u056d\nS\3S\3S\3S\5S\u0572\nS\5S\u0574\nS\3T\3T\5T"+ "\u0578\nT\3T\3T\5T\u057c\nT\3T\3T\3U\3U\3U\3U\3U\5U\u0585\nU\3V\3V\3V"+ "\3W\3W\3W\3W\3W\3W\7W\u0590\nW\fW\16W\u0593\13W\3X\3X\3X\3X\3X\5X\u059a"+ "\nX\3Y\3Y\3Z\3Z\5Z\u05a0\nZ\3[\3[\3\\\3\\\5\\\u05a6\n\\\3]\3]\5]\u05aa"+ "\n]\3^\5^\u05ad\n^\3^\3^\3^\3^\3^\3^\3_\5_\u05b6\n_\3_\3_\3_\3_\3_\3_"+ "\3`\5`\u05bf\n`\3`\3`\3`\3`\3`\3a\5a\u05c7\na\3b\3b\3c\3c\3c\3c\3c\3c"+ "\3d\5d\u05d2\nd\3d\3d\3e\3e\5e\u05d8\ne\3e\3e\3e\3e\3e\3e\3e\3e\3e\5e"+ "\u05e3\ne\3f\5f\u05e6\nf\3f\3f\3f\5f\u05eb\nf\3f\3f\3f\3g\3g\3g\3g\3g"+ "\3g\3h\3h\3h\3h\5h\u05fa\nh\3h\3h\3h\3h\5h\u0600\nh\3i\3i\3i\3i\3i\7i"+ "\u0607\ni\fi\16i\u060a\13i\3j\3j\3j\3j\3j\3j\3j\5j\u0613\nj\3k\3k\3k\3"+ "k\5k\u0619\nk\3k\3k\3k\3k\3k\3k\5k\u0621\nk\3k\3k\5k\u0625\nk\3l\3l\5"+ "l\u0629\nl\3l\3l\3l\5l\u062e\nl\3l\3l\3l\5l\u0633\nl\3l\3l\3l\3l\3l\7"+ "l\u063a\nl\fl\16l\u063d\13l\3m\3m\5m\u0641\nm\3n\3n\5n\u0645\nn\3o\3o"+ "\3o\3o\3p\3p\3q\3q\3q\3q\3r\3r\5r\u0653\nr\3r\3r\7r\u0657\nr\fr\16r\u065a"+ "\13r\3s\3s\3s\3s\3s\3s\3s\3s\3s\3s\3s\3s\5s\u0668\ns\3t\3t\3t\3t\3t\3"+ "t\7t\u0670\nt\ft\16t\u0673\13t\3u\3u\5u\u0677\nu\3v\3v\3v\3v\3v\5v\u067e"+ "\nv\3w\3w\3w\3w\5w\u0684\nw\3x\3x\3x\5x\u0689\nx\3x\3x\3x\3x\5x\u068f"+ "\nx\3x\3x\3x\3x\3x\5x\u0696\nx\3x\3x\5x\u069a\nx\7x\u069c\nx\fx\16x\u069f"+ "\13x\3y\3y\3y\3y\5y\u06a5\ny\3y\5y\u06a8\ny\3y\5y\u06ab\ny\3y\5y\u06ae"+ "\ny\3z\3z\3z\5z\u06b3\nz\3{\3{\5{\u06b7\n{\3{\5{\u06ba\n{\3{\3{\5{\u06be"+ "\n{\3{\3{\5{\u06c2\n{\3{\3{\3{\5{\u06c7\n{\3{\5{\u06ca\n{\5{\u06cc\n{"+ "\3|\3|\5|\u06d0\n|\3}\3}\3~\3~\3\177\5\177\u06d7\n\177\3\177\3\177\3\u0080"+ "\3\u0080\5\u0080\u06dd\n\u0080\3\u0081\3\u0081\5\u0081\u06e1\n\u0081\3"+ "\u0081\3\u0081\3\u0081\3\u0081\5\u0081\u06e7\n\u0081\3\u0082\3\u0082\3"+ "\u0082\5\u0082\u06ec\n\u0082\5\u0082\u06ee\n\u0082\3\u0083\3\u0083\3\u0083"+ "\3\u0083\5\u0083\u06f4\n\u0083\3\u0083\3\u0083\5\u0083\u06f8\n\u0083\3"+ "\u0083\3\u0083\3\u0083\3\u0083\5\u0083\u06fe\n\u0083\3\u0083\3\u0083\3"+ "\u0083\3\u0083\3\u0083\5\u0083\u0705\n\u0083\3\u0083\3\u0083\5\u0083\u0709"+ "\n\u0083\7\u0083\u070b\n\u0083\f\u0083\16\u0083\u070e\13\u0083\3\u0084"+ "\3\u0084\3\u0084\3\u0084\5\u0084\u0714\n\u0084\3\u0085\3\u0085\3\u0085"+ "\3\u0085\3\u0085\3\u0085\3\u0085\3\u0085\5\u0085\u071e\n\u0085\3\u0085"+ "\3\u0085\5\u0085\u0722\n\u0085\7\u0085\u0724\n\u0085\f\u0085\16\u0085"+ "\u0727\13\u0085\3\u0086\5\u0086\u072a\n\u0086\3\u0086\5\u0086\u072d\n"+ "\u0086\3\u0086\3\u0086\3\u0086\3\u0086\5\u0086\u0733\n\u0086\3\u0087\3"+ "\u0087\3\u0087\3\u0087\3\u0087\3\u0087\7\u0087\u073b\n\u0087\f\u0087\16"+ "\u0087\u073e\13\u0087\3\u0088\5\u0088\u0741\n\u0088\3\u0088\3\u0088\3"+ "\u0088\3\u0088\5\u0088\u0747\n\u0088\3\u0088\3\u0088\3\u0088\3\u0088\3"+ "\u0088\3\u0088\5\u0088\u074f\n\u0088\3\u0088\3\u0088\5\u0088\u0753\n\u0088"+ "\3\u0088\5\u0088\u0756\n\u0088\3\u0088\3\u0088\5\u0088\u075a\n\u0088\3"+ "\u0088\3\u0088\3\u0088\5\u0088\u075f\n\u0088\3\u0089\5\u0089\u0762\n\u0089"+ "\3\u0089\5\u0089\u0765\n\u0089\3\u0089\3\u0089\5\u0089\u0769\n\u0089\3"+ "\u0089\3\u0089\3\u008a\5\u008a\u076e\n\u008a\3\u008a\3\u008a\3\u008a\3"+ "\u008a\3\u008a\3\u008a\3\u008a\3\u008a\5\u008a\u0778\n\u008a\3\u008b\3"+ "\u008b\3\u008b\3\u008b\3\u008b\5\u008b\u077f\n\u008b\3\u008c\3\u008c\3"+ "\u008c\5\u008c\u0784\n\u008c\3\u008d\3\u008d\5\u008d\u0788\n\u008d\3\u008e"+ "\3\u008e\3\u008e\5\u008e\u078d\n\u008e\3\u008e\3\u008e\3\u008e\3\u008e"+ "\5\u008e\u0793\n\u008e\7\u008e\u0795\n\u008e\f\u008e\16\u008e\u0798\13"+ "\u008e\3\u008f\3\u008f\3\u008f\5\u008f\u079d\n\u008f\3\u008f\3\u008f\3"+ "\u008f\3\u008f\5\u008f\u07a3\n\u008f\3\u0090\3\u0090\5\u0090\u07a7\n\u0090"+ "\3\u0091\3\u0091\3\u0091\5\u0091\u07ac\n\u0091\3\u0091\3\u0091\3\u0092"+ "\3\u0092\5\u0092\u07b2\n\u0092\3\u0092\3\u0092\5\u0092\u07b6\n\u0092\3"+ "\u0092\5\u0092\u07b9\n\u0092\3\u0092\3\u0092\5\u0092\u07bd\n\u0092\3\u0092"+ "\5\u0092\u07c0\n\u0092\5\u0092\u07c2\n\u0092\3\u0093\5\u0093\u07c5\n\u0093"+ "\3\u0093\3\u0093\3\u0094\3\u0094\3\u0095\3\u0095\3\u0096\3\u0096\5\u0096"+ "\u07cf\n\u0096\3\u0096\3\u0096\3\u0096\5\u0096\u07d4\n\u0096\5\u0096\u07d6"+ "\n\u0096\3\u0097\5\u0097\u07d9\n\u0097\3\u0097\5\u0097\u07dc\n\u0097\3"+ "\u0097\5\u0097\u07df\n\u0097\3\u0097\3\u0097\3\u0097\3\u0097\3\u0097\3"+ "\u0097\3\u0097\5\u0097\u07e8\n\u0097\3\u0098\3\u0098\3\u0098\3\u0098\3"+ "\u0098\3\u0098\7\u0098\u07f0\n\u0098\f\u0098\16\u0098\u07f3\13\u0098\3"+ "\u0099\3\u0099\5\u0099\u07f7\n\u0099\3\u0099\5\u0099\u07fa\n\u0099\3\u0099"+ "\3\u0099\5\u0099\u07fe\n\u0099\3\u0099\5\u0099\u0801\n\u0099\3\u0099\5"+ "\u0099\u0804\n\u0099\3\u0099\3\u0099\5\u0099\u0808\n\u0099\3\u009a\3\u009a"+ "\3\u009a\3\u009a\3\u009a\7\u009a\u080f\n\u009a\f\u009a\16\u009a\u0812"+ "\13\u009a\3\u009b\3\u009b\3\u009c\3\u009c\3\u009c\3\u009c\3\u009d\3\u009d"+ "\3\u009d\3\u009e\3\u009e\3\u009e\5\u009e\u0820\n\u009e\3\u009e\3\u009e"+ "\3\u009e\3\u009e\5\u009e\u0826\n\u009e\7\u009e\u0828\n\u009e\f\u009e\16"+ "\u009e\u082b\13\u009e\3\u009f\5\u009f\u082e\n\u009f\3\u009f\3\u009f\5"+ "\u009f\u0832\n\u009f\3\u009f\3\u009f\5\u009f\u0836\n\u009f\3\u009f\3\u009f"+ "\5\u009f\u083a\n\u009f\3\u009f\3\u009f\5\u009f\u083e\n\u009f\3\u009f\3"+ "\u009f\5\u009f\u0842\n\u009f\3\u00a0\5\u00a0\u0845\n\u00a0\3\u00a0\3\u00a0"+ "\5\u00a0\u0849\n\u00a0\3\u00a1\3\u00a1\3\u00a2\3\u00a2\3\u00a3\3\u00a3"+ "\3\u00a3\3\u00a4\3\u00a4\5\u00a4\u0854\n\u00a4\3\u00a5\3\u00a5\5\u00a5"+ "\u0858\n\u00a5\3\u00a6\3\u00a6\3\u00a6\3\u00a7\3\u00a7\5\u00a7\u085f\n"+ "\u00a7\3\u00a7\3\u00a7\5\u00a7\u0863\n\u00a7\3\u00a7\3\u00a7\3\u00a7\5"+ "\u00a7\u0868\n\u00a7\3\u00a8\3\u00a8\3\u00a8\5\u00a8\u086d\n\u00a8\3\u00a8"+ "\3\u00a8\3\u00a8\3\u00a8\3\u00a8\5\u00a8\u0874\n\u00a8\3\u00a9\3\u00a9"+ "\5\u00a9\u0878\n\u00a9\3\u00aa\3\u00aa\3\u00aa\3\u00ab\3\u00ab\3\u00ab"+ "\3\u00ab\3\u00ab\5\u00ab\u0882\n\u00ab\3\u00ac\3\u00ac\3\u00ac\3\u00ac"+ "\3\u00ac\3\u00ac\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00ad\3\u00ad\7\u00ad"+ "\u0890\n\u00ad\f\u00ad\16\u00ad\u0893\13\u00ad\3\u00ae\3\u00ae\5\u00ae"+ "\u0897\n\u00ae\3\u00af\3\u00af\5\u00af\u089b\n\u00af\3\u00af\5\u00af\u089e"+ "\n\u00af\3\u00af\3\u00af\5\u00af\u08a2\n\u00af\3\u00af\3\u00af\3\u00af"+ "\3\u00af\5\u00af\u08a8\n\u00af\3\u00af\5\u00af\u08ab\n\u00af\3\u00af\3"+ "\u00af\5\u00af\u08af\n\u00af\3\u00af\3\u00af\3\u00af\3\u00af\3\u00af\3"+ "\u00af\3\u00af\3\u00af\5\u00af\u08b9\n\u00af\3\u00af\5\u00af\u08bc\n\u00af"+ "\3\u00af\3\u00af\3\u00af\3\u00af\3\u00af\3\u00af\5\u00af\u08c4\n\u00af"+ "\3\u00af\3\u00af\3\u00af\5\u00af\u08c9\n\u00af\3\u00b0\3\u00b0\3\u00b0"+ "\5\u00b0\u08ce\n\u00b0\3\u00b0\3\u00b0\3\u00b1\3\u00b1\3\u00b1\3\u00b1"+ "\5\u00b1\u08d6\n\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b1\3\u00b1\5\u00b1"+ "\u08dd\n\u00b1\3\u00b1\3\u00b1\5\u00b1\u08e1\n\u00b1\3\u00b2\3\u00b2\3"+ "\u00b3\3\u00b3\3\u00b3\5\u00b3\u08e8\n\u00b3\3\u00b3\3\u00b3\3\u00b3\3"+ "\u00b3\5\u00b3\u08ee\n\u00b3\7\u00b3\u08f0\n\u00b3\f\u00b3\16\u00b3\u08f3"+ "\13\u00b3\3\u00b4\3\u00b4\3\u00b4\5\u00b4\u08f8\n\u00b4\3\u00b5\3\u00b5"+ "\3\u00b5\3\u00b5\3\u00b5\3\u00b5\3\u00b5\5\u00b5\u0901\n\u00b5\3\u00b5"+ "\3\u00b5\5\u00b5\u0905\n\u00b5\3\u00b6\5\u00b6\u0908\n\u00b6\3\u00b6\3"+ "\u00b6\3\u00b6\3\u00b7\3\u00b7\3\u00b7\3\u00b7\3\u00b7\3\u00b8\3\u00b8"+ "\3\u00b8\3\u00b8\3\u00b9\3\u00b9\5\u00b9\u0918\n\u00b9\3\u00b9\3\u00b9"+ "\3\u00b9\3\u00ba\3\u00ba\5\u00ba\u091f\n\u00ba\3\u00bb\3\u00bb\3\u00bb"+ "\3\u00bb\3\u00bb\3\u00bb\3\u00bc\5\u00bc\u0928\n\u00bc\3\u00bc\3\u00bc"+ "\3\u00bc\3\u00bc\5\u00bc\u092e\n\u00bc\3\u00bc\3\u00bc\5\u00bc\u0932\n"+ "\u00bc\3\u00bc\5\u00bc\u0935\n\u00bc\3\u00bd\3\u00bd\5\u00bd\u0939\n\u00bd"+ "\3\u00be\3\u00be\5\u00be\u093d\n\u00be\3\u00bf\3\u00bf\3\u00bf\5\u00bf"+ "\u0942\n\u00bf\3\u00bf\3\u00bf\3\u00c0\3\u00c0\3\u00c0\5\u00c0\u0949\n"+ "\u00c0\3\u00c0\3\u00c0\3\u00c0\3\u00c0\5\u00c0\u094f\n\u00c0\7\u00c0\u0951"+ "\n\u00c0\f\u00c0\16\u00c0\u0954\13\u00c0\3\u00c1\3\u00c1\3\u00c1\3\u00c1"+ "\3\u00c1\3\u00c1\5\u00c1\u095c\n\u00c1\3\u00c2\3\u00c2\3\u00c2\3\u00c3"+ "\3\u00c3\3\u00c3\3\u00c3\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4"+ "\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4"+ "\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4"+ "\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4"+ "\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4"+ "\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\3\u00c4\5\u00c4\u0995\n\u00c4"+ "\3\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c5\3\u00c5\5\u00c5\u099e"+ "\n\u00c5\3\u00c6\3\u00c6\3\u00c7\3\u00c7\3\u00c8\3\u00c8\3\u00c8\2$\f"+ "\26 \62<>@BDFHJLNPXdv\u00ac\u00d0\u00d6\u00e2\u00e6\u00ee\u0104\u0108"+ "\u010c\u011a\u012e\u0132\u013a\u0158\u0164\u017e\u00c9\2\4\6\b\n\f\16"+ "\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTVXZ\\^`bd"+ "fhjlnprtvxz|~\u0080\u0082\u0084\u0086\u0088\u008a\u008c\u008e\u0090\u0092"+ "\u0094\u0096\u0098\u009a\u009c\u009e\u00a0\u00a2\u00a4\u00a6\u00a8\u00aa"+ "\u00ac\u00ae\u00b0\u00b2\u00b4\u00b6\u00b8\u00ba\u00bc\u00be\u00c0\u00c2"+ "\u00c4\u00c6\u00c8\u00ca\u00cc\u00ce\u00d0\u00d2\u00d4\u00d6\u00d8\u00da"+ "\u00dc\u00de\u00e0\u00e2\u00e4\u00e6\u00e8\u00ea\u00ec\u00ee\u00f0\u00f2"+ "\u00f4\u00f6\u00f8\u00fa\u00fc\u00fe\u0100\u0102\u0104\u0106\u0108\u010a"+ "\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122"+ "\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0138\u013a"+ "\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u014a\u014c\u014e\u0150\u0152"+ "\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a"+ "\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u017a\u017c\u017e\u0180\u0182"+ "\u0184\u0186\u0188\u018a\u018c\u018e\2\r\4\2[[__\4\2UW[^\7\2\36\36))\63"+ "\6399@@\5\2\34\34&&JJ\4\2\20\20LL\4\2[[pp\5\2\17\17<<GG\4\2 //\3\2\60"+ "\62\4\2\37\37BB\3\2\u0088\u008b\2\u0ac7\2\u0191\3\2\2\2\4\u019d\3\2\2"+ "\2\6\u01a1\3\2\2\2\b\u01ac\3\2\2\2\n\u01ae\3\2\2\2\f\u01bf\3\2\2\2\16"+ "\u01d0\3\2\2\2\20\u01d6\3\2\2\2\22\u01e2\3\2\2\2\24\u01e4\3\2\2\2\26\u01e6"+ "\3\2\2\2\30\u01f8\3\2\2\2\32\u01fe\3\2\2\2\34\u0205\3\2\2\2\36\u0207\3"+ "\2\2\2 \u0256\3\2\2\2\"\u0283\3\2\2\2$\u029b\3\2\2\2&\u02b9\3\2\2\2(\u02bb"+ "\3\2\2\2*\u02d5\3\2\2\2,\u02d7\3\2\2\2.\u02db\3\2\2\2\60\u02e4\3\2\2\2"+ "\62\u02e6\3\2\2\2\64\u02ff\3\2\2\2\66\u030d\3\2\2\28\u030f\3\2\2\2:\u031a"+ "\3\2\2\2<\u031c\3\2\2\2>\u032a\3\2\2\2@\u033b\3\2\2\2B\u0349\3\2\2\2D"+ "\u0358\3\2\2\2F\u036c\3\2\2\2H\u037a\3\2\2\2J\u0385\3\2\2\2L\u0390\3\2"+ "\2\2N\u039b\3\2\2\2P\u03a6\3\2\2\2R\u03b8\3\2\2\2T\u03c0\3\2\2\2V\u03cd"+ "\3\2\2\2X\u03cf\3\2\2\2Z\u03da\3\2\2\2\\\u03f6\3\2\2\2^\u040c\3\2\2\2"+ "`\u040f\3\2\2\2b\u0413\3\2\2\2d\u0419\3\2\2\2f\u0437\3\2\2\2h\u0449\3"+ "\2\2\2j\u046e\3\2\2\2l\u0472\3\2\2\2n\u0475\3\2\2\2p\u047c\3\2\2\2r\u048e"+ "\3\2\2\2t\u0490\3\2\2\2v\u0492\3\2\2\2x\u04a5\3\2\2\2z\u04af\3\2\2\2|"+ "\u04b1\3\2\2\2~\u04c8\3\2\2\2\u0080\u04ca\3\2\2\2\u0082\u04d2\3\2\2\2"+ "\u0084\u04d4\3\2\2\2\u0086\u04dd\3\2\2\2\u0088\u04e6\3\2\2\2\u008a\u04e8"+ "\3\2\2\2\u008c\u04ea\3\2\2\2\u008e\u04ec\3\2\2\2\u0090\u04f1\3\2\2\2\u0092"+ "\u04f7\3\2\2\2\u0094\u0500\3\2\2\2\u0096\u0509\3\2\2\2\u0098\u0522\3\2"+ "\2\2\u009a\u0528\3\2\2\2\u009c\u0533\3\2\2\2\u009e\u054d\3\2\2\2\u00a0"+ "\u054f\3\2\2\2\u00a2\u055e\3\2\2\2\u00a4\u0573\3\2\2\2\u00a6\u0575\3\2"+ "\2\2\u00a8\u0584\3\2\2\2\u00aa\u0586\3\2\2\2\u00ac\u0589\3\2\2\2\u00ae"+ "\u0599\3\2\2\2\u00b0\u059b\3\2\2\2\u00b2\u059f\3\2\2\2\u00b4\u05a1\3\2"+ "\2\2\u00b6\u05a5\3\2\2\2\u00b8\u05a9\3\2\2\2\u00ba\u05ac\3\2\2\2\u00bc"+ "\u05b5\3\2\2\2\u00be\u05be\3\2\2\2\u00c0\u05c6\3\2\2\2\u00c2\u05c8\3\2"+ "\2\2\u00c4\u05ca\3\2\2\2\u00c6\u05d1\3\2\2\2\u00c8\u05e2\3\2\2\2\u00ca"+ "\u05e5\3\2\2\2\u00cc\u05ef\3\2\2\2\u00ce\u05ff\3\2\2\2\u00d0\u0601\3\2"+ "\2\2\u00d2\u0612\3\2\2\2\u00d4\u0624\3\2\2\2\u00d6\u062d\3\2\2\2\u00d8"+ "\u063e\3\2\2\2\u00da\u0644\3\2\2\2\u00dc\u0646\3\2\2\2\u00de\u064a\3\2"+ "\2\2\u00e0\u064c\3\2\2\2\u00e2\u0650\3\2\2\2\u00e4\u0667\3\2\2\2\u00e6"+ "\u0669\3\2\2\2\u00e8\u0674\3\2\2\2\u00ea\u067d\3\2\2\2\u00ec\u0683\3\2"+ "\2\2\u00ee\u068e\3\2\2\2\u00f0\u06a0\3\2\2\2\u00f2\u06af\3\2\2\2\u00f4"+ "\u06cb\3\2\2\2\u00f6\u06cd\3\2\2\2\u00f8\u06d1\3\2\2\2\u00fa\u06d3\3\2"+ "\2\2\u00fc\u06d6\3\2\2\2\u00fe\u06da\3\2\2\2\u0100\u06e6\3\2\2\2\u0102"+ "\u06ed\3\2\2\2\u0104\u06fd\3\2\2\2\u0106\u0713\3\2\2\2\u0108\u0715\3\2"+ "\2\2\u010a\u0732\3\2\2\2\u010c\u0734\3\2\2\2\u010e\u075e\3\2\2\2\u0110"+ "\u0761\3\2\2\2\u0112\u0777\3\2\2\2\u0114\u077e\3\2\2\2\u0116\u0783\3\2"+ "\2\2\u0118\u0787\3\2\2\2\u011a\u0789\3\2\2\2\u011c\u07a2\3\2\2\2\u011e"+ "\u07a6\3\2\2\2\u0120\u07a8\3\2\2\2\u0122\u07c1\3\2\2\2\u0124\u07c4\3\2"+ "\2\2\u0126\u07c8\3\2\2\2\u0128\u07ca\3\2\2\2\u012a\u07d5\3\2\2\2\u012c"+ "\u07e7\3\2\2\2\u012e\u07e9\3\2\2\2\u0130\u0807\3\2\2\2\u0132\u0809\3\2"+ "\2\2\u0134\u0813\3\2\2\2\u0136\u0815\3\2\2\2\u0138\u0819\3\2\2\2\u013a"+ "\u081c\3\2\2\2\u013c\u0841\3\2\2\2\u013e\u0848\3\2\2\2\u0140\u084a\3\2"+ "\2\2\u0142\u084c\3\2\2\2\u0144\u084e\3\2\2\2\u0146\u0851\3\2\2\2\u0148"+ "\u0855\3\2\2\2\u014a\u0859\3\2\2\2\u014c\u0867\3\2\2\2\u014e\u0873\3\2"+ "\2\2\u0150\u0877\3\2\2\2\u0152\u0879\3\2\2\2\u0154\u0881\3\2\2\2\u0156"+ "\u0883\3\2\2\2\u0158\u0889\3\2\2\2\u015a\u0896\3\2\2\2\u015c\u08c8\3\2"+ "\2\2\u015e\u08ca\3\2\2\2\u0160\u08e0\3\2\2\2\u0162\u08e2\3\2\2\2\u0164"+ "\u08e4\3\2\2\2\u0166\u08f7\3\2\2\2\u0168\u0904\3\2\2\2\u016a\u0907\3\2"+ "\2\2\u016c\u090c\3\2\2\2\u016e\u0911\3\2\2\2\u0170\u0915\3\2\2\2\u0172"+ "\u091c\3\2\2\2\u0174\u0920\3\2\2\2\u0176\u0934\3\2\2\2\u0178\u0936\3\2"+ "\2\2\u017a\u093c\3\2\2\2\u017c\u093e\3\2\2\2\u017e\u0945\3\2\2\2\u0180"+ "\u095b\3\2\2\2\u0182\u095d\3\2\2\2\u0184\u0960\3\2\2\2\u0186\u0994\3\2"+ "\2\2\u0188\u099d\3\2\2\2\u018a\u099f\3\2\2\2\u018c\u09a1\3\2\2\2\u018e"+ "\u09a3\3\2\2\2\u0190\u0192\5v<\2\u0191\u0190\3\2\2\2\u0191\u0192\3\2\2"+ "\2\u0192\u0193\3\2\2\2\u0193\u0194\7\2\2\3\u0194\3\3\2\2\2\u0195\u019e"+ "\5\u0188\u00c5\2\u0196\u019e\7?\2\2\u0197\u0198\7O\2\2\u0198\u0199\5X"+ "-\2\u0199\u019a\7P\2\2\u019a\u019e\3\2\2\2\u019b\u019e\5\6\4\2\u019c\u019e"+ "\5\16\b\2\u019d\u0195\3\2\2\2\u019d\u0196\3\2\2\2\u019d\u0197\3\2\2\2"+ "\u019d\u019b\3\2\2\2\u019d\u019c\3\2\2\2\u019e\5\3\2\2\2\u019f\u01a2\5"+ "\b\5\2\u01a0\u01a2\5\n\6\2\u01a1\u019f\3\2\2\2\u01a1\u01a0\3\2\2\2\u01a2"+ "\7\3\2\2\2\u01a3\u01ad\7~\2\2\u01a4\u01ad\5\u0152\u00aa\2\u01a5\u01ad"+ "\5\u0144\u00a3\2\u01a6\u01ad\5\u0154\u00ab\2\u01a7\u01a8\7]\2\2\u01a8"+ "\u01ad\5\u011e\u0090\2\u01a9\u01aa\7]\2\2\u01aa\u01ad\5\u009cO\2\u01ab"+ "\u01ad\5\u0160\u00b1\2\u01ac\u01a3\3\2\2\2\u01ac\u01a4\3\2\2\2\u01ac\u01a5"+ "\3\2\2\2\u01ac\u01a6\3\2\2\2\u01ac\u01a7\3\2\2\2\u01ac\u01a9\3\2\2\2\u01ac"+ "\u01ab\3\2\2\2\u01ad\t\3\2\2\2\u01ae\u01b0\5\f\7\2\u01af\u01b1\7>\2\2"+ "\u01b0\u01af\3\2\2\2\u01b0\u01b1\3\2\2\2\u01b1\u01b2\3\2\2\2\u01b2\u01b3"+ "\5\b\5\2\u01b3\13\3\2\2\2\u01b4\u01b5\b\7\1\2\u01b5\u01c0\7y\2\2\u01b6"+ "\u01b7\5\u009aN\2\u01b7\u01b8\7y\2\2\u01b8\u01c0\3\2\2\2\u01b9\u01ba\5"+ "\u00b2Z\2\u01ba\u01bb\7y\2\2\u01bb\u01c0\3\2\2\2\u01bc\u01bd\5\u009cO"+ "\2\u01bd\u01be\7y\2\2\u01be\u01c0\3\2\2\2\u01bf\u01b4\3\2\2\2\u01bf\u01b6"+ "\3\2\2\2\u01bf\u01b9\3\2\2\2\u01bf\u01bc\3\2\2\2\u01c0\u01cd\3\2\2\2\u01c1"+ "\u01c2\f\4\2\2\u01c2\u01c3\7~\2\2\u01c3\u01cc\7y\2\2\u01c4\u01c6\f\3\2"+ "\2\u01c5\u01c7\7>\2\2\u01c6\u01c5\3\2\2\2\u01c6\u01c7\3\2\2\2\u01c7\u01c8"+ "\3\2\2\2\u01c8\u01c9\5\u015e\u00b0\2\u01c9\u01ca\7y\2\2\u01ca\u01cc\3"+ "\2\2\2\u01cb\u01c1\3\2\2\2\u01cb\u01c4\3\2\2\2\u01cc\u01cf\3\2\2\2\u01cd"+ "\u01cb\3\2\2\2\u01cd\u01ce\3\2\2\2\u01ce\r\3\2\2\2\u01cf\u01cd\3\2\2\2"+ "\u01d0\u01d2\5\20\t\2\u01d1\u01d3\5\36\20\2\u01d2\u01d1\3\2\2\2\u01d2"+ "\u01d3\3\2\2\2\u01d3\u01d4\3\2\2\2\u01d4\u01d5\5b\62\2\u01d5\17\3\2\2"+ "\2\u01d6\u01d8\7Q\2\2\u01d7\u01d9\5\22\n\2\u01d8\u01d7\3\2\2\2\u01d8\u01d9"+ "\3\2\2\2\u01d9\u01da\3\2\2\2\u01da\u01db\7R\2\2\u01db\21\3\2\2\2\u01dc"+ "\u01e3\5\24\13\2\u01dd\u01e3\5\26\f\2\u01de\u01df\5\24\13\2\u01df\u01e0"+ "\7t\2\2\u01e0\u01e1\5\26\f\2\u01e1\u01e3\3\2\2\2\u01e2\u01dc\3\2\2\2\u01e2"+ "\u01dd\3\2\2\2\u01e2\u01de\3\2\2\2\u01e3\23\3\2\2\2\u01e4\u01e5\t\2\2"+ "\2\u01e5\25\3\2\2\2\u01e6\u01e7\b\f\1\2\u01e7\u01e9\5\30\r\2\u01e8\u01ea"+ "\7}\2\2\u01e9\u01e8\3\2\2\2\u01e9\u01ea\3\2\2\2\u01ea\u01f3\3\2\2\2\u01eb"+ "\u01ec\f\3\2\2\u01ec\u01ed\7t\2\2\u01ed\u01ef\5\30\r\2\u01ee\u01f0\7}"+ "\2\2\u01ef\u01ee\3\2\2\2\u01ef\u01f0\3\2\2\2\u01f0\u01f2\3\2\2\2\u01f1"+ "\u01eb\3\2\2\2\u01f2\u01f5\3\2\2\2\u01f3\u01f1\3\2\2\2\u01f3\u01f4\3\2"+ "\2\2\u01f4\27\3\2\2\2\u01f5\u01f3\3\2\2\2\u01f6\u01f9\5\32\16\2\u01f7"+ "\u01f9\5\34\17\2\u01f8\u01f6\3\2\2\2\u01f8\u01f7\3\2\2\2\u01f9\31\3\2"+ "\2\2\u01fa\u01ff\7~\2\2\u01fb\u01fc\7[\2\2\u01fc\u01ff\7~\2\2\u01fd\u01ff"+ "\7?\2\2\u01fe\u01fa\3\2\2\2\u01fe\u01fb\3\2\2\2\u01fe\u01fd\3\2\2\2\u01ff"+ "\33\3\2\2\2\u0200\u0201\7~\2\2\u0201\u0206\5\u0114\u008b\2\u0202\u0203"+ "\7[\2\2\u0203\u0204\7~\2\2\u0204\u0206\5\u0114\u008b\2\u0205\u0200\3\2"+ "\2\2\u0205\u0202\3\2\2\2\u0206\35\3\2\2\2\u0207\u0208\7O\2\2\u0208\u0209"+ "\5\u010a\u0086\2\u0209\u020b\7P\2\2\u020a\u020c\7)\2\2\u020b\u020a\3\2"+ "\2\2\u020b\u020c\3\2\2\2\u020c\u020e\3\2\2\2\u020d\u020f\5\u017a\u00be"+ "\2\u020e\u020d\3\2\2\2\u020e\u020f\3\2\2\2\u020f\u0211\3\2\2\2\u0210\u0212"+ "\5\u00d0i\2\u0211\u0210\3\2\2\2\u0211\u0212\3\2\2\2\u0212\u0214\3\2\2"+ "\2\u0213\u0215\5\u00f2z\2\u0214\u0213\3\2\2\2\u0214\u0215\3\2\2\2\u0215"+ "\37\3\2\2\2\u0216\u0217\b\21\1\2\u0217\u0257\5\4\3\2\u0218\u0219\5\u0098"+ "M\2\u0219\u021b\7O\2\2\u021a\u021c\5\"\22\2\u021b\u021a\3\2\2\2\u021b"+ "\u021c\3\2\2\2\u021c\u021d\3\2\2\2\u021d\u021e\7P\2\2\u021e\u0257\3\2"+ "\2\2\u021f\u0220\5\u0168\u00b5\2\u0220\u0222\7O\2\2\u0221\u0223\5\"\22"+ "\2\u0222\u0221\3\2\2\2\u0222\u0223\3\2\2\2\u0223\u0224\3\2\2\2\u0224\u0225"+ "\7P\2\2\u0225\u0257\3\2\2\2\u0226\u0227\5\u0098M\2\u0227\u0228\5\u011c"+ "\u008f\2\u0228\u0257\3\2\2\2\u0229\u022a\5\u0168\u00b5\2\u022a\u022b\5"+ "\u011c\u008f\2\u022b\u0257\3\2\2\2\u022c\u022d\7\31\2\2\u022d\u022e\7"+ "`\2\2\u022e\u022f\5\u00fe\u0080\2\u022f\u0230\7a\2\2\u0230\u0231\7O\2"+ "\2\u0231\u0232\5X-\2\u0232\u0233\7P\2\2\u0233\u0257\3\2\2\2\u0234\u0235"+ "\7;\2\2\u0235\u0236\7`\2\2\u0236\u0237\5\u00fe\u0080\2\u0237\u0238\7a"+ "\2\2\u0238\u0239\7O\2\2\u0239\u023a\5X-\2\u023a\u023b\7P\2\2\u023b\u0257"+ "\3\2\2\2\u023c\u023d\7\64\2\2\u023d\u023e\7`\2\2\u023e\u023f\5\u00fe\u0080"+ "\2\u023f\u0240\7a\2\2\u0240\u0241\7O\2\2\u0241\u0242\5X-\2\u0242\u0243"+ "\7P\2\2\u0243\u0257\3\2\2\2\u0244\u0245\7\22\2\2\u0245\u0246\7`\2\2\u0246"+ "\u0247\5\u00fe\u0080\2\u0247\u0248\7a\2\2\u0248\u0249\7O\2\2\u0249\u024a"+ "\5X-\2\u024a\u024b\7P\2\2\u024b\u0257\3\2\2\2\u024c\u024d\7E\2\2\u024d"+ "\u024e\7O\2\2\u024e\u024f\5X-\2\u024f\u0250\7P\2\2\u0250\u0257\3\2\2\2"+ "\u0251\u0252\7E\2\2\u0252\u0253\7O\2\2\u0253\u0254\5\u00fe\u0080\2\u0254"+ "\u0255\7P\2\2\u0255\u0257\3\2\2\2\u0256\u0216\3\2\2\2\u0256\u0218\3\2"+ "\2\2\u0256\u021f\3\2\2\2\u0256\u0226\3\2\2\2\u0256\u0229\3\2\2\2\u0256"+ "\u022c\3\2\2\2\u0256\u0234\3\2\2\2\u0256\u023c\3\2\2\2\u0256\u0244\3\2"+ "\2\2\u0256\u024c\3\2\2\2\u0256\u0251\3\2\2\2\u0257\u0280\3\2\2\2\u0258"+ "\u0259\f\25\2\2\u0259\u025a\7Q\2\2\u025a\u025b\5X-\2\u025b\u025c\7R\2"+ "\2\u025c\u027f\3\2\2\2\u025d\u025e\f\24\2\2\u025e\u025f\7Q\2\2\u025f\u0260"+ "\5\u011c\u008f\2\u0260\u0261\7R\2\2\u0261\u027f\3\2\2\2\u0262\u0263\f"+ "\23\2\2\u0263\u0265\7O\2\2\u0264\u0266\5\"\22\2\u0265\u0264\3\2\2\2\u0265"+ "\u0266\3\2\2\2\u0266\u0267\3\2\2\2\u0267\u027f\7P\2\2\u0268\u0269\f\16"+ "\2\2\u0269\u026b\7{\2\2\u026a\u026c\7>\2\2\u026b\u026a\3\2\2\2\u026b\u026c"+ "\3\2\2\2\u026c\u026d\3\2\2\2\u026d\u027f\5\6\4\2\u026e\u026f\f\r\2\2\u026f"+ "\u0271\7v\2\2\u0270\u0272\7>\2\2\u0271\u0270\3\2\2\2\u0271\u0272\3\2\2"+ "\2\u0272\u0273\3\2\2\2\u0273\u027f\5\6\4\2\u0274\u0275\f\f\2\2\u0275\u0276"+ "\7{\2\2\u0276\u027f\5$\23\2\u0277\u0278\f\13\2\2\u0278\u0279\7v\2\2\u0279"+ "\u027f\5$\23\2\u027a\u027b\f\n\2\2\u027b\u027f\7r\2\2\u027c\u027d\f\t"+ "\2\2\u027d\u027f\7s\2\2\u027e\u0258\3\2\2\2\u027e\u025d\3\2\2\2\u027e"+ "\u0262\3\2\2\2\u027e\u0268\3\2\2\2\u027e\u026e\3\2\2\2\u027e\u0274\3\2"+ "\2\2\u027e\u0277\3\2\2\2\u027e\u027a\3\2\2\2\u027e\u027c\3\2\2\2\u027f"+ "\u0282\3\2\2\2\u0280\u027e\3\2\2\2\u0280\u0281\3\2\2\2\u0281!\3\2\2\2"+ "\u0282\u0280\3\2\2\2\u0283\u0284\5\u011a\u008e\2\u0284#\3\2\2\2\u0285"+ "\u0287\5\f\7\2\u0286\u0285\3\2\2\2\u0286\u0287\3\2\2\2\u0287\u0288\3\2"+ "\2\2\u0288\u0289\5\u009aN\2\u0289\u028a\7y\2\2\u028a\u028b\7]\2\2\u028b"+ "\u028c\5\u009aN\2\u028c\u029c\3\2\2\2\u028d\u028e\5\f\7\2\u028e\u028f"+ "\7>\2\2\u028f\u0290\5\u015e\u00b0\2\u0290\u0291\7y\2\2\u0291\u0292\7]"+ "\2\2\u0292\u0293\5\u009aN\2\u0293\u029c\3\2\2\2\u0294\u0296\5\f\7\2\u0295"+ "\u0294\3\2\2\2\u0295\u0296\3\2\2\2\u0296\u0297\3\2\2\2\u0297\u0298\7]"+ "\2\2\u0298\u029c\5\u009aN\2\u0299\u029a\7]\2\2\u029a\u029c\5\u009cO\2"+ "\u029b\u0286\3\2\2\2\u029b\u028d\3\2\2\2\u029b\u0295\3\2\2\2\u029b\u0299"+ "\3\2\2\2\u029c%\3\2\2\2\u029d\u02ba\5 \21\2\u029e\u029f\7r\2\2\u029f\u02ba"+ "\5:\36\2\u02a0\u02a1\7s\2\2\u02a1\u02ba\5:\36\2\u02a2\u02a3\5(\25\2\u02a3"+ "\u02a4\5:\36\2\u02a4\u02ba\3\2\2\2\u02a5\u02a6\78\2\2\u02a6\u02ba\5&\24"+ "\2\u02a7\u02a8\78\2\2\u02a8\u02a9\7O\2\2\u02a9\u02aa\5\u00fe\u0080\2\u02aa"+ "\u02ab\7P\2\2\u02ab\u02ba\3\2\2\2\u02ac\u02ad\78\2\2\u02ad\u02ae\7}\2"+ "\2\u02ae\u02af\7O\2\2\u02af\u02b0\7~\2\2\u02b0\u02ba\7P\2\2\u02b1\u02b2"+ "\7\5\2\2\u02b2\u02b3\7O\2\2\u02b3\u02b4\5\u00fe\u0080\2\u02b4\u02b5\7"+ "P\2\2\u02b5\u02ba\3\2\2\2\u02b6\u02ba\58\35\2\u02b7\u02ba\5*\26\2\u02b8"+ "\u02ba\5\66\34\2\u02b9\u029d\3\2\2\2\u02b9\u029e\3\2\2\2\u02b9\u02a0\3"+ "\2\2\2\u02b9\u02a2\3\2\2\2\u02b9\u02a5\3\2\2\2\u02b9\u02a7\3\2\2\2\u02b9"+ "\u02ac\3\2\2\2\u02b9\u02b1\3\2\2\2\u02b9\u02b6\3\2\2\2\u02b9\u02b7\3\2"+ "\2\2\u02b9\u02b8\3\2\2\2\u02ba\'\3\2\2\2\u02bb\u02bc\t\3\2\2\u02bc)\3"+ "\2\2\2\u02bd\u02bf\7y\2\2\u02be\u02bd\3\2\2\2\u02be\u02bf\3\2\2\2\u02bf"+ "\u02c0\3\2\2\2\u02c0\u02c2\7+\2\2\u02c1\u02c3\5,\27\2\u02c2\u02c1\3\2"+ "\2\2\u02c2\u02c3\3\2\2\2\u02c3\u02c4\3\2\2\2\u02c4\u02c6\5.\30\2\u02c5"+ "\u02c7\5\64\33\2\u02c6\u02c5\3\2\2\2\u02c6\u02c7\3\2\2\2\u02c7\u02d6\3"+ "\2\2\2\u02c8\u02ca\7y\2\2\u02c9\u02c8\3\2\2\2\u02c9\u02ca\3\2\2\2\u02ca"+ "\u02cb\3\2\2\2\u02cb\u02cd\7+\2\2\u02cc\u02ce\5,\27\2\u02cd\u02cc\3\2"+ "\2\2\u02cd\u02ce\3\2\2\2\u02ce\u02cf\3\2\2\2\u02cf\u02d0\7O\2\2\u02d0"+ "\u02d1\5\u00fe\u0080\2\u02d1\u02d3\7P\2\2\u02d2\u02d4\5\64\33\2\u02d3"+ "\u02d2\3\2\2\2\u02d3\u02d4\3\2\2\2\u02d4\u02d6\3\2\2\2\u02d5\u02be\3\2"+ "\2\2\u02d5\u02c9\3\2\2\2\u02d6+\3\2\2\2\u02d7\u02d8\7O\2\2\u02d8\u02d9"+ "\5\"\22\2\u02d9\u02da\7P\2\2\u02da-\3\2\2\2\u02db\u02dd\5\u0094K\2\u02dc"+ "\u02de\5\60\31\2\u02dd\u02dc\3\2\2\2\u02dd\u02de\3\2\2\2\u02de/\3\2\2"+ "\2\u02df\u02e1\5\u00f4{\2\u02e0\u02e2\5\60\31\2\u02e1\u02e0\3\2\2\2\u02e1"+ "\u02e2\3\2\2\2\u02e2\u02e5\3\2\2\2\u02e3\u02e5\5\62\32\2\u02e4\u02df\3"+ "\2\2\2\u02e4\u02e3\3\2\2\2\u02e5\61\3\2\2\2\u02e6\u02e7\b\32\1\2\u02e7"+ "\u02e8\7Q\2\2\u02e8\u02e9\5X-\2\u02e9\u02eb\7R\2\2\u02ea\u02ec\5\u00d0"+ "i\2\u02eb\u02ea\3\2\2\2\u02eb\u02ec\3\2\2\2\u02ec\u02f6\3\2\2\2\u02ed"+ "\u02ee\f\3\2\2\u02ee\u02ef\7Q\2\2\u02ef\u02f0\5Z.\2\u02f0\u02f2\7R\2\2"+ "\u02f1\u02f3\5\u00d0i\2\u02f2\u02f1\3\2\2\2\u02f2\u02f3\3\2\2\2\u02f3"+ "\u02f5\3\2\2\2\u02f4\u02ed\3\2\2\2\u02f5\u02f8\3\2\2\2\u02f6\u02f4\3\2"+ "\2\2\u02f6\u02f7\3\2\2\2\u02f7\63\3\2\2\2\u02f8\u02f6\3\2\2\2\u02f9\u02fb"+ "\7O\2\2\u02fa\u02fc\5\"\22\2\u02fb\u02fa\3\2\2\2\u02fb\u02fc\3\2\2\2\u02fc"+ "\u02fd\3\2\2\2\u02fd\u0300\7P\2\2\u02fe\u0300\5\u011c\u008f\2\u02ff\u02f9"+ "\3\2\2\2\u02ff\u02fe\3\2\2\2\u0300\65\3\2\2\2\u0301\u0303\7y\2\2\u0302"+ "\u0301\3\2\2\2\u0302\u0303\3\2\2\2\u0303\u0304\3\2\2\2\u0304\u0305\7\26"+ "\2\2\u0305\u030e\5:\36\2\u0306\u0308\7y\2\2\u0307\u0306\3\2\2\2\u0307"+ "\u0308\3\2\2\2\u0308\u0309\3\2\2\2\u0309\u030a\7\26\2\2\u030a\u030b\7"+ "Q\2\2\u030b\u030c\7R\2\2\u030c\u030e\5:\36\2\u030d\u0302\3\2\2\2\u030d"+ "\u0307\3\2\2\2\u030e\67\3\2\2\2\u030f\u0310\7,\2\2\u0310\u0311\7O\2\2"+ "\u0311\u0312\5X-\2\u0312\u0313\7P\2\2\u03139\3\2\2\2\u0314\u031b\5&\24"+ "\2\u0315\u0316\7O\2\2\u0316\u0317\5\u00fe\u0080\2\u0317\u0318\7P\2\2\u0318"+ "\u0319\5:\36\2\u0319\u031b\3\2\2\2\u031a\u0314\3\2\2\2\u031a\u0315\3\2"+ "\2\2\u031b;\3\2\2\2\u031c\u031d\b\37\1\2\u031d\u031e\5:\36\2\u031e\u0327"+ "\3\2\2\2\u031f\u0320\f\4\2\2\u0320\u0321\7|\2\2\u0321\u0326\5:\36\2\u0322"+ "\u0323\f\3\2\2\u0323\u0324\7u\2\2\u0324\u0326\5:\36\2\u0325\u031f\3\2"+ "\2\2\u0325\u0322\3\2\2\2\u0326\u0329\3\2\2\2\u0327\u0325\3\2\2\2\u0327"+ "\u0328\3\2\2\2\u0328=\3\2\2\2\u0329\u0327\3\2\2\2\u032a\u032b\b \1\2\u032b"+ "\u032c\5<\37\2\u032c\u0338\3\2\2\2\u032d\u032e\f\5\2\2\u032e\u032f\7W"+ "\2\2\u032f\u0337\5<\37\2\u0330\u0331\f\4\2\2\u0331\u0332\7X\2\2\u0332"+ "\u0337\5<\37\2\u0333\u0334\f\3\2\2\u0334\u0335\7Y\2\2\u0335\u0337\5<\37"+ "\2\u0336\u032d\3\2\2\2\u0336\u0330\3\2\2\2\u0336\u0333\3\2\2\2\u0337\u033a"+ "\3\2\2\2\u0338\u0336\3\2\2\2\u0338\u0339\3\2\2\2\u0339?\3\2\2\2\u033a"+ "\u0338\3\2\2\2\u033b\u033c\b!\1\2\u033c\u033d\5> \2\u033d\u0346\3\2\2"+ "\2\u033e\u033f\f\4\2\2\u033f\u0340\7U\2\2\u0340\u0345\5> \2\u0341\u0342"+ "\f\3\2\2\u0342\u0343\7V\2\2\u0343\u0345\5> \2\u0344\u033e\3\2\2\2\u0344"+ "\u0341\3\2\2\2\u0345\u0348\3\2\2\2\u0346\u0344\3\2\2\2\u0346\u0347\3\2"+ "\2\2\u0347A\3\2\2\2\u0348\u0346\3\2\2\2\u0349\u034a\b\"\1\2\u034a\u034b"+ "\5@!\2\u034b\u0355\3\2\2\2\u034c\u034d\f\4\2\2\u034d\u034e\7j\2\2\u034e"+ "\u0354\5@!\2\u034f\u0350\f\3\2\2\u0350\u0351\5\u0182\u00c2\2\u0351\u0352"+ "\5@!\2\u0352\u0354\3\2\2\2\u0353\u034c\3\2\2\2\u0353\u034f\3\2\2\2\u0354"+ "\u0357\3\2\2\2\u0355\u0353\3\2\2\2\u0355\u0356\3\2\2\2\u0356C\3\2\2\2"+ "\u0357\u0355\3\2\2\2\u0358\u0359\b#\1\2\u0359\u035a\5B\"\2\u035a\u0369"+ "\3\2\2\2\u035b\u035c\f\6\2\2\u035c\u035d\7`\2\2\u035d\u0368\5B\"\2\u035e"+ "\u035f\f\5\2\2\u035f\u0360\7a\2\2\u0360\u0368\5B\"\2\u0361\u0362\f\4\2"+ "\2\u0362\u0363\7n\2\2\u0363\u0368\5B\"\2\u0364\u0365\f\3\2\2\u0365\u0366"+ "\7o\2\2\u0366\u0368\5B\"\2\u0367\u035b\3\2\2\2\u0367\u035e\3\2\2\2\u0367"+ "\u0361\3\2\2\2\u0367\u0364\3\2\2\2\u0368\u036b\3\2\2\2\u0369\u0367\3\2"+ "\2\2\u0369\u036a\3\2\2\2\u036aE\3\2\2\2\u036b\u0369\3\2\2\2\u036c\u036d"+ "\b$\1\2\u036d\u036e\5D#\2\u036e\u0377\3\2\2\2\u036f\u0370\f\4\2\2\u0370"+ "\u0371\7l\2\2\u0371\u0376\5D#\2\u0372\u0373\f\3\2\2\u0373\u0374\7m\2\2"+ "\u0374\u0376\5D#\2\u0375\u036f\3\2\2\2\u0375\u0372\3\2\2\2\u0376\u0379"+ "\3\2\2\2\u0377\u0375\3\2\2\2\u0377\u0378\3\2\2\2\u0378G\3\2\2\2\u0379"+ "\u0377\3\2\2\2\u037a\u037b\b%\1\2\u037b\u037c\5F$\2\u037c\u0382\3\2\2"+ "\2\u037d\u037e\f\3\2\2\u037e\u037f\7[\2\2\u037f\u0381\5F$\2\u0380\u037d"+ "\3\2\2\2\u0381\u0384\3\2\2\2\u0382\u0380\3\2\2\2\u0382\u0383\3\2\2\2\u0383"+ "I\3\2\2\2\u0384\u0382\3\2\2\2\u0385\u0386\b&\1\2\u0386\u0387\5H%\2\u0387"+ "\u038d\3\2\2\2\u0388\u0389\f\3\2\2\u0389\u038a\7Z\2\2\u038a\u038c\5H%"+ "\2\u038b\u0388\3\2\2\2\u038c\u038f\3\2\2\2\u038d\u038b\3\2\2\2\u038d\u038e"+ "\3\2\2\2\u038eK\3\2\2\2\u038f\u038d\3\2\2\2\u0390\u0391\b\'\1\2\u0391"+ "\u0392\5J&\2\u0392\u0398\3\2\2\2\u0393\u0394\f\3\2\2\u0394\u0395\7\\\2"+ "\2\u0395\u0397\5J&\2\u0396\u0393\3\2\2\2\u0397\u039a\3\2\2\2\u0398\u0396"+ "\3\2\2\2\u0398\u0399\3\2\2\2\u0399M\3\2\2\2\u039a\u0398\3\2\2\2\u039b"+ "\u039c\b(\1\2\u039c\u039d\5L\'\2\u039d\u03a3\3\2\2\2\u039e\u039f\f\3\2"+ "\2\u039f\u03a0\7p\2\2\u03a0\u03a2\5L\'\2\u03a1\u039e\3\2\2\2\u03a2\u03a5"+ "\3\2\2\2\u03a3\u03a1\3\2\2\2\u03a3\u03a4\3\2\2\2\u03a4O\3\2\2\2\u03a5"+ "\u03a3\3\2\2\2\u03a6\u03a7\b)\1\2\u03a7\u03a8\5N(\2\u03a8\u03ae\3\2\2"+ "\2\u03a9\u03aa\f\3\2\2\u03aa\u03ab\7q\2\2\u03ab\u03ad\5N(\2\u03ac\u03a9"+ "\3\2\2\2\u03ad\u03b0\3\2\2\2\u03ae\u03ac\3\2\2\2\u03ae\u03af\3\2\2\2\u03af"+ "Q\3\2\2\2\u03b0\u03ae\3\2\2\2\u03b1\u03b9\5P)\2\u03b2\u03b3\5P)\2\u03b3"+ "\u03b4\7w\2\2\u03b4\u03b5\5X-\2\u03b5\u03b6\7x\2\2\u03b6\u03b7\5T+\2\u03b7"+ "\u03b9\3\2\2\2\u03b8\u03b1\3\2\2\2\u03b8\u03b2\3\2\2\2\u03b9S\3\2\2\2"+ "\u03ba\u03c1\5R*\2\u03bb\u03bc\5P)\2\u03bc\u03bd\5V,\2\u03bd\u03be\5\u0118"+ "\u008d\2\u03be\u03c1\3\2\2\2\u03bf\u03c1\5\u0178\u00bd\2\u03c0\u03ba\3"+ "\2\2\2\u03c0\u03bb\3\2\2\2\u03c0\u03bf\3\2\2\2\u03c1U\3\2\2\2\u03c2\u03ce"+ "\7_\2\2\u03c3\u03ce\7d\2\2\u03c4\u03ce\7e\2\2\u03c5\u03ce\7f\2\2\u03c6"+ "\u03ce\7b\2\2\u03c7\u03ce\7c\2\2\u03c8\u03ce\5\u0184\u00c3\2\u03c9\u03ce"+ "\7k\2\2\u03ca\u03ce\7h\2\2\u03cb\u03ce\7g\2\2\u03cc\u03ce\7i\2\2\u03cd"+ "\u03c2\3\2\2\2\u03cd\u03c3\3\2\2\2\u03cd\u03c4\3\2\2\2\u03cd\u03c5\3\2"+ "\2\2\u03cd\u03c6\3\2\2\2\u03cd\u03c7\3\2\2\2\u03cd\u03c8\3\2\2\2\u03cd"+ "\u03c9\3\2\2\2\u03cd\u03ca\3\2\2\2\u03cd\u03cb\3\2\2\2\u03cd\u03cc\3\2"+ "\2\2\u03ceW\3\2\2\2\u03cf\u03d0\b-\1\2\u03d0\u03d1\5T+\2\u03d1\u03d7\3"+ "\2\2\2\u03d2\u03d3\f\3\2\2\u03d3\u03d4\7t\2\2\u03d4\u03d6\5T+\2\u03d5"+ "\u03d2\3\2\2\2\u03d6\u03d9\3\2\2\2\u03d7\u03d5\3\2\2\2\u03d7\u03d8\3\2"+ "\2\2\u03d8Y\3\2\2\2\u03d9\u03d7\3\2\2\2\u03da\u03db\5R*\2\u03db[\3\2\2"+ "\2\u03dc\u03f7\5^\60\2\u03dd\u03df\5\u00d0i\2\u03de\u03dd\3\2\2\2\u03de"+ "\u03df\3\2\2\2\u03df\u03e0\3\2\2\2\u03e0\u03f7\5`\61\2\u03e1\u03e3\5\u00d0"+ "i\2\u03e2\u03e1\3\2\2\2\u03e2\u03e3\3\2\2\2\u03e3\u03e4\3\2\2\2\u03e4"+ "\u03f7\5b\62\2\u03e5\u03e7\5\u00d0i\2\u03e6\u03e5\3\2\2\2\u03e6\u03e7"+ "\3\2\2\2\u03e7\u03e8\3\2\2\2\u03e8\u03f7\5f\64\2\u03e9\u03eb\5\u00d0i"+ "\2\u03ea\u03e9\3\2\2\2\u03ea\u03eb\3\2\2\2\u03eb\u03ec\3\2\2\2\u03ec\u03f7"+ "\5j\66\2\u03ed\u03ef\5\u00d0i\2\u03ee\u03ed\3\2\2\2\u03ee\u03ef\3\2\2"+ "\2\u03ef\u03f0\3\2\2\2\u03f0\u03f7\5r:\2\u03f1\u03f7\5t;\2\u03f2\u03f4"+ "\5\u00d0i\2\u03f3\u03f2\3\2\2\2\u03f3\u03f4\3\2\2\2\u03f4\u03f5\3\2\2"+ "\2\u03f5\u03f7\5\u016e\u00b8\2\u03f6\u03dc\3\2\2\2\u03f6\u03de\3\2\2\2"+ "\u03f6\u03e2\3\2\2\2\u03f6\u03e6\3\2\2\2\u03f6\u03ea\3\2\2\2\u03f6\u03ee"+ "\3\2\2\2\u03f6\u03f1\3\2\2\2\u03f6\u03f3\3\2\2\2\u03f7]\3\2\2\2\u03f8"+ "\u03fa\5\u00d0i\2\u03f9\u03f8\3\2\2\2\u03f9\u03fa\3\2\2\2\u03fa\u03fb"+ "\3\2\2\2\u03fb\u03fc\7~\2\2\u03fc\u03fd\7x\2\2\u03fd\u040d\5\\/\2\u03fe"+ "\u0400\5\u00d0i\2\u03ff\u03fe\3\2\2\2\u03ff\u0400\3\2\2\2\u0400\u0401"+ "\3\2\2\2\u0401\u0402\7\n\2\2\u0402\u0403\5Z.\2\u0403\u0404\7x\2\2\u0404"+ "\u0405\5\\/\2\u0405\u040d\3\2\2\2\u0406\u0408\5\u00d0i\2\u0407\u0406\3"+ "\2\2\2\u0407\u0408\3\2\2\2\u0408\u0409\3\2\2\2\u0409\u040a\7\25\2\2\u040a"+ "\u040b\7x\2\2\u040b\u040d\5\\/\2\u040c\u03f9\3\2\2\2\u040c\u03ff\3\2\2"+ "\2\u040c\u0407\3\2\2\2\u040d_\3\2\2\2\u040e\u0410\5X-\2\u040f\u040e\3"+ "\2\2\2\u040f\u0410\3\2\2\2\u0410\u0411\3\2\2\2\u0411\u0412\7z\2\2\u0412"+ "a\3\2\2\2\u0413\u0415\7S\2\2\u0414\u0416\5d\63\2\u0415\u0414\3\2\2\2\u0415"+ "\u0416\3\2\2\2\u0416\u0417\3\2\2\2\u0417\u0418\7T\2\2\u0418c\3\2\2\2\u0419"+ "\u041a\b\63\1\2\u041a\u041b\5\\/\2\u041b\u0420\3\2\2\2\u041c\u041d\f\3"+ "\2\2\u041d\u041f\5\\/\2\u041e\u041c\3\2\2\2\u041f\u0422\3\2\2\2\u0420"+ "\u041e\3\2\2\2\u0420\u0421\3\2\2\2\u0421e\3\2\2\2\u0422\u0420\3\2\2\2"+ "\u0423\u0424\7%\2\2\u0424\u0425\7O\2\2\u0425\u0426\5h\65\2\u0426\u0427"+ "\7P\2\2\u0427\u0428\5\\/\2\u0428\u0438\3\2\2\2\u0429\u042a\7%\2\2\u042a"+ "\u042b\7O\2\2\u042b\u042c\5h\65\2\u042c\u042d\7P\2\2\u042d\u042e\5\\/"+ "\2\u042e\u042f\7\32\2\2\u042f\u0430\5\\/\2\u0430\u0438\3\2\2\2\u0431\u0432"+ "\7=\2\2\u0432\u0433\7O\2\2\u0433\u0434\5h\65\2\u0434\u0435\7P\2\2\u0435"+ "\u0436\5\\/\2\u0436\u0438\3\2\2\2\u0437\u0423\3\2\2\2\u0437\u0429\3\2"+ "\2\2\u0437\u0431\3\2\2\2\u0438g\3\2\2\2\u0439\u044a\5X-\2\u043a\u043c"+ "\5\u00d0i\2\u043b\u043a\3\2\2\2\u043b\u043c\3\2\2\2\u043c\u043d\3\2\2"+ "\2\u043d\u043e\5\u0088E\2\u043e\u043f\5\u00eav\2\u043f\u0440\7_\2\2\u0440"+ "\u0441\5\u0118\u008d\2\u0441\u044a\3\2\2\2\u0442\u0444\5\u00d0i\2\u0443"+ "\u0442\3\2\2\2\u0443\u0444\3\2\2\2\u0444\u0445\3\2\2\2\u0445\u0446\5\u0088"+ "E\2\u0446\u0447\5\u00eav\2\u0447\u0448\5\u011c\u008f\2\u0448\u044a\3\2"+ "\2\2\u0449\u0439\3\2\2\2\u0449\u043b\3\2\2\2\u0449\u0443\3\2\2\2\u044a"+ "i\3\2\2\2\u044b\u044c\7N\2\2\u044c\u044d\7O\2\2\u044d\u044e\5h\65\2\u044e"+ "\u044f\7P\2\2\u044f\u0450\5\\/\2\u0450\u046f\3\2\2\2\u0451\u0452\7\27"+ "\2\2\u0452\u0453\5\\/\2\u0453\u0454\7N\2\2\u0454\u0455\7O\2\2\u0455\u0456"+ "\5X-\2\u0456\u0457\7P\2\2\u0457\u0458\7z\2\2\u0458\u046f\3\2\2\2\u0459"+ "\u045a\7\"\2\2\u045a\u045b\7O\2\2\u045b\u045d\5l\67\2\u045c\u045e\5h\65"+ "\2\u045d\u045c\3\2\2\2\u045d\u045e\3\2\2\2\u045e\u045f\3\2\2\2\u045f\u0461"+ "\7z\2\2\u0460\u0462\5X-\2\u0461\u0460\3\2\2\2\u0461\u0462\3\2\2\2\u0462"+ "\u0463\3\2\2\2\u0463\u0464\7P\2\2\u0464\u0465\5\\/\2\u0465\u046f\3\2\2"+ "\2\u0466\u0467\7\"\2\2\u0467\u0468\7O\2\2\u0468\u0469\5n8\2\u0469\u046a"+ "\7x\2\2\u046a\u046b\5p9\2\u046b\u046c\7P\2\2\u046c\u046d\5\\/\2\u046d"+ "\u046f\3\2\2\2\u046e\u044b\3\2\2\2\u046e\u0451\3\2\2\2\u046e\u0459\3\2"+ "\2\2\u046e\u0466\3\2\2\2\u046fk\3\2\2\2\u0470\u0473\5`\61\2\u0471\u0473"+ "\5~@\2\u0472\u0470\3\2\2\2\u0472\u0471\3\2\2\2\u0473m\3\2\2\2\u0474\u0476"+ "\5\u00d0i\2\u0475\u0474\3\2\2\2\u0475\u0476\3\2\2\2\u0476\u0477\3\2\2"+ "\2\u0477\u0478\5\u0088E\2\u0478\u0479\5\u00eav\2\u0479o\3\2\2\2\u047a"+ "\u047d\5X-\2\u047b\u047d\5\u011c\u008f\2\u047c\u047a\3\2\2\2\u047c\u047b"+ "\3\2\2\2\u047dq\3\2\2\2\u047e\u047f\7\t\2\2\u047f\u048f\7z\2\2\u0480\u0481"+ "\7\23\2\2\u0481\u048f\7z\2\2\u0482\u0484\7\65\2\2\u0483\u0485\5X-\2\u0484"+ "\u0483\3\2\2\2\u0484\u0485\3\2\2\2\u0485\u0486\3\2\2\2\u0486\u048f\7z"+ "\2\2\u0487\u0488\7\65\2\2\u0488\u0489\5\u011c\u008f\2\u0489\u048a\7z\2"+ "\2\u048a\u048f\3\2\2\2\u048b\u048c\7$\2\2\u048c\u048d\7~\2\2\u048d\u048f"+ "\7z\2\2\u048e\u047e\3\2\2\2\u048e\u0480\3\2\2\2\u048e\u0482\3\2\2\2\u048e"+ "\u0487\3\2\2\2\u048e\u048b\3\2\2\2\u048fs\3\2\2\2\u0490\u0491\5z>\2\u0491"+ "u\3\2\2\2\u0492\u0493\b<\1\2\u0493\u0494\5x=\2\u0494\u0499\3\2\2\2\u0495"+ "\u0496\f\3\2\2\u0496\u0498\5x=\2\u0497\u0495\3\2\2\2\u0498\u049b\3\2\2"+ "\2\u0499\u0497\3\2\2\2\u0499\u049a\3\2\2\2\u049aw\3\2\2\2\u049b\u0499"+ "\3\2\2\2\u049c\u04a6\5z>\2\u049d\u04a6\5\u0110\u0089\2\u049e\u04a6\5\u0156"+ "\u00ac\2\u049f\u04a6\5\u016a\u00b6\2\u04a0\u04a6\5\u016c\u00b7\2\u04a1"+ "\u04a6\5\u00ceh\2\u04a2\u04a6\5\u00b6\\\2\u04a3\u04a6\5\u0082B\2\u04a4"+ "\u04a6\5\u0084C\2\u04a5\u049c\3\2\2\2\u04a5\u049d\3\2\2\2\u04a5\u049e"+ "\3\2\2\2\u04a5\u049f\3\2\2\2\u04a5\u04a0\3\2\2\2\u04a5\u04a1\3\2\2\2\u04a5"+ "\u04a2\3\2\2\2\u04a5\u04a3\3\2\2\2\u04a5\u04a4\3\2\2\2\u04a6y\3\2\2\2"+ "\u04a7\u04b0\5~@\2\u04a8\u04b0\5\u00ccg\2\u04a9\u04b0\5\u00c4c\2\u04aa"+ "\u04b0\5\u00c8e\2\u04ab\u04b0\5\u00caf\2\u04ac\u04b0\5\u0080A\2\u04ad"+ "\u04b0\5|?\2\u04ae\u04b0\5\u00a6T\2\u04af\u04a7\3\2\2\2\u04af\u04a8\3"+ "\2\2\2\u04af\u04a9\3\2\2\2\u04af\u04aa\3\2\2\2\u04af\u04ab\3\2\2\2\u04af"+ "\u04ac\3\2\2\2\u04af\u04ad\3\2\2\2\u04af\u04ae\3\2\2\2\u04b0{\3\2\2\2"+ "\u04b1\u04b2\7I\2\2\u04b2\u04b4\7~\2\2\u04b3\u04b5\5\u00d0i\2\u04b4\u04b3"+ "\3\2\2\2\u04b4\u04b5\3\2\2\2\u04b5\u04b6\3\2\2\2\u04b6\u04b7\7_\2\2\u04b7"+ "\u04b8\5\u00fe\u0080\2\u04b8\u04b9\7z\2\2\u04b9}\3\2\2\2\u04ba\u04bc\5"+ "\u0088E\2\u04bb\u04ba\3\2\2\2\u04bb\u04bc\3\2\2\2\u04bc\u04be\3\2\2\2"+ "\u04bd\u04bf\5\u00e6t\2\u04be\u04bd\3\2\2\2\u04be\u04bf\3\2\2\2\u04bf"+ "\u04c0\3\2\2\2\u04c0\u04c9\7z\2\2\u04c1\u04c3\5\u00d0i\2\u04c2\u04c4\5"+ "\u0088E\2\u04c3\u04c2\3\2\2\2\u04c3\u04c4\3\2\2\2\u04c4\u04c5\3\2\2\2"+ "\u04c5\u04c6\5\u00e6t\2\u04c6\u04c7\7z\2\2\u04c7\u04c9\3\2\2\2\u04c8\u04bb"+ "\3\2\2\2\u04c8\u04c1\3\2\2\2\u04c9\177\3\2\2\2\u04ca\u04cb\7:\2\2\u04cb"+ "\u04cc\7O\2\2\u04cc\u04cd\5Z.\2\u04cd\u04ce\7t\2\2\u04ce\u04cf\7\u0087"+ "\2\2\u04cf\u04d0\7P\2\2\u04d0\u04d1\7z\2\2\u04d1\u0081\3\2\2\2\u04d2\u04d3"+ "\7z\2\2\u04d3\u0083\3\2\2\2\u04d4\u04d5\5\u00d0i\2\u04d5\u04d6\7z\2\2"+ "\u04d6\u0085\3\2\2\2\u04d7\u04de\5\u008aF\2\u04d8\u04de\5\u0090I\2\u04d9"+ "\u04de\5\u008cG\2\u04da\u04de\7#\2\2\u04db\u04de\7D\2\2\u04dc\u04de\7"+ "\21\2\2\u04dd\u04d7\3\2\2\2\u04dd\u04d8\3\2\2\2\u04dd\u04d9\3\2\2\2\u04dd"+ "\u04da\3\2\2\2\u04dd\u04db\3\2\2\2\u04dd\u04dc\3\2\2\2\u04de\u0087\3\2"+ "\2\2\u04df\u04e1\5\u0086D\2\u04e0\u04e2\5\u00d0i\2\u04e1\u04e0\3\2\2\2"+ "\u04e1\u04e2\3\2\2\2\u04e2\u04e7\3\2\2\2\u04e3\u04e4\5\u0086D\2\u04e4"+ "\u04e5\5\u0088E\2\u04e5\u04e7\3\2\2\2\u04e6\u04df\3\2\2\2\u04e6\u04e3"+ "\3\2\2\2\u04e7\u0089\3\2\2\2\u04e8\u04e9\t\4\2\2\u04e9\u008b\3\2\2\2\u04ea"+ "\u04eb\t\5\2\2\u04eb\u008d\3\2\2\2\u04ec\u04ed\7~\2\2\u04ed\u008f\3\2"+ "\2\2\u04ee\u04f2\5\u0092J\2\u04ef\u04f2\5\u0120\u0091\2\u04f0\u04f2\5"+ "\u00a2R\2\u04f1\u04ee\3\2\2\2\u04f1\u04ef\3\2\2\2\u04f1\u04f0\3\2\2\2"+ "\u04f2\u0091\3\2\2\2\u04f3\u04f8\5\u0098M\2\u04f4\u04f8\5\u009eP\2\u04f5"+ "\u04f8\5\u0168\u00b5\2\u04f6\u04f8\5\u00f8}\2\u04f7\u04f3\3\2\2\2\u04f7"+ "\u04f4\3\2\2\2\u04f7\u04f5\3\2\2\2\u04f7\u04f6\3\2\2\2\u04f8\u0093\3\2"+ "\2\2\u04f9\u04fb\5\u0090I\2\u04fa\u04fc\5\u00d0i\2\u04fb\u04fa\3\2\2\2"+ "\u04fb\u04fc\3\2\2\2\u04fc\u0501\3\2\2\2\u04fd\u04fe\5\u0090I\2\u04fe"+ "\u04ff\5\u0094K\2\u04ff\u0501\3\2\2\2\u0500\u04f9\3\2\2\2\u0500\u04fd"+ "\3\2\2\2\u0501\u0095\3\2\2\2\u0502\u0504\5\u0092J\2\u0503\u0505\5\u00d0"+ "i\2\u0504\u0503\3\2\2\2\u0504\u0505\3\2\2\2\u0505\u050a\3\2\2\2\u0506"+ "\u0507\5\u0092J\2\u0507\u0508\5\u0096L\2\u0508\u050a\3\2\2\2\u0509\u0502"+ "\3\2\2\2\u0509\u0506\3\2\2\2\u050a\u0097\3\2\2\2\u050b\u050d\5\f\7\2\u050c"+ "\u050b\3\2\2\2\u050c\u050d\3\2\2\2\u050d\u050e\3\2\2\2\u050e\u0523\5\u009a"+ "N\2\u050f\u0510\5\f\7\2\u0510\u0511\7>\2\2\u0511\u0512\5\u015e\u00b0\2"+ "\u0512\u0523\3\2\2\2\u0513\u0523\7\f\2\2\u0514\u0523\7\r\2\2\u0515\u0523"+ "\7\16\2\2\u0516\u0523\7M\2\2\u0517\u0523\7\b\2\2\u0518\u0523\7\66\2\2"+ "\u0519\u0523\7\'\2\2\u051a\u0523\7(\2\2\u051b\u0523\7\67\2\2\u051c\u0523"+ "\7H\2\2\u051d\u0523\7!\2\2\u051e\u0523\7\30\2\2\u051f\u0523\7K\2\2\u0520"+ "\u0523\7\7\2\2\u0521\u0523\5\u009cO\2\u0522\u050c\3\2\2\2\u0522\u050f"+ "\3\2\2\2\u0522\u0513\3\2\2\2\u0522\u0514\3\2\2\2\u0522\u0515\3\2\2\2\u0522"+ "\u0516\3\2\2\2\u0522\u0517\3\2\2\2\u0522\u0518\3\2\2\2\u0522\u0519\3\2"+ "\2\2\u0522\u051a\3\2\2\2\u0522\u051b\3\2\2\2\u0522\u051c\3\2\2\2\u0522"+ "\u051d\3\2\2\2\u0522\u051e\3\2\2\2\u0522\u051f\3\2\2\2\u0522\u0520\3\2"+ "\2\2\u0522\u0521\3\2\2\2\u0523\u0099\3\2\2\2\u0524\u0529\5\u011e\u0090"+ "\2\u0525\u0529\5\u00a0Q\2\u0526\u0529\5\u008eH\2\u0527\u0529\5\u015e\u00b0"+ "\2\u0528\u0524\3\2\2\2\u0528\u0525\3\2\2\2\u0528\u0526\3\2\2\2\u0528\u0527"+ "\3\2\2\2\u0529\u009b\3\2\2\2\u052a\u052b\7\24\2\2\u052b\u052c\7O\2\2\u052c"+ "\u052d\5X-\2\u052d\u052e\7P\2\2\u052e\u0534\3\2\2\2\u052f\u0530\7\24\2"+ "\2\u0530\u0531\7O\2\2\u0531\u0532\7\7\2\2\u0532\u0534\7P\2\2\u0533\u052a"+ "\3\2\2\2\u0533\u052f\3\2\2\2\u0534\u009d\3\2\2\2\u0535\u0537\5\u0128\u0095"+ "\2\u0536\u0538\5\u00d0i\2\u0537\u0536\3\2\2\2\u0537\u0538\3\2\2\2\u0538"+ "\u053a\3\2\2\2\u0539\u053b\5\f\7\2\u053a\u0539\3\2\2\2\u053a\u053b\3\2"+ "\2\2\u053b\u053c\3\2\2\2\u053c\u053d\7~\2\2\u053d\u054e\3\2\2\2\u053e"+ "\u053f\5\u0128\u0095\2\u053f\u0540\5\u015e\u00b0\2\u0540\u054e\3\2\2\2"+ "\u0541\u0542\5\u0128\u0095\2\u0542\u0544\5\f\7\2\u0543\u0545\7>\2\2\u0544"+ "\u0543\3\2\2\2\u0544\u0545\3\2\2\2\u0545\u0546\3\2\2\2\u0546\u0547\5\u015e"+ "\u00b0\2\u0547\u054e\3\2\2\2\u0548\u054a\7\33\2\2\u0549\u054b\5\f\7\2"+ "\u054a\u0549\3\2\2\2\u054a\u054b\3\2\2\2\u054b\u054c\3\2\2\2\u054c\u054e"+ "\7~\2\2\u054d\u0535\3\2\2\2\u054d\u053e\3\2\2\2\u054d\u0541\3\2\2\2\u054d"+ "\u0548\3\2\2\2\u054e\u009f\3\2\2\2\u054f\u0550\7~\2\2\u0550\u00a1\3\2"+ "\2\2\u0551\u0552\5\u00a4S\2\u0552\u0554\7S\2\2\u0553\u0555\5\u00acW\2"+ "\u0554\u0553\3\2\2\2\u0554\u0555\3\2\2\2\u0555\u0556\3\2\2\2\u0556\u0557"+ "\7T\2\2\u0557\u055f\3\2\2\2\u0558\u0559\5\u00a4S\2\u0559\u055a\7S\2\2"+ "\u055a\u055b\5\u00acW\2\u055b\u055c\7t\2\2\u055c\u055d\7T\2\2\u055d\u055f"+ "\3\2\2\2\u055e\u0551\3\2\2\2\u055e\u0558\3\2\2\2\u055f\u00a3\3\2\2\2\u0560"+ "\u0562\5\u00a8U\2\u0561\u0563\5\u00d0i\2\u0562\u0561\3\2\2\2\u0562\u0563"+ "\3\2\2\2\u0563\u0565\3\2\2\2\u0564\u0566\7~\2\2\u0565\u0564\3\2\2\2\u0565"+ "\u0566\3\2\2\2\u0566\u0568\3\2\2\2\u0567\u0569\5\u00aaV\2\u0568\u0567"+ "\3\2\2\2\u0568\u0569\3\2\2\2\u0569\u0574\3\2\2\2\u056a\u056c\5\u00a8U"+ "\2\u056b\u056d\5\u00d0i\2\u056c\u056b\3\2\2\2\u056c\u056d\3\2\2\2\u056d"+ "\u056e\3\2\2\2\u056e\u056f\5\f\7\2\u056f\u0571\7~\2\2\u0570\u0572\5\u00aa"+ "V\2\u0571\u0570\3\2\2\2\u0571\u0572\3\2\2\2\u0572\u0574\3\2\2\2\u0573"+ "\u0560\3\2\2\2\u0573\u056a\3\2\2\2\u0574\u00a5\3\2\2\2\u0575\u0577\5\u00a8"+ "U\2\u0576\u0578\5\u00d0i\2\u0577\u0576\3\2\2\2\u0577\u0578\3\2\2\2\u0578"+ "\u0579\3\2\2\2\u0579\u057b\7~\2\2\u057a\u057c\5\u00aaV\2\u057b\u057a\3"+ "\2\2\2\u057b\u057c\3\2\2\2\u057c\u057d\3\2\2\2\u057d\u057e\7z\2\2\u057e"+ "\u00a7\3\2\2\2\u057f\u0585\7\33\2\2\u0580\u0581\7\33\2\2\u0581\u0585\7"+ "\17\2\2\u0582\u0583\7\33\2\2\u0583\u0585\7<\2\2\u0584\u057f\3\2\2\2\u0584"+ "\u0580\3\2\2\2\u0584\u0582\3\2\2\2\u0585\u00a9\3\2\2\2\u0586\u0587\7x"+ "\2\2\u0587\u0588\5\u0094K\2\u0588\u00ab\3\2\2\2\u0589\u058a\bW\1\2\u058a"+ "\u058b\5\u00aeX\2\u058b\u0591\3\2\2\2\u058c\u058d\f\3\2\2\u058d\u058e"+ "\7t\2\2\u058e\u0590\5\u00aeX\2\u058f\u058c\3\2\2\2\u0590\u0593\3\2\2\2"+ "\u0591\u058f\3\2\2\2\u0591\u0592\3\2\2\2\u0592\u00ad\3\2\2\2\u0593\u0591"+ "\3\2\2\2\u0594\u059a\5\u00b0Y\2\u0595\u0596\5\u00b0Y\2\u0596\u0597\7_"+ "\2\2\u0597\u0598\5Z.\2\u0598\u059a\3\2\2\2\u0599\u0594\3\2\2\2\u0599\u0595"+ "\3\2\2\2\u059a\u00af\3\2\2\2\u059b\u059c\7~\2\2\u059c\u00b1\3\2\2\2\u059d"+ "\u05a0\5\u00b4[\2\u059e\u05a0\5\u00c2b\2\u059f\u059d\3\2\2\2\u059f\u059e"+ "\3\2\2\2\u05a0\u00b3\3\2\2\2\u05a1\u05a2\7~\2\2\u05a2\u00b5\3\2\2\2\u05a3"+ "\u05a6\5\u00b8]\2\u05a4\u05a6\5\u00be`\2\u05a5\u05a3\3\2\2\2\u05a5\u05a4"+ "\3\2\2\2\u05a6\u00b7\3\2\2\2\u05a7\u05aa\5\u00ba^\2\u05a8\u05aa\5\u00bc"+ "_\2\u05a9\u05a7\3\2\2\2\u05a9\u05a8\3\2\2\2\u05aa\u00b9\3\2\2\2\u05ab"+ "\u05ad\7&\2\2\u05ac\u05ab\3\2\2\2\u05ac\u05ad\3\2\2\2\u05ad\u05ae\3\2"+ "\2\2\u05ae\u05af\7*\2\2\u05af\u05b0\7~\2\2\u05b0\u05b1\7S\2\2\u05b1\u05b2"+ "\5\u00c0a\2\u05b2\u05b3\7T\2\2\u05b3\u00bb\3\2\2\2\u05b4\u05b6\7&\2\2"+ "\u05b5\u05b4\3\2\2\2\u05b5\u05b6\3\2\2\2\u05b6\u05b7\3\2\2\2\u05b7\u05b8"+ "\7*\2\2\u05b8\u05b9\5\u00b4[\2\u05b9\u05ba\7S\2\2\u05ba\u05bb\5\u00c0"+ "a\2\u05bb\u05bc\7T\2\2\u05bc\u00bd\3\2\2\2\u05bd\u05bf\7&\2\2\u05be\u05bd"+ "\3\2\2\2\u05be\u05bf\3\2\2\2\u05bf\u05c0\3\2\2\2\u05c0\u05c1\7*\2\2\u05c1"+ "\u05c2\7S\2\2\u05c2\u05c3\5\u00c0a\2\u05c3\u05c4\7T\2\2\u05c4\u00bf\3"+ "\2\2\2\u05c5\u05c7\5v<\2\u05c6\u05c5\3\2\2\2\u05c6\u05c7\3\2\2\2\u05c7"+ "\u00c1\3\2\2\2\u05c8\u05c9\7~\2\2\u05c9\u00c3\3\2\2\2\u05ca\u05cb\7*\2"+ "\2\u05cb\u05cc\7~\2\2\u05cc\u05cd\7_\2\2\u05cd\u05ce\5\u00c6d\2\u05ce"+ "\u05cf\7z\2\2\u05cf\u00c5\3\2\2\2\u05d0\u05d2\5\f\7\2\u05d1\u05d0\3\2"+ "\2\2\u05d1\u05d2\3\2\2\2\u05d2\u05d3\3\2\2\2\u05d3\u05d4\5\u00b2Z\2\u05d4"+ "\u00c7\3\2\2\2\u05d5\u05d7\7I\2\2\u05d6\u05d8\7F\2\2\u05d7\u05d6\3\2\2"+ "\2\u05d7\u05d8\3\2\2\2\u05d8\u05d9\3\2\2\2\u05d9\u05da\5\f\7\2\u05da\u05db"+ "\5\b\5\2\u05db\u05dc\7z\2\2\u05dc\u05e3\3\2\2\2\u05dd\u05de\7I\2\2\u05de"+ "\u05df\7y\2\2\u05df\u05e0\5\b\5\2\u05e0\u05e1\7z\2\2\u05e1\u05e3\3\2\2"+ "\2\u05e2\u05d5\3\2\2\2\u05e2\u05dd\3\2\2\2\u05e3\u00c9\3\2\2\2\u05e4\u05e6"+ "\5\u00d0i\2\u05e5\u05e4\3\2\2\2\u05e5\u05e6\3\2\2\2\u05e6\u05e7\3\2\2"+ "\2\u05e7\u05e8\7I\2\2\u05e8\u05ea\7*\2\2\u05e9\u05eb\5\f\7\2\u05ea\u05e9"+ "\3\2\2\2\u05ea\u05eb\3\2\2\2\u05eb\u05ec\3\2\2\2\u05ec\u05ed\5\u00b2Z"+ "\2\u05ed\u05ee\7z\2\2\u05ee\u00cb\3\2\2\2\u05ef\u05f0\7\6\2\2\u05f0\u05f1"+ "\7O\2\2\u05f1\u05f2\7\u0087\2\2\u05f2\u05f3\7P\2\2\u05f3\u05f4\7z\2\2"+ "\u05f4\u00cd\3\2\2\2\u05f5\u05f6\7\36\2\2\u05f6\u05f7\7\u0087\2\2\u05f7"+ "\u05f9\7S\2\2\u05f8\u05fa\5v<\2\u05f9\u05f8\3\2\2\2\u05f9\u05fa\3\2\2"+ "\2\u05fa\u05fb\3\2\2\2\u05fb\u0600\7T\2\2\u05fc\u05fd\7\36\2\2\u05fd\u05fe"+ "\7\u0087\2\2\u05fe\u0600\5x=\2\u05ff\u05f5\3\2\2\2\u05ff\u05fc\3\2\2\2"+ "\u0600\u00cf\3\2\2\2\u0601\u0602\bi\1\2\u0602\u0603\5\u00d2j\2\u0603\u0608"+ "\3\2\2\2\u0604\u0605\f\3\2\2\u0605\u0607\5\u00d2j\2\u0606\u0604\3\2\2"+ "\2\u0607\u060a\3\2\2\2\u0608\u0606\3\2\2\2\u0608\u0609\3\2\2\2\u0609\u00d1"+ "\3\2\2\2\u060a\u0608\3\2\2\2\u060b\u060c\7Q\2\2\u060c\u060d\7Q\2\2\u060d"+ "\u060e\5\u00d6l\2\u060e\u060f\7R\2\2\u060f\u0610\7R\2\2\u0610\u0613\3"+ "\2\2\2\u0611\u0613\5\u00d4k\2\u0612\u060b\3\2\2\2\u0612\u0611\3\2\2\2"+ "\u0613\u00d3\3\2\2\2\u0614\u0615\7\4\2\2\u0615\u0616\7O\2\2\u0616\u0618"+ "\5\u00fe\u0080\2\u0617\u0619\7}\2\2\u0618\u0617\3\2\2\2\u0618\u0619\3"+ "\2\2\2\u0619\u061a\3\2\2\2\u061a\u061b\7P\2\2\u061b\u0625\3\2\2\2\u061c"+ "\u061d\7\4\2\2\u061d\u061e\7O\2\2\u061e\u0620\5Z.\2\u061f\u0621\7}\2\2"+ "\u0620\u061f\3\2\2\2\u0620\u0621\3\2\2\2\u0621\u0622\3\2\2\2\u0622\u0623"+ "\7P\2\2\u0623\u0625\3\2\2\2\u0624\u0614\3\2\2\2\u0624\u061c\3\2\2\2\u0625"+ "\u00d5\3\2\2\2\u0626\u0628\bl\1\2\u0627\u0629\5\u00d8m\2\u0628\u0627\3"+ "\2\2\2\u0628\u0629\3\2\2\2\u0629\u062e\3\2\2\2\u062a\u062b\5\u00d8m\2"+ "\u062b\u062c\7}\2\2\u062c\u062e\3\2\2\2\u062d\u0626\3\2\2\2\u062d\u062a"+ "\3\2\2\2\u062e\u063b\3\2\2\2\u062f\u0630\f\5\2\2\u0630\u0632\7t\2\2\u0631"+ "\u0633\5\u00d8m\2\u0632\u0631\3\2\2\2\u0632\u0633\3\2\2\2\u0633\u063a"+ "\3\2\2\2\u0634\u0635\f\3\2\2\u0635\u0636\7t\2\2\u0636\u0637\5\u00d8m\2"+ "\u0637\u0638\7}\2\2\u0638\u063a\3\2\2\2\u0639\u062f\3\2\2\2\u0639\u0634"+ "\3\2\2\2\u063a\u063d\3\2\2\2\u063b\u0639\3\2\2\2\u063b\u063c\3\2\2\2\u063c"+ "\u00d7\3\2\2\2\u063d\u063b\3\2\2\2\u063e\u0640\5\u00dan\2\u063f\u0641"+ "\5\u00e0q\2\u0640\u063f\3\2\2\2\u0640\u0641\3\2\2\2\u0641\u00d9\3\2\2"+ "\2\u0642\u0645\7~\2\2\u0643\u0645\5\u00dco\2\u0644\u0642\3\2\2\2\u0644"+ "\u0643\3\2\2\2\u0645\u00db\3\2\2\2\u0646\u0647\5\u00dep\2\u0647\u0648"+ "\7y\2\2\u0648\u0649\7~\2\2\u0649\u00dd\3\2\2\2\u064a\u064b\7~\2\2\u064b"+ "\u00df\3\2\2\2\u064c\u064d\7O\2\2\u064d\u064e\5\u00e2r\2\u064e\u064f\7"+ "P\2\2\u064f\u00e1\3\2\2\2\u0650\u0652\br\1\2\u0651\u0653\5\u00e4s\2\u0652"+ "\u0651\3\2\2\2\u0652\u0653\3\2\2\2\u0653\u0658\3\2\2\2\u0654\u0655\f\3"+ "\2\2\u0655\u0657\5\u00e4s\2\u0656\u0654\3\2\2\2\u0657\u065a\3\2\2\2\u0658"+ "\u0656\3\2\2\2\u0658\u0659\3\2\2\2\u0659\u00e3\3\2\2\2\u065a\u0658\3\2"+ "\2\2\u065b\u065c\7O\2\2\u065c\u065d\5\u00e2r\2\u065d\u065e\7P\2\2\u065e"+ "\u0668\3\2\2\2\u065f\u0660\7Q\2\2\u0660\u0661\5\u00e2r\2\u0661\u0662\7"+ "R\2\2\u0662\u0668\3\2\2\2\u0663\u0664\7S\2\2\u0664\u0665\5\u00e2r\2\u0665"+ "\u0666\7T\2\2\u0666\u0668\3\2\2\2\u0667\u065b\3\2\2\2\u0667\u065f\3\2"+ "\2\2\u0667\u0663\3\2\2\2\u0668\u00e5\3\2\2\2\u0669\u066a\bt\1\2\u066a"+ "\u066b\5\u00e8u\2\u066b\u0671\3\2\2\2\u066c\u066d\f\3\2\2\u066d\u066e"+ "\7t\2\2\u066e\u0670\5\u00e8u\2\u066f\u066c\3\2\2\2\u0670\u0673\3\2\2\2"+ "\u0671\u066f\3\2\2\2\u0671\u0672\3\2\2\2\u0672\u00e7\3\2\2\2\u0673\u0671"+ "\3\2\2\2\u0674\u0676\5\u00eav\2\u0675\u0677\5\u0114\u008b\2\u0676\u0675"+ "\3\2\2\2\u0676\u0677\3\2\2\2\u0677\u00e9\3\2\2\2\u0678\u067e\5\u00ecw"+ "\2\u0679\u067a\5\u00eex\2\u067a\u067b\5\u00f0y\2\u067b\u067c\5\u00f2z"+ "\2\u067c\u067e\3\2\2\2\u067d\u0678\3\2\2\2\u067d\u0679\3\2\2\2\u067e\u00eb"+ "\3\2\2\2\u067f\u0684\5\u00eex\2\u0680\u0681\5\u00f4{\2\u0681\u0682\5\u00ec"+ "w\2\u0682\u0684\3\2\2\2\u0683\u067f\3\2\2\2\u0683\u0680\3\2\2\2\u0684"+ "\u00ed\3\2\2\2\u0685\u0686\bx\1\2\u0686\u0688\5\u00fc\177\2\u0687\u0689"+ "\5\u00d0i\2\u0688\u0687\3\2\2\2\u0688\u0689\3\2\2\2\u0689\u068f\3\2\2"+ "\2\u068a\u068b\7O\2\2\u068b\u068c\5\u00ecw\2\u068c\u068d\7P\2\2\u068d"+ "\u068f\3\2\2\2\u068e\u0685\3\2\2\2\u068e\u068a\3\2\2\2\u068f\u069d\3\2"+ "\2\2\u0690\u0691\f\5\2\2\u0691\u069c\5\u00f0y\2\u0692\u0693\f\4\2\2\u0693"+ "\u0695\7Q\2\2\u0694\u0696\5Z.\2\u0695\u0694\3\2\2\2\u0695\u0696\3\2\2"+ "\2\u0696\u0697\3\2\2\2\u0697\u0699\7R\2\2\u0698\u069a\5\u00d0i\2\u0699"+ "\u0698\3\2\2\2\u0699\u069a\3\2\2\2\u069a\u069c\3\2\2\2\u069b\u0690\3\2"+ "\2\2\u069b\u0692\3\2\2\2\u069c\u069f\3\2\2\2\u069d\u069b\3\2\2\2\u069d"+ "\u069e\3\2\2\2\u069e\u00ef\3\2\2\2\u069f\u069d\3\2\2\2\u06a0\u06a1\7O"+ "\2\2\u06a1\u06a2\5\u010a\u0086\2\u06a2\u06a4\7P\2\2\u06a3\u06a5\5\u00f6"+ "|\2\u06a4\u06a3\3\2\2\2\u06a4\u06a5\3\2\2\2\u06a5\u06a7\3\2\2\2\u06a6"+ "\u06a8\5\u00fa~\2\u06a7\u06a6\3\2\2\2\u06a7\u06a8\3\2\2\2\u06a8\u06aa"+ "\3\2\2\2\u06a9\u06ab\5\u017a\u00be\2\u06aa\u06a9\3\2\2\2\u06aa\u06ab\3"+ "\2\2\2\u06ab\u06ad\3\2\2\2\u06ac\u06ae\5\u00d0i\2\u06ad\u06ac\3\2\2\2"+ "\u06ad\u06ae\3\2\2\2\u06ae\u00f1\3\2\2\2\u06af\u06b0\7v\2\2\u06b0\u06b2"+ "\5\u0096L\2\u06b1\u06b3\5\u0100\u0081\2\u06b2\u06b1\3\2\2\2\u06b2\u06b3"+ "\3\2\2\2\u06b3\u00f3\3\2\2\2\u06b4\u06b6\7W\2\2\u06b5\u06b7\5\u00d0i\2"+ "\u06b6\u06b5\3\2\2\2\u06b6\u06b7\3\2\2\2\u06b7\u06b9\3\2\2\2\u06b8\u06ba"+ "\5\u00f6|\2\u06b9\u06b8\3\2\2\2\u06b9\u06ba\3\2\2\2\u06ba\u06cc\3\2\2"+ "\2\u06bb\u06bd\7[\2\2\u06bc\u06be\5\u00d0i\2\u06bd\u06bc\3\2\2\2\u06bd"+ "\u06be\3\2\2\2\u06be\u06cc\3\2\2\2\u06bf\u06c1\7p\2\2\u06c0\u06c2\5\u00d0"+ "i\2\u06c1\u06c0\3\2\2\2\u06c1\u06c2\3\2\2\2\u06c2\u06cc\3\2\2\2\u06c3"+ "\u06c4\5\f\7\2\u06c4\u06c6\7W\2\2\u06c5\u06c7\5\u00d0i\2\u06c6\u06c5\3"+ "\2\2\2\u06c6\u06c7\3\2\2\2\u06c7\u06c9\3\2\2\2\u06c8\u06ca\5\u00f6|\2"+ "\u06c9\u06c8\3\2\2\2\u06c9\u06ca\3\2\2\2\u06ca\u06cc\3\2\2\2\u06cb\u06b4"+ "\3\2\2\2\u06cb\u06bb\3\2\2\2\u06cb\u06bf\3\2\2\2\u06cb\u06c3\3\2\2\2\u06cc"+ "\u00f5\3\2\2\2\u06cd\u06cf\5\u00f8}\2\u06ce\u06d0\5\u00f6|\2\u06cf\u06ce"+ "\3\2\2\2\u06cf\u06d0\3\2\2\2\u06d0\u00f7\3\2\2\2\u06d1\u06d2\t\6\2\2\u06d2"+ "\u00f9\3\2\2\2\u06d3\u06d4\t\7\2\2\u06d4\u00fb\3\2\2\2\u06d5\u06d7\7}"+ "\2\2\u06d6\u06d5\3\2\2\2\u06d6\u06d7\3\2\2\2\u06d7\u06d8\3\2\2\2\u06d8"+ "\u06d9\5\6\4\2\u06d9\u00fd\3\2\2\2\u06da\u06dc\5\u0094K\2\u06db\u06dd"+ "\5\u0100\u0081\2\u06dc\u06db\3\2\2\2\u06dc\u06dd\3\2\2\2\u06dd\u00ff\3"+ "\2\2\2\u06de\u06e7\5\u0102\u0082\2\u06df\u06e1\5\u0104\u0083\2\u06e0\u06df"+ "\3\2\2\2\u06e0\u06e1\3\2\2\2\u06e1\u06e2\3\2\2\2\u06e2\u06e3\5\u00f0y"+ "\2\u06e3\u06e4\5\u00f2z\2\u06e4\u06e7\3\2\2\2\u06e5\u06e7\5\u0106\u0084"+ "\2\u06e6\u06de\3\2\2\2\u06e6\u06e0\3\2\2\2\u06e6\u06e5\3\2\2\2\u06e7\u0101"+ "\3\2\2\2\u06e8\u06ee\5\u0104\u0083\2\u06e9\u06eb\5\u00f4{\2\u06ea\u06ec"+ "\5\u0102\u0082\2\u06eb\u06ea\3\2\2\2\u06eb\u06ec\3\2\2\2\u06ec\u06ee\3"+ "\2\2\2\u06ed\u06e8\3\2\2\2\u06ed\u06e9\3\2\2\2\u06ee\u0103\3\2\2\2\u06ef"+ "\u06f0\b\u0083\1\2\u06f0\u06fe\5\u00f0y\2\u06f1\u06f3\7Q\2\2\u06f2\u06f4"+ "\5Z.\2\u06f3\u06f2\3\2\2\2\u06f3\u06f4\3\2\2\2\u06f4\u06f5\3\2\2\2\u06f5"+ "\u06f7\7R\2\2\u06f6\u06f8\5\u00d0i\2\u06f7\u06f6\3\2\2\2\u06f7\u06f8\3"+ "\2\2\2\u06f8\u06fe\3\2\2\2\u06f9\u06fa\7O\2\2\u06fa\u06fb\5\u0102\u0082"+ "\2\u06fb\u06fc\7P\2\2\u06fc\u06fe\3\2\2\2\u06fd\u06ef\3\2\2\2\u06fd\u06f1"+ "\3\2\2\2\u06fd\u06f9\3\2\2\2\u06fe\u070c\3\2\2\2\u06ff\u0700\f\7\2\2\u0700"+ "\u070b\5\u00f0y\2\u0701\u0702\f\5\2\2\u0702\u0704\7Q\2\2\u0703\u0705\5"+ "Z.\2\u0704\u0703\3\2\2\2\u0704\u0705\3\2\2\2\u0705\u0706\3\2\2\2\u0706"+ "\u0708\7R\2\2\u0707\u0709\5\u00d0i\2\u0708\u0707\3\2\2\2\u0708\u0709\3"+ "\2\2\2\u0709\u070b\3\2\2\2\u070a\u06ff\3\2\2\2\u070a\u0701\3\2\2\2\u070b"+ "\u070e\3\2\2\2\u070c\u070a\3\2\2\2\u070c\u070d\3\2\2\2\u070d\u0105\3\2"+ "\2\2\u070e\u070c\3\2\2\2\u070f\u0714\5\u0108\u0085\2\u0710\u0711\5\u00f4"+ "{\2\u0711\u0712\5\u0106\u0084\2\u0712\u0714\3\2\2\2\u0713\u070f\3\2\2"+ "\2\u0713\u0710\3\2\2\2\u0714\u0107\3\2\2\2\u0715\u0716\b\u0085\1\2\u0716"+ "\u0717\7}\2\2\u0717\u0725\3\2\2\2\u0718\u0719\f\5\2\2\u0719\u0724\5\u00f0"+ "y\2\u071a\u071b\f\4\2\2\u071b\u071d\7Q\2\2\u071c\u071e\5Z.\2\u071d\u071c"+ "\3\2\2\2\u071d\u071e\3\2\2\2\u071e\u071f\3\2\2\2\u071f\u0721\7R\2\2\u0720"+ "\u0722\5\u00d0i\2\u0721\u0720\3\2\2\2\u0721\u0722\3\2\2\2\u0722\u0724"+ "\3\2\2\2\u0723\u0718\3\2\2\2\u0723\u071a\3\2\2\2\u0724\u0727\3\2\2\2\u0725"+ "\u0723\3\2\2\2\u0725\u0726\3\2\2\2\u0726\u0109\3\2\2\2\u0727\u0725\3\2"+ "\2\2\u0728\u072a\5\u010c\u0087\2\u0729\u0728\3\2\2\2\u0729\u072a\3\2\2"+ "\2\u072a\u072c\3\2\2\2\u072b\u072d\7}\2\2\u072c\u072b\3\2\2\2\u072c\u072d"+ "\3\2\2\2\u072d\u0733\3\2\2\2\u072e\u072f\5\u010c\u0087\2\u072f\u0730\7"+ "t\2\2\u0730\u0731\7}\2\2\u0731\u0733\3\2\2\2\u0732\u0729\3\2\2\2\u0732"+ "\u072e\3\2\2\2\u0733\u010b\3\2\2\2\u0734\u0735\b\u0087\1\2\u0735\u0736"+ "\5\u010e\u0088\2\u0736\u073c\3\2\2\2\u0737\u0738\f\3\2\2\u0738\u0739\7"+ "t\2\2\u0739\u073b\5\u010e\u0088\2\u073a\u0737\3\2\2\2\u073b\u073e\3\2"+ "\2\2\u073c\u073a\3\2\2\2\u073c\u073d\3\2\2\2\u073d\u010d\3\2\2\2\u073e"+ "\u073c\3\2\2\2\u073f\u0741\5\u00d0i\2\u0740\u073f\3\2\2\2\u0740\u0741"+ "\3\2\2\2\u0741\u0742\3\2\2\2\u0742\u0743\5\u0088E\2\u0743\u0744\5\u00ea"+ "v\2\u0744\u075f\3\2\2\2\u0745\u0747\5\u00d0i\2\u0746\u0745\3\2\2\2\u0746"+ "\u0747\3\2\2\2\u0747\u0748\3\2\2\2\u0748\u0749\5\u0088E\2\u0749\u074a"+ "\5\u00eav\2\u074a\u074b\7_\2\2\u074b\u074c\5\u0118\u008d\2\u074c\u075f"+ "\3\2\2\2\u074d\u074f\5\u00d0i\2\u074e\u074d\3\2\2\2\u074e\u074f\3\2\2"+ "\2\u074f\u0750\3\2\2\2\u0750\u0752\5\u0088E\2\u0751\u0753\5\u0100\u0081"+ "\2\u0752\u0751\3\2\2\2\u0752\u0753\3\2\2\2\u0753\u075f\3\2\2\2\u0754\u0756"+ "\5\u00d0i\2\u0755\u0754\3\2\2\2\u0755\u0756\3\2\2\2\u0756\u0757\3\2\2"+ "\2\u0757\u0759\5\u0088E\2\u0758\u075a\5\u0100\u0081\2\u0759\u0758\3\2"+ "\2\2\u0759\u075a\3\2\2\2\u075a\u075b\3\2\2\2\u075b\u075c\7_\2\2\u075c"+ "\u075d\5\u0118\u008d\2\u075d\u075f\3\2\2\2\u075e\u0740\3\2\2\2\u075e\u0746"+ "\3\2\2\2\u075e\u074e\3\2\2\2\u075e\u0755\3\2\2\2\u075f\u010f\3\2\2\2\u0760"+ "\u0762\5\u00d0i\2\u0761\u0760\3\2\2\2\u0761\u0762\3\2\2\2\u0762\u0764"+ "\3\2\2\2\u0763\u0765\5\u0088E\2\u0764\u0763\3\2\2\2\u0764\u0765\3\2\2"+ "\2\u0765\u0766\3\2\2\2\u0766\u0768\5\u00eav\2\u0767\u0769\5\u0132\u009a"+ "\2\u0768\u0767\3\2\2\2\u0768\u0769\3\2\2\2\u0769\u076a\3\2\2\2\u076a\u076b"+ "\5\u0112\u008a\2\u076b\u0111\3\2\2\2\u076c\u076e\5\u014a\u00a6\2\u076d"+ "\u076c\3\2\2\2\u076d\u076e\3\2\2\2\u076e\u076f\3\2\2\2\u076f\u0778\5b"+ "\62\2\u0770\u0778\5\u0170\u00b9\2\u0771\u0772\7_\2\2\u0772\u0773\7\25"+ "\2\2\u0773\u0778\7z\2\2\u0774\u0775\7_\2\2\u0775\u0776\7\26\2\2\u0776"+ "\u0778\7z\2\2\u0777\u076d\3\2\2\2\u0777\u0770\3\2\2\2\u0777\u0771\3\2"+ "\2\2\u0777\u0774\3\2\2\2\u0778\u0113\3\2\2\2\u0779\u077f\5\u0116\u008c"+ "\2\u077a\u077b\7O\2\2\u077b\u077c\5\"\22\2\u077c\u077d\7P\2\2\u077d\u077f"+ "\3\2\2\2\u077e\u0779\3\2\2\2\u077e\u077a\3\2\2\2\u077f\u0115\3\2\2\2\u0780"+ "\u0781\7_\2\2\u0781\u0784\5\u0118\u008d\2\u0782\u0784\5\u011c\u008f\2"+ "\u0783\u0780\3\2\2\2\u0783\u0782\3\2\2\2\u0784\u0117\3\2\2\2\u0785\u0788"+ "\5T+\2\u0786\u0788\5\u011c\u008f\2\u0787\u0785\3\2\2\2\u0787\u0786\3\2"+ "\2\2\u0788\u0119\3\2\2\2\u0789\u078a\b\u008e\1\2\u078a\u078c\5\u0118\u008d"+ "\2\u078b\u078d\7}\2\2\u078c\u078b\3\2\2\2\u078c\u078d\3\2\2\2\u078d\u0796"+ "\3\2\2\2\u078e\u078f\f\3\2\2\u078f\u0790\7t\2\2\u0790\u0792\5\u0118\u008d"+ "\2\u0791\u0793\7}\2\2\u0792\u0791\3\2\2\2\u0792\u0793\3\2\2\2\u0793\u0795"+ "\3\2\2\2\u0794\u078e\3\2\2\2\u0795\u0798\3\2\2\2\u0796\u0794\3\2\2\2\u0796"+ "\u0797\3\2\2\2\u0797\u011b\3\2\2\2\u0798\u0796\3\2\2\2\u0799\u079a\7S"+ "\2\2\u079a\u079c\5\u011a\u008e\2\u079b\u079d\7t\2\2\u079c\u079b\3\2\2"+ "\2\u079c\u079d\3\2\2\2\u079d\u079e\3\2\2\2\u079e\u079f\7T\2\2\u079f\u07a3"+ "\3\2\2\2\u07a0\u07a1\7S\2\2\u07a1\u07a3\7T\2\2\u07a2\u0799\3\2\2\2\u07a2"+ "\u07a0\3\2\2\2\u07a3\u011d\3\2\2\2\u07a4\u07a7\7~\2\2\u07a5\u07a7\5\u015e"+ "\u00b0\2\u07a6\u07a4\3\2\2\2\u07a6\u07a5\3\2\2\2\u07a7\u011f\3\2\2\2\u07a8"+ "\u07a9\5\u0122\u0092\2\u07a9\u07ab\7S\2\2\u07aa\u07ac\5\u012a\u0096\2"+ "\u07ab\u07aa\3\2\2\2\u07ab\u07ac\3\2\2\2\u07ac\u07ad\3\2\2\2\u07ad\u07ae"+ "\7T\2\2\u07ae\u0121\3\2\2\2\u07af\u07b1\5\u0128\u0095\2\u07b0\u07b2\5"+ "\u00d0i\2\u07b1\u07b0\3\2\2\2\u07b1\u07b2\3\2\2\2\u07b2\u07b3\3\2\2\2"+ "\u07b3\u07b5\5\u0124\u0093\2\u07b4\u07b6\5\u0126\u0094\2\u07b5\u07b4\3"+ "\2\2\2\u07b5\u07b6\3\2\2\2\u07b6\u07b8\3\2\2\2\u07b7\u07b9\5\u0138\u009d"+ "\2\u07b8\u07b7\3\2\2\2\u07b8\u07b9\3\2\2\2\u07b9\u07c2\3\2\2\2\u07ba\u07bc"+ "\5\u0128\u0095\2\u07bb\u07bd\5\u00d0i\2\u07bc\u07bb\3\2\2\2\u07bc\u07bd"+ "\3\2\2\2\u07bd\u07bf\3\2\2\2\u07be\u07c0\5\u0138\u009d\2\u07bf\u07be\3"+ "\2\2\2\u07bf\u07c0\3\2\2\2\u07c0\u07c2\3\2\2\2\u07c1\u07af\3\2\2\2\u07c1"+ "\u07ba\3\2\2\2\u07c2\u0123\3\2\2\2\u07c3\u07c5\5\f\7\2\u07c4\u07c3\3\2"+ "\2\2\u07c4\u07c5\3\2\2\2\u07c5\u07c6\3\2\2\2\u07c6\u07c7\5\u011e\u0090"+ "\2\u07c7\u0125\3\2\2\2\u07c8\u07c9\7 \2\2\u07c9\u0127\3\2\2\2\u07ca\u07cb"+ "\t\b\2\2\u07cb\u0129\3\2\2\2\u07cc\u07ce\5\u012c\u0097\2\u07cd\u07cf\5"+ "\u012a\u0096\2\u07ce\u07cd\3\2\2\2\u07ce\u07cf\3\2\2\2\u07cf\u07d6\3\2"+ "\2\2\u07d0\u07d1\5\u0142\u00a2\2\u07d1\u07d3\7x\2\2\u07d2\u07d4\5\u012a"+ "\u0096\2\u07d3\u07d2\3\2\2\2\u07d3\u07d4\3\2\2\2\u07d4\u07d6\3\2\2\2\u07d5"+ "\u07cc\3\2\2\2\u07d5\u07d0\3\2\2\2\u07d6\u012b\3\2\2\2\u07d7\u07d9\5\u00d0"+ "i\2\u07d8\u07d7\3\2\2\2\u07d8\u07d9\3\2\2\2\u07d9\u07db\3\2\2\2\u07da"+ "\u07dc\5\u0088E\2\u07db\u07da\3\2\2\2\u07db\u07dc\3\2\2\2\u07dc\u07de"+ "\3\2\2\2\u07dd\u07df\5\u012e\u0098\2\u07de\u07dd\3\2\2\2\u07de\u07df\3"+ "\2\2\2\u07df\u07e0\3\2\2\2\u07e0\u07e8\7z\2\2\u07e1\u07e8\5\u0110\u0089"+ "\2\u07e2\u07e8\5\u00c8e\2\u07e3\u07e8\5\u0080A\2\u07e4\u07e8\5\u0156\u00ac"+ "\2\u07e5\u07e8\5|?\2\u07e6\u07e8\5\u0082B\2\u07e7\u07d8\3\2\2\2\u07e7"+ "\u07e1\3\2\2\2\u07e7\u07e2\3\2\2\2\u07e7\u07e3\3\2\2\2\u07e7\u07e4\3\2"+ "\2\2\u07e7\u07e5\3\2\2\2\u07e7\u07e6\3\2\2\2\u07e8\u012d\3\2\2\2\u07e9"+ "\u07ea\b\u0098\1\2\u07ea\u07eb\5\u0130\u0099\2\u07eb\u07f1\3\2\2\2\u07ec"+ "\u07ed\f\3\2\2\u07ed\u07ee\7t\2\2\u07ee\u07f0\5\u0130\u0099\2\u07ef\u07ec"+ "\3\2\2\2\u07f0\u07f3\3\2\2\2\u07f1\u07ef\3\2\2\2\u07f1\u07f2\3\2\2\2\u07f2"+ "\u012f\3\2\2\2\u07f3\u07f1\3\2\2\2\u07f4\u07f6\5\u00eav\2\u07f5\u07f7"+ "\5\u0132\u009a\2\u07f6\u07f5\3\2\2\2\u07f6\u07f7\3\2\2\2\u07f7\u07f9\3"+ "\2\2\2\u07f8\u07fa\5\u0136\u009c\2\u07f9\u07f8\3\2\2\2\u07f9\u07fa\3\2"+ "\2\2\u07fa\u0808\3\2\2\2\u07fb\u07fd\5\u00eav\2\u07fc\u07fe\5\u0116\u008c"+ "\2\u07fd\u07fc\3\2\2\2\u07fd\u07fe\3\2\2\2\u07fe\u0808\3\2\2\2\u07ff\u0801"+ "\7~\2\2\u0800\u07ff\3\2\2\2\u0800\u0801\3\2\2\2\u0801\u0803\3\2\2\2\u0802"+ "\u0804\5\u00d0i\2\u0803\u0802\3\2\2\2\u0803\u0804\3\2\2\2\u0804\u0805"+ "\3\2\2\2\u0805\u0806\7x\2\2\u0806\u0808\5Z.\2\u0807\u07f4\3\2\2\2\u0807"+ "\u07fb\3\2\2\2\u0807\u0800\3\2\2\2\u0808\u0131\3\2\2\2\u0809\u080a\b\u009a"+ "\1\2\u080a\u080b\5\u0134\u009b\2\u080b\u0810\3\2\2\2\u080c\u080d\f\3\2"+ "\2\u080d\u080f\5\u0134\u009b\2\u080e\u080c\3\2\2\2\u080f\u0812\3\2\2\2"+ "\u0810\u080e\3\2\2\2\u0810\u0811\3\2\2\2\u0811\u0133\3\2\2\2\u0812\u0810"+ "\3\2\2\2\u0813\u0814\t\t\2\2\u0814\u0135\3\2\2\2\u0815\u0816\7_\2\2\u0816"+ "\u0817\7\u0081\2\2\u0817\u0818\b\u009c\1\2\u0818\u0137\3\2\2\2\u0819\u081a"+ "\7x\2\2\u081a\u081b\5\u013a\u009e\2\u081b\u0139\3\2\2\2\u081c\u081d\b"+ "\u009e\1\2\u081d\u081f\5\u013c\u009f\2\u081e\u0820\7}\2\2\u081f\u081e"+ "\3\2\2\2\u081f\u0820\3\2\2\2\u0820\u0829\3\2\2\2\u0821\u0822\f\3\2\2\u0822"+ "\u0823\7t\2\2\u0823\u0825\5\u013c\u009f\2\u0824\u0826\7}\2\2\u0825\u0824"+ "\3\2\2\2\u0825\u0826\3\2\2\2\u0826\u0828\3\2\2\2\u0827\u0821\3\2\2\2\u0828"+ "\u082b\3\2\2\2\u0829\u0827\3\2\2\2\u0829\u082a\3\2\2\2\u082a\u013b\3\2"+ "\2\2\u082b\u0829\3\2\2\2\u082c\u082e\5\u00d0i\2\u082d\u082c\3\2\2\2\u082d"+ "\u082e\3\2\2\2\u082e\u082f\3\2\2\2\u082f\u0842\5\u0140\u00a1\2\u0830\u0832"+ "\5\u00d0i\2\u0831\u0830\3\2\2\2\u0831\u0832\3\2\2\2\u0832\u0833\3\2\2"+ "\2\u0833\u0835\7J\2\2\u0834\u0836\5\u0142\u00a2\2\u0835\u0834\3\2\2\2"+ "\u0835\u0836\3\2\2\2\u0836\u0837\3\2\2\2\u0837\u0842\5\u0140\u00a1\2\u0838"+ "\u083a\5\u00d0i\2\u0839\u0838\3\2\2\2\u0839\u083a\3\2\2\2\u083a\u083b"+ "\3\2\2\2\u083b\u083d\5\u0142\u00a2\2\u083c\u083e\7J\2\2\u083d\u083c\3"+ "\2\2\2\u083d\u083e\3\2\2\2\u083e\u083f\3\2\2\2\u083f\u0840\5\u0140\u00a1"+ "\2\u0840\u0842\3\2\2\2\u0841\u082d\3\2\2\2\u0841\u0831\3\2\2\2\u0841\u0839"+ "\3\2\2\2\u0842\u013d\3\2\2\2\u0843\u0845\5\f\7\2\u0844\u0843\3\2\2\2\u0844"+ "\u0845\3\2\2\2\u0845\u0846\3\2\2\2\u0846\u0849\5\u011e\u0090\2\u0847\u0849"+ "\5\u009cO\2\u0848\u0844\3\2\2\2\u0848\u0847\3\2\2\2\u0849\u013f\3\2\2"+ "\2\u084a\u084b\5\u013e\u00a0\2\u084b\u0141\3\2\2\2\u084c\u084d\t\n\2\2"+ "\u084d\u0143\3\2\2\2\u084e\u084f\7.\2\2\u084f\u0850\5\u0146\u00a4\2\u0850"+ "\u0145\3\2\2\2\u0851\u0853\5\u0094K\2\u0852\u0854\5\u0148\u00a5\2\u0853"+ "\u0852\3\2\2\2\u0853\u0854\3\2\2\2\u0854\u0147\3\2\2\2\u0855\u0857\5\u00f4"+ "{\2\u0856\u0858\5\u0148\u00a5\2\u0857\u0856\3\2\2\2\u0857\u0858\3\2\2"+ "\2\u0858\u0149\3\2\2\2\u0859\u085a\7x\2\2\u085a\u085b\5\u014c\u00a7\2"+ "\u085b\u014b\3\2\2\2\u085c\u085e\5\u014e\u00a8\2\u085d\u085f\7}\2\2\u085e"+ "\u085d\3\2\2\2\u085e\u085f\3\2\2\2\u085f\u0868\3\2\2\2\u0860\u0862\5\u014e"+ "\u00a8\2\u0861\u0863\7}\2\2\u0862\u0861\3\2\2\2\u0862\u0863\3\2\2\2\u0863"+ "\u0864\3\2\2\2\u0864\u0865\7t\2\2\u0865\u0866\5\u014c\u00a7\2\u0866\u0868"+ "\3\2\2\2\u0867\u085c\3\2\2\2\u0867\u0860\3\2\2\2\u0868\u014d\3\2\2\2\u0869"+ "\u086a\5\u0150\u00a9\2\u086a\u086c\7O\2\2\u086b\u086d\5\"\22\2\u086c\u086b"+ "\3\2\2\2\u086c\u086d\3\2\2\2\u086d\u086e\3\2\2\2\u086e\u086f\7P\2\2\u086f"+ "\u0874\3\2\2\2\u0870\u0871\5\u0150\u00a9\2\u0871\u0872\5\u011c\u008f\2"+ "\u0872\u0874\3\2\2\2\u0873\u0869\3\2\2\2\u0873\u0870\3\2\2\2\u0874\u014f"+ "\3\2\2\2\u0875\u0878\5\u013e\u00a0\2\u0876\u0878\7~\2\2\u0877\u0875\3"+ "\2\2\2\u0877\u0876\3\2\2\2\u0878\u0151\3\2\2\2\u0879\u087a\7.\2\2\u087a"+ "\u087b\5\u0186\u00c4\2\u087b\u0153\3\2\2\2\u087c\u087d\7.\2\2\u087d\u087e"+ "\7\u0087\2\2\u087e\u0882\7~\2\2\u087f\u0880\7.\2\2\u0880\u0882\7\u008a"+ "\2\2\u0881\u087c\3\2\2\2\u0881\u087f\3\2\2\2\u0882\u0155\3\2\2\2\u0883"+ "\u0884\7>\2\2\u0884\u0885\7`\2\2\u0885\u0886\5\u0158\u00ad\2\u0886\u0887"+ "\7a\2\2\u0887\u0888\5x=\2\u0888\u0157\3\2\2\2\u0889\u088a\b\u00ad\1\2"+ "\u088a\u088b\5\u015a\u00ae\2\u088b\u0891\3\2\2\2\u088c\u088d\f\3\2\2\u088d"+ "\u088e\7t\2\2\u088e\u0890\5\u015a\u00ae\2\u088f\u088c\3\2\2\2\u0890\u0893"+ "\3\2\2\2\u0891\u088f\3\2\2\2\u0891\u0892\3\2\2\2\u0892\u0159\3\2\2\2\u0893"+ "\u0891\3\2\2\2\u0894\u0897\5\u015c\u00af\2\u0895\u0897\5\u010e\u0088\2"+ "\u0896\u0894\3\2\2\2\u0896\u0895\3\2\2\2\u0897\u015b\3\2\2\2\u0898\u089a"+ "\7\17\2\2\u0899\u089b\7}\2\2\u089a\u0899\3\2\2\2\u089a\u089b\3\2\2\2\u089b"+ "\u089d\3\2\2\2\u089c\u089e\7~\2\2\u089d\u089c\3\2\2\2\u089d\u089e\3\2"+ "\2\2\u089e\u08c9\3\2\2\2\u089f\u08a1\7\17\2\2\u08a0\u08a2\7~\2\2\u08a1"+ "\u08a0\3\2\2\2\u08a1\u08a2\3\2\2\2\u08a2\u08a3\3\2\2\2\u08a3\u08a4\7_"+ "\2\2\u08a4\u08c9\5\u00fe\u0080\2\u08a5\u08a7\7F\2\2\u08a6\u08a8\7}\2\2"+ "\u08a7\u08a6\3\2\2\2\u08a7\u08a8\3\2\2\2\u08a8\u08aa\3\2\2\2\u08a9\u08ab"+ "\7~\2\2\u08aa\u08a9\3\2\2\2\u08aa\u08ab\3\2\2\2\u08ab\u08c9\3\2\2\2\u08ac"+ "\u08ae\7F\2\2\u08ad\u08af\7~\2\2\u08ae\u08ad\3\2\2\2\u08ae\u08af\3\2\2"+ "\2\u08af\u08b0\3\2\2\2\u08b0\u08b1\7_\2\2\u08b1\u08c9\5\u00fe\u0080\2"+ "\u08b2\u08b3\7>\2\2\u08b3\u08b4\7`\2\2\u08b4\u08b5\5\u0158\u00ad\2\u08b5"+ "\u08b6\7a\2\2\u08b6\u08b8\7\17\2\2\u08b7\u08b9\7}\2\2\u08b8\u08b7\3\2"+ "\2\2\u08b8\u08b9\3\2\2\2\u08b9\u08bb\3\2\2\2\u08ba\u08bc\7~\2\2\u08bb"+ "\u08ba\3\2\2\2\u08bb\u08bc\3\2\2\2\u08bc\u08c9\3\2\2\2\u08bd\u08be\7>"+ "\2\2\u08be\u08bf\7`\2\2\u08bf\u08c0\5\u0158\u00ad\2\u08c0\u08c1\7a\2\2"+ "\u08c1\u08c3\7\17\2\2\u08c2\u08c4\7~\2\2\u08c3\u08c2\3\2\2\2\u08c3\u08c4"+ "\3\2\2\2\u08c4\u08c5\3\2\2\2\u08c5\u08c6\7_\2\2\u08c6\u08c7\5\6\4\2\u08c7"+ "\u08c9\3\2\2\2\u08c8\u0898\3\2\2\2\u08c8\u089f\3\2\2\2\u08c8\u08a5\3\2"+ "\2\2\u08c8\u08ac\3\2\2\2\u08c8\u08b2\3\2\2\2\u08c8\u08bd\3\2\2\2\u08c9"+ "\u015d\3\2\2\2\u08ca\u08cb\5\u0162\u00b2\2\u08cb\u08cd\7`\2\2\u08cc\u08ce"+ "\5\u0164\u00b3\2\u08cd\u08cc\3\2\2\2\u08cd\u08ce\3\2\2\2\u08ce\u08cf\3"+ "\2\2\2\u08cf\u08d0\7a\2\2\u08d0\u015f\3\2\2\2\u08d1\u08e1\5\u015e\u00b0"+ "\2\u08d2\u08d3\5\u0152\u00aa\2\u08d3\u08d5\7`\2\2\u08d4\u08d6\5\u0164"+ "\u00b3\2\u08d5\u08d4\3\2\2\2\u08d5\u08d6\3\2\2\2\u08d6\u08d7\3\2\2\2\u08d7"+ "\u08d8\7a\2\2\u08d8\u08e1\3\2\2\2\u08d9\u08da\5\u0154\u00ab\2\u08da\u08dc"+ "\7`\2\2\u08db\u08dd\5\u0164\u00b3\2\u08dc\u08db\3\2\2\2\u08dc\u08dd\3"+ "\2\2\2\u08dd\u08de\3\2\2\2\u08de\u08df\7a\2\2\u08df\u08e1\3\2\2\2\u08e0"+ "\u08d1\3\2\2\2\u08e0\u08d2\3\2\2\2\u08e0\u08d9\3\2\2\2\u08e1\u0161\3\2"+ "\2\2\u08e2\u08e3\7~\2\2\u08e3\u0163\3\2\2\2\u08e4\u08e5\b\u00b3\1\2\u08e5"+ "\u08e7\5\u0166\u00b4\2\u08e6\u08e8\7}\2\2\u08e7\u08e6\3\2\2\2\u08e7\u08e8"+ "\3\2\2\2\u08e8\u08f1\3\2\2\2\u08e9\u08ea\f\3\2\2\u08ea\u08eb\7t\2\2\u08eb"+ "\u08ed\5\u0166\u00b4\2\u08ec\u08ee\7}\2\2\u08ed\u08ec\3\2\2\2\u08ed\u08ee"+ "\3\2\2\2\u08ee\u08f0\3\2\2\2\u08ef\u08e9\3\2\2\2\u08f0\u08f3\3\2\2\2\u08f1"+ "\u08ef\3\2\2\2\u08f1\u08f2\3\2\2\2\u08f2\u0165\3\2\2\2\u08f3\u08f1\3\2"+ "\2\2\u08f4\u08f8\5Z.\2\u08f5\u08f8\5\u00fe\u0080\2\u08f6\u08f8\5\6\4\2"+ "\u08f7\u08f4\3\2\2\2\u08f7\u08f5\3\2\2\2\u08f7\u08f6\3\2\2\2\u08f8\u0167"+ "\3\2\2\2\u08f9\u08fa\7F\2\2\u08fa\u08fb\5\f\7\2\u08fb\u08fc\7~\2\2\u08fc"+ "\u0905\3\2\2\2\u08fd\u08fe\7F\2\2\u08fe\u0900\5\f\7\2\u08ff\u0901\7>\2"+ "\2\u0900\u08ff\3\2\2\2\u0900\u0901\3\2\2\2\u0901\u0902\3\2\2\2\u0902\u0903"+ "\5\u015e\u00b0\2\u0903\u0905\3\2\2\2\u0904\u08f9\3\2\2\2\u0904\u08fd\3"+ "\2\2\2\u0905\u0169\3\2\2\2\u0906\u0908\7\36\2\2\u0907\u0906\3\2\2\2\u0907"+ "\u0908\3\2\2\2\u0908\u0909\3\2\2\2\u0909\u090a\7>\2\2\u090a\u090b\5x="+ "\2\u090b\u016b\3\2\2\2\u090c\u090d\7>\2\2\u090d\u090e\7`\2\2\u090e\u090f"+ "\7a\2\2\u090f\u0910\5x=\2\u0910\u016d\3\2\2\2\u0911\u0912\7C\2\2\u0912"+ "\u0913\5b\62\2\u0913\u0914\5\u0172\u00ba\2\u0914\u016f\3\2\2\2\u0915\u0917"+ "\7C\2\2\u0916\u0918\5\u014a\u00a6\2\u0917\u0916\3\2\2\2\u0917\u0918\3"+ "\2\2\2\u0918\u0919\3\2\2\2\u0919\u091a\5b\62\2\u091a\u091b\5\u0172\u00ba"+ "\2\u091b\u0171\3\2\2\2\u091c\u091e\5\u0174\u00bb\2\u091d\u091f\5\u0172"+ "\u00ba\2\u091e\u091d\3\2\2\2\u091e\u091f\3\2\2\2\u091f\u0173\3\2\2\2\u0920"+ "\u0921\7\13\2\2\u0921\u0922\7O\2\2\u0922\u0923\5\u0176\u00bc\2\u0923\u0924"+ "\7P\2\2\u0924\u0925\5b\62\2\u0925\u0175\3\2\2\2\u0926\u0928\5\u00d0i\2"+ "\u0927\u0926\3\2\2\2\u0927\u0928\3\2\2\2\u0928\u0929\3\2\2\2\u0929\u092a"+ "\5\u0094K\2\u092a\u092b\5\u00eav\2\u092b\u0935\3\2\2\2\u092c\u092e\5\u00d0"+ "i\2\u092d\u092c\3\2\2\2\u092d\u092e\3\2\2\2\u092e\u092f\3\2\2\2\u092f"+ "\u0931\5\u0094K\2\u0930\u0932\5\u0100\u0081\2\u0931\u0930\3\2\2\2\u0931"+ "\u0932\3\2\2\2\u0932\u0935\3\2\2\2\u0933\u0935\7}\2\2\u0934\u0927\3\2"+ "\2\2\u0934\u092d\3\2\2\2\u0934\u0933\3\2\2\2\u0935\u0177\3\2\2\2\u0936"+ "\u0938\7A\2\2\u0937\u0939\5T+\2\u0938\u0937\3\2\2\2\u0938\u0939\3\2\2"+ "\2\u0939\u0179\3\2\2\2\u093a\u093d\5\u017c\u00bf\2\u093b\u093d\5\u0180"+ "\u00c1\2\u093c\u093a\3\2\2\2\u093c\u093b\3\2\2\2\u093d\u017b\3\2\2\2\u093e"+ "\u093f\7A\2\2\u093f\u0941\7O\2\2\u0940\u0942\5\u017e\u00c0\2\u0941\u0940"+ "\3\2\2\2\u0941\u0942\3\2\2\2\u0942\u0943\3\2\2\2\u0943\u0944\7P\2\2\u0944"+ "\u017d\3\2\2\2\u0945\u0946\b\u00c0\1\2\u0946\u0948\5\u00fe\u0080\2\u0947"+ "\u0949\7}\2\2\u0948\u0947\3\2\2\2\u0948\u0949\3\2\2\2\u0949\u0952\3\2"+ "\2\2\u094a\u094b\f\3\2\2\u094b\u094c\7t\2\2\u094c\u094e\5\u00fe\u0080"+ "\2\u094d\u094f\7}\2\2\u094e\u094d\3\2\2\2\u094e\u094f\3\2\2\2\u094f\u0951"+ "\3\2\2\2\u0950\u094a\3\2\2\2\u0951\u0954\3\2\2\2\u0952\u0950\3\2\2\2\u0952"+ "\u0953\3\2\2\2\u0953\u017f\3\2\2\2\u0954\u0952\3\2\2\2\u0955\u0956\7,"+ "\2\2\u0956\u0957\7O\2\2\u0957\u0958\5Z.\2\u0958\u0959\7P\2\2\u0959\u095c"+ "\3\2\2\2\u095a\u095c\7,\2\2\u095b\u0955\3\2\2\2\u095b\u095a\3\2\2\2\u095c"+ "\u0181\3\2\2\2\u095d\u095e\7a\2\2\u095e\u095f\7a\2\2\u095f\u0183\3\2\2"+ "\2\u0960\u0961\7a\2\2\u0961\u0962\7a\2\2\u0962\u0963\7_\2\2\u0963\u0185"+ "\3\2\2\2\u0964\u0995\7+\2\2\u0965\u0995\7\26\2\2\u0966\u0967\7+\2\2\u0967"+ "\u0968\7Q\2\2\u0968\u0995\7R\2\2\u0969\u096a\7\26\2\2\u096a\u096b\7Q\2"+ "\2\u096b\u0995\7R\2\2\u096c\u0995\7U\2\2\u096d\u0995\7V\2\2\u096e\u0995"+ "\7W\2\2\u096f\u0995\7X\2\2\u0970\u0995\7Y\2\2\u0971\u0995\7Z\2\2\u0972"+ "\u0995\7[\2\2\u0973\u0995\7\\\2\2\u0974\u0995\7]\2\2\u0975\u0995\7^\2"+ "\2\u0976\u0995\7_\2\2\u0977\u0995\7`\2\2\u0978\u0995\7a\2\2\u0979\u0995"+ "\7b\2\2\u097a\u0995\7c\2\2\u097b\u0995\7d\2\2\u097c\u0995\7e\2\2\u097d"+ "\u0995\7f\2\2\u097e\u0995\7g\2\2\u097f\u0995\7h\2\2\u0980\u0995\7i\2\2"+ "\u0981\u0995\7j\2\2\u0982\u0995\5\u0182\u00c2\2\u0983\u0995\5\u0184\u00c3"+ "\2\u0984\u0995\7k\2\2\u0985\u0995\7l\2\2\u0986\u0995\7m\2\2\u0987\u0995"+ "\7n\2\2\u0988\u0995\7o\2\2\u0989\u0995\7p\2\2\u098a\u0995\7q\2\2\u098b"+ "\u0995\7r\2\2\u098c\u0995\7s\2\2\u098d\u0995\7t\2\2\u098e\u0995\7u\2\2"+ "\u098f\u0995\7v\2\2\u0990\u0991\7O\2\2\u0991\u0995\7P\2\2\u0992\u0993"+ "\7Q\2\2\u0993\u0995\7R\2\2\u0994\u0964\3\2\2\2\u0994\u0965\3\2\2\2\u0994"+ "\u0966\3\2\2\2\u0994\u0969\3\2\2\2\u0994\u096c\3\2\2\2\u0994\u096d\3\2"+ "\2\2\u0994\u096e\3\2\2\2\u0994\u096f\3\2\2\2\u0994\u0970\3\2\2\2\u0994"+ "\u0971\3\2\2\2\u0994\u0972\3\2\2\2\u0994\u0973\3\2\2\2\u0994\u0974\3\2"+ "\2\2\u0994\u0975\3\2\2\2\u0994\u0976\3\2\2\2"; private static final String _serializedATNSegment1 = "\u0994\u0977\3\2\2\2\u0994\u0978\3\2\2\2\u0994\u0979\3\2\2\2\u0994\u097a"+ "\3\2\2\2\u0994\u097b\3\2\2\2\u0994\u097c\3\2\2\2\u0994\u097d\3\2\2\2\u0994"+ "\u097e\3\2\2\2\u0994\u097f\3\2\2\2\u0994\u0980\3\2\2\2\u0994\u0981\3\2"+ "\2\2\u0994\u0982\3\2\2\2\u0994\u0983\3\2\2\2\u0994\u0984\3\2\2\2\u0994"+ "\u0985\3\2\2\2\u0994\u0986\3\2\2\2\u0994\u0987\3\2\2\2\u0994\u0988\3\2"+ "\2\2\u0994\u0989\3\2\2\2\u0994\u098a\3\2\2\2\u0994\u098b\3\2\2\2\u0994"+ "\u098c\3\2\2\2\u0994\u098d\3\2\2\2\u0994\u098e\3\2\2\2\u0994\u098f\3\2"+ "\2\2\u0994\u0990\3\2\2\2\u0994\u0992\3\2\2\2\u0995\u0187\3\2\2\2\u0996"+ "\u099e\7\177\2\2\u0997\u099e\7\u0085\2\2\u0998\u099e\7\u0086\2\2\u0999"+ "\u099e\7\u0087\2\2\u099a\u099e\5\u018a\u00c6\2\u099b\u099e\5\u018c\u00c7"+ "\2\u099c\u099e\5\u018e\u00c8\2\u099d\u0996\3\2\2\2\u099d\u0997\3\2\2\2"+ "\u099d\u0998\3\2\2\2\u099d\u0999\3\2\2\2\u099d\u099a\3\2\2\2\u099d\u099b"+ "\3\2\2\2\u099d\u099c\3\2\2\2\u099e\u0189\3\2\2\2\u099f\u09a0\t\13\2\2"+ "\u09a0\u018b\3\2\2\2\u09a1\u09a2\7-\2\2\u09a2\u018d\3\2\2\2\u09a3\u09a4"+ "\t\f\2\2\u09a4\u018f\3\2\2\2\u013d\u0191\u019d\u01a1\u01ac\u01b0\u01bf"+ "\u01c6\u01cb\u01cd\u01d2\u01d8\u01e2\u01e9\u01ef\u01f3\u01f8\u01fe\u0205"+ "\u020b\u020e\u0211\u0214\u021b\u0222\u0256\u0265\u026b\u0271\u027e\u0280"+ "\u0286\u0295\u029b\u02b9\u02be\u02c2\u02c6\u02c9\u02cd\u02d3\u02d5\u02dd"+ "\u02e1\u02e4\u02eb\u02f2\u02f6\u02fb\u02ff\u0302\u0307\u030d\u031a\u0325"+ "\u0327\u0336\u0338\u0344\u0346\u0353\u0355\u0367\u0369\u0375\u0377\u0382"+ "\u038d\u0398\u03a3\u03ae\u03b8\u03c0\u03cd\u03d7\u03de\u03e2\u03e6\u03ea"+ "\u03ee\u03f3\u03f6\u03f9\u03ff\u0407\u040c\u040f\u0415\u0420\u0437\u043b"+ "\u0443\u0449\u045d\u0461\u046e\u0472\u0475\u047c\u0484\u048e\u0499\u04a5"+ "\u04af\u04b4\u04bb\u04be\u04c3\u04c8\u04dd\u04e1\u04e6\u04f1\u04f7\u04fb"+ "\u0500\u0504\u0509\u050c\u0522\u0528\u0533\u0537\u053a\u0544\u054a\u054d"+ "\u0554\u055e\u0562\u0565\u0568\u056c\u0571\u0573\u0577\u057b\u0584\u0591"+ "\u0599\u059f\u05a5\u05a9\u05ac\u05b5\u05be\u05c6\u05d1\u05d7\u05e2\u05e5"+ "\u05ea\u05f9\u05ff\u0608\u0612\u0618\u0620\u0624\u0628\u062d\u0632\u0639"+ "\u063b\u0640\u0644\u0652\u0658\u0667\u0671\u0676\u067d\u0683\u0688\u068e"+ "\u0695\u0699\u069b\u069d\u06a4\u06a7\u06aa\u06ad\u06b2\u06b6\u06b9\u06bd"+ "\u06c1\u06c6\u06c9\u06cb\u06cf\u06d6\u06dc\u06e0\u06e6\u06eb\u06ed\u06f3"+ "\u06f7\u06fd\u0704\u0708\u070a\u070c\u0713\u071d\u0721\u0723\u0725\u0729"+ "\u072c\u0732\u073c\u0740\u0746\u074e\u0752\u0755\u0759\u075e\u0761\u0764"+ "\u0768\u076d\u0777\u077e\u0783\u0787\u078c\u0792\u0796\u079c\u07a2\u07a6"+ "\u07ab\u07b1\u07b5\u07b8\u07bc\u07bf\u07c1\u07c4\u07ce\u07d3\u07d5\u07d8"+ "\u07db\u07de\u07e7\u07f1\u07f6\u07f9\u07fd\u0800\u0803\u0807\u0810\u081f"+ "\u0825\u0829\u082d\u0831\u0835\u0839\u083d\u0841\u0844\u0848\u0853\u0857"+ "\u085e\u0862\u0867\u086c\u0873\u0877\u0881\u0891\u0896\u089a\u089d\u08a1"+ "\u08a7\u08aa\u08ae\u08b8\u08bb\u08c3\u08c8\u08cd\u08d5\u08dc\u08e0\u08e7"+ "\u08ed\u08f1\u08f7\u0900\u0904\u0907\u0917\u091e\u0927\u092d\u0931\u0934"+ "\u0938\u093c\u0941\u0948\u094e\u0952\u095b\u0994\u099d"; public static final String _serializedATN = Utils.join( new String[] { _serializedATNSegment0, _serializedATNSegment1 }, "" ); public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray()); static { _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()]; for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) { _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i); } } }
612985eeb94fe727ba28d78deffebfb6559ae054
3e77c4e98463d4bd9ed3413e84e762cd8f285f0f
/Exam1/src/main/java/com/hand/util/DBUtils.java
884f98539a901fea26dda38ffa0e5bb08110719c
[]
no_license
chenwei0214/JavaTest3
7dce71be163200ad2d0f1eb1642772fb994385fa
c4387b58ba18293d3822192c0e34f822cb05c38c
refs/heads/master
2020-03-23T19:43:09.428230
2018-07-24T12:53:06
2018-07-24T12:53:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,317
java
package com.hand.util; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Properties; public class DBUtils { private static String USERNAME; private static String PASSWORD; private static String URL; private static String DRIVER; static { Properties properties = new Properties(); InputStream in = DBUtils.class.getClassLoader() .getResourceAsStream("db.properties"); try { properties.load(in); DRIVER = properties.getProperty("jdbc.driver"); URL = properties.getProperty("jdbc.url"); USERNAME = properties.getProperty("jdbc.username"); PASSWORD = properties.getProperty("jdbc.password"); } catch (IOException e) { e.printStackTrace(); } } public static Connection getConnection() { Connection connection = null; try { Class.forName(DRIVER); connection = DriverManager.getConnection(URL, USERNAME, PASSWORD); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } return connection; } }
6cadd7d2271180230bbafeececce7496c19f3e01
4a4ebdcdf9c5e0a290f1195c80d64ae5defc7fe0
/src/com/rokonoid/algorimthms/Nonmax.java
e3583b895cf10a4d6997e6075627dcfc30413ac6
[]
no_license
rokon12/image-processing
0e0f15faaff9d324107b7584a295dd50fbeef974
7e0f94402a361f8a467cd77b9c55d10ebbe3ee1a
refs/heads/master
2020-03-27T01:01:22.261098
2012-12-26T14:47:10
2012-12-26T14:47:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,596
java
package com.rokonoid.algorimthms; public class Nonmax { private static double[] input; private static double[] output; private int progress; private int width; private int height; private int convolveX[] = { -1, 0, 1, -1, 0, 1, -1, 0, 1 }; private int convolveY[] = { -1, -1, -1, 0, 0, 0, 1, 1, 1 }; private int templateSize = 3; public Nonmax() { progress = 0; } public void init(double[] inputIn, int widthIn, int heightIn) { width = widthIn; height = heightIn; input = inputIn; output = new double[width * height]; } public double[] process() { progress = 0; double diffx[] = new double[width * height]; double diffy[] = new double[width * height]; double mag[] = new double[width * height]; double valx, valy; for (int x = templateSize / 2; x < width - (templateSize / 2); x++) { for (int y = templateSize / 2; y < height - (templateSize / 2); y++) { valx = 0; valy = 0; for (int x1 = 0; x1 < templateSize; x1++) { for (int y1 = 0; y1 < templateSize; y1++) { int pos = (y1 * templateSize + x1); int imPos = (x + (x1 - (templateSize / 2))) + ((y + (y1 - (templateSize / 2))) * width); valx += ((input[imPos]) * convolveX[pos]); valy += ((input[imPos]) * convolveY[pos]); } } diffx[x + (y * width)] = valx; diffy[x + (y * width)] = valy; mag[x + (y * width)] = Math.sqrt((valx * valx) + (valy * valy)); } } for (int x = 1; x < width - 1; x++) { progress++; for (int y = 1; y < height - 1; y++) { int dx, dy; if (diffx[x + (y * width)] > 0) dx = 1; else dx = -1; if (diffy[x + (y * width)] > 0) dy = 1; else dy = -1; double a1, a2, b1, b2, A, B, point, val; if (Math.abs(diffx[x + (y * width)]) > Math .abs(diffy[x + (y * width)])) { a1 = mag[(x + dx) + ((y) * width)]; a2 = mag[(x + dx) + ((y - dy) * width)]; b1 = mag[(x - dx) + ((y) * width)]; b2 = mag[(x - dx) + ((y + dy) * width)]; A = (Math.abs(diffx[x + (y * width)]) - Math .abs(diffy[x + (y * width)])) * a1 + Math.abs(diffy[x + (y * width)]) * a2; B = (Math.abs(diffx[x + (y * width)]) - Math .abs(diffy[x + (y * width)])) * b1 + Math.abs(diffy[x + (y * width)]) * b2; point = mag[x + (y * width)] * Math.abs(diffx[x + (y * width)]); if (point >= A && point > B) { val = Math.abs(diffx[x + (y * width)]); output[x + (y * width)] = val; } else { val = 0; output[x + (y * width)] = val; } } else { a1 = mag[(x) + ((y - dy) * width)]; a2 = mag[(x + dx) + ((y - dy) * width)]; b1 = mag[(x) + ((y + dy) * width)]; b2 = mag[(x - dx) + ((y + dy) * width)]; A = (Math.abs(diffy[x + (y * width)]) - Math .abs(diffx[x + (y * width)])) * a1 + Math.abs(diffx[x + (y * width)]) * a2; B = (Math.abs(diffy[x + (y * width)]) - Math .abs(diffx[x + (y * width)])) * b1 + Math.abs(diffx[x + (y * width)]) * b2; point = mag[x + (y * width)] * Math.abs(diffy[x + (y * width)]); if (point >= A && point > B) { val = Math.abs(diffy[x + (y * width)]); output[x + (y * width)] = val; } else { val = 0; output[x + (y * width)] = val; } } } } return output; } public int getProgress() { return progress; } }
869911406e7af954c754d8b830e228f766f262e8
c885ef92397be9d54b87741f01557f61d3f794f3
/results/Jsoup-87/org.jsoup.nodes.Element/BBC-F0-opt-100/tests/28/org/jsoup/nodes/Element_ESTest.java
00af53d38a51113426caadfa3ea8183c94ac5824
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
129,274
java
/* * This file was automatically generated by EvoSuite * Fri Oct 22 21:25:50 GMT 2021 */ package org.jsoup.nodes; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.io.BufferedWriter; import java.io.ByteArrayOutputStream; import java.io.CharArrayWriter; import java.io.File; import java.io.IOException; import java.io.PipedWriter; import java.io.Reader; import java.io.StringReader; import java.nio.BufferOverflowException; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.ReadOnlyBufferException; import java.nio.charset.Charset; import java.util.Collection; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Set; import java.util.regex.Pattern; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.evosuite.runtime.mock.java.io.MockFile; import org.evosuite.runtime.mock.java.io.MockFileWriter; import org.evosuite.runtime.mock.java.io.MockPrintStream; import org.evosuite.runtime.mock.java.io.MockPrintWriter; import org.jsoup.nodes.Attribute; import org.jsoup.nodes.Attributes; import org.jsoup.nodes.CDataNode; import org.jsoup.nodes.Comment; import org.jsoup.nodes.DataNode; import org.jsoup.nodes.Document; import org.jsoup.nodes.DocumentType; import org.jsoup.nodes.Element; import org.jsoup.nodes.FormElement; import org.jsoup.nodes.Node; import org.jsoup.nodes.PseudoTextElement; import org.jsoup.nodes.TextNode; import org.jsoup.nodes.XmlDeclaration; import org.jsoup.parser.ParseSettings; import org.jsoup.parser.Parser; import org.jsoup.parser.Tag; import org.jsoup.select.Elements; import org.jsoup.select.Evaluator; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) public class Element_ESTest extends Element_ESTest_scaffolding { @Test(timeout = 4000) public void test000() throws Throwable { Document document0 = Parser.parse("", ""); Element element0 = document0.append("center"); element0.toString(); } @Test(timeout = 4000) public void test001() throws Throwable { Attributes attributes0 = new Attributes(); Tag tag0 = Tag.valueOf(">9"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, ".", attributes0); Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("AZF@WIO:}", "AZF@WIO:}"); document0.setParentNode(pseudoTextElement0); document0.nextElementSiblings(); } @Test(timeout = 4000) public void test002() throws Throwable { Document document0 = Parser.parseBodyFragment("~X ja1G}", "0xwa{mcHd"); Tag tag0 = document0.tag(); Element element0 = new Element(tag0, "org.jsoup.nodes.element"); } @Test(timeout = 4000) public void test003() throws Throwable { Document document0 = Document.createShell("F`~<HgHT0YAvV|k1Lp"); document0.nodelistChanged(); } @Test(timeout = 4000) public void test004() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("jL", "jL"); document0.ensureChildNodes(); } @Test(timeout = 4000) public void test005() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); document0.wrap("fkX.eHo&g&L,8uj3"); } @Test(timeout = 4000) public void test006() throws Throwable { Document document0 = Parser.parseBodyFragment("org.jsoup.select.Selector", ";>"); Element element0 = document0.head(); element0.wrap("org.jsoup.select.Selector"); } @Test(timeout = 4000) public void test007() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.text("8_"); Element element0 = document0.body(); element0.wrap("~;=g9ckp'f@v$p 4<"); } @Test(timeout = 4000) public void test008() throws Throwable { Document document0 = new Document("8kuocz[]"); document0.wholeText(); } @Test(timeout = 4000) public void test009() throws Throwable { Element element0 = new Element("org.jsoup.parser.Token$Character"); element0.siblingIndex = (-1158832063); element0.val("Children collection to be inserted must not be null."); } @Test(timeout = 4000) public void test010() throws Throwable { Document document0 = Parser.parse("{znIF", "{znIF"); Element element0 = document0.body(); element0.val("{znIF"); } @Test(timeout = 4000) public void test011() throws Throwable { Document document0 = Parser.parseBodyFragment("Y|.{k%", "Y|.{k%"); Elements elements0 = document0.getElementsByAttributeValueNot("Y|.{k%", "Y|.{k%"); Tag tag0 = Tag.valueOf("Y|.{k%"); CDataNode cDataNode0 = new CDataNode("'"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "Y|.{k%", attributes0); pseudoTextElement0.insertChildren(0, (Collection<? extends Node>) elements0); document0.val("id"); } @Test(timeout = 4000) public void test012() throws Throwable { Tag tag0 = Tag.valueOf("rfjX)("); Attributes attributes0 = new Attributes(); Element element0 = new Element(tag0, "rfjX)(", attributes0); element0.val(")"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "rfjX)(", attributes0); pseudoTextElement0.val(); } @Test(timeout = 4000) public void test013() throws Throwable { Document document0 = Parser.parseBodyFragment("o", "o"); document0.setSiblingIndex((-115)); document0.toggleClass("-"); } @Test(timeout = 4000) public void test014() throws Throwable { Document document0 = Parser.parse("{znIF", "{znIF"); Element element0 = document0.body(); element0.toggleClass(""); } @Test(timeout = 4000) public void test015() throws Throwable { Document document0 = Parser.parseBodyFragment("o", "o"); document0.setParentNode(document0); document0.toggleClass("-"); } @Test(timeout = 4000) public void test016() throws Throwable { Element element0 = new Element("#root"); element0.siblingIndex = (-589); element0.text(""); } @Test(timeout = 4000) public void test017() throws Throwable { Document document0 = Parser.parseBodyFragment("w}jmz", "org.jsoup.nodes.Element$1"); Element element0 = document0.body(); element0.text(",cKB&/CuAl*3d"); } @Test(timeout = 4000) public void test018() throws Throwable { Element element0 = new Element("AZF@WIO:}"); element0.text("ol"); } @Test(timeout = 4000) public void test019() throws Throwable { Document document0 = Parser.parseBodyFragment("org.jsoup.select.Evaluator$IndexEvaluator", "org.jsoup.select.Evaluator$IndexEvaluator"); Element element0 = document0.shallowClone(); element0.text(); } @Test(timeout = 4000) public void test020() throws Throwable { Document document0 = Parser.parse("NG#c`bL*6R!v+", "NG#c`bL*6R!v+"); document0.setSiblingIndex((-781)); document0.tagName("org.jsoup.helper.ChangeNotifyingArrayList"); } @Test(timeout = 4000) public void test021() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.tagName("head"); } @Test(timeout = 4000) public void test022() throws Throwable { Document document0 = Parser.parseBodyFragment("@iucm' e'19b", "@iucm' e'19b"); Document document1 = Parser.parseBodyFragmentRelaxed("KM 0~wr7b=)xIq", "@iucm' e'19b"); document0.parentNode = (Node) document1; Document document2 = document0.normalise(); document2.tagName("Children collection to be inserted must not be null."); } @Test(timeout = 4000) public void test023() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("jL", "jL"); document0.tagName(); } @Test(timeout = 4000) public void test024() throws Throwable { Document document0 = Document.createShell("k"); Element element0 = document0.head(); element0.tag(); } @Test(timeout = 4000) public void test025() throws Throwable { Document document0 = Document.createShell("k"); document0.selectFirst("k"); } @Test(timeout = 4000) public void test026() throws Throwable { Tag tag0 = Tag.valueOf("disabled"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "disabled", attributes0); pseudoTextElement0.selectFirst("disabled"); } @Test(timeout = 4000) public void test027() throws Throwable { Document document0 = Parser.parse("{znIF", "{znIF"); document0.select("value"); } @Test(timeout = 4000) public void test028() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("<org.jsoup.nodes.Element></org.jsoup.nodes.Element>", "V:U?=1z8+azZ"); document0.setSiblingIndex(6); document0.removeClass(">&vlDay"); } @Test(timeout = 4000) public void test029() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("<org.jsoup.nodes.Element></org.jsoup.nodes.Element>", "V:U?=1z8+azZ"); document0.setSiblingIndex((-28)); document0.removeClass(">&vlDay"); } @Test(timeout = 4000) public void test030() throws Throwable { Document document0 = Document.createShell("noresize"); Element element0 = document0.head(); element0.removeClass("id"); } @Test(timeout = 4000) public void test031() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("<org.jsoup.nodes.Element></org.jsoup.nodes.Element>", "V:U?=1z8+azZ"); document0.setSiblingIndex(6); document0.prependText(" "); } @Test(timeout = 4000) public void test032() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("<org.jsoup.nodes.Element></org.jsoup.nodes.Element>", "V:U?=1z8+azZ"); document0.setSiblingIndex((-28)); document0.prependText(" "); } @Test(timeout = 4000) public void test033() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.prependElement("head"); } @Test(timeout = 4000) public void test034() throws Throwable { Document document0 = Parser.parseBodyFragment("$J", "$J"); Element element0 = document0.body(); Element element1 = element0.prependChild(document0); element1.shallowClone(); } @Test(timeout = 4000) public void test035() throws Throwable { Document document0 = Parser.parseBodyFragment("$J", "$J"); document0.prependChild(document0); } @Test(timeout = 4000) public void test036() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("br", "br"); Element element0 = document0.body(); element0.prepend("br"); } @Test(timeout = 4000) public void test037() throws Throwable { Tag tag0 = Tag.valueOf("divpbled"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "divpbled", attributes0); pseudoTextElement0.prepend(""); } @Test(timeout = 4000) public void test038() throws Throwable { Tag tag0 = Tag.valueOf("mZ,<Q^;0>VN\"zUjlN="); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "@{~`r%wPfuD0-@h", attributes0); pseudoTextElement0.parents(); } @Test(timeout = 4000) public void test039() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); document0.normalise(); Element element0 = document0.head(); element0.parents(); } @Test(timeout = 4000) public void test040() throws Throwable { Document document0 = Document.createShell("nkiesize"); document0.parent(); } @Test(timeout = 4000) public void test041() throws Throwable { Document document0 = Parser.parseBodyFragment("", ""); Element element0 = document0.appendTo(document0); element0.parent(); } @Test(timeout = 4000) public void test042() throws Throwable { Document document0 = Parser.parseBodyFragment("Pattern syntax error: ", "Pattern syntax error: "); ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("nth-last-of-type", parseSettings0); Attributes attributes0 = new Attributes(); FormElement formElement0 = new FormElement(tag0, "Pattern syntax error: ", attributes0); formElement0.setParentNode(document0); formElement0.parent(); } @Test(timeout = 4000) public void test043() throws Throwable { Document document0 = Parser.parseBodyFragment("replacementChar", "replacementChar"); Element element0 = document0.head(); element0.parent(); } @Test(timeout = 4000) public void test044() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.append("3z#"); document0.ownText(); } @Test(timeout = 4000) public void test045() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.nodeName(); } @Test(timeout = 4000) public void test046() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("tag name must not be empty.", "tag name must not be empty."); Element element0 = document0.appendElement("tag name must not be empty."); document0.appendTo(document0); element0.nextElementSibling(); } @Test(timeout = 4000) public void test047() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); Element element1 = element0.nextElementSibling(); element1.tagName("head"); } @Test(timeout = 4000) public void test048() throws Throwable { Document document0 = Parser.parse("~;=g9cKp'v$P 4<", "~;=g9cKp'v$P 4<"); ParseSettings parseSettings0 = new ParseSettings(false, false); Tag tag0 = Tag.valueOf("6L", parseSettings0); CDataNode cDataNode0 = new CDataNode("6L"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "~;=g9cKp'v$P 4<", attributes0); document0.appendChild(pseudoTextElement0); pseudoTextElement0.lastElementSibling(); } @Test(timeout = 4000) public void test049() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); element0.isBlock(); } @Test(timeout = 4000) public void test050() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("^=", ">8d]f{\"_8:vIwp&87"); Evaluator.AttributeWithValueNot evaluator_AttributeWithValueNot0 = new Evaluator.AttributeWithValueNot(">8d]f{\"_8:vIwp&87", "R~sQXw}uUPA(\"\"Qnw"); document0.is((Evaluator) evaluator_AttributeWithValueNot0); } @Test(timeout = 4000) public void test051() throws Throwable { Document document0 = Parser.parse("", "?.?oH"); document0.is("html"); } @Test(timeout = 4000) public void test052() throws Throwable { Attributes attributes0 = new Attributes(); Tag tag0 = Tag.valueOf(">9"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, ".", attributes0); LinkedList<CDataNode> linkedList0 = new LinkedList<CDataNode>(); Document document0 = Parser.parseBodyFragmentRelaxed("AZF@WIO:}", ""); document0.appendChild(pseudoTextElement0); pseudoTextElement0.insertChildren(0, (Collection<? extends Node>) linkedList0); } @Test(timeout = 4000) public void test053() throws Throwable { Document document0 = Document.createShell("class"); Element element0 = document0.body(); Elements elements0 = element0.previousElementSiblings(); element0.insertChildren(0, (Collection<? extends Node>) elements0); } @Test(timeout = 4000) public void test054() throws Throwable { Attributes attributes0 = new Attributes(); Tag tag0 = Tag.valueOf(";>"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "ubT.dpht}qFkRPvTr", attributes0); Document document0 = Document.createShell("ubT.dpht}qFkRPvTr"); document0.appendChild(pseudoTextElement0); pseudoTextElement0.html("~;=9':kp'@p4"); } @Test(timeout = 4000) public void test055() throws Throwable { Document document0 = Document.createShell("disa6led"); Element element0 = document0.head(); element0.html("br"); } @Test(timeout = 4000) public void test056() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.html(""); } @Test(timeout = 4000) public void test057() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); MockPrintStream mockPrintStream0 = new MockPrintStream("jAeK\"1EFQ"); document0.html(mockPrintStream0); } @Test(timeout = 4000) public void test058() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); document0.normalise(); Element element0 = document0.head(); element0.html(); } @Test(timeout = 4000) public void test059() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Evaluator.AttributeStarting evaluator_AttributeStarting0 = new Evaluator.AttributeStarting("F`~<HgHT0YAvV|k1Lp"); document0.is((Evaluator) evaluator_AttributeStarting0); document0.hasAttributes(); } @Test(timeout = 4000) public void test060() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.hasAttributes(); } @Test(timeout = 4000) public void test061() throws Throwable { Document document0 = Parser.parseBodyFragment("|4nFU\"9g0Y^nj=C", "_D}\"DGnrF(mQ#"); Pattern pattern0 = Pattern.compile("org.jsoup.nodes.element", (-1317)); document0.getElementsMatchingText(pattern0); } @Test(timeout = 4000) public void test062() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("ins", "#root"); Pattern pattern0 = Pattern.compile("ins", (int) (byte)60); document0.getElementsMatchingText(pattern0); } @Test(timeout = 4000) public void test063() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("|4nFU\"9g0Y^nj=C", "|4nFU\"9g0Y^nj=C"); document0.getElementsMatchingText("|4nFU\"9g0Y^nj=C"); } @Test(timeout = 4000) public void test064() throws Throwable { Document document0 = Document.createShell("*S67 m5/f $Glx+l5i"); Pattern pattern0 = Pattern.compile(""); document0.getElementsMatchingOwnText(pattern0); } @Test(timeout = 4000) public void test065() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.getElementsMatchingOwnText("F`~<HgHT0YAvV|k1Lp"); } @Test(timeout = 4000) public void test066() throws Throwable { Document document0 = Parser.parse("", ""); document0.getElementsMatchingOwnText(""); } @Test(timeout = 4000) public void test067() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.getElementsContainingOwnText("RCDATAEndTagName"); } @Test(timeout = 4000) public void test068() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.getElementsByTag("head"); } @Test(timeout = 4000) public void test069() throws Throwable { Document document0 = Document.createShell("sub"); document0.getElementsByIndexLessThan(106); } @Test(timeout = 4000) public void test070() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.getElementsByIndexGreaterThan(102); } @Test(timeout = 4000) public void test071() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("ins", "#root"); document0.getElementsByAttributeValueStarting("#root", "7VT95G(g*'(?#*"); } @Test(timeout = 4000) public void test072() throws Throwable { Document document0 = Document.createShell("k"); document0.getElementsByAttributeValueNot("k", " "); } @Test(timeout = 4000) public void test073() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.getElementsByAttributeValueEnding("2{G", "2{G"); } @Test(timeout = 4000) public void test074() throws Throwable { ParseSettings parseSettings0 = new ParseSettings(false, false); Tag tag0 = Tag.valueOf("5M-YG\"onWw*Vp", parseSettings0); Attributes attributes0 = new Attributes(); Attributes attributes1 = attributes0.put("5M-YG\"onWw*Vp", "5M-YG\"onWw*Vp"); FormElement formElement0 = new FormElement(tag0, "5M-YG\"onWw*Vp", attributes1); formElement0.getElementsByAttributeValueEnding("5M-YG\"onWw*Vp", "5M-YG\"onWw*Vp"); } @Test(timeout = 4000) public void test075() throws Throwable { ParseSettings parseSettings0 = new ParseSettings(false, false); Tag tag0 = Tag.valueOf("meta", parseSettings0); CDataNode cDataNode0 = new CDataNode("jGaj&m$"); Attributes attributes0 = cDataNode0.attributes(); Attribute attribute0 = new Attribute("~m'.Y", "jGaj&m$", attributes0); Attributes attributes1 = attributes0.put(attribute0); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "jGaj&m$", attributes1); pseudoTextElement0.getElementsByAttributeValue("~m'.Y", "jGaj&m$"); } @Test(timeout = 4000) public void test076() throws Throwable { Tag tag0 = Tag.valueOf("`c8O"); CDataNode cDataNode0 = new CDataNode("~;=g9cKp'v$P 4<"); Attributes attributes0 = cDataNode0.attributes(); attributes0.put("`c8O", "y"); FormElement formElement0 = new FormElement(tag0, "`c8O", attributes0); formElement0.getElementsByAttributeStarting("`c8O"); } @Test(timeout = 4000) public void test077() throws Throwable { CDataNode cDataNode0 = new CDataNode("class"); Attributes attributes0 = cDataNode0.attributes(); attributes0.put("class", "class"); Tag tag0 = Tag.valueOf("FK%w&"); FormElement formElement0 = new FormElement(tag0, "FK%w&", attributes0); formElement0.getElementsByAttribute("class"); } @Test(timeout = 4000) public void test078() throws Throwable { Document document0 = Document.createShell("k"); Element element0 = document0.head(); element0.prependText("k"); element0.firstElementSibling(); } @Test(timeout = 4000) public void test079() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("KznI'", "KznI'"); Element element0 = document0.body(); element0.empty(); } @Test(timeout = 4000) public void test080() throws Throwable { Document document0 = Document.createShell("."); Element element0 = document0.head(); Element element1 = element0.nextElementSibling(); element1.elementSiblingIndex(); } @Test(timeout = 4000) public void test081() throws Throwable { Document document0 = Document.createShell("colgroup"); document0.setSiblingIndex((-1918)); document0.doClone(document0); } @Test(timeout = 4000) public void test082() throws Throwable { Document document0 = Parser.parse("ol", "ol"); document0.doClone((Node) null); } @Test(timeout = 4000) public void test083() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); element0.doClone(document0); } @Test(timeout = 4000) public void test084() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); element0.clone(); } @Test(timeout = 4000) public void test085() throws Throwable { Document document0 = Document.createShell("s?xug`g(xG>UWK-?HI"); document0.clone(); } @Test(timeout = 4000) public void test086() throws Throwable { Document document0 = Document.createShell("."); Element element0 = document0.head(); Element element1 = element0.nextElementSibling(); LinkedHashSet<String> linkedHashSet0 = new LinkedHashSet<String>(); element1.classNames((Set<String>) linkedHashSet0); } @Test(timeout = 4000) public void test087() throws Throwable { Document document0 = Document.createShell("."); Element element0 = document0.head(); LinkedHashSet<String> linkedHashSet0 = new LinkedHashSet<String>(); element0.classNames((Set<String>) linkedHashSet0); } @Test(timeout = 4000) public void test088() throws Throwable { Document document0 = Parser.parse("", ""); document0.addClass("^GulFBs@69"); document0.classNames(); } @Test(timeout = 4000) public void test089() throws Throwable { ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("nth-last-of-type", parseSettings0); Attributes attributes0 = new Attributes(); FormElement formElement0 = new FormElement(tag0, "", attributes0); Element element0 = formElement0.toggleClass("I3\"`$Zt2D[h%V%#vS"); element0.className(); } @Test(timeout = 4000) public void test090() throws Throwable { Document document0 = Parser.parse("", ""); Element element0 = document0.body(); element0.children(); } @Test(timeout = 4000) public void test091() throws Throwable { Tag tag0 = Tag.valueOf("F`~<HgHT0YAvV|k1Lp"); Attributes attributes0 = new Attributes(); Element element0 = new Element(tag0, "{-~UH%A3", attributes0); element0.childNodeSize(); } @Test(timeout = 4000) public void test092() throws Throwable { Document document0 = Parser.parse("8]<]6l04fFz", "Pattern syntax error: "); document0.childNodeSize(); } @Test(timeout = 4000) public void test093() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("InHead", "Children collection to be inserted must not be null."); Element element0 = document0.body(); element0.before((Node) document0); } @Test(timeout = 4000) public void test094() throws Throwable { Document document0 = Parser.parse("I", "I"); Element element0 = document0.head(); element0.before((Node) element0); } @Test(timeout = 4000) public void test095() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); document0.before((Node) document0); } @Test(timeout = 4000) public void test096() throws Throwable { Parser parser0 = Parser.htmlParser(); Document document0 = Parser.parse("]E,?GHm*pt~oE ", "]E,?GHm*pt~oE "); Document document1 = parser0.parseInput("_1U_3+hIIC?JvPv;f(H", "M`Y99VJL#)ylVDs~e"); document1.parentNode = (Node) document0; document1.before("[[N~{~a}"); } @Test(timeout = 4000) public void test097() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("o(^+TfY8D1ze", ""); Document document1 = document0.clone(); document1.appendChild(document0); document0.before("head"); } @Test(timeout = 4000) public void test098() throws Throwable { Document document0 = Parser.parseBodyFragment("mp 'p!:1a?<mR[5#n", "mp 'p!:1a?<mR[5#n"); Element element0 = document0.body(); element0.before("j`57(S5\"eAe3L"); element0.previousElementSiblings(); } @Test(timeout = 4000) public void test099() throws Throwable { Document document0 = Parser.parse("", ""); document0.baseUri(); } @Test(timeout = 4000) public void test100() throws Throwable { ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("$^b&tx'y;5P\\e#_.`>", parseSettings0); CDataNode cDataNode0 = new CDataNode("wU^CIJsgN~Bs"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "wU^CIJsgN~Bs", attributes0); pseudoTextElement0.attributes(); } @Test(timeout = 4000) public void test101() throws Throwable { Document document0 = Parser.parseBodyFragment("w}jmz", "org.jsoup.nodes.Element$1"); Element element0 = document0.body(); element0.attr("org.jsoup.select.Collector", false); } @Test(timeout = 4000) public void test102() throws Throwable { Document document0 = Parser.parseBodyFragment("o", "o"); document0.setSiblingIndex((-115)); document0.attr("-", true); } @Test(timeout = 4000) public void test103() throws Throwable { Document document0 = Document.createShell("noresize"); Element element0 = document0.head(); element0.attr("org.jsoup.nodes.Element$NodeList", false); } @Test(timeout = 4000) public void test104() throws Throwable { Document document0 = Parser.parse("", ""); Element element0 = document0.body(); element0.attr("", ""); } @Test(timeout = 4000) public void test105() throws Throwable { Document document0 = Document.createShell("Tag name must not be empty."); document0.attr("InHead", "InHead"); } @Test(timeout = 4000) public void test106() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed(":lt(%d)", "h6L[H/"); Element element0 = document0.createElement(":lt(%d)"); document0.appendTo(element0); } @Test(timeout = 4000) public void test107() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); Element element0 = document0.head(); element0.appendTo(document0); } @Test(timeout = 4000) public void test108() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("4l5}mqfIA", "4l5}mqfIA"); Element element0 = document0.body(); element0.appendText("0xwa{mcHd"); } @Test(timeout = 4000) public void test109() throws Throwable { Attributes attributes0 = new Attributes(); Tag tag0 = Tag.valueOf("class"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "Mwn:%SZ}", attributes0); pseudoTextElement0.appendElement("figcaption"); } @Test(timeout = 4000) public void test110() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); element0.appendChild(document0); } @Test(timeout = 4000) public void test111() throws Throwable { Tag tag0 = Tag.valueOf("rfjX)("); Attributes attributes0 = new Attributes(); Element element0 = new Element(tag0, "rfjX)(", attributes0); element0.siblingIndex = (-1178); element0.append(")"); } @Test(timeout = 4000) public void test112() throws Throwable { Document document0 = new Document("body"); document0.append(""); } @Test(timeout = 4000) public void test113() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); Comment comment0 = new Comment("RhT=(", "textarea"); document0.after((Node) comment0); } @Test(timeout = 4000) public void test114() throws Throwable { Document document0 = Document.createShell("k"); Element element0 = document0.head(); element0.after((Node) document0); } @Test(timeout = 4000) public void test115() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); Element element1 = element0.prependText("noresize"); element1.after((Node) element0); } @Test(timeout = 4000) public void test116() throws Throwable { Document document0 = Parser.parse("~;=g9cKp'v$P 4<", "~;=g9cKp'v$P 4<"); ParseSettings parseSettings0 = new ParseSettings(false, false); Tag tag0 = Tag.valueOf("6L", parseSettings0); CDataNode cDataNode0 = new CDataNode("6L"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "~;=g9cKp'v$P 4<", attributes0); document0.appendChild(pseudoTextElement0); pseudoTextElement0.after("id"); } @Test(timeout = 4000) public void test117() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); element0.after("head"); } @Test(timeout = 4000) public void test118() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); element0.prependText("head"); element0.after("4hy^"); } @Test(timeout = 4000) public void test119() throws Throwable { Document document0 = Parser.parseBodyFragment("", ""); document0.appendTo(document0); document0.addClass("org.jsoup.nodes.Element$1"); } @Test(timeout = 4000) public void test120() throws Throwable { Document document0 = Document.createShell(""); document0.setParentNode(document0); // Undeclared exception! document0.wrap("*?LGT}9],"); } @Test(timeout = 4000) public void test121() throws Throwable { Document document0 = Parser.parseBodyFragment("", "noresize"); // Undeclared exception! try { document0.wrap(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test122() throws Throwable { Document document0 = Parser.parseBodyFragment("org.jsoup.select.Selector", ";r>"); Element element0 = document0.head(); element0.setSiblingIndex((-1110026255)); // Undeclared exception! try { element0.wrap("org.jsoup.select.Selector"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test123() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); // Undeclared exception! document0.val("0xwa{mcHd"); } @Test(timeout = 4000) public void test124() throws Throwable { Tag tag0 = Tag.valueOf("disabled"); Attributes attributes0 = new Attributes(); String[] stringArray0 = new String[1]; attributes0.keys = stringArray0; PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "disabled", attributes0); // Undeclared exception! try { pseudoTextElement0.val("disabled"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // 0 // verifyException("org.jsoup.nodes.Attributes", e); } } @Test(timeout = 4000) public void test125() throws Throwable { Attributes attributes0 = new Attributes(); Tag tag0 = Tag.valueOf("o"); Attributes attributes1 = attributes0.put("id", "Pbdp3Y|uFP(!O71"); String[] stringArray0 = new String[0]; attributes1.keys = stringArray0; PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "Pbdp3Y|uFP(!O71", attributes1); // Undeclared exception! try { pseudoTextElement0.val(); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // 0 // verifyException("org.jsoup.nodes.Attributes", e); } } @Test(timeout = 4000) public void test126() throws Throwable { ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("~;=g9cKp'f@v$P 4<", parseSettings0); CDataNode cDataNode0 = new CDataNode("Tag name must not be empty."); Attributes attributes0 = cDataNode0.attributes(); attributes0.vals = null; FormElement formElement0 = new FormElement(tag0, "~;=g9cKp'f@v$P 4<", attributes0); // Undeclared exception! try { formElement0.toggleClass("~;=g9cKp'f@v$P 4<"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Attributes", e); } } @Test(timeout = 4000) public void test127() throws Throwable { Tag tag0 = Tag.valueOf("noresize"); FormElement formElement0 = new FormElement(tag0, "html", (Attributes) null); // Undeclared exception! try { formElement0.toggleClass((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test128() throws Throwable { Tag tag0 = Tag.valueOf("disabled"); Attributes attributes0 = new Attributes(); String[] stringArray0 = new String[3]; attributes0.keys = stringArray0; FormElement formElement0 = new FormElement(tag0, "Fp?a4:Gyl2K|/|I", attributes0); // Undeclared exception! try { formElement0.toggleClass("Fp?a4:Gyl2K|/|I"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // 0 // verifyException("org.jsoup.nodes.Attributes", e); } } @Test(timeout = 4000) public void test129() throws Throwable { Document document0 = Document.createShell("noresize"); document0.html("head"); // Undeclared exception! try { document0.text("noresize"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Document", e); } } @Test(timeout = 4000) public void test130() throws Throwable { Document document0 = Document.createShell("noresize"); // Undeclared exception! try { document0.text((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test131() throws Throwable { Document document0 = Parser.parse("~;=9':Kp'vP4", "~;=9':Kp'vP4"); document0.setParentNode(document0); // Undeclared exception! document0.tagName("body"); } @Test(timeout = 4000) public void test132() throws Throwable { Document document0 = Parser.parse("", "?.?oH"); // Undeclared exception! try { document0.tagName(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Tag name must not be empty. // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test133() throws Throwable { Document document0 = Parser.parse("Qdipbleb", "#"); Element element0 = document0.head(); document0.setParentNode(element0); // Undeclared exception! try { document0.siblingElements(); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Illegal Capacity: -1 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test134() throws Throwable { Tag tag0 = Tag.valueOf(")"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, ")", attributes0); // Undeclared exception! try { pseudoTextElement0.selectFirst("=O.HG"); fail("Expecting exception: IllegalStateException"); } catch(IllegalStateException e) { // // Could not parse query '=O.HG': unexpected token at '=O.HG' // verifyException("org.jsoup.select.QueryParser", e); } } @Test(timeout = 4000) public void test135() throws Throwable { Document document0 = Parser.parse("", ""); // Undeclared exception! try { document0.selectFirst(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test136() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); // Undeclared exception! try { document0.select("org.jsoup.parser.Token$Character"); fail("Expecting exception: IllegalStateException"); } catch(IllegalStateException e) { // // Could not parse query 'org.jsoup.parser.Token$Character': unexpected token at '$Character' // verifyException("org.jsoup.select.QueryParser", e); } } @Test(timeout = 4000) public void test137() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); // Undeclared exception! try { document0.select(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test138() throws Throwable { Document document0 = Parser.parseBodyFragment("C!7r)\"/x%aW_BR'", "Tag name must not be empty."); XmlDeclaration xmlDeclaration0 = new XmlDeclaration("C!7r)\"/x%aW_BR'", true); document0.setParentNode(xmlDeclaration0); // Undeclared exception! try { document0.previousElementSiblings(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test139() throws Throwable { Document document0 = Document.createShell("k"); CDataNode cDataNode0 = new CDataNode("k"); document0.setParentNode(cDataNode0); // Undeclared exception! try { document0.previousElementSibling(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test140() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("P4`=*)Xc:ULu#", "F'`1$Yb1vTz:,H;k|<6"); // Undeclared exception! try { document0.prependText((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test141() throws Throwable { Document document0 = Document.createShell("V8."); document0.setParentNode(document0); // Undeclared exception! document0.prependElement("V8."); } @Test(timeout = 4000) public void test142() throws Throwable { Document document0 = Parser.parseBodyFragment("'`aW|\u0005E63%R4i", "B"); Parser parser0 = Parser.htmlParser(); List<Node> list0 = parser0.parseFragmentInput("divpbled", document0, "B"); document0.childNodes = list0; // Undeclared exception! try { document0.prependElement("B"); fail("Expecting exception: UnsupportedOperationException"); } catch(UnsupportedOperationException e) { // // no message in exception (getMessage() returned null) // verifyException("java.util.Collections$UnmodifiableList", e); } } @Test(timeout = 4000) public void test143() throws Throwable { Document document0 = Parser.parseBodyFragment("", "b/kAz1"); // Undeclared exception! try { document0.prependElement(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test144() throws Throwable { Tag tag0 = Tag.valueOf(")"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, ")", attributes0); CDataNode cDataNode0 = new CDataNode(")"); cDataNode0.setParentNode(pseudoTextElement0); Parser parser0 = Parser.xmlParser(); StringReader stringReader0 = new StringReader("head"); Document document0 = parser0.parseInput((Reader) stringReader0, "&"); // Undeclared exception! try { document0.prependChild(cDataNode0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 0, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test145() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("amp=12;1&gt=1q;3&lt=1o;2&quot=y;0&", "amp=12;1&gt=1q;3&lt=1o;2&quot=y;0&"); // Undeclared exception! try { document0.prependChild((Node) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test146() throws Throwable { Tag tag0 = Tag.valueOf("textarea"); Attributes attributes0 = new Attributes(); FormElement formElement0 = new FormElement(tag0, "/}S6HMdP4QI-k", attributes0); formElement0.reparentChild(formElement0); // Undeclared exception! formElement0.prepend("textarea"); } @Test(timeout = 4000) public void test147() throws Throwable { Element element0 = new Element("java.lang.string@0000000015"); List<Node> list0 = element0.childNodes(); element0.childNodes = list0; // Undeclared exception! try { element0.prepend(""); fail("Expecting exception: UnsupportedOperationException"); } catch(UnsupportedOperationException e) { // // no message in exception (getMessage() returned null) // verifyException("java.util.Collections$UnmodifiableList", e); } } @Test(timeout = 4000) public void test148() throws Throwable { Document document0 = Document.createShell("~;=g9cp'v$P 4<"); CDataNode cDataNode0 = new CDataNode((String) null); CharArrayWriter charArrayWriter0 = new CharArrayWriter(); BufferedWriter bufferedWriter0 = new BufferedWriter(charArrayWriter0); cDataNode0.value = (Object) bufferedWriter0; document0.appendChild(cDataNode0); // Undeclared exception! try { document0.ownText(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // java.io.BufferedWriter cannot be cast to java.lang.String // verifyException("org.jsoup.nodes.LeafNode", e); } } @Test(timeout = 4000) public void test149() throws Throwable { Document document0 = Parser.parse("zEdC'b<l", "zEdC'b<l"); MockPrintStream mockPrintStream0 = new MockPrintStream("textarea"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); Document.OutputSettings document_OutputSettings1 = document_OutputSettings0.indentAmount(16); // Undeclared exception! document0.outerHtmlTail(mockPrintStream0, 632, document_OutputSettings1); } @Test(timeout = 4000) public void test150() throws Throwable { Document document0 = Parser.parse("~;=g9cKp'v$P 4<", "~;=g9cKp'v$P 4<"); char[] charArray0 = new char[6]; CharBuffer charBuffer0 = CharBuffer.wrap(charArray0); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); // Undeclared exception! try { document0.outerHtmlTail(charBuffer0, 1328, document_OutputSettings0); fail("Expecting exception: BufferOverflowException"); } catch(BufferOverflowException e) { // // no message in exception (getMessage() returned null) // verifyException("java.nio.CharBuffer", e); } } @Test(timeout = 4000) public void test151() throws Throwable { Document document0 = Document.createShell("jP0-;"); StringBuilder stringBuilder0 = new StringBuilder((CharSequence) ")"); // Undeclared exception! try { document0.outerHtmlTail(stringBuilder0, 1192, (Document.OutputSettings) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test152() throws Throwable { Document document0 = Parser.parseBodyFragment("U\r", "U\r"); ByteArrayOutputStream byteArrayOutputStream0 = new ByteArrayOutputStream(); MockPrintStream mockPrintStream0 = new MockPrintStream(byteArrayOutputStream0); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); // Undeclared exception! try { document0.outerHtmlTail(mockPrintStream0, (-1446738921), document_OutputSettings0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // width must be > 0 // verifyException("org.jsoup.internal.StringUtil", e); } } @Test(timeout = 4000) public void test153() throws Throwable { Document document0 = Parser.parse("~;=9':Kp'@P4", "~;=9':Kp'@P4"); PipedWriter pipedWriter0 = new PipedWriter(); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); try { document0.outerHtmlTail(pipedWriter0, 352, document_OutputSettings0); fail("Expecting exception: IOException"); } catch(IOException e) { // // Pipe not connected // verifyException("java.io.PipedWriter", e); } } @Test(timeout = 4000) public void test154() throws Throwable { Document document0 = Parser.parseBodyFragment("Pattern syntax error:", "Pattern syntax error:"); CharBuffer charBuffer0 = CharBuffer.wrap((CharSequence) "hWHr;z|-fax&m\"nU"); StringBuilder stringBuilder0 = new StringBuilder(charBuffer0); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); document_OutputSettings0.indentAmount(106); // Undeclared exception! document0.outerHtmlHead(stringBuilder0, 106, document_OutputSettings0); } @Test(timeout = 4000) public void test155() throws Throwable { Document document0 = Parser.parse(">9", ">9"); CharBuffer charBuffer0 = CharBuffer.wrap((CharSequence) ">9"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); // Undeclared exception! try { document0.outerHtmlHead(charBuffer0, 32, document_OutputSettings0); fail("Expecting exception: ReadOnlyBufferException"); } catch(ReadOnlyBufferException e) { // // no message in exception (getMessage() returned null) // verifyException("java.nio.StringCharBuffer", e); } } @Test(timeout = 4000) public void test156() throws Throwable { Document document0 = Parser.parseBodyFragment("z5J-M'b<Y", "z5J-M'b<Y"); Charset charset0 = Charset.defaultCharset(); ByteBuffer byteBuffer0 = ByteBuffer.allocate(7); CharBuffer charBuffer0 = charset0.decode(byteBuffer0); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); // Undeclared exception! try { document0.outerHtmlHead(charBuffer0, 7, document_OutputSettings0); fail("Expecting exception: BufferOverflowException"); } catch(BufferOverflowException e) { // // no message in exception (getMessage() returned null) // verifyException("java.nio.CharBuffer", e); } } @Test(timeout = 4000) public void test157() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("nohrsize", "nohrsize"); StringBuilder stringBuilder0 = new StringBuilder(""); StringBuilder stringBuilder1 = stringBuilder0.append(9); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); Document.OutputSettings document_OutputSettings1 = document_OutputSettings0.indentAmount(2194); // Undeclared exception! document0.outerHtmlHead(stringBuilder1, (-1436010313), document_OutputSettings1); } @Test(timeout = 4000) public void test158() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); // Undeclared exception! try { document0.outerHtmlHead((Appendable) null, 1755, document_OutputSettings0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Node", e); } } @Test(timeout = 4000) public void test159() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("F'`1$Yb1vTz:,H;k|<", "F'`1$Yb1vTz:,H;k|<"); File file0 = MockFile.createTempFile("_x@Po:]PweKnh", (String) null); MockFileWriter mockFileWriter0 = new MockFileWriter(file0); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); // Undeclared exception! try { document0.outerHtmlHead(mockFileWriter0, (-57), document_OutputSettings0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // width must be > 0 // verifyException("org.jsoup.internal.StringUtil", e); } } @Test(timeout = 4000) public void test160() throws Throwable { Document document0 = Parser.parseBodyFragment("4DFf5r>Cl_,", "4DFf5r>Cl_,"); PipedWriter pipedWriter0 = new PipedWriter(); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); try { document0.outerHtmlHead(pipedWriter0, 77, document_OutputSettings0); fail("Expecting exception: IOException"); } catch(IOException e) { // // Pipe not connected // verifyException("java.io.PipedWriter", e); } } @Test(timeout = 4000) public void test161() throws Throwable { Document document0 = Document.createShell("noresize"); CDataNode cDataNode0 = new CDataNode("noresize"); document0.setParentNode(cDataNode0); // Undeclared exception! try { document0.nextElementSiblings(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test162() throws Throwable { Document document0 = Document.createShell("."); TextNode textNode0 = new TextNode("iL"); document0.setParentNode(textNode0); // Undeclared exception! try { document0.nextElementSibling(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test163() throws Throwable { Document document0 = Parser.parseBodyFragment("6u@rUcRykS|5N]", "org.jsoup.nodes.Element$1"); // Undeclared exception! try { document0.lastElementSibling(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test164() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); Evaluator.AttributeStarting evaluator_AttributeStarting0 = new Evaluator.AttributeStarting("p3Qd0>D"); // Undeclared exception! document0.is((Evaluator) evaluator_AttributeStarting0); } @Test(timeout = 4000) public void test165() throws Throwable { Document document0 = Parser.parseBodyFragment("k'8", "noresize"); // Undeclared exception! try { document0.is((Evaluator) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test166() throws Throwable { Parser parser0 = Parser.htmlParser(); Document document0 = parser0.parseInput("org.jsoup.select.StructuralEvaluator$Parent", "org.jsoup.select.StructuralEvaluator$Parent"); // Undeclared exception! try { document0.is("wfE%Lj^`llKTs9^?"); fail("Expecting exception: IllegalStateException"); } catch(IllegalStateException e) { // // Could not parse query 'wfE%Lj^`llKTs9^?': unexpected token at '%Lj^`llKTs9^?' // verifyException("org.jsoup.select.QueryParser", e); } } @Test(timeout = 4000) public void test167() throws Throwable { Document document0 = Parser.parse("~;=9':Kp'@P4", "~;=9':Kp'@P4"); document0.setParentNode(document0); // Undeclared exception! document0.is("BaseURI must not be null"); } @Test(timeout = 4000) public void test168() throws Throwable { Document document0 = Document.createShell("Y|.ek%"); Node[] nodeArray0 = new Node[1]; document0.childNodes = null; // Undeclared exception! try { document0.insertChildren((-1), nodeArray0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test169() throws Throwable { Document document0 = Document.createShell("."); Node[] nodeArray0 = new Node[3]; nodeArray0[0] = (Node) document0; nodeArray0[1] = (Node) document0; nodeArray0[2] = (Node) document0; // Undeclared exception! try { document0.insertChildren(0, nodeArray0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 0, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test170() throws Throwable { Document document0 = Document.createShell("{X}'<W"); document0.appendChild(document0); // Undeclared exception! document0.html("jv/cd}u"); } @Test(timeout = 4000) public void test171() throws Throwable { Document document0 = Parser.parse("", ""); // Undeclared exception! try { document0.html((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test172() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); // Undeclared exception! document0.html(); } @Test(timeout = 4000) public void test173() throws Throwable { Document document0 = Document.createShell("W\"2D::fY@88>A*E"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); document_OutputSettings0.charset((Charset) null); Document document1 = document0.outputSettings(document_OutputSettings0); // Undeclared exception! try { document1.html(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Document$OutputSettings", e); } } @Test(timeout = 4000) public void test174() throws Throwable { Document document0 = Parser.parseBodyFragment("Insert position out of bounds.", "Insert position out of bounds."); document0.childNodes = null; // Undeclared exception! try { document0.hasText(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test175() throws Throwable { Document document0 = Document.createShell("noresize"); // Undeclared exception! try { document0.hasClass((String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test176() throws Throwable { Document document0 = Parser.parse("", ""); // Undeclared exception! try { document0.getElementsMatchingText((String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test177() throws Throwable { Document document0 = Parser.parseBodyFragment("%|Nj1ZLf", "$>W`?0n|(ig$phO_"); // Undeclared exception! try { document0.getElementsMatchingText(",G2G4)v-Y"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Pattern syntax error: ,G2G4)v-Y // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test178() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("textarea", ";>"); Comment comment0 = new Comment("A3Q "); document0.setParentNode(comment0); // Undeclared exception! try { document0.getElementsMatchingText("java.lang.string@0000000057"); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test179() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); // Undeclared exception! try { document0.getElementsMatchingOwnText((String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test180() throws Throwable { Document document0 = Document.createShell("noresize"); Document document1 = (Document)document0.appendText(""); DocumentType documentType0 = new DocumentType("", (String) null, (String) null, "L`SZ9X=UvpV]d", (String) null); document1.setParentNode(documentType0); // Undeclared exception! try { document0.getElementsContainingText("noresize"); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test181() throws Throwable { Document document0 = Parser.parseBodyFragment("o", "o"); document0.setSiblingIndex((-551)); document0.setParentNode(document0); // Undeclared exception! try { document0.getElementsContainingText("o"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test182() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("rfjX)(", "v$=bmv!;_hkwqci,@5u"); TextNode textNode0 = new TextNode((String) null, "\"vr95Btm[o59"); document0.appendChild(textNode0); // Undeclared exception! try { document0.getElementsContainingOwnText("-sedfyqI"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.internal.StringUtil", e); } } @Test(timeout = 4000) public void test183() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); TextNode textNode0 = new TextNode("$J", "noresize"); document0.setParentNode(textNode0); // Undeclared exception! try { document0.getElementsContainingOwnText("$J"); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test184() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("~;=g9cp'v$P 4<", "~;=g9cp'v$P 4<"); // Undeclared exception! try { document0.getElementsByTag((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test185() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed(":nth-child(%d)", "G&=="); List<Node> list0 = document0.childNodesCopy(); document0.childNodes = list0; // Undeclared exception! try { document0.getElementsByIndexLessThan(4131); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.select.NodeTraversor", e); } } @Test(timeout = 4000) public void test186() throws Throwable { Document document0 = Document.createShell(""); // Undeclared exception! try { document0.getElementsByClass(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test187() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); // Undeclared exception! try { document0.getElementsByAttributeValueNot("o~$|duie'", "'"); fail("Expecting exception: StringIndexOutOfBoundsException"); } catch(StringIndexOutOfBoundsException e) { } } @Test(timeout = 4000) public void test188() throws Throwable { Document document0 = Parser.parse("{znIF", "{znIF"); // Undeclared exception! try { document0.getElementsByAttributeValueNot("noresize", (String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test189() throws Throwable { Document document0 = Document.createShell("Ror^size"); // Undeclared exception! try { document0.getElementsByAttributeValueMatching("0\"l#", (String) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test190() throws Throwable { Document document0 = Parser.parseBodyFragment("caption", "=7n<+.i"); Element element0 = document0.head(); element0.siblingIndex = (-106291833); // Undeclared exception! try { document0.getElementsByAttributeValueEnding("textarea", "caption"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test191() throws Throwable { Document document0 = Parser.parseBodyFragment("details", "details"); // Undeclared exception! try { document0.getElementsByAttributeValueContaining("oqWsD`@L vI", "'"); fail("Expecting exception: StringIndexOutOfBoundsException"); } catch(StringIndexOutOfBoundsException e) { } } @Test(timeout = 4000) public void test192() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); // Undeclared exception! try { document0.getElementsByAttributeValueContaining("", ""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test193() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); // Undeclared exception! try { document0.getElementsByAttributeValue("PiX<cxk/'T<[*:J", "'"); fail("Expecting exception: StringIndexOutOfBoundsException"); } catch(StringIndexOutOfBoundsException e) { } } @Test(timeout = 4000) public void test194() throws Throwable { Document document0 = Document.createShell("{X}'<W"); // Undeclared exception! try { document0.getElementsByAttributeValue("%6Z,.I48W3L1Dhq", ""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test195() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); // Undeclared exception! try { document0.getElementsByAttributeStarting((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test196() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); // Undeclared exception! try { document0.getElementsByAttribute((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test197() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("BF@+*p<%T=~N,!e>o", ""); // Undeclared exception! try { document0.getElementById(""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test198() throws Throwable { Tag tag0 = Tag.valueOf("disabled"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "disabled", attributes0); // Undeclared exception! try { pseudoTextElement0.firstElementSibling(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test199() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("body", "body"); DocumentType documentType0 = new DocumentType("#ropt", "G:e*zL_PHaT1v.vE0", "#ropt"); document0.setParentNode(documentType0); // Undeclared exception! try { document0.firstElementSibling(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test200() throws Throwable { Document document0 = Parser.parseBodyFragment("_wTkGcHr!zXz`", "_wTkGcHr!zXz`"); Parser parser0 = Parser.htmlParser(); List<Node> list0 = parser0.parseFragmentInput("", document0, "pA`"); document0.childNodes = list0; // Undeclared exception! try { document0.empty(); fail("Expecting exception: UnsupportedOperationException"); } catch(UnsupportedOperationException e) { // // no message in exception (getMessage() returned null) // verifyException("java.util.Collections$UnmodifiableCollection", e); } } @Test(timeout = 4000) public void test201() throws Throwable { Document document0 = Document.createShell("yZc#VrKyUN#AdYOrn"); DataNode dataNode0 = new DataNode("divpbled"); document0.setParentNode(dataNode0); // Undeclared exception! try { document0.elementSiblingIndex(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test202() throws Throwable { Document document0 = Parser.parseBodyFragment("z5mdC'b<Y", "z5mdC'b<Y"); document0.childNodes = null; // Undeclared exception! try { document0.data(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test203() throws Throwable { Document document0 = Parser.parseBodyFragment("", ""); DocumentType documentType0 = new DocumentType(" />", "", (String) null, ""); document0.setParentNode(documentType0); // Undeclared exception! try { document0.cssSelector(); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test204() throws Throwable { Document document0 = Document.createShell("noresize"); // Undeclared exception! try { document0.classNames((Set<String>) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test205() throws Throwable { Tag tag0 = Tag.valueOf("ik-"); CDataNode cDataNode0 = new CDataNode("ik-"); Attributes attributes0 = cDataNode0.attributes(); Element element0 = new Element(tag0, "ik-", attributes0); element0.childNodes = null; // Undeclared exception! try { element0.childNodeSize(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test206() throws Throwable { Document document0 = Parser.parse("8]<]6l04fFz", "Pattern syntax error: "); // Undeclared exception! try { document0.child(1); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 1, Size: 1 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test207() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("head", "head"); // Undeclared exception! try { document0.child((-3183)); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test208() throws Throwable { Document document0 = Parser.parse("java.lang.string@0000000012", "java.lang.string@0000000012"); Element element0 = document0.head(); document0.setParentNode(element0); // Undeclared exception! try { element0.before((Node) document0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 0, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test209() throws Throwable { Document document0 = Parser.parseBodyFragment("Y|.ek%", "Y|.ek%"); Node[] nodeArray0 = new Node[1]; nodeArray0[0] = (Node) document0; Document document1 = (Document)document0.insertChildren((-1), nodeArray0); // Undeclared exception! document1.before("EH0v^#,+"); } @Test(timeout = 4000) public void test210() throws Throwable { CDataNode cDataNode0 = new CDataNode("class"); Document document0 = Document.createShell("class"); document0.setParentNode(cDataNode0); // Undeclared exception! try { document0.before("Read timeout"); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test211() throws Throwable { Document document0 = Document.createShell("noresize"); // Undeclared exception! try { document0.attr((String) null, false); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test212() throws Throwable { Document document0 = Document.createShell("k"); document0.setParentNode(document0); // Undeclared exception! document0.attr("br", "ihD"); } @Test(timeout = 4000) public void test213() throws Throwable { Tag tag0 = Tag.valueOf("~;=B9':Kp'vP 4<"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "h", attributes0); // Undeclared exception! try { pseudoTextElement0.attr((String) null, "java.lang.string@0000000013"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.parser.ParseSettings", e); } } @Test(timeout = 4000) public void test214() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("w+\"c", "w+\"c"); Document document1 = (Document)document0.empty(); document1.reparentChild(document0); // Undeclared exception! try { document1.appendTo(document0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 0, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test215() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("", "org.jsoup.nodes.Attributes$Dataset$DatasetIterator"); // Undeclared exception! try { document0.appendTo((Element) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test216() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("Pattern syntax error: ", ""); // Undeclared exception! try { document0.appendText((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test217() throws Throwable { Document document0 = Parser.parse("~;=9':Kp'vP4", "~;=9':Kp'vP4"); document0.setParentNode(document0); // Undeclared exception! document0.appendElement("~;=9':Kp'vP4"); } @Test(timeout = 4000) public void test218() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); // Undeclared exception! try { document0.appendElement((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test219() throws Throwable { Document document0 = Parser.parse("y*eQTJ", "disabled"); document0.setParentNode(document0); document0.empty(); // Undeclared exception! try { document0.appendChild(document0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 0, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test220() throws Throwable { Document document0 = Document.createShell("noresize"); // Undeclared exception! try { document0.appendChild((Node) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test221() throws Throwable { Document document0 = Document.createShell("k"); document0.setParentNode(document0); // Undeclared exception! document0.append("body"); } @Test(timeout = 4000) public void test222() throws Throwable { Parser parser0 = Parser.xmlParser(); Document document0 = parser0.parseInput("'", "'"); // Undeclared exception! try { document0.append((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test223() throws Throwable { Document document0 = Parser.parse("", ""); CDataNode cDataNode0 = new CDataNode("(r?6"); document0.setParentNode(cDataNode0); // Undeclared exception! try { document0.append(""); fail("Expecting exception: ClassCastException"); } catch(ClassCastException e) { // // no message in exception (getMessage() returned null) // } } @Test(timeout = 4000) public void test224() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); // Undeclared exception! try { document0.after((Node) document0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 1, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test225() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); // Undeclared exception! document0.after(""); } @Test(timeout = 4000) public void test226() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("P4`=*)Xc:ULu#", "F'`1$Yb1vTz:,H;k|<6"); // Undeclared exception! try { document0.addClass((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test227() throws Throwable { Tag tag0 = Tag.valueOf("divpbled"); Attributes attributes0 = new Attributes(); String[] stringArray0 = new String[5]; attributes0.keys = stringArray0; PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "divpbled", attributes0); // Undeclared exception! try { pseudoTextElement0.addClass("org.jsoup.nodes.Element$1"); fail("Expecting exception: ArrayIndexOutOfBoundsException"); } catch(ArrayIndexOutOfBoundsException e) { // // 0 // verifyException("org.jsoup.nodes.Attributes", e); } } @Test(timeout = 4000) public void test228() throws Throwable { Attributes attributes0 = new Attributes(); Element element0 = null; try { element0 = new Element((Tag) null, "noresize", attributes0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test229() throws Throwable { Element element0 = null; try { element0 = new Element((Tag) null, "3z#"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test230() throws Throwable { Element element0 = null; try { element0 = new Element((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test231() throws Throwable { Document document0 = new Document("~;=B9'c:Kp'v$P 4<"); document0.html((CharBuffer) null); } @Test(timeout = 4000) public void test232() throws Throwable { ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("nth-last-of-type", parseSettings0); Attributes attributes0 = new Attributes(); FormElement formElement0 = new FormElement(tag0, "Pattern syntax error: ", attributes0); formElement0.hasClass("Insert posiMzon ouI of %unds."); } @Test(timeout = 4000) public void test233() throws Throwable { Document document0 = Document.createShell("k"); Charset charset0 = Charset.defaultCharset(); Set<String> set0 = charset0.aliases(); document0.classNames(set0); } @Test(timeout = 4000) public void test234() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.appendText("html"); document0.data(); } @Test(timeout = 4000) public void test235() throws Throwable { Document document0 = Document.createShell("noresize"); document0.hasText(); } @Test(timeout = 4000) public void test236() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); Element element0 = document0.html("head"); element0.hasText(); } @Test(timeout = 4000) public void test237() throws Throwable { Document document0 = Document.createShell("br"); document0.elementSiblingIndex(); } @Test(timeout = 4000) public void test238() throws Throwable { Document document0 = Document.createShell("k"); document0.setParentNode(document0); document0.previousElementSibling(); } @Test(timeout = 4000) public void test239() throws Throwable { Document document0 = Parser.parse("", ""); Element element0 = document0.body(); element0.previousElementSibling(); } @Test(timeout = 4000) public void test240() throws Throwable { Document document0 = Document.createShell("."); Element element0 = document0.head(); Element element1 = element0.firstElementSibling(); element1.nextElementSibling(); } @Test(timeout = 4000) public void test241() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("", ""); document0.setParentNode(document0); document0.cssSelector(); } @Test(timeout = 4000) public void test242() throws Throwable { Document document0 = Parser.parse("{znIF", "{znIF"); Element element0 = document0.body(); element0.append("{znIF"); } @Test(timeout = 4000) public void test243() throws Throwable { Document document0 = Document.createShell("noresize"); document0.attributes(); } @Test(timeout = 4000) public void test244() throws Throwable { Document document0 = Parser.parse("", ""); document0.children(); } @Test(timeout = 4000) public void test245() throws Throwable { Document document0 = Parser.parse("{znIF", "{znIF"); document0.className(); } @Test(timeout = 4000) public void test246() throws Throwable { Document document0 = Document.createShell("ubT.dpht}qFkRPvTr"); document0.ownText(); } @Test(timeout = 4000) public void test247() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("P4`=*)Xc:ULu#", "F'`1$Yb1vTz:,H;k|<6"); document0.isBlock(); } @Test(timeout = 4000) public void test248() throws Throwable { Document document0 = Parser.parse("Unexpected token type: ", ")lAXNGYU2R[oGD/6^"); document0.baseUri(); } @Test(timeout = 4000) public void test249() throws Throwable { Document document0 = Document.createShell("."); // Undeclared exception! try { document0.getElementsMatchingText((Pattern) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.select.Evaluator$Matches", e); } } @Test(timeout = 4000) public void test250() throws Throwable { ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("$^b&tx'y;5P\\e#_.`>", parseSettings0); CDataNode cDataNode0 = new CDataNode("wU^CIJsgN~Bs"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "wU^CIJsgN~Bs", attributes0); Pattern pattern0 = Pattern.compile("org.jsoup.nodes.Element", 44); pseudoTextElement0.getElementsByAttributeValueMatching("org.jsoup.nodes.Element", pattern0); } @Test(timeout = 4000) public void test251() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); document0.id(); } @Test(timeout = 4000) public void test252() throws Throwable { Document document0 = Parser.parse("", ""); document0.classNames(); } @Test(timeout = 4000) public void test253() throws Throwable { Document document0 = Document.createShell("vyb'^j[;`O&RN"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); Document.OutputSettings document_OutputSettings1 = document_OutputSettings0.prettyPrint(false); document0.outputSettings(document_OutputSettings1); document0.toString(); } @Test(timeout = 4000) public void test254() throws Throwable { Document document0 = Parser.parseBodyFragment("Must be false", "Must be false"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); document_OutputSettings0.prettyPrint(false); ByteArrayOutputStream byteArrayOutputStream0 = new ByteArrayOutputStream(3690); MockPrintWriter mockPrintWriter0 = new MockPrintWriter(byteArrayOutputStream0); document0.outerHtmlTail(mockPrintWriter0, 2593, document_OutputSettings0); } @Test(timeout = 4000) public void test255() throws Throwable { Parser parser0 = Parser.htmlParser(); Document document0 = parser0.parseInput(";>", "mp 'p!:1a?<mR[5#n"); Charset charset0 = Charset.defaultCharset(); document0.charset(charset0); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); Document.OutputSettings.Syntax document_OutputSettings_Syntax0 = Document.OutputSettings.Syntax.xml; Document.OutputSettings document_OutputSettings1 = document_OutputSettings0.syntax(document_OutputSettings_Syntax0); Document document1 = document0.outputSettings(document_OutputSettings1); document1.html(); } @Test(timeout = 4000) public void test256() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("F'`1$Yb1vTz:,H;k|<6", "$f&Jg:Ok#(jc]C:"); PipedWriter pipedWriter0 = new PipedWriter(); // Undeclared exception! try { document0.html(pipedWriter0); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // java.io.IOException: Pipe not connected // verifyException("org.jsoup.nodes.Node$OuterHtmlVisitor", e); } } @Test(timeout = 4000) public void test257() throws Throwable { Document document0 = Parser.parseBodyFragment("org.jsoup.select.Evaluator$IndexEvaluator", "org.jsoup.select.Evaluator$IndexEvaluator"); document0.title(""); document0.html(); } @Test(timeout = 4000) public void test258() throws Throwable { Element element0 = new Element("org.jsoup.parser.Token$Character"); StringBuffer stringBuffer0 = new StringBuffer((CharSequence) "org.jsoup.parser.Token$Character"); Document.OutputSettings document_OutputSettings0 = new Document.OutputSettings(); Document.OutputSettings document_OutputSettings1 = document_OutputSettings0.prettyPrint(false); element0.outerHtmlHead(stringBuffer0, (-1158832063), document_OutputSettings1); } @Test(timeout = 4000) public void test259() throws Throwable { CDataNode cDataNode0 = new CDataNode("~;=B9'c:Kp'v$P 4<"); Attributes attributes0 = cDataNode0.attributes(); Tag tag0 = Tag.valueOf("textarea"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "$&", attributes0); pseudoTextElement0.val("CJK:"); } @Test(timeout = 4000) public void test260() throws Throwable { CDataNode cDataNode0 = new CDataNode("~;=B9'c:Kp'v$P 4<"); Attributes attributes0 = cDataNode0.attributes(); Tag tag0 = Tag.valueOf("textarea"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "$&", attributes0); pseudoTextElement0.val(); } @Test(timeout = 4000) public void test261() throws Throwable { CDataNode cDataNode0 = new CDataNode("Y|.ek%"); Attributes attributes0 = cDataNode0.attributes(); attributes0.put("class", "Y|.ek%"); Tag tag0 = Tag.valueOf("java.lang.string@0000000048"); FormElement formElement0 = new FormElement(tag0, "Y|.ek%", attributes0); formElement0.toggleClass("Y|.ek%"); } @Test(timeout = 4000) public void test262() throws Throwable { CDataNode cDataNode0 = new CDataNode("ScriptDataDoubleEscapedDashDash"); Attributes attributes0 = cDataNode0.attributes(); Attribute attribute0 = new Attribute("class", "class"); Attributes attributes1 = attributes0.put(attribute0); Tag tag0 = Tag.valueOf("F7dgG&"); FormElement formElement0 = new FormElement(tag0, "Y|.ek%", attributes1); formElement0.toggleClass("F7dgG&"); formElement0.hasClass("F7dgG&"); } @Test(timeout = 4000) public void test263() throws Throwable { CDataNode cDataNode0 = new CDataNode("class"); Attributes attributes0 = cDataNode0.attributes(); Attributes attributes1 = attributes0.put("class", "class"); Attribute attribute0 = new Attribute("class", "class", attributes0); attributes1.spliterator(); Tag tag0 = Tag.valueOf("FK%w&"); FormElement formElement0 = new FormElement(tag0, "FK%w&", attributes1); Parser.parseBodyFragmentRelaxed("java.lang.string@0000000048", "class"); Tag.valueOf("FK%w&"); formElement0.toggleClass("FK%w&"); formElement0.hasClass("java.lang.string@0000000048"); } @Test(timeout = 4000) public void test264() throws Throwable { CDataNode cDataNode0 = new CDataNode("class"); Attributes attributes0 = cDataNode0.attributes(); Attributes attributes1 = attributes0.put("class", "class"); Tag tag0 = Tag.valueOf("FK%w&"); FormElement formElement0 = new FormElement(tag0, "FK%w&", attributes1); formElement0.toggleClass("FK%w&"); formElement0.hasClass("java.lang.string@0000000048"); } @Test(timeout = 4000) public void test265() throws Throwable { CDataNode cDataNode0 = new CDataNode("class"); Attributes attributes0 = cDataNode0.attributes(); Attributes attributes1 = attributes0.put("class", "class"); Tag tag0 = Tag.valueOf("FK%w&"); FormElement formElement0 = new FormElement(tag0, "FK%w&", attributes1); Element element0 = formElement0.toggleClass(" > "); element0.hasClass("#&4K_[0L9/-`zVT"); } @Test(timeout = 4000) public void test266() throws Throwable { CDataNode cDataNode0 = new CDataNode("class"); Attributes attributes0 = cDataNode0.attributes(); Tag tag0 = Tag.valueOf("FK%w&"); FormElement formElement0 = new FormElement(tag0, "FK%w&", attributes0); Element element0 = formElement0.toggleClass(" > "); element0.hasClass("#&4K_[0L9/-`zVT"); } @Test(timeout = 4000) public void test267() throws Throwable { ParseSettings parseSettings0 = ParseSettings.htmlDefault; Tag tag0 = Tag.valueOf("nth-last-of-type", parseSettings0); Attributes attributes0 = new Attributes(); FormElement formElement0 = new FormElement(tag0, "", attributes0); formElement0.toggleClass("I3\"`$Zt2D[h%V%#vS"); formElement0.hasClass("Insert posiMzon ouI of %unds."); } @Test(timeout = 4000) public void test268() throws Throwable { ParseSettings parseSettings0 = ParseSettings.preserveCase; Tag tag0 = Tag.valueOf("~;=B9'c:Kp'v$P 4<", parseSettings0); CDataNode cDataNode0 = new CDataNode("textarea"); Attributes attributes0 = cDataNode0.attributes(); FormElement formElement0 = new FormElement(tag0, "qjb%]6{q'sd9", attributes0); formElement0.toggleClass("Tag name must not be empty."); formElement0.hasClass("Tag name must not be empty."); } @Test(timeout = 4000) public void test269() throws Throwable { Document document0 = Parser.parse("#ropt", "#ropt"); CDataNode cDataNode0 = new CDataNode("java._an^.string@0000000014"); document0.prependChild(cDataNode0); document0.data(); } @Test(timeout = 4000) public void test270() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("_U1s<?c", "Y*."); document0.data(); } @Test(timeout = 4000) public void test271() throws Throwable { Document document0 = Parser.parse("f=+PW3+g\"M^jZ`!", ""); document0.hasText(); } @Test(timeout = 4000) public void test272() throws Throwable { Document document0 = Parser.parse("~;=9':Kp'vP4", "~;=9':Kp'vP4"); document0.setParentNode(document0); document0.getElementsContainingText("~;=9':Kp'vP4"); } @Test(timeout = 4000) public void test273() throws Throwable { Element.preserveWhitespace((Node) null); } @Test(timeout = 4000) public void test274() throws Throwable { Attributes attributes0 = new Attributes(); Tag tag0 = Tag.valueOf("br"); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, " > ", attributes0); Document document0 = Document.createShell("br"); document0.appendChild(pseudoTextElement0); Pattern pattern0 = Pattern.compile("java.lang.string@0000000011", 4); document0.getElementsMatchingOwnText(pattern0); } @Test(timeout = 4000) public void test275() throws Throwable { CDataNode cDataNode0 = new CDataNode(")"); Parser parser0 = Parser.xmlParser(); StringReader stringReader0 = new StringReader("head"); Document document0 = parser0.parseInput((Reader) stringReader0, "&"); document0.prependChild(cDataNode0); document0.getElementsContainingText(" />"); } @Test(timeout = 4000) public void test276() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("<^R3=O-f9IcN></^R3=O-f9IcN>", "V:U?=1z8+azZ"); Pattern pattern0 = Pattern.compile("RawtextEndTagName", 1595); document0.getElementsMatchingOwnText(pattern0); } @Test(timeout = 4000) public void test277() throws Throwable { Document document0 = Parser.parse("]E,?GHm*pt~oE ", "]E,?GHm*pt~oE "); Element element0 = document0.append("]E,?GHm*pt~oE "); element0.text(); } @Test(timeout = 4000) public void test278() throws Throwable { Document document0 = Document.createShell("nkiesize"); Document document1 = Parser.parseBodyFragment("head", "nkiesize"); document1.appendChild(document0); document1.getElementsContainingText("br"); } @Test(timeout = 4000) public void test279() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("~;=g9cp'v$P 4<", "~;=g9cp'v$P 4<"); Tag tag0 = Tag.valueOf("br"); CDataNode cDataNode0 = new CDataNode("br"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "~;=g9cp'v$P 4<", attributes0); document0.appendChild(pseudoTextElement0); document0.getElementsContainingText("br"); } @Test(timeout = 4000) public void test280() throws Throwable { Document document0 = Document.createShell(";>"); document0.title(";>"); document0.getElementsContainingText("mp 'p!:1a?<mR[5#n"); } @Test(timeout = 4000) public void test281() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("F'`1$Yb1vTz:,H;k|<", "F'`1$Yb1vTz:,H;k|<"); DocumentType documentType0 = new DocumentType(",", ",", ",", "<x ", "wbr"); document0.appendChild(documentType0); document0.getElementsContainingText("-#"); } @Test(timeout = 4000) public void test282() throws Throwable { Document document0 = Parser.parseBodyFragment("4DFf5r>Cl_,", "4DFf5r>Cl_,"); document0.getElementById("4DFf5r>Cl_,"); } @Test(timeout = 4000) public void test283() throws Throwable { Document document0 = Parser.parseBodyFragment("~;=B9'c:Kp'v$P 4<", "~;=B9'c:Kp'v$P 4<"); Element element0 = document0.head(); Element element1 = element0.lastElementSibling(); element1.doClone(element0); } @Test(timeout = 4000) public void test284() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.html("head"); Element element0 = document0.appendTo(document0); element0.lastElementSibling(); } @Test(timeout = 4000) public void test285() throws Throwable { Document document0 = Document.createShell("6%0f"); document0.setParentNode(document0); document0.firstElementSibling(); } @Test(timeout = 4000) public void test286() throws Throwable { Document document0 = Document.createShell("k"); document0.previousElementSibling(); } @Test(timeout = 4000) public void test287() throws Throwable { Document document0 = Parser.parse("~;=9':Kp'vP4", "~;=9':Kp'vP4"); document0.setParentNode(document0); document0.previousElementSiblings(); } @Test(timeout = 4000) public void test288() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed(":lt(%d)", "h6L[H/"); document0.nextElementSibling(); } @Test(timeout = 4000) public void test289() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.appendChild(document0); document0.siblingElements(); } @Test(timeout = 4000) public void test290() throws Throwable { Parser parser0 = Parser.htmlParser(); Document document0 = parser0.parseInput(")lAXNGYU2R[oGD/6^", "3z#"); document0.siblingElements(); } @Test(timeout = 4000) public void test291() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("muted", "6D/M\"mHd"); Element element0 = document0.head(); element0.before("L*?xS!b"); element0.cssSelector(); } @Test(timeout = 4000) public void test292() throws Throwable { Document document0 = Parser.parseBodyFragment("@IUCm' E'19b", "@IUCm' E'19b"); Element element0 = document0.head(); element0.cssSelector(); } @Test(timeout = 4000) public void test293() throws Throwable { Document document0 = Document.createShell("k"); Element element0 = document0.head(); Element element1 = element0.firstElementSibling(); element1.addClass("k"); // Undeclared exception! try { element0.cssSelector(); fail("Expecting exception: IllegalStateException"); } catch(IllegalStateException e) { // // Could not parse query 'head.java.lang.String@0000000054': unexpected token at '@0000000054' // verifyException("org.jsoup.select.QueryParser", e); } } @Test(timeout = 4000) public void test294() throws Throwable { Document document0 = Parser.parse("^=", "AttributeValue_singleQuoted"); Node[] nodeArray0 = document0.childNodesAsArray(); // Undeclared exception! try { document0.insertChildren(456, nodeArray0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Insert position out of bounds. // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test295() throws Throwable { Document document0 = Parser.parse("0xwa{mcHd", "Pn"); Node[] nodeArray0 = document0.childNodesAsArray(); // Undeclared exception! try { document0.insertChildren((-4404), nodeArray0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Insert position out of bounds. // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test296() throws Throwable { Document document0 = new Document("Children collection to be inserted must not be null."); Node[] nodeArray0 = new Node[0]; document0.insertChildren((-1), nodeArray0); } @Test(timeout = 4000) public void test297() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); Elements elements0 = document0.getElementsByIndexEquals(344); // Undeclared exception! try { document0.insertChildren(27, (Collection<? extends Node>) elements0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Insert position out of bounds. // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test298() throws Throwable { Document document0 = Parser.parse("ol", "ol"); Elements elements0 = document0.getElementsByIndexLessThan((-644)); // Undeclared exception! try { document0.insertChildren((-1479), (Collection<? extends Node>) elements0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Insert position out of bounds. // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test299() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("'`aW|+%R4i", "'`aW|+%R4i"); Elements elements0 = document0.getElementsContainingText("'`aW|+%R4i"); // Undeclared exception! try { document0.insertChildren((-1), (Collection<? extends Node>) elements0); fail("Expecting exception: IndexOutOfBoundsException"); } catch(IndexOutOfBoundsException e) { // // Index: 1, Size: 0 // verifyException("java.util.ArrayList", e); } } @Test(timeout = 4000) public void test300() throws Throwable { Document document0 = Document.createShell("class"); Elements elements0 = document0.previousElementSiblings(); document0.insertChildren(0, (Collection<? extends Node>) elements0); } @Test(timeout = 4000) public void test301() throws Throwable { Document document0 = Parser.parseBodyFragment("", ""); document0.dataNodes(); } @Test(timeout = 4000) public void test302() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.html("head"); document0.textNodes(); } @Test(timeout = 4000) public void test303() throws Throwable { Document document0 = Parser.parse("zE&C'b<l", "zE&C'b<l"); document0.textNodes(); } @Test(timeout = 4000) public void test304() throws Throwable { Document document0 = Document.createShell("k"); document0.setParentNode(document0); Element element0 = document0.prependText("P^ke}{mY1UPAe\rk"); element0.nextElementSibling(); } @Test(timeout = 4000) public void test305() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("noresize", "noresize"); Element element0 = document0.head(); Elements elements0 = element0.nextElementSiblings(); assertEquals("noresize", element0.baseUri()); assertEquals(1, elements0.size()); } @Test(timeout = 4000) public void test306() throws Throwable { Element element0 = new Element("org.jsoup.parser.Token$Character"); Elements elements0 = element0.getElementsByIndexGreaterThan((-1158832063)); assertFalse(elements0.isEmpty()); } @Test(timeout = 4000) public void test307() throws Throwable { Document document0 = Parser.parseBodyFragment("disabled", "disabled"); Element element0 = document0.selectFirst("body"); assertEquals(1, element0.siblingIndex()); assertEquals("disabled", element0.baseUri()); } @Test(timeout = 4000) public void test308() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("F'`1Yb1vTz:,H;kj|<6", "$f&Jg:Ok#(jc]C:"); document0.getElementsByTag("F'`1Yb1vTz:,H;kj|<6"); assertEquals("$f&Jg:Ok#(jc]C:", document0.baseUri()); } @Test(timeout = 4000) public void test309() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("muted", "6D/M\"mHd"); document0.getAllElements(); assertEquals("6D/M\"mHd", document0.baseUri()); } @Test(timeout = 4000) public void test310() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("P4`=*)Xc:ULu#", "F'`1$Yb1vTz:,H;k|<6"); // Undeclared exception! try { document0.removeClass((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test311() throws Throwable { Document document0 = Parser.parseBodyFragment("@IUCm' E'19b", "@IUCm' E'19b"); // Undeclared exception! try { document0.before("[,j24M^:"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test312() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("F'`1$Yb1vTz:,H;k|<", "F'`1$Yb1vTz:,H;k|<"); document0.getElementsByAttribute("html"); assertEquals("F'`1$Yb1vTz:,H;k|<", document0.baseUri()); } @Test(timeout = 4000) public void test313() throws Throwable { Document document0 = Parser.parse("", ""); document0.doSetBaseUri("w_{si+6&x|oN_M}`YG"); assertEquals("w_{si+6&x|oN_M}`YG", document0.baseUri()); } @Test(timeout = 4000) public void test314() throws Throwable { Document document0 = Document.createShell("k"); // Undeclared exception! try { document0.after((Node) document0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test315() throws Throwable { Document document0 = Parser.parseBodyFragment("z5mdC'b<Y", "z5mdC'b<Y"); document0.getElementsByAttributeValueContaining("org.jsoup.nodes.Node$OuterHtmlVisitor", "org.jsoup.nodes.Node$OuterHtmlVisitor"); assertEquals("z5mdC'b<Y", document0.baseUri()); assertEquals(1, document0.childNodeSize()); } @Test(timeout = 4000) public void test316() throws Throwable { ParseSettings parseSettings0 = new ParseSettings(false, false); Tag tag0 = Tag.valueOf("meta", parseSettings0); CDataNode cDataNode0 = new CDataNode("jGaj&m$"); Attributes attributes0 = cDataNode0.attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "jGaj&m$", attributes0); Elements elements0 = pseudoTextElement0.getElementsByClass("~=9a/);:K'@P"); assertTrue(elements0.isEmpty()); assertEquals("jGaj&m$", pseudoTextElement0.baseUri()); } @Test(timeout = 4000) public void test317() throws Throwable { Tag tag0 = Tag.valueOf("disabled"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "disabled", attributes0); // Undeclared exception! try { pseudoTextElement0.getElementsByAttributeValueEnding("", ""); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test318() throws Throwable { Tag tag0 = Tag.valueOf("disabled"); Attributes attributes0 = new Attributes(); PseudoTextElement pseudoTextElement0 = new PseudoTextElement(tag0, "disabled", attributes0); pseudoTextElement0.is("disabled"); assertEquals("disabled", pseudoTextElement0.baseUri()); } @Test(timeout = 4000) public void test319() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); document0.getElementsByAttributeValueMatching("jAeK\"1EFQ", "~QOm o,+l"); assertEquals(1, document0.childNodeSize()); assertEquals("noresize", document0.baseUri()); } @Test(timeout = 4000) public void test320() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("$J", "$J"); Charset charset0 = document0.charset(); document0.charset(charset0); String string0 = document0.html(); assertEquals("<html>\n <head>\n <meta charset=\"UTF-8\">\n </head>\n <body>\n $J\n </body>\n</html>", string0); assertEquals("$J", document0.baseUri()); } @Test(timeout = 4000) public void test321() throws Throwable { Document document0 = Document.createShell("Tag name must not be empty."); // Undeclared exception! try { document0.getElementsMatchingOwnText("L'>,'|Yg@eg=:(b"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Pattern syntax error: L'>,'|Yg@eg=:(b // verifyException("org.jsoup.nodes.Element", e); } } @Test(timeout = 4000) public void test322() throws Throwable { Document document0 = Parser.parse("zE&C'b<l", "zE&C'b<l"); Elements elements0 = document0.getElementsByIndexEquals(0); assertEquals("zE&C'b<l", document0.baseUri()); assertEquals(3, elements0.size()); } @Test(timeout = 4000) public void test323() throws Throwable { Document document0 = Parser.parseBodyFragmentRelaxed("F'`1Yb1vTz:,H;kj|<6", "$f&Jg:Ok#(jc]C:"); document0.getElementsByAttributeStarting("F'`1Yb1vTz:,H;kj|<6"); assertEquals("$f&Jg:Ok#(jc]C:", document0.baseUri()); } @Test(timeout = 4000) public void test324() throws Throwable { Document document0 = Parser.parseBodyFragment("'`aW|\u0005E63%R4i", "B"); document0.prependElement("B"); assertEquals(2, document0.childNodeSize()); } @Test(timeout = 4000) public void test325() throws Throwable { Document document0 = Parser.parse("#ropt", "#ropt"); // Undeclared exception! try { document0.after("java._an^.string@0000000014"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test326() throws Throwable { Document document0 = Parser.parseBodyFragment("", ""); // Undeclared exception! try { document0.getElementsMatchingOwnText((Pattern) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.select.Evaluator$MatchesOwn", e); } } @Test(timeout = 4000) public void test327() throws Throwable { Document document0 = Parser.parseBodyFragment("jo", "jo"); // Undeclared exception! try { document0.prepend((String) null); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test328() throws Throwable { Document document0 = Parser.parse("mp 'p!:1a?<mR[5#n", "mp 'p!:1a?<mR[5#n"); document0.select("html"); assertEquals("mp 'p!:1a?<mR[5#n", document0.baseUri()); } @Test(timeout = 4000) public void test329() throws Throwable { Document document0 = Parser.parseBodyFragment("noresize", "noresize"); // Undeclared exception! try { document0.getElementsByAttributeValueStarting((String) null, "valwPue"); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // String must not be empty // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test330() throws Throwable { Document document0 = Document.createShell("."); document0.getElementsByAttributeValue(".", "attributeDoubleValueCharsSorted"); assertEquals(".", document0.baseUri()); assertEquals(1, document0.childNodeSize()); } @Test(timeout = 4000) public void test331() throws Throwable { Document document0 = Parser.parseBodyFragment("~;=B9':Kp'vP 4<", "~;=B9':Kp'vP 4<"); document0.wholeText(); assertEquals(1, document0.childNodeSize()); assertEquals("~;=B9':Kp'vP 4<", document0.baseUri()); } @Test(timeout = 4000) public void test332() throws Throwable { Document document0 = Parser.parse("java.lang.string@0000000012", "java.lang.string@0000000012"); // Undeclared exception! try { document0.before((Node) document0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // Object must not be null // verifyException("org.jsoup.helper.Validate", e); } } @Test(timeout = 4000) public void test333() throws Throwable { Parser parser0 = Parser.htmlParser(); Document document0 = parser0.parseInput(")lAXNGYU2R[oGD/6^", "3z#"); Elements elements0 = document0.getElementsContainingOwnText(")lAXNGYU2R[oGD/6^"); assertEquals("3z#", document0.baseUri()); assertEquals(1, elements0.size()); } @Test(timeout = 4000) public void test334() throws Throwable { Document document0 = Parser.parseBodyFragment("mp 'p!:1a?<mR[5#n", "mp 'p!:1a?<mR[5#n"); document0.dataset(); assertEquals("mp 'p!:1a?<mR[5#n", document0.baseUri()); assertEquals(1, document0.childNodeSize()); } @Test(timeout = 4000) public void test335() throws Throwable { Element element0 = new Element("Y|.ek%"); Element element1 = element0.tagName("d'*tr"); assertEquals(0, element1.childNodeSize()); } @Test(timeout = 4000) public void test336() throws Throwable { Document document0 = Parser.parse("zE&C'b<l", "zE&C'b<l"); assertEquals(1, document0.childNodeSize()); Element element0 = document0.child(0); assertEquals(0, element0.siblingIndex()); assertEquals("zE&C'b<l", element0.baseUri()); assertNotNull(element0); } @Test(timeout = 4000) public void test337() throws Throwable { Document document0 = Parser.parse("f=+PW3+g\"M^jZ`!", ""); document0.prependText(""); boolean boolean0 = document0.hasText(); assertEquals(2, document0.childNodeSize()); assertTrue(boolean0); } @Test(timeout = 4000) public void test338() throws Throwable { Document document0 = Document.createShell("noresize"); Elements elements0 = document0.getElementsMatchingText("Y|.e%"); assertEquals("noresize", document0.baseUri()); assertEquals(1, document0.childNodeSize()); assertTrue(elements0.isEmpty()); } @Test(timeout = 4000) public void test339() throws Throwable { Document document0 = Parser.parseBodyFragment("org.jsoup.select.Selector", ";>"); // Undeclared exception! try { document0.wrap("org.jsoup.select.Selector"); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.jsoup.nodes.Node", e); } } @Test(timeout = 4000) public void test340() throws Throwable { Document document0 = Parser.parseBodyFragment("@IUCm' E'19b", "@IUCm' E'19b"); document0.cssSelector(); } }
6210eb60b3d0b37cbfe986cb671faaad5b593128
2d3f37a1c5233a045be2bd2e1f8e9128f41a8d46
/libs/baseUtilsLibrary/src/main/java/com/xx/baseutilslibrary/network/gson/ZipHelper.java
d91db422cfe18d3daa3d1060529b175ed29f9026
[]
no_license
qi5945/frameCode
001fd3338d85e0ad0a25e174b6f9f85cbec2ccb2
703c9a60e0e8dace8cd74ce596b50b4ec5fd628e
refs/heads/master
2020-05-30T03:59:09.155232
2019-05-31T04:19:12
2019-05-31T04:19:12
189,525,815
0
0
null
null
null
null
UTF-8
Java
false
false
4,699
java
package com.xx.baseutilslibrary.network.gson; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import java.util.zip.DataFormatException; import java.util.zip.Deflater; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import java.util.zip.Inflater; public class ZipHelper { /** * zlib decompress 2 String */ public static String decompressToStringForZlib(byte[] bytesToDecompress) { byte[] bytesDecompressed = decompressForZlib ( bytesToDecompress ); String returnValue = null; try { returnValue = new String ( bytesDecompressed, 0, bytesDecompressed.length, "UTF-8" ); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); } return returnValue; } /** * zlib decompress 2 byte */ public static byte[] decompressForZlib(byte[] bytesToDecompress) { byte[] returnValues = null; Inflater inflater = new Inflater(); int numberOfBytesToDecompress = bytesToDecompress.length; inflater.setInput ( bytesToDecompress, 0, numberOfBytesToDecompress ); int bufferSizeInBytes = numberOfBytesToDecompress; int numberOfBytesDecompressedSoFar = 0; List<Byte> bytesDecompressedSoFar = new ArrayList<Byte>(); try { while (inflater.needsInput() == false) { byte[] bytesDecompressedBuffer = new byte[bufferSizeInBytes]; int numberOfBytesDecompressedThisTime = inflater.inflate ( bytesDecompressedBuffer ); numberOfBytesDecompressedSoFar += numberOfBytesDecompressedThisTime; for (int b = 0; b < numberOfBytesDecompressedThisTime; b++) { bytesDecompressedSoFar.add(bytesDecompressedBuffer[b]); } } returnValues = new byte[bytesDecompressedSoFar.size()]; for (int b = 0; b < returnValues.length; b++) { returnValues[b] = (byte) (bytesDecompressedSoFar.get(b)); } } catch (DataFormatException dfe) { dfe.printStackTrace(); } inflater.end(); return returnValues; } /** * zlib compress 2 byte */ public static byte[] compressForZlib(byte[] bytesToCompress) { Deflater deflater = new Deflater(); deflater.setInput(bytesToCompress); deflater.finish(); byte[] bytesCompressed = new byte[Short.MAX_VALUE]; int numberOfBytesAfterCompression = deflater.deflate(bytesCompressed); byte[] returnValues = new byte[numberOfBytesAfterCompression]; System.arraycopy ( bytesCompressed, 0, returnValues, 0, numberOfBytesAfterCompression ); return returnValues; } /** * zlib compress 2 byte */ public static byte[] compressForZlib(String stringToCompress) { byte[] returnValues = null; try { returnValues = compressForZlib ( stringToCompress.getBytes("UTF-8") ); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); } return returnValues; } /** * gzip compress 2 byte */ public static byte[] compressForGzip(String string) { ByteArrayOutputStream os = null; GZIPOutputStream gos = null; try { os = new ByteArrayOutputStream(string.length()); gos = new GZIPOutputStream(os); gos.write(string.getBytes("UTF-8")); byte[] compressed = os.toByteArray(); return compressed; } catch (IOException e) { e.printStackTrace(); } finally { okhttp3.internal.Util.closeQuietly(gos); okhttp3.internal.Util.closeQuietly(os); } return null; } /** * gzip decompress 2 string */ public static String decompressForGzip(byte[] compressed) { final int BUFFER_SIZE = compressed.length; GZIPInputStream gis = null; ByteArrayInputStream is = null; try { is = new ByteArrayInputStream(compressed); gis = new GZIPInputStream(is, BUFFER_SIZE); StringBuilder string = new StringBuilder(); byte[] data = new byte[BUFFER_SIZE]; int bytesRead; while ((bytesRead = gis.read(data)) != -1) { string.append(new String(data, 0, bytesRead, "UTF-8")); } return string.toString(); } catch (IOException e) { e.printStackTrace(); } finally { okhttp3.internal.Util.closeQuietly(gis); okhttp3.internal.Util.closeQuietly(is); } return null; } }
27dfc412065bfae84962aab5400fa69f3d58e7cb
4269b6985edf6f5d1d18dcd981869d8960c3ca0e
/DRY_Examples/Page2.java
12b4844cdd09935ec1896828bed544f4ed016ce6
[]
no_license
ojimenezc/porfolio
8a002a0fccce7ea7afb826fa866ae584f5c1de51
50096ddb81852b3c12497b252b11f6aa7a4b619d
refs/heads/master
2023-03-24T04:41:04.736673
2021-03-17T20:45:44
2021-03-17T20:45:44
347,119,339
1
0
null
null
null
null
UTF-8
Java
false
false
390
java
public class Page2 { public Page2(){ this.loadPage(); } public void loadPage() { UsersValidation userValidation = new UsersValidation(); if(userValidation.isUserValid("123")){ //Do some code if user is valid System.out.println("Page 2 loaded"); }else{ //Do something else if user is invalid } } }
d09e5b60ebedb4bfb0c617a90b65ff839b3eeb0f
71f1c2cf2963da0de31ff3a038dc56b9ec7d17a1
/src/com/example/sensorapp/ui/adapter/MyFragmentPagerAdapter.java
bc2869d021f5ee219836fb684828fa3fc1c66596
[]
no_license
bushinvren/SensorAppV2
ccd937d6f1462dbdee0ce4068e8c71873fce7f0b
16be65e8c5948cf72e787a675fe1771f7c7d6705
refs/heads/master
2016-09-06T10:20:03.965838
2014-11-10T06:06:38
2014-11-10T06:06:38
19,136,965
1
0
null
null
null
null
UTF-8
Java
false
false
1,557
java
/** * liuzw. */ package com.example.sensorapp.ui.adapter; import java.util.ArrayList; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; /** * @author Administrator * */ public class MyFragmentPagerAdapter extends FragmentPagerAdapter { private ArrayList<Class<? extends Fragment>> fragments; public int count = 0; /** * @param fm */ public MyFragmentPagerAdapter(FragmentManager fm) { super(fm); // TODO Auto-generated constructor stub } public MyFragmentPagerAdapter(FragmentManager fm, ArrayList<Class<? extends Fragment>> fms) { super(fm); this.fragments = fms; count = fms.size(); } /* * (non-Javadoc) * * @see android.support.v4.app.FragmentPagerAdapter#getItem(int) */ @Override public Fragment getItem(int arg0) { // TODO Auto-generated method stub // return fragments == null ? null : fragments.get(arg0); try { return fragments.get(arg0 % count).newInstance(); } catch (InstantiationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } /* * (non-Javadoc) * * @see android.support.v4.view.PagerAdapter#getCount() */ @Override public int getCount() { // TODO Auto-generated method stub // return fragments == null ? 0 : fragments.size(); return Integer.MAX_VALUE; } }
f1d9bdc2baf30e688b4b6d76591d1a317fdd65f4
54ea49a854add3c882db1f745858966e0b2174ae
/src/main/java/com/QAWeb/async/EventModel.java
416d8141e7e2f54d54cea1b490cdee724bfba2d3
[]
no_license
wuxianshuguang/QAWeb
1017fc43ebe2c946d592f157bf1d94fd972213da
a940e177ccd08c84cdc76d9cfcc46c5bbb35bc9e
refs/heads/master
2020-03-07T11:05:21.755098
2018-04-16T12:39:49
2018-04-16T12:39:49
127,447,508
2
0
null
null
null
null
UTF-8
Java
false
false
1,692
java
package com.QAWeb.async; import java.util.HashMap; import java.util.Map; public class EventModel { private EventType type; private int actorId; private int entityType; private int entityId; private int entityOwnerId; private Map<String, String> exts = new HashMap<String, String>(); public EventModel() { } public EventModel setExt(String key, String value) { exts.put(key, value); return this; } public EventModel(EventType type) { this.type = type; } public String getExt(String key) { return exts.get(key); } public EventType getType() { return type; } public EventModel setType(EventType type) { this.type = type; return this; } public int getActorId() { return actorId; } public EventModel setActorId(int actorId) { this.actorId = actorId; return this; } public int getEntityType() { return entityType; } public EventModel setEntityType(int entityType) { this.entityType = entityType; return this; } public int getEntityId() { return entityId; } public EventModel setEntityId(int entityId) { this.entityId = entityId; return this; } public int getEntityOwnerId() { return entityOwnerId; } public EventModel setEntityOwnerId(int entityOwnerId) { this.entityOwnerId = entityOwnerId; return this; } public Map<String, String> getExts() { return exts; } public EventModel setExts(Map<String, String> exts) { this.exts = exts; return this; } }
e401b0ff452c8150118bf73ccf03dc87b908c6d4
1302a788aa73d8da772c6431b083ddd76eef937f
/WORKING_DIRECTORY/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/OnboardingDemoFragment.java
5868c26b38af3c3c58f778d49827426638f0a4c5
[]
no_license
rockduan/androidN-android-7.1.1_r28
b3c1bcb734225aa7813ab70639af60c06d658bf6
10bab435cd61ffa2e93a20c082624954c757999d
refs/heads/master
2021-01-23T03:54:32.510867
2017-03-30T07:17:08
2017-03-30T07:17:08
86,135,431
2
1
null
null
null
null
UTF-8
Java
false
false
5,658
java
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.example.android.leanback; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.graphics.drawable.AnimationDrawable; import android.support.v17.leanback.app.OnboardingFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import java.util.ArrayList; public class OnboardingDemoFragment extends OnboardingFragment { private static final long ANIMATION_DURATION = 1000; private static final int[] CONTENT_BACKGROUNDS = { R.drawable.tv_bg, R.drawable.gallery_photo_6, R.drawable.gallery_photo_8 }; private static final int[] CONTENT_ANIMATIONS = { R.drawable.tv_content, android.R.drawable.stat_sys_download, android.R.drawable.ic_popup_sync }; private String[] mTitles; private String[] mDescriptions; private View mBackgroundView; private View mContentView; private ImageView mContentBackgroundView; private ImageView mContentAnimationView; private Animator mContentAnimator; @Override public void onAttach(android.app.Activity activity) { super.onAttach(activity); mTitles = getResources().getStringArray(R.array.onboarding_page_titles); mDescriptions = getResources().getStringArray(R.array.onboarding_page_descriptions); setLogoResourceId(R.drawable.ic_launcher); } @Override protected int getPageCount() { return mTitles.length; } @Override protected CharSequence getPageTitle(int i) { return mTitles[i]; } @Override protected CharSequence getPageDescription(int i) { return mDescriptions[i]; } @Override protected View onCreateBackgroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { mBackgroundView = layoutInflater.inflate(R.layout.onboarding_image, viewGroup, false); return mBackgroundView; } @Override protected View onCreateContentView(LayoutInflater layoutInflater, ViewGroup viewGroup) { mContentView = layoutInflater.inflate(R.layout.onboarding_content, viewGroup, false); mContentBackgroundView = (ImageView) mContentView.findViewById(R.id.background_image); mContentAnimationView = (ImageView) mContentView.findViewById(R.id.animation_image); return mContentView; } @Override protected View onCreateForegroundView(LayoutInflater layoutInflater, ViewGroup viewGroup) { return null; } @Override protected Animator onCreateEnterAnimation() { ArrayList<Animator> animators = new ArrayList<>(); animators.add(createFadeInAnimator(mBackgroundView)); mContentBackgroundView.setImageResource(CONTENT_BACKGROUNDS[0]); mContentAnimationView.setImageResource(CONTENT_ANIMATIONS[0]); mContentAnimator = createFadeInAnimator(mContentView); animators.add(mContentAnimator); AnimatorSet set = new AnimatorSet(); set.playTogether(animators); set.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { ((AnimationDrawable) mContentAnimationView.getDrawable()).start(); } }); return set; } @Override protected void onPageChanged(final int newPage, int previousPage) { if (mContentAnimator != null) { mContentAnimator.cancel(); } ((AnimationDrawable) mContentAnimationView.getDrawable()).stop(); ArrayList<Animator> animators = new ArrayList<>(); Animator fadeOut = createFadeOutAnimator(mContentView); fadeOut.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { mContentBackgroundView.setImageResource(CONTENT_BACKGROUNDS[newPage]); mContentAnimationView.setImageResource(CONTENT_ANIMATIONS[newPage]); } }); Animator fadeIn = createFadeInAnimator(mContentView); fadeIn.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { ((AnimationDrawable) mContentAnimationView.getDrawable()).start(); } }); AnimatorSet set = new AnimatorSet(); set.playSequentially(fadeOut, fadeIn); set.start(); mContentAnimator = set; } private Animator createFadeInAnimator(View view) { return ObjectAnimator.ofFloat(view, View.ALPHA, 0.0f, 1.0f).setDuration(ANIMATION_DURATION); } private Animator createFadeOutAnimator(View view) { return ObjectAnimator.ofFloat(view, View.ALPHA, 1.0f, 0.0f).setDuration(ANIMATION_DURATION); } @Override protected void onFinishFragment() { getActivity().finish(); } }
5808e776a42a59114dc1f4a702f3ef00267fd89c
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/12/12_74a9273792f2668fc3d17f0583fc0c5d3b09c131/MainApp/12_74a9273792f2668fc3d17f0583fc0c5d3b09c131_MainApp_t.java
e1a528d069123fc5e21595dce52b0b5c6c8efef9
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
29,282
java
/* This file is part of JSMAA. (c) Tommi Tervonen, 2009 JSMAA is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. JSMAA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with JSMAA. If not, see <http://www.gnu.org/licenses/>. */ package fi.smaa.gui; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.LinkedList; import java.util.List; import java.util.Queue; import javax.swing.AbstractAction; import javax.swing.Icon; import javax.swing.JComponent; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPopupMenu; import javax.swing.JProgressBar; import javax.swing.JScrollPane; import javax.swing.JSplitPane; import javax.swing.JToolBar; import javax.swing.JTree; import javax.swing.KeyStroke; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; import javax.swing.tree.TreePath; import nl.rug.escher.common.gui.GUIHelper; import nl.rug.escher.common.gui.ViewBuilder; import sun.ExampleFileFilter; import com.jgoodies.binding.PresentationModel; import com.jgoodies.binding.adapter.Bindings; import com.jgoodies.binding.beans.Model; import com.jgoodies.looks.HeaderStyle; import com.jgoodies.looks.Options; import fi.smaa.Alternative; import fi.smaa.AlternativeExistsException; import fi.smaa.Criterion; import fi.smaa.GaussianCriterion; import fi.smaa.LogNormalCriterion; import fi.smaa.OrdinalCriterion; import fi.smaa.Rank; import fi.smaa.SMAAModel; import fi.smaa.SMAAResults; import fi.smaa.SMAAResultsListener; import fi.smaa.SMAASimulator; import fi.smaa.UniformCriterion; import fi.smaa.common.ImageLoader; @SuppressWarnings({ "unchecked", "serial" }) public class MainApp extends Model { private static final String VERSION = "0.2"; private static final Object JSMAA_MODELFILE_EXTENSION = "jsmaa"; private static final String PROPERTY_MODELUNSAVED = "modelUnsaved"; private JFrame frame; private JSplitPane splitPane; private JTree leftTree; private SMAAModel model; private SMAAResults results; private SMAASimulator simulator; private ViewBuilder rightViewBuilder; private LeftTreeModel leftTreeModel; private JProgressBar simulationProgress; private JScrollPane rightPane; private JMenuItem editRenameItem; private JMenuItem editDeleteItem; private ImageLoader imageLoader = new ImageLoader("/gfx/"); private File currentModelFile; private Boolean modelUnsaved = true; private SMAAModelListener modelListener = new SMAAModelListener(); private Queue<BuildSimulatorRun> buildQueue = new LinkedList<BuildSimulatorRun>(); private Thread buildSimulatorThread; public Boolean getModelUnsaved() { return modelUnsaved; } /** * @param args */ public static void main(String[] args) { MainApp app = new MainApp(); app.startGui(); } private void startGui() { initDefaultModel(); initFrame(); initComponents(); initWithModel(model); expandLeftMenu(); frame.pack(); frame.setVisible(true); updateFrameTitle(); } private void updateFrameTitle() { String appString = "JSMAA v" + VERSION; String file = "Untitled model"; if (currentModelFile != null) { try { file = currentModelFile.getCanonicalPath(); } catch (IOException e) { e.printStackTrace(); } } String modelSavedStar = modelUnsaved ? "*" : ""; frame.setTitle(appString + " - " + file + modelSavedStar); } private void initDefaultModel() { model = new SMAAModel("model"); model.addCriterion(new UniformCriterion("Criterion 1")); model.addCriterion(new GaussianCriterion("Criterion 2")); try { model.addAlternative(new Alternative("Alternative 1")); model.addAlternative(new Alternative("Alternative 2")); model.addAlternative(new Alternative("Alternative 3")); } catch (AlternativeExistsException e) { e.printStackTrace(); } } private void initFrame() { GUIHelper.initializeLookAndFeel(); frame = new JFrame("SMAA"); frame.setPreferredSize(new Dimension(800, 500)); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent evt) { quitApplication(); } }); } private void rebuildRightPanel() { rightPane.setViewportView(rightViewBuilder.buildPanel()); } private void initComponents() { splitPane = new JSplitPane(); splitPane.setResizeWeight(0.0); splitPane.setDividerSize(2); splitPane.setDividerLocation(-1); rightPane = new JScrollPane(); splitPane.setRightComponent(rightPane); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add("Center", splitPane); frame.getContentPane().add("South", createToolBar()); frame.setJMenuBar(createMenuBar()); } private void initWithModel(SMAAModel model) { initLeftPanel(); model.addPropertyChangeListener(modelListener); buildNewSimulator(); setRightViewToCriteria(); leftTreeFocusCriteria(); } private JComponent createToolBar() { simulationProgress = new JProgressBar(); simulationProgress.setStringPainted(true); JToolBar bar = new JToolBar(); bar.add(simulationProgress); bar.setFloatable(false); return bar; } private void setRightViewToCentralWeights() { rightViewBuilder = new CentralWeightsView(results); rebuildRightPanel(); } private void setRightViewToRankAcceptabilities() { rightViewBuilder = new RankAcceptabilitiesView(results); rebuildRightPanel(); } private void setRightViewToCriteria() { rightViewBuilder = new CriteriaListView(model); rebuildRightPanel(); } public void setRightViewToAlternatives() { rightViewBuilder = new AlternativeInfoView(model); rebuildRightPanel(); } public void setRightViewToCriterion(Criterion node) { rightViewBuilder = new CriterionView(node); rebuildRightPanel(); } public void setRightViewToPreferences() { rightViewBuilder = new PreferenceInformationView( new SMAAModelPreferencePresentationModel(model)); rebuildRightPanel(); } private void initLeftPanel() { leftTreeModel = new LeftTreeModel(model); leftTree = new JTree(new LeftTreeModel(model)); leftTree.addTreeSelectionListener(new LeftTreeSelectionListener()); leftTree.setEditable(true); splitPane.setLeftComponent(leftTree); LeftTreeCellRenderer renderer = new LeftTreeCellRenderer(leftTreeModel, imageLoader); leftTree.setCellEditor(new LeftTreeCellEditor(model, leftTree, renderer)); leftTree.setCellRenderer(renderer); final JPopupMenu leftTreeEditPopupMenu = new JPopupMenu(); final JMenuItem leftTreeRenameItem = createRenameMenuItem(); leftTreeEditPopupMenu.add(leftTreeRenameItem); final JMenuItem leftTreeDeleteItem = createDeleteMenuItem(); leftTreeEditPopupMenu.add(leftTreeDeleteItem); final JPopupMenu leftTreeAltsPopupMenu = new JPopupMenu(); leftTreeAltsPopupMenu.add(createAddAltMenuItem()); final JPopupMenu leftTreeCritPopupMenu = new JPopupMenu(); leftTreeCritPopupMenu.add(createAddUnifCritMenuItem()); leftTreeCritPopupMenu.add(createAddGausCritMenuItem()); leftTreeCritPopupMenu.add(createAddLogCritMenuItem()); leftTree.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent evt) { if (evt.isPopupTrigger()) { int selRow = leftTree.getRowForLocation(evt.getX(), evt.getY()); if (selRow != -1) { Object obj = leftTree.getPathForLocation(evt.getX(), evt.getY()).getLastPathComponent(); leftTree.setSelectionRow(selRow); if (obj instanceof Alternative || obj instanceof Criterion || obj instanceof SMAAModel) { leftTreeDeleteItem.setEnabled(!(obj instanceof SMAAModel)); leftTreeEditPopupMenu.show((Component) evt.getSource(), evt.getX(), evt.getY()); } else if (obj == leftTreeModel.getAlternativesNode()) { leftTreeAltsPopupMenu.show((Component) evt.getSource(), evt.getX(), evt.getY()); } else if (obj == leftTreeModel.getCriteriaNode()) { leftTreeCritPopupMenu.show((Component) evt.getSource(), evt.getX(), evt.getY()); } } } } }); } private void expandLeftMenu() { leftTree.expandPath(new TreePath(new Object[]{leftTreeModel.getRoot(), leftTreeModel.getAlternativesNode()})); leftTree.expandPath(new TreePath(new Object[]{leftTreeModel.getRoot(), leftTreeModel.getCriteriaNode()})); leftTree.expandPath(new TreePath(new Object[]{leftTreeModel.getRoot(), leftTreeModel.getResultsNode()})); } private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.putClientProperty(Options.HEADER_STYLE_KEY, HeaderStyle.BOTH); JMenu fileMenu = createFileMenu(); JMenu editMenu = createEditMenu(); JMenu critMenu = createCriteriaMenu(); JMenu altMenu = createAlternativeMenu(); JMenu resultsMenu = createResultsMenu(); menuBar.add(fileMenu); menuBar.add(editMenu); menuBar.add(critMenu); menuBar.add(altMenu); menuBar.add(resultsMenu); return menuBar; } private JMenu createResultsMenu() { JMenu resultsMenu = new JMenu("Results"); resultsMenu.setMnemonic('r'); JMenuItem cwItem = new JMenuItem("Central weight vectors", getIcon(FileNames.ICON_CENTRALWEIGHTS)); cwItem.setMnemonic('c'); JMenuItem racsItem = new JMenuItem("Rank acceptability indices", getIcon(FileNames.ICON_RANKACCEPTABILITIES)); racsItem.setMnemonic('r'); cwItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { setRightViewToCentralWeights(); } }); racsItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { setRightViewToRankAcceptabilities(); } }); resultsMenu.add(cwItem); resultsMenu.add(racsItem); return resultsMenu; } private JMenu createEditMenu() { JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic('e'); editRenameItem = createRenameMenuItem(); editRenameItem.setEnabled(false); editDeleteItem = createDeleteMenuItem(); editDeleteItem.setEnabled(false); editMenu.add(editRenameItem); editMenu.add(editDeleteItem); return editMenu; } private JMenuItem createDeleteMenuItem() { JMenuItem item = new JMenuItem("Delete", getIcon(FileNames.ICON_DELETE)); item.setMnemonic('d'); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0)); item.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { menuDeleteClicked(); } }); return item; } private JMenuItem createRenameMenuItem() { JMenuItem item = new JMenuItem("Rename", getIcon(FileNames.ICON_RENAME)); item.setMnemonic('r'); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK)); item.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { menuRenameClicked(); } }); return item; } private Icon getIcon(String name) { try { return imageLoader.getIcon(name); } catch (FileNotFoundException e) { e.printStackTrace(); return null; } } private void menuDeleteClicked() { Object selection = getLeftMenuSelection(); if (selection instanceof Alternative) { confirmDeleteAlternative((Alternative) selection); } else if (selection instanceof Criterion) { confirmDeleteCriterion((Criterion)selection); } } private void confirmDeleteCriterion(Criterion criterion) { int conf = JOptionPane.showConfirmDialog(frame, "Do you really want to delete criterion " + criterion + "?", "Confirm deletion", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, getIcon(FileNames.ICON_DELETE)); if (conf == JOptionPane.YES_OPTION) { model.deleteCriterion(criterion); } } private void confirmDeleteAlternative(Alternative alternative) { int conf = JOptionPane.showConfirmDialog(frame, "Do you really want to delete alternative " + alternative + "?", "Confirm deletion", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, getIcon(FileNames.ICON_DELETE)); if (conf == JOptionPane.YES_OPTION) { model.deleteAlternative(alternative); } } private Object getLeftMenuSelection() { return leftTree.getSelectionPath().getLastPathComponent(); } protected void menuRenameClicked() { leftTree.startEditingAtPath(leftTree.getSelectionPath()); } private JMenu createFileMenu() { JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('f'); JMenuItem saveItem = new JMenuItem("Save"); saveItem.setMnemonic('s'); saveItem.setIcon(getIcon(FileNames.ICON_SAVEFILE)); saveItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK)); Bindings.bind(saveItem, "enabled", new PresentationModel<MainApp>(this).getModel(PROPERTY_MODELUNSAVED)); JMenuItem saveAsItem = new JMenuItem("Save As"); saveAsItem.setMnemonic('a'); saveAsItem.setIcon(getIcon(FileNames.ICON_SAVEAS)); JMenuItem openItem = new JMenuItem("Open"); openItem.setMnemonic('o'); openItem.setIcon(getIcon(FileNames.ICON_OPENFILE)); openItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK)); JMenuItem quitItem = new JMenuItem("Quit"); quitItem.setMnemonic('q'); quitItem.setIcon(getIcon(FileNames.ICON_STOP)); saveItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { save(); } }); saveAsItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { saveAs(); } }); openItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { openOpenFileDialog(); } }); quitItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { quitApplication(); } }); fileMenu.add(openItem); fileMenu.add(saveItem); fileMenu.add(saveAsItem); fileMenu.addSeparator(); fileMenu.add(quitItem); return fileMenu; } private boolean saveAs() { JFileChooser chooser = getFileChooser(); int retVal = chooser.showSaveDialog(frame); if (retVal == JFileChooser.APPROVE_OPTION) { File file = checkFileExtension(chooser.getSelectedFile()); trySaveModel(file); setCurrentModelFile(file); updateFrameTitle(); return true; } else { return false; } } private void setCurrentModelFile(File file) { currentModelFile = file; } private boolean trySaveModel(File file) { try { saveModel(model, file); return true; } catch (IOException e) { JOptionPane.showMessageDialog(frame, "Error saving model to " + getCanonicalPath(file) + ", " + e.getMessage(), "Save error", JOptionPane.ERROR_MESSAGE); return false; } } protected boolean save() { if (currentModelFile == null) { return saveAs(); } else { return trySaveModel(currentModelFile); } } protected void openOpenFileDialog() { JFileChooser chooser = getFileChooser(); int retVal = chooser.showOpenDialog(frame); if (retVal == JFileChooser.APPROVE_OPTION) { try { loadModel(chooser.getSelectedFile()); expandLeftMenu(); leftTreeFocusCriteria(); } catch (FileNotFoundException e) { JOptionPane.showMessageDialog(frame, "Error loading model: "+ e.getMessage(), "Load error", JOptionPane.ERROR_MESSAGE); } catch (Exception e) { JOptionPane.showMessageDialog(frame, "Error loading model from " + getCanonicalPath(chooser.getSelectedFile()) + ", file doesn't contain a JSMAA model.", "Load error", JOptionPane.ERROR_MESSAGE); } } } private String getCanonicalPath(File selectedFile) { try { return selectedFile.getCanonicalPath(); } catch (Exception e) { return selectedFile.toString(); } } private void leftTreeFocusCriteria() { leftTree.setSelectionPath(new TreePath( new Object[] {leftTreeModel.getRoot(), leftTreeModel.getCriteriaNode() })); } private void loadModel(File file) throws IOException, ClassNotFoundException { ObjectInputStream s = new ObjectInputStream( new BufferedInputStream( new FileInputStream(file))); SMAAModel loadedModel = (SMAAModel) s.readObject(); this.model = loadedModel; initWithModel(model); setCurrentModelFile(file); setModelUnsaved(false); updateFrameTitle(); } private void saveModel(SMAAModel model, File file) throws IOException { ObjectOutputStream s = new ObjectOutputStream(new BufferedOutputStream( new FileOutputStream(file))); s.writeObject(model); s.close(); setModelUnsaved(false); } private void setModelUnsaved(boolean b) { Boolean oldVal = modelUnsaved; this.modelUnsaved = b; firePropertyChange(PROPERTY_MODELUNSAVED, oldVal, this.modelUnsaved); updateFrameTitle(); } private File checkFileExtension(File file) { if (ExampleFileFilter.getExtension(file) == null || !ExampleFileFilter.getExtension(file).equals(JSMAA_MODELFILE_EXTENSION)) { return new File(file.getAbsolutePath() + "." + JSMAA_MODELFILE_EXTENSION); } return file; } private JFileChooser getFileChooser() { JFileChooser chooser = new JFileChooser(new File(".")); ExampleFileFilter filter = new ExampleFileFilter(); filter.addExtension("jsmaa"); filter.setDescription("JSMAA model files"); chooser.setFileFilter(filter); return chooser; } protected void quitApplication() { if (modelUnsaved) { int conf = JOptionPane.showConfirmDialog(frame, "Model not saved. Do you want do save changes before quitting JSMAA?", "Save changed", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, getIcon(FileNames.ICON_STOP)); if (conf == JOptionPane.CANCEL_OPTION) { return; } else if (conf == JOptionPane.YES_OPTION) { if (!save()) { return; } } } System.exit(0); } private JMenu createAlternativeMenu() { JMenu alternativeMenu = new JMenu("Alternatives"); alternativeMenu.setMnemonic('a'); JMenuItem showItem = new JMenuItem("Show"); showItem.setMnemonic('s'); JMenuItem addAltButton = createAddAltMenuItem(); showItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { setRightViewToAlternatives(); } }); alternativeMenu.add(showItem); alternativeMenu.addSeparator(); alternativeMenu.add(addAltButton); return alternativeMenu; } private JMenuItem createAddAltMenuItem() { JMenuItem item = new JMenuItem("Add new"); item.setMnemonic('n'); item.setIcon(getIcon(FileNames.ICON_ADD)); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T, ActionEvent.CTRL_MASK)); item.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { addAlternative(); } }); return item; } private JMenu createCriteriaMenu() { JMenu criteriaMenu = new JMenu("Criteria"); criteriaMenu.setMnemonic('c'); JMenuItem showItem = new JMenuItem("Show"); showItem.setMnemonic('s'); showItem.setIcon(getIcon(FileNames.ICON_CRITERIALIST)); showItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { setRightViewToCriteria(); } }); JMenuItem addUnifItem = createAddUnifCritMenuItem(); JMenuItem addGaussianItem = createAddGausCritMenuItem(); JMenuItem addLogNormalItem = createAddLogCritMenuItem(); JMenuItem addOrdinalItem = new JMenuItem("Add ordinal"); addOrdinalItem.setMnemonic('o'); addOrdinalItem.setIcon(getIcon(FileNames.ICON_ADD)); addOrdinalItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { addOrdinalCriterion(); } }); criteriaMenu.add(showItem); criteriaMenu.addSeparator(); criteriaMenu.add(addUnifItem); //toolBarAddCritMenu.add(addOrdinalButton); criteriaMenu.add(addGaussianItem); criteriaMenu.add(addLogNormalItem); return criteriaMenu; } private JMenuItem createAddLogCritMenuItem() { JMenuItem item = new JMenuItem("Add lognormal"); item.setIcon(getIcon(FileNames.ICON_LOGNORMALCRITERION)); item.setMnemonic('l'); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK)); item.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { addLogNormalCriterion(); } }); return item; } private JMenuItem createAddGausCritMenuItem() { JMenuItem item = new JMenuItem("Add gaussian"); item.setMnemonic('g'); item.setIcon(getIcon(FileNames.ICON_GAUSSIANCRITERION)); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_G, ActionEvent.CTRL_MASK)); item.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { addGaussianCriterion(); } }); return item; } private JMenuItem createAddUnifCritMenuItem() { JMenuItem item = new JMenuItem("Add uniform"); item.setMnemonic('u'); item.setIcon(getIcon(FileNames.ICON_UNIFORMCRITERION)); item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK)); item.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { addUniformCriterion(); } }); return item; } protected void addGaussianCriterion() { Criterion c = new GaussianCriterion(generateNextCriterionName()); addCriterionAndStartRename(c); } private void addCriterionAndStartRename(Criterion c) { model.addCriterion(c); leftTree.setSelectionPath(leftTreeModel.getPathForCriterion(c)); leftTree.startEditingAtPath(leftTreeModel.getPathForCriterion(c)); } private void addAlternativeAndStartRename(Alternative a) throws AlternativeExistsException { model.addAlternative(a); leftTree.setSelectionPath(leftTreeModel.getPathForAlternative(a)); leftTree.startEditingAtPath(leftTreeModel.getPathForAlternative(a)); } protected void addLogNormalCriterion() { LogNormalCriterion c = new LogNormalCriterion(generateNextCriterionName()); addCriterionAndStartRename(c); } protected void addUniformCriterion() { UniformCriterion c = new UniformCriterion(generateNextCriterionName()); addCriterionAndStartRename(c); } protected void addOrdinalCriterion() { model.addCriterion(new OrdinalCriterion(generateNextCriterionName())); } private String generateNextCriterionName() { List<Criterion> crit = model.getCriteria(); int index = 1; while(true) { String testName = "Criterion " + index; boolean found = false; for (Criterion c : crit) { if (testName.equals(c.getName())) { found = true; break; } } if (!found) { return "Criterion " + index; } index++; } } protected void addAlternative() { List<Alternative> alts = model.getAlternatives(); int index = 1; while (true) { Alternative a = new Alternative("Alternative " + index); boolean found = false; for (Alternative al : alts) { if (al.getName().equals(a.getName())) { found = true; break; } } if (!found) { try { addAlternativeAndStartRename(a); } catch (AlternativeExistsException e) { throw new RuntimeException("Error: alternative with this name shouldn't exist"); } return; } index++; } } private class LeftTreeSelectionListener implements TreeSelectionListener { public void valueChanged(TreeSelectionEvent e) { if (e.getNewLeadSelectionPath() == null) { setEditMenuItemsEnabled(false); return; } Object node = e.getNewLeadSelectionPath().getLastPathComponent(); if (node == leftTreeModel.getAlternativesNode()) { setRightViewToAlternatives(); setEditMenuItemsEnabled(false); } else if (node == leftTreeModel.getCriteriaNode()){ setRightViewToCriteria(); setEditMenuItemsEnabled(false); } else if (node instanceof Criterion) { setRightViewToCriterion((Criterion)node); setEditMenuItemsEnabled(true); } else if (node instanceof Alternative) { setEditMenuItemsEnabled(true); } else if (node == leftTreeModel.getCentralWeightsNode()) { setRightViewToCentralWeights(); setEditMenuItemsEnabled(false); } else if (node == leftTreeModel.getRankAcceptabilitiesNode()) { setRightViewToRankAcceptabilities(); setEditMenuItemsEnabled(false); } else if (node == leftTreeModel.getModelNode()) { editRenameItem.setEnabled(true); editDeleteItem.setEnabled(false); } else if (node == leftTreeModel.getPreferencesNode()) { setRightViewToPreferences(); setEditMenuItemsEnabled(false); } else { setEditMenuItemsEnabled(false); } } } private void setEditMenuItemsEnabled(boolean enable) { editDeleteItem.setEnabled(enable); editRenameItem.setEnabled(enable); } private class SMAAModelListener implements PropertyChangeListener { public void propertyChange(PropertyChangeEvent evt) { setModelUnsaved(true); if (evt.getSource() instanceof Criterion) { if (!evt.getPropertyName().equals(Criterion.PROPERTY_NAME)) { buildNewSimulator(); } } if (evt.getSource() instanceof Rank) { buildNewSimulator(); } if (evt.getSource() == model) { if (evt.getPropertyName().equals(SMAAModel.PROPERTY_ALTERNATIVES) || evt.getPropertyName().equals(SMAAModel.PROPERTY_CRITERIA) || evt.getPropertyName().equals(SMAAModel.PROPERTY_PREFERENCEINFORMATION)) { buildNewSimulator(); } if (evt.getPropertyName().equals(SMAAModel.PROPERTY_ALTERNATIVES)) { setRightViewToAlternatives(); } else if (evt.getPropertyName().equals(SMAAModel.PROPERTY_CRITERIA)) { setRightViewToCriteria(); } else if (evt.getPropertyName().equals(SMAAModel.PROPERTY_PREFERENCEINFORMATION)) { rebuildRightPanel(); } expandLeftMenu(); } } } synchronized private void buildNewSimulator() { buildQueue.add(new BuildSimulatorRun()); if (buildSimulatorThread == null) { buildSimulatorThread = new Thread(buildQueue.poll()); buildSimulatorThread.start(); } } synchronized private void checkStartNewSimulator() { if (buildQueue.isEmpty()) { buildSimulatorThread = null; } else { buildSimulatorThread = new Thread(buildQueue.poll()); buildSimulatorThread.start(); buildQueue.clear(); } } private class BuildSimulatorRun implements Runnable { public void run() { if (simulator != null) { simulator.stop(); } simulator = new SMAASimulator(model, 10000); results = simulator.getResults(); results.addResultsListener(new SimulationProgressListener()); if (rightViewBuilder instanceof CentralWeightsView) { setRightViewToCentralWeights(); } else if (rightViewBuilder instanceof RankAcceptabilitiesView) { setRightViewToRankAcceptabilities(); } simulationProgress.setValue(0); simulator.restart(); checkStartNewSimulator(); } } private class SimulationProgressListener implements SMAAResultsListener { public void resultsChanged() { int amount = results.getRankAccIteration() * 100 / simulator.getTotalIterations(); simulationProgress.setValue(amount); if (amount < 100) { simulationProgress.setString("Simulating: " + Integer.toString(amount) + "% done"); } else { simulationProgress.setString("Simulation complete."); } } } }
19c1c2af809e26710ed667882477ce902b58f501
7c531962eef9e9feba8415b40bd6c00028502031
/app/src/main/java/com/gxuc/runfast/shop/activity/usercenter/AddressSelectActivity.java
3edf94e298208615b32fc5a117968cc7d78dfa1e
[]
no_license
wdevon523/runfast_shop
ccb386032da19f7478c4060fba3f32935628f971
806a9d88798acf7f75f29fe2f6ffdc33f717e065
refs/heads/master
2021-05-15T21:05:35.725514
2018-07-20T08:46:04
2018-07-20T08:46:04
107,922,312
0
1
null
null
null
null
UTF-8
Java
false
false
12,138
java
package com.gxuc.runfast.shop.activity.usercenter; import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; import com.example.supportv1.utils.JsonUtil; import com.google.gson.reflect.TypeToken; import com.gxuc.runfast.shop.adapter.AddressSelectAdapter; import com.gxuc.runfast.shop.application.CustomApplication; import com.gxuc.runfast.shop.bean.ShopCartBean; import com.gxuc.runfast.shop.bean.address.AddressBean; import com.gxuc.runfast.shop.bean.user.UserInfo; import com.gxuc.runfast.shop.config.UserService; import com.gxuc.runfast.shop.impl.MyCallback; import com.gxuc.runfast.shop.impl.constant.CustomConstant; import com.gxuc.runfast.shop.activity.ToolBarActivity; import com.gxuc.runfast.shop.data.IntentFlag; import com.gxuc.runfast.shop.R; import com.gxuc.runfast.shop.util.SharePreferenceUtil; import com.gxuc.runfast.shop.util.ToastUtil; import org.json.JSONException; import org.json.JSONObject; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import retrofit2.Call; import retrofit2.Response; /** * 收货地址管理 */ public class AddressSelectActivity extends ToolBarActivity implements AddressSelectAdapter.OnItemClickListener { @BindView(R.id.recycler_address_list) RecyclerView recyclerView; private ArrayList<AddressBean> addressBeanList; private AddressSelectAdapter mSelectAdapter; private int mFlags; private int bid; private int isfull; private String full; private int businessId; private String lat; private String lng; private HashMap<String, String> paramMap; private boolean isFromCart; private JSONObject paramJson; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_address_select); ButterKnife.bind(this); setRightMsg("新增地址"); initData(); } @Override protected void onResume() { super.onResume(); getNetData(); } private void initData() { lat = SharePreferenceUtil.getInstance().getStringValue(CustomConstant.POINTLAT); lng = SharePreferenceUtil.getInstance().getStringValue(CustomConstant.POINTLON); mFlags = getIntent().getIntExtra(IntentFlag.KEY, -1); // bid = getIntent().getIntExtra("bid", 0); // isfull = getIntent().getIntExtra("isfull", 0); // full = getIntent().getStringExtra("full"); // businessId = getIntent().getIntExtra("businessId", 0); isFromCart = getIntent().getBooleanExtra("isFromCart", false); try { if (isFromCart) { paramJson = new JSONObject(getIntent().getStringExtra("paramJson")); } else { paramMap = (HashMap<String, String>) getIntent().getSerializableExtra("paramMap"); } } catch (JSONException e) { e.printStackTrace(); } addressBeanList = new ArrayList<>(); mSelectAdapter = new AddressSelectAdapter(addressBeanList, this); mSelectAdapter.setOnItemClickListener(this); recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)); recyclerView.setAdapter(mSelectAdapter); } @OnClick(R.id.tv_right_title) public void onViewClicked() { Intent intent = new Intent(this, UpdateAddressActivity.class); intent.putExtra(IntentFlag.KEY, IntentFlag.ADD_ADDRESS); startActivity(intent); } private void getNetData() { UserInfo userInfo = UserService.getUserInfo(this); if (userInfo == null) { return; } CustomApplication.getRetrofitNew().getAddressList().enqueue(new MyCallback<String>() { @Override public void onSuccessResponse(Call<String> call, Response<String> response) { String body = response.body(); try { JSONObject jsonObject = new JSONObject(body); if (jsonObject.optBoolean("success")) { String data = jsonObject.optString("data"); if (!TextUtils.isEmpty(data)) { dealAddressList(data); } } else { ToastUtil.showToast(jsonObject.optString("errorMsg")); } } catch (JSONException e) { e.printStackTrace(); } } @Override public void onFailureResponse(Call<String> call, Throwable t) { } }); // CustomApplication.getRetrofit().postListAddress(userInfo.getId(), 1).enqueue(new MyCallback<String>() { // @Override // public void onSuccessResponse(Call<String> call, Response<String> response) { // dealAddressList(response.body()); // } // // @Override // public void onFailureResponse(Call<String> call, Throwable t) { // // } // }); } // private void dealAddressList(String body) { // //处理数据 显示地址 // mData.clear(); // AddressInfos addressInfos = GsonUtil.parseJsonWithGson(body, AddressInfos.class); // if (addressInfos.getRows().size() > 0) { // mData.addAll(addressInfos.getRows()); // mSelectAdapter.notifyDataSetChanged(); // } // } private void dealAddressList(String data) { //处理数据 显示地址 addressBeanList = JsonUtil.fromJson(data, new TypeToken<ArrayList<AddressBean>>() { }.getType()); mSelectAdapter.setList(addressBeanList); } @Override public void onItemClick(View view, int position) { AddressBean addressBean = addressBeanList.get(position); if (mFlags == IntentFlag.ORDER_ADDRESS) { if (isFromCart) { requestFromCartOrderInfo(addressBean); } else { requestSelectAddr(addressBean); } } else if (mFlags == IntentFlag.MANAGER_ADDRESS) { Intent intent = new Intent(this, UpdateAddressActivity.class); intent.putExtra(IntentFlag.KEY, IntentFlag.EDIT_ADDRESS); intent.putExtra("addressInfo", addressBean); startActivity(intent); } else if (mFlags == IntentFlag.PURCHASE) { Intent intent = new Intent(); intent.putExtra("addressInfo", addressBean); setResult(RESULT_OK, intent); finish(); } } private void requestFromCartOrderInfo(final AddressBean addressBean) { final String toAddressId = paramJson.optString("toAddressId"); try { paramJson.put("toAddressId", addressBean.id + ""); paramJson.put("suportSelf", false + ""); SharePreferenceUtil.getInstance().putStringValue("paramJson", paramJson.toString()); } catch (JSONException e) { e.printStackTrace(); } CustomApplication.getRetrofitNew().fillInDiy().enqueue(new MyCallback<String>() { @Override public void onSuccessResponse(Call<String> call, Response<String> response) { String body = response.body(); try { JSONObject jsonObject = new JSONObject(body); if (jsonObject.optBoolean("success")) { if (!TextUtils.equals("null", jsonObject.optString("data"))) { ShopCartBean shopCartBean = JsonUtil.fromJson(jsonObject.optString("data"), ShopCartBean.class); Intent intent = new Intent(); intent.putExtra("shopCartBean", shopCartBean); intent.putExtra("paramJson", paramJson.toString()); intent.putExtra("isFromCart", isFromCart); setResult(RESULT_OK, intent); finish(); } } else { ToastUtil.showToast(jsonObject.optString("errorMsg")); paramJson.put("toAddressId", toAddressId); SharePreferenceUtil.getInstance().putStringValue("paramJson", paramJson.toString()); } } catch (JSONException e) { e.printStackTrace(); } } @Override public void onFailureResponse(Call<String> call, Throwable t) { } }); } private void requestSelectAddr(final AddressBean addressBean) { final String toAddressId = paramMap.get("toAddressId"); paramMap.put("toAddressId", addressBean.id + ""); paramMap.put("suportSelf", false + ""); CustomApplication.getRetrofitNew().submitBusinessShopCart(paramMap).enqueue(new MyCallback<String>() { @Override public void onSuccessResponse(Call<String> call, Response<String> response) { String body = response.body(); try { JSONObject jsonObject = new JSONObject(body); if (jsonObject.optBoolean("success")) { if (!TextUtils.equals("null", jsonObject.optString("data"))) { ShopCartBean shopCartBean = JsonUtil.fromJson(jsonObject.optString("data"), ShopCartBean.class); Intent intent = new Intent(); intent.putExtra("paramMap", (Serializable) paramMap); intent.putExtra("shopCartBean", shopCartBean); setResult(RESULT_OK, intent); finish(); } } else { ToastUtil.showToast(jsonObject.optString("errorMsg")); paramMap.put("toAddressId", toAddressId); } } catch (JSONException e) { e.printStackTrace(); } } @Override public void onFailureResponse(Call<String> call, Throwable t) { } }); // CustomApplication.getRetrofit().selectAddr(bid, addressInfo.getLatitude(), addressInfo.getLongitude(), isfull, full).enqueue(new MyCallback<String>() { // @Override // public void onSuccessResponse(Call<String> call, Response<String> response) { // try { // JSONObject jsonObject = new JSONObject(response.body()); // if (jsonObject.optBoolean("success")) { // Intent intent = new Intent(); // intent.putExtra("addressInfo", addressInfo); // intent.putExtra("shippingPrice", jsonObject.optDouble("total")); // intent.putExtra("ftotal", jsonObject.optDouble("ftotal")); // intent.putExtra("oldShippingPrice", jsonObject.optDouble("showps")); // setResult(IntentConfig.ADDRESS_SELECT, intent); // finish(); // } else { // showToastMessage(jsonObject.optString("msg")); // } // } catch (JSONException e) { // e.printStackTrace(); // } //// requestSelectAddr(addressInfo); //// Intent intent = new Intent(); //// intent.putExtra("addressInfo", addressInfo); //// setResult(IntentConfig.ADDRESS_SELECT, intent); //// finish(); // } // // @Override // public void onFailureResponse(Call<String> call, Throwable t) { // // } // }); } }
f40a04440386a2e4dc1ad5aaa0c9428a54fb20b4
b7a2f6b4d8e3c799e13c6c5f32d514a90a5bce73
/app/src/main/java/iconicfont/IconicFontDrawable.java
236c4ecbc0d5cc7d91e9100a62ae3edba604e022
[]
no_license
zhenghengZN/Savemoney
5f3e35fd4c5681a07edec449aadb015ec70f7a33
edc760a628b2e0be34717b8f1bce74856b1b8c23
refs/heads/master
2021-09-01T06:41:58.658925
2017-12-25T12:13:13
2017-12-25T12:13:13
109,675,188
1
0
null
null
null
null
UTF-8
Java
false
false
8,359
java
/* * Copyright (C) 2013 Artur Termenji * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package iconicfont; /* * Copyright (C) 2013 Artur Termenji * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import android.content.Context; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PixelFormat; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.drawable.Drawable; import com.avos.avoscloud.LogUtil; import iconicfont.icon.Icon; /** * A custom {@link Drawable} which can display icons from icon fonts. */ public class IconicFontDrawable extends Drawable { private Context mContext; private Paint mIconPaint; private Paint mContourPaint; private Rect mPaddingBounds; private RectF mPathBounds; private Path mPath; private int mIconPadding; private int mContourWidth; private int mIntrinsicWidth; private int mIntrinsicHeight; private boolean mDrawContour; private Icon mIcon; private char[] mIconUtfChars; public IconicFontDrawable(Context context) { mContext = context.getApplicationContext(); mIconPaint = new Paint(Paint.ANTI_ALIAS_FLAG); mContourPaint = new Paint(Paint.ANTI_ALIAS_FLAG); mContourPaint.setStyle(Paint.Style.STROKE); mPath = new Path(); mPathBounds = new RectF(); mPaddingBounds = new Rect(); } public IconicFontDrawable(Context context, final Icon icon) { this(context); updateIcon(icon); } /** * Loads and draws given {@link Icon}. * * @param icon */ public void setIcon(final Icon icon) { updateIcon(icon); invalidateSelf(); } /** * Set a color for the {@link Icon}. * * @param color */ public void setIconColor(int color) { mIconPaint.setColor(color); invalidateSelf(); } /** * Set a padding for the {@link Icon}. * * @param iconPadding */ public void setIconPadding(int iconPadding) { mIconPadding = iconPadding; if (mDrawContour) { mIconPadding += mContourWidth; } invalidateSelf(); } /** * Set contour params for the {@link Icon}. * You should call {@link #drawContour(boolean)} method to enable contour. * * @param contourColor * @param contourWidth */ public void setContour(int contourColor, int contourWidth) { setContourColor(contourColor); setContourWidth(contourWidth); invalidateSelf(); } /** * Set contour color for the {@link Icon}. * You should call {@link #drawContour(boolean)} method to enable contour. * * @param contourColor */ public void setContourColor(int contourColor) { mContourPaint.setColor(contourColor); invalidateSelf(); } /** * Set contour width for the {@link Icon}. * You should call {@link #drawContour(boolean)} method to enable contour. * * @param contourWidth */ public void setContourWidth(int contourWidth) { mContourWidth = contourWidth; mContourPaint.setStrokeWidth(mContourWidth); invalidateSelf(); } /** * Enable/disable contour drawing. * * @param drawContour */ public void drawContour(boolean drawContour) { mDrawContour = drawContour; if (mDrawContour) { mIconPadding += mContourWidth; } else { mIconPadding -= mContourWidth; } invalidateSelf(); } /** * Set intrinsic width, which is used by several controls. * * @param intrinsicWidth */ public void setIntrinsicWidth(int intrinsicWidth) { mIntrinsicWidth = intrinsicWidth; } /** * Set intrinsic height, which is used by several controls. * * @param intrinsicHeight */ public void setIntrinsicHeight(int intrinsicHeight) { mIntrinsicHeight = intrinsicHeight; } @Override public void draw(Canvas canvas) { if (mIcon != null) { Rect viewBounds = getBounds(); updatePaddingBounds(viewBounds); updateTextSize(viewBounds); offsetIcon(viewBounds); mPath.close(); if (mDrawContour) { // canvas.drawPath(mPath, mContourPaint); } // canvas.drawPath(mPath, mIconPaint); viewBounds = getBounds(); updatePaddingBounds(viewBounds); updateTextSize(viewBounds); offsetIcon(viewBounds); mPath.close(); if (mDrawContour) { canvas.drawPath(mPath, mContourPaint); } canvas.drawPath(mPath, mIconPaint); } } @Override public int getIntrinsicWidth() { return mIntrinsicWidth; } @Override public int getIntrinsicHeight() { return mIntrinsicHeight; } @Override public int getOpacity() { return PixelFormat.OPAQUE; } @Override public void setAlpha(int alpha) { mIconPaint.setAlpha(alpha); } @Override public void setColorFilter(ColorFilter cf) { mIconPaint.setColorFilter(cf); } private void updateIcon(Icon icon) { mIcon = icon; mIconUtfChars = Character.toChars(icon.getIconUtfValue()); LogUtil.log.e("zhengheng","" + mIconUtfChars); mIconPaint.setTypeface(mIcon.getIconicTypeface().getTypeface(mContext)); } private void updatePaddingBounds(Rect viewBounds) { if (mIconPadding >= 0 && !(mIconPadding * 2 > viewBounds.width()) && !(mIconPadding * 2 > viewBounds.height())) { mPaddingBounds.set( viewBounds.left + mIconPadding, viewBounds.top + mIconPadding, viewBounds.right - mIconPadding, viewBounds.bottom - mIconPadding); } } private void updateTextSize(Rect viewBounds) { float textSize = (float) viewBounds.height() * 2; mIconPaint.setTextSize(textSize); mIconPaint.getTextPath(mIconUtfChars, 0, mIconUtfChars.length, 0, viewBounds.height(), mPath); mPath.computeBounds(mPathBounds, true); float deltaWidth = ((float) mPaddingBounds.width() / mPathBounds.width()); float deltaHeight = ((float) mPaddingBounds.height() / mPathBounds.height()); float delta = (deltaWidth < deltaHeight) ? deltaWidth : deltaHeight; textSize *= delta; mIconPaint.setTextSize(textSize); //mPath.reset(); // hack for Kindle HDX mIconPaint.getTextPath(mIconUtfChars, 0, mIconUtfChars.length, 0, viewBounds.height(), mPath); mPath.computeBounds(mPathBounds, true); } private void offsetIcon(Rect viewBounds) { float startX = viewBounds.centerX() - (mPathBounds.width() / 2); float offsetX = startX - mPathBounds.left; float startY = viewBounds.centerY() - (mPathBounds.height() / 2); float offsetY = startY - (mPathBounds.top); mPath.offset(offsetX, offsetY); } }
b14e456e8fa97683df3570fbeec6759bdc624b0f
013a5bbafc8cec24b8a778f9dd125d551ad180b6
/src/main/java/im/zuber/server/entity/Deviceinfo.java
e37da3788c33b0d22a37d2ec46b4c85196cea10b
[]
no_license
yandeqing/appmonitor_server
0a2c819aa3b13e1e673088df4d4993b70a34d8cd
e0a902cc7c8ecdd26bcb99b2e00ad57a07ca6106
refs/heads/master
2020-03-28T12:18:50.514840
2018-09-11T08:48:41
2018-09-11T08:48:41
148,286,920
0
0
null
null
null
null
UTF-8
Java
false
false
3,536
java
package im.zuber.server.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import java.time.LocalDateTime; import com.baomidou.mybatisplus.annotation.TableField; import im.zuber.server.base.BaseBean; /** * <p> * * </p> * * @author yandeqing * @since 2018-09-03 */ public class Deviceinfo extends BaseBean { private static final long serialVersionUID = 1L; @TableField("deviceId") private String deviceId; @TableField("deviceMacAddr") private String deviceMacAddr; @TableField("deviceLocale") private String deviceLocale; @TableField("devicePlatform") private String devicePlatform; @TableField("deviceOsVersion") private String deviceOsVersion; @TableField("deviceScreen") private String deviceScreen; @TableField("deviceDensity") private String deviceDensity; @TableField("deviceModel") private String deviceModel; @TableId(value = "id", type = IdType.AUTO) private Long id; @TableField("createTime") private LocalDateTime createTime; @TableField("uid") private String uid; public String getDeviceId() { return deviceId; } public void setDeviceId(String deviceId) { this.deviceId = deviceId; } public String getDeviceMacAddr() { return deviceMacAddr; } public void setDeviceMacAddr(String deviceMacAddr) { this.deviceMacAddr = deviceMacAddr; } public String getDeviceLocale() { return deviceLocale; } public void setDeviceLocale(String deviceLocale) { this.deviceLocale = deviceLocale; } public String getDevicePlatform() { return devicePlatform; } public void setDevicePlatform(String devicePlatform) { this.devicePlatform = devicePlatform; } public String getDeviceOsVersion() { return deviceOsVersion; } public void setDeviceOsVersion(String deviceOsVersion) { this.deviceOsVersion = deviceOsVersion; } public String getDeviceScreen() { return deviceScreen; } public void setDeviceScreen(String deviceScreen) { this.deviceScreen = deviceScreen; } public String getDeviceDensity() { return deviceDensity; } public void setDeviceDensity(String deviceDensity) { this.deviceDensity = deviceDensity; } public String getDeviceModel() { return deviceModel; } public void setDeviceModel(String deviceModel) { this.deviceModel = deviceModel; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public LocalDateTime getCreateTime() { return createTime; } public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; } public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } @Override public String toString() { return "Deviceinfo{" + ", deviceId=" + deviceId + ", deviceMacAddr=" + deviceMacAddr + ", deviceLocale=" + deviceLocale + ", devicePlatform=" + devicePlatform + ", deviceOsVersion=" + deviceOsVersion + ", deviceScreen=" + deviceScreen + ", deviceDensity=" + deviceDensity + ", deviceModel=" + deviceModel + ", id=" + id + ", createTime=" + createTime + ", uid=" + uid + "}"; } }
88e9fd9db2da036a54fdcc5ff5b46c62d882b65c
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/maxcompute-20220104/src/main/java/com/aliyun/maxcompute20220104/models/ListUsersByRoleResponse.java
a5f4e946c233635a9477bafaa217648a98c14e21
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,374
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.maxcompute20220104.models; import com.aliyun.tea.*; public class ListUsersByRoleResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public ListUsersByRoleResponseBody body; public static ListUsersByRoleResponse build(java.util.Map<String, ?> map) throws Exception { ListUsersByRoleResponse self = new ListUsersByRoleResponse(); return TeaModel.build(map, self); } public ListUsersByRoleResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public ListUsersByRoleResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public ListUsersByRoleResponse setBody(ListUsersByRoleResponseBody body) { this.body = body; return this; } public ListUsersByRoleResponseBody getBody() { return this.body; } }
c679a816a386df5f03335b8551d9526b313aab99
0f5ff07bea890d746623c79b037b90c77e5968bd
/src/main/java/com/zhoupiyao/dao/CommentRepository.java
eb244512375ba01843594235cd66b3dee3c2d436
[]
no_license
Zhoupiyao/BlogResp
6933df1952d22302a7854b500fe10155e7757af6
57cedc3f982671b4e864560c0684c96e5ebf7070
refs/heads/master
2023-04-13T14:03:28.363469
2021-04-23T04:47:11
2021-04-23T04:47:11
356,821,173
0
0
null
null
null
null
UTF-8
Java
false
false
455
java
package com.zhoupiyao.dao; import com.zhoupiyao.po.Comment; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface CommentRepository extends JpaRepository<Comment, Long> { List<Comment> findCommentByBlogId(Long blogId, Sort sort); List<Comment> findCommentByBlogIdAndParentCommentNull(Long blogId, Sort sort); void deleteByBlogId(Long blogId); }
158147de8ccf5d4bfa780b2942e4596d004feaff
d0e58cade4a5955deee404aa8faf48b7ba9a94a7
/HRD_Project/app/src/main/java/ZzangWoo/com/BoardModifyActivity.java
b36cd369322dc9326f84831b1336c29bf1a5298c
[]
no_license
ZzangWoo/HRD_SearchingProject
1d9304da6cf19fc27cd48061045397367f684868
98858705681261b6b2f9a404c7c7524ccbbdd0da
refs/heads/master
2020-06-02T06:51:45.405864
2019-06-20T04:42:00
2019-06-20T04:42:53
191,075,044
0
0
null
null
null
null
UTF-8
Java
false
false
3,921
java
package ZzangWoo.com; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.ImageView; import android.widget.Toast; import java.util.concurrent.ExecutionException; import ZzangWoo.com.CustomTask.BoardModifyTask; import ZzangWoo.com.CustomTask.ShowBoardTask; public class BoardModifyActivity extends AppCompatActivity { String TAG = "BoardModifyActivity Log : "; EditText titleEditText, contentEditText; ImageView modifyButton, clearButton; String boardModifyResult; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_board_modify); setTitle("글수정"); bindView(); final String userID = getIntent().getStringExtra("userID"); final String bbsTitle = getIntent().getStringExtra("bbsTitle"); final String bbsContent = getIntent().getStringExtra("bbsContent"); final String str_bbsID = getIntent().getStringExtra("bbsID"); Log.i(TAG, "bbsID 값 : " + str_bbsID); titleEditText.setText(bbsTitle); contentEditText.setText(bbsContent); /************************* 수정버튼 클릭 *************************/ modifyButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { String modify_bbsTitle = titleEditText.getText().toString(); String modify_bbsContent = contentEditText.getText().toString(); if (modify_bbsTitle.equals("") || modify_bbsTitle == null) { Toast.makeText(BoardModifyActivity.this, "제목을 입력해주세요", Toast.LENGTH_SHORT).show(); } else if (modify_bbsContent.equals("") || modify_bbsContent == null) { Toast.makeText(BoardModifyActivity.this, "내용을 입력해주세요", Toast.LENGTH_SHORT).show(); } else { BoardModifyTask boardModifyTask = new BoardModifyTask(); try { boardModifyResult = boardModifyTask.execute(str_bbsID, modify_bbsTitle, modify_bbsContent).get(); if (boardModifyResult.equals("1")) { Toast.makeText(BoardModifyActivity.this, "수정 성공", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(getApplicationContext(), BoardMainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); } else { Toast.makeText(BoardModifyActivity.this, "수정 실패", Toast.LENGTH_SHORT).show(); } } catch (ExecutionException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } } } }); /*****************************************************************/ /************************** 취소버튼 클릭 ************************/ clearButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { finish(); } }); /******************************************************************/ } private void bindView() { titleEditText = (EditText) findViewById(R.id.titleEditText); contentEditText = (EditText) findViewById(R.id.contentEditText); modifyButton = (ImageView) findViewById(R.id.writeButton); clearButton = (ImageView) findViewById(R.id.clearButton); } }
6ff71edd40139e891a743af5c0c172702008910f
830f9e0d64a4001d40d566b37e28edc30a0cf4c1
/HashMap/hfc.java
6fbe4554eb967c23c1bff472533e927ea4f301c8
[]
no_license
akkigulati/JAVA
9d4f39ff5a0f90728a4c191a781b99968ca0624d
0c11f1a99f4ba7949515a57ae005957d2da0d7ee
refs/heads/master
2021-01-06T18:16:54.670444
2020-07-29T08:50:11
2020-07-29T08:50:11
241,435,594
1
0
null
null
null
null
UTF-8
Java
false
false
1,212
java
/* Question 1. You are given a string str. 2. You are required to find the character with maximum frequency. Input Format A string str Output Format The character with highest frequency Constraints 0 < str.length() <= 100 There will be a single character with highest frequency Sample Input zmszeqxllzvheqwrofgcuntypejcxovtaqbnqyqlmrwitc Sample Output q */ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); HashMap<Character,Integer> ht=new HashMap<>(); for(int i=0;i<s.length();i++) { char ch=s.charAt(i); if(ht.containsKey(ch)){ //character exists int fq=ht.get(ch); ht.put(ch,fq+1); }else{ ht.put(ch,1); } } int maxFreq=Integer.MIN_VALUE; Character mfc=null; for(Character key:ht.keySet()){ int freq=ht.get(key); if(freq>maxFreq){ maxFreq=freq; mfc=key; } } System.out.println(mfc); } }
0dff2d55f794b54559e2f783f2ef5446f1d29985
b2f07f3e27b2162b5ee6896814f96c59c2c17405
/com/sun/java/swing/plaf/windows/WindowsIconFactory.java
c8cbb03e51164a1a8bd11697fabe721a896a34f0
[]
no_license
weiju-xi/RT-JAR-CODE
e33d4ccd9306d9e63029ddb0c145e620921d2dbd
d5b2590518ffb83596a3aa3849249cf871ab6d4e
refs/heads/master
2021-09-08T02:36:06.675911
2018-03-06T05:27:49
2018-03-06T05:27:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
43,715
java
/* */ package com.sun.java.swing.plaf.windows; /* */ /* */ import java.awt.Color; /* */ import java.awt.Component; /* */ import java.awt.Dimension; /* */ import java.awt.Graphics; /* */ import java.awt.Graphics2D; /* */ import java.io.Serializable; /* */ import javax.swing.AbstractButton; /* */ import javax.swing.ButtonModel; /* */ import javax.swing.Icon; /* */ import javax.swing.JButton; /* */ import javax.swing.JCheckBox; /* */ import javax.swing.JCheckBoxMenuItem; /* */ import javax.swing.JInternalFrame; /* */ import javax.swing.JMenu; /* */ import javax.swing.JMenuItem; /* */ import javax.swing.JRadioButtonMenuItem; /* */ import javax.swing.SwingUtilities; /* */ import javax.swing.UIDefaults; /* */ import javax.swing.UIManager; /* */ import javax.swing.plaf.UIResource; /* */ import sun.swing.MenuItemCheckIconFactory; /* */ /* */ public class WindowsIconFactory /* */ implements Serializable /* */ { /* */ private static Icon frame_closeIcon; /* */ private static Icon frame_iconifyIcon; /* */ private static Icon frame_maxIcon; /* */ private static Icon frame_minIcon; /* */ private static Icon frame_resizeIcon; /* */ private static Icon checkBoxIcon; /* */ private static Icon radioButtonIcon; /* */ private static Icon checkBoxMenuItemIcon; /* */ private static Icon radioButtonMenuItemIcon; /* */ private static Icon menuItemCheckIcon; /* */ private static Icon menuItemArrowIcon; /* */ private static Icon menuArrowIcon; /* */ private static VistaMenuItemCheckIconFactory menuItemCheckIconFactory; /* */ /* */ public static Icon getMenuItemCheckIcon() /* */ { /* 71 */ if (menuItemCheckIcon == null) { /* 72 */ menuItemCheckIcon = new MenuItemCheckIcon(null); /* */ } /* 74 */ return menuItemCheckIcon; /* */ } /* */ /* */ public static Icon getMenuItemArrowIcon() { /* 78 */ if (menuItemArrowIcon == null) { /* 79 */ menuItemArrowIcon = new MenuItemArrowIcon(null); /* */ } /* 81 */ return menuItemArrowIcon; /* */ } /* */ /* */ public static Icon getMenuArrowIcon() { /* 85 */ if (menuArrowIcon == null) { /* 86 */ menuArrowIcon = new MenuArrowIcon(null); /* */ } /* 88 */ return menuArrowIcon; /* */ } /* */ /* */ public static Icon getCheckBoxIcon() { /* 92 */ if (checkBoxIcon == null) { /* 93 */ checkBoxIcon = new CheckBoxIcon(null); /* */ } /* 95 */ return checkBoxIcon; /* */ } /* */ /* */ public static Icon getRadioButtonIcon() { /* 99 */ if (radioButtonIcon == null) { /* 100 */ radioButtonIcon = new RadioButtonIcon(null); /* */ } /* 102 */ return radioButtonIcon; /* */ } /* */ /* */ public static Icon getCheckBoxMenuItemIcon() { /* 106 */ if (checkBoxMenuItemIcon == null) { /* 107 */ checkBoxMenuItemIcon = new CheckBoxMenuItemIcon(null); /* */ } /* 109 */ return checkBoxMenuItemIcon; /* */ } /* */ /* */ public static Icon getRadioButtonMenuItemIcon() { /* 113 */ if (radioButtonMenuItemIcon == null) { /* 114 */ radioButtonMenuItemIcon = new RadioButtonMenuItemIcon(null); /* */ } /* 116 */ return radioButtonMenuItemIcon; /* */ } /* */ /* */ static synchronized VistaMenuItemCheckIconFactory getMenuItemCheckIconFactory() /* */ { /* 121 */ if (menuItemCheckIconFactory == null) { /* 122 */ menuItemCheckIconFactory = new VistaMenuItemCheckIconFactory(); /* */ } /* */ /* 125 */ return menuItemCheckIconFactory; /* */ } /* */ /* */ public static Icon createFrameCloseIcon() { /* 129 */ if (frame_closeIcon == null) { /* 130 */ frame_closeIcon = new FrameButtonIcon(TMSchema.Part.WP_CLOSEBUTTON, null); /* */ } /* 132 */ return frame_closeIcon; /* */ } /* */ /* */ public static Icon createFrameIconifyIcon() { /* 136 */ if (frame_iconifyIcon == null) { /* 137 */ frame_iconifyIcon = new FrameButtonIcon(TMSchema.Part.WP_MINBUTTON, null); /* */ } /* 139 */ return frame_iconifyIcon; /* */ } /* */ /* */ public static Icon createFrameMaximizeIcon() { /* 143 */ if (frame_maxIcon == null) { /* 144 */ frame_maxIcon = new FrameButtonIcon(TMSchema.Part.WP_MAXBUTTON, null); /* */ } /* 146 */ return frame_maxIcon; /* */ } /* */ /* */ public static Icon createFrameMinimizeIcon() { /* 150 */ if (frame_minIcon == null) { /* 151 */ frame_minIcon = new FrameButtonIcon(TMSchema.Part.WP_RESTOREBUTTON, null); /* */ } /* 153 */ return frame_minIcon; /* */ } /* */ /* */ public static Icon createFrameResizeIcon() { /* 157 */ if (frame_resizeIcon == null) /* 158 */ frame_resizeIcon = new ResizeIcon(null); /* 159 */ return frame_resizeIcon; /* */ } /* */ /* */ private static class CheckBoxIcon /* */ implements Icon, Serializable /* */ { /* */ static final int csize = 13; /* */ /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* 322 */ JCheckBox localJCheckBox = (JCheckBox)paramComponent; /* 323 */ ButtonModel localButtonModel = localJCheckBox.getModel(); /* 324 */ XPStyle localXPStyle = XPStyle.getXP(); /* */ /* 326 */ if (localXPStyle != null) /* */ { /* */ TMSchema.State localState; /* 328 */ if (localButtonModel.isSelected()) { /* 329 */ localState = TMSchema.State.CHECKEDNORMAL; /* 330 */ if (!localButtonModel.isEnabled()) /* 331 */ localState = TMSchema.State.CHECKEDDISABLED; /* 332 */ else if ((localButtonModel.isPressed()) && (localButtonModel.isArmed())) /* 333 */ localState = TMSchema.State.CHECKEDPRESSED; /* 334 */ else if (localButtonModel.isRollover()) /* 335 */ localState = TMSchema.State.CHECKEDHOT; /* */ } /* */ else { /* 338 */ localState = TMSchema.State.UNCHECKEDNORMAL; /* 339 */ if (!localButtonModel.isEnabled()) /* 340 */ localState = TMSchema.State.UNCHECKEDDISABLED; /* 341 */ else if ((localButtonModel.isPressed()) && (localButtonModel.isArmed())) /* 342 */ localState = TMSchema.State.UNCHECKEDPRESSED; /* 343 */ else if (localButtonModel.isRollover()) { /* 344 */ localState = TMSchema.State.UNCHECKEDHOT; /* */ } /* */ } /* 347 */ TMSchema.Part localPart = TMSchema.Part.BP_CHECKBOX; /* 348 */ localXPStyle.getSkin(paramComponent, localPart).paintSkin(paramGraphics, paramInt1, paramInt2, localState); /* */ } /* */ else { /* 351 */ if (!localJCheckBox.isBorderPaintedFlat()) /* */ { /* 353 */ paramGraphics.setColor(UIManager.getColor("CheckBox.shadow")); /* 354 */ paramGraphics.drawLine(paramInt1, paramInt2, paramInt1 + 11, paramInt2); /* 355 */ paramGraphics.drawLine(paramInt1, paramInt2 + 1, paramInt1, paramInt2 + 11); /* */ /* 358 */ paramGraphics.setColor(UIManager.getColor("CheckBox.highlight")); /* 359 */ paramGraphics.drawLine(paramInt1 + 12, paramInt2, paramInt1 + 12, paramInt2 + 12); /* 360 */ paramGraphics.drawLine(paramInt1, paramInt2 + 12, paramInt1 + 11, paramInt2 + 12); /* */ /* 363 */ paramGraphics.setColor(UIManager.getColor("CheckBox.darkShadow")); /* 364 */ paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 1, paramInt1 + 10, paramInt2 + 1); /* 365 */ paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 2, paramInt1 + 1, paramInt2 + 10); /* */ /* 368 */ paramGraphics.setColor(UIManager.getColor("CheckBox.light")); /* 369 */ paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 11, paramInt1 + 11, paramInt2 + 11); /* 370 */ paramGraphics.drawLine(paramInt1 + 11, paramInt2 + 1, paramInt1 + 11, paramInt2 + 10); /* */ /* 373 */ if (((localButtonModel.isPressed()) && (localButtonModel.isArmed())) || (!localButtonModel.isEnabled())) /* 374 */ paramGraphics.setColor(UIManager.getColor("CheckBox.background")); /* */ else { /* 376 */ paramGraphics.setColor(UIManager.getColor("CheckBox.interiorBackground")); /* */ } /* 378 */ paramGraphics.fillRect(paramInt1 + 2, paramInt2 + 2, 9, 9); /* */ } else { /* 380 */ paramGraphics.setColor(UIManager.getColor("CheckBox.shadow")); /* 381 */ paramGraphics.drawRect(paramInt1 + 1, paramInt2 + 1, 10, 10); /* */ /* 383 */ if (((localButtonModel.isPressed()) && (localButtonModel.isArmed())) || (!localButtonModel.isEnabled())) /* 384 */ paramGraphics.setColor(UIManager.getColor("CheckBox.background")); /* */ else { /* 386 */ paramGraphics.setColor(UIManager.getColor("CheckBox.interiorBackground")); /* */ } /* 388 */ paramGraphics.fillRect(paramInt1 + 2, paramInt2 + 2, 9, 9); /* */ } /* */ /* 391 */ if (localButtonModel.isEnabled()) /* 392 */ paramGraphics.setColor(UIManager.getColor("CheckBox.foreground")); /* */ else { /* 394 */ paramGraphics.setColor(UIManager.getColor("CheckBox.shadow")); /* */ } /* */ /* 398 */ if (localButtonModel.isSelected()) { /* 399 */ paramGraphics.drawLine(paramInt1 + 9, paramInt2 + 3, paramInt1 + 9, paramInt2 + 3); /* 400 */ paramGraphics.drawLine(paramInt1 + 8, paramInt2 + 4, paramInt1 + 9, paramInt2 + 4); /* 401 */ paramGraphics.drawLine(paramInt1 + 7, paramInt2 + 5, paramInt1 + 9, paramInt2 + 5); /* 402 */ paramGraphics.drawLine(paramInt1 + 6, paramInt2 + 6, paramInt1 + 8, paramInt2 + 6); /* 403 */ paramGraphics.drawLine(paramInt1 + 3, paramInt2 + 7, paramInt1 + 7, paramInt2 + 7); /* 404 */ paramGraphics.drawLine(paramInt1 + 4, paramInt2 + 8, paramInt1 + 6, paramInt2 + 8); /* 405 */ paramGraphics.drawLine(paramInt1 + 5, paramInt2 + 9, paramInt1 + 5, paramInt2 + 9); /* 406 */ paramGraphics.drawLine(paramInt1 + 3, paramInt2 + 5, paramInt1 + 3, paramInt2 + 5); /* 407 */ paramGraphics.drawLine(paramInt1 + 3, paramInt2 + 6, paramInt1 + 4, paramInt2 + 6); /* */ } /* */ } /* */ } /* */ /* */ public int getIconWidth() { /* 413 */ XPStyle localXPStyle = XPStyle.getXP(); /* 414 */ if (localXPStyle != null) { /* 415 */ return localXPStyle.getSkin(null, TMSchema.Part.BP_CHECKBOX).getWidth(); /* */ } /* 417 */ return 13; /* */ } /* */ /* */ public int getIconHeight() /* */ { /* 422 */ XPStyle localXPStyle = XPStyle.getXP(); /* 423 */ if (localXPStyle != null) { /* 424 */ return localXPStyle.getSkin(null, TMSchema.Part.BP_CHECKBOX).getHeight(); /* */ } /* 426 */ return 13; /* */ } /* */ } /* */ /* */ private static class CheckBoxMenuItemIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* 548 */ AbstractButton localAbstractButton = (AbstractButton)paramComponent; /* 549 */ ButtonModel localButtonModel = localAbstractButton.getModel(); /* 550 */ boolean bool = localButtonModel.isSelected(); /* 551 */ if (bool) { /* 552 */ paramInt2 -= getIconHeight() / 2; /* 553 */ paramGraphics.drawLine(paramInt1 + 9, paramInt2 + 3, paramInt1 + 9, paramInt2 + 3); /* 554 */ paramGraphics.drawLine(paramInt1 + 8, paramInt2 + 4, paramInt1 + 9, paramInt2 + 4); /* 555 */ paramGraphics.drawLine(paramInt1 + 7, paramInt2 + 5, paramInt1 + 9, paramInt2 + 5); /* 556 */ paramGraphics.drawLine(paramInt1 + 6, paramInt2 + 6, paramInt1 + 8, paramInt2 + 6); /* 557 */ paramGraphics.drawLine(paramInt1 + 3, paramInt2 + 7, paramInt1 + 7, paramInt2 + 7); /* 558 */ paramGraphics.drawLine(paramInt1 + 4, paramInt2 + 8, paramInt1 + 6, paramInt2 + 8); /* 559 */ paramGraphics.drawLine(paramInt1 + 5, paramInt2 + 9, paramInt1 + 5, paramInt2 + 9); /* 560 */ paramGraphics.drawLine(paramInt1 + 3, paramInt2 + 5, paramInt1 + 3, paramInt2 + 5); /* 561 */ paramGraphics.drawLine(paramInt1 + 3, paramInt2 + 6, paramInt1 + 4, paramInt2 + 6); /* */ } /* */ } /* 564 */ public int getIconWidth() { return 9; } /* 565 */ public int getIconHeight() { return 9; } /* */ /* */ } /* */ /* */ private static class FrameButtonIcon /* */ implements Icon, Serializable /* */ { /* */ private TMSchema.Part part; /* */ /* */ private FrameButtonIcon(TMSchema.Part paramPart) /* */ { /* 167 */ this.part = paramPart; /* */ } /* */ /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) { /* 171 */ int i = getIconWidth(); /* 172 */ int j = getIconHeight(); /* */ /* 174 */ XPStyle localXPStyle = XPStyle.getXP(); /* */ int i2; /* 175 */ if (localXPStyle != null) { /* 176 */ XPStyle.Skin localSkin = localXPStyle.getSkin(paramComponent, this.part); /* 177 */ JButton localJButton = (JButton)paramComponent; /* 178 */ ButtonModel localButtonModel = localJButton.getModel(); /* */ /* 181 */ JInternalFrame localJInternalFrame = (JInternalFrame)SwingUtilities.getAncestorOfClass(JInternalFrame.class, localJButton); /* */ /* 183 */ i2 = (localJInternalFrame != null) && (localJInternalFrame.isSelected()) ? 1 : 0; /* */ TMSchema.State localState; /* 186 */ if (i2 != 0) { /* 187 */ if (!localButtonModel.isEnabled()) /* 188 */ localState = TMSchema.State.DISABLED; /* 189 */ else if ((localButtonModel.isArmed()) && (localButtonModel.isPressed())) /* 190 */ localState = TMSchema.State.PUSHED; /* 191 */ else if (localButtonModel.isRollover()) /* 192 */ localState = TMSchema.State.HOT; /* */ else { /* 194 */ localState = TMSchema.State.NORMAL; /* */ } /* */ } /* 197 */ else if (!localButtonModel.isEnabled()) /* 198 */ localState = TMSchema.State.INACTIVEDISABLED; /* 199 */ else if ((localButtonModel.isArmed()) && (localButtonModel.isPressed())) /* 200 */ localState = TMSchema.State.INACTIVEPUSHED; /* 201 */ else if (localButtonModel.isRollover()) /* 202 */ localState = TMSchema.State.INACTIVEHOT; /* */ else { /* 204 */ localState = TMSchema.State.INACTIVENORMAL; /* */ } /* */ /* 207 */ localSkin.paintSkin(paramGraphics, 0, 0, i, j, localState); /* */ } else { /* 209 */ paramGraphics.setColor(Color.black); /* 210 */ int k = i / 12 + 2; /* 211 */ int m = j / 5; /* 212 */ int n = j - m * 2 - 1; /* 213 */ int i1 = i * 3 / 4 - 3; /* 214 */ i2 = Math.max(j / 8, 2); /* 215 */ int i3 = Math.max(i / 15, 1); /* 216 */ if (this.part == TMSchema.Part.WP_CLOSEBUTTON) /* */ { /* 218 */ int i4; /* 218 */ if (i > 47) i4 = 6; /* 219 */ else if (i > 37) i4 = 5; /* 220 */ else if (i > 26) i4 = 4; /* 221 */ else if (i > 16) i4 = 3; /* 222 */ else if (i > 12) i4 = 2; else /* 223 */ i4 = 1; /* 224 */ m = j / 12 + 2; /* 225 */ if (i4 == 1) { /* 226 */ if (i1 % 2 == 1) { k++; i1++; } /* 227 */ paramGraphics.drawLine(k, m, k + i1 - 2, m + i1 - 2); /* 228 */ paramGraphics.drawLine(k + i1 - 2, m, k, m + i1 - 2); /* 229 */ } else if (i4 == 2) { /* 230 */ if (i1 > 6) { k++; i1--; } /* 231 */ paramGraphics.drawLine(k, m, k + i1 - 2, m + i1 - 2); /* 232 */ paramGraphics.drawLine(k + i1 - 2, m, k, m + i1 - 2); /* 233 */ paramGraphics.drawLine(k + 1, m, k + i1 - 1, m + i1 - 2); /* 234 */ paramGraphics.drawLine(k + i1 - 1, m, k + 1, m + i1 - 2); /* */ } else { /* 236 */ k += 2; m++; i1 -= 2; /* 237 */ paramGraphics.drawLine(k, m, k + i1 - 1, m + i1 - 1); /* 238 */ paramGraphics.drawLine(k + i1 - 1, m, k, m + i1 - 1); /* 239 */ paramGraphics.drawLine(k + 1, m, k + i1 - 1, m + i1 - 2); /* 240 */ paramGraphics.drawLine(k + i1 - 2, m, k, m + i1 - 2); /* 241 */ paramGraphics.drawLine(k, m + 1, k + i1 - 2, m + i1 - 1); /* 242 */ paramGraphics.drawLine(k + i1 - 1, m + 1, k + 1, m + i1 - 1); /* 243 */ for (int i5 = 4; i5 <= i4; i5++) { /* 244 */ paramGraphics.drawLine(k + i5 - 2, m, k + i1 - 1, m + i1 - i5 + 1); /* 245 */ paramGraphics.drawLine(k, m + i5 - 2, k + i1 - i5 + 1, m + i1 - 1); /* 246 */ paramGraphics.drawLine(k + i1 - i5 + 1, m, k, m + i1 - i5 + 1); /* 247 */ paramGraphics.drawLine(k + i1 - 1, m + i5 - 2, k + i5 - 2, m + i1 - 1); /* */ } /* */ } /* 250 */ } else if (this.part == TMSchema.Part.WP_MINBUTTON) { /* 251 */ paramGraphics.fillRect(k, m + n - i2, i1 - i1 / 3, i2); /* 252 */ } else if (this.part == TMSchema.Part.WP_MAXBUTTON) { /* 253 */ paramGraphics.fillRect(k, m, i1, i2); /* 254 */ paramGraphics.fillRect(k, m, i3, n); /* 255 */ paramGraphics.fillRect(k + i1 - i3, m, i3, n); /* 256 */ paramGraphics.fillRect(k, m + n - i3, i1, i3); /* 257 */ } else if (this.part == TMSchema.Part.WP_RESTOREBUTTON) { /* 258 */ paramGraphics.fillRect(k + i1 / 3, m, i1 - i1 / 3, i2); /* 259 */ paramGraphics.fillRect(k + i1 / 3, m, i3, n / 3); /* 260 */ paramGraphics.fillRect(k + i1 - i3, m, i3, n - n / 3); /* 261 */ paramGraphics.fillRect(k + i1 - i1 / 3, m + n - n / 3 - i3, i1 / 3, i3); /* */ /* 263 */ paramGraphics.fillRect(k, m + n / 3, i1 - i1 / 3, i2); /* 264 */ paramGraphics.fillRect(k, m + n / 3, i3, n - n / 3); /* 265 */ paramGraphics.fillRect(k + i1 - i1 / 3 - i3, m + n / 3, i3, n - n / 3); /* 266 */ paramGraphics.fillRect(k, m + n - i3, i1 - i1 / 3, i3); /* */ } /* */ } /* */ } /* */ /* */ public int getIconWidth() /* */ { /* */ int i; /* 273 */ if (XPStyle.getXP() != null) /* */ { /* 277 */ i = UIManager.getInt("InternalFrame.titleButtonHeight") - 2; /* 278 */ Dimension localDimension = XPStyle.getPartSize(TMSchema.Part.WP_CLOSEBUTTON, TMSchema.State.NORMAL); /* 279 */ if ((localDimension != null) && (localDimension.width != 0) && (localDimension.height != 0)) /* 280 */ i = (int)(i * localDimension.width / localDimension.height); /* */ } /* */ else { /* 283 */ i = UIManager.getInt("InternalFrame.titleButtonWidth") - 2; /* */ } /* 285 */ if (XPStyle.getXP() != null) { /* 286 */ i -= 2; /* */ } /* 288 */ return i; /* */ } /* */ /* */ public int getIconHeight() { /* 292 */ int i = UIManager.getInt("InternalFrame.titleButtonHeight") - 4; /* 293 */ return i; /* */ } /* */ } /* */ /* */ private static class MenuArrowIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* 616 */ XPStyle localXPStyle = XPStyle.getXP(); /* 617 */ if (WindowsMenuItemUI.isVistaPainting(localXPStyle)) { /* 618 */ TMSchema.State localState = TMSchema.State.NORMAL; /* 619 */ if ((paramComponent instanceof JMenuItem)) { /* 620 */ localState = ((JMenuItem)paramComponent).getModel().isEnabled() ? TMSchema.State.NORMAL : TMSchema.State.DISABLED; /* */ } /* */ /* 623 */ XPStyle.Skin localSkin = localXPStyle.getSkin(paramComponent, TMSchema.Part.MP_POPUPSUBMENU); /* 624 */ if (WindowsGraphicsUtils.isLeftToRight(paramComponent)) { /* 625 */ localSkin.paintSkin(paramGraphics, paramInt1, paramInt2, localState); /* */ } else { /* 627 */ Graphics2D localGraphics2D = (Graphics2D)paramGraphics.create(); /* 628 */ localGraphics2D.translate(paramInt1 + localSkin.getWidth(), paramInt2); /* 629 */ localGraphics2D.scale(-1.0D, 1.0D); /* 630 */ localSkin.paintSkin(localGraphics2D, 0, 0, localState); /* 631 */ localGraphics2D.dispose(); /* */ } /* */ } else { /* 634 */ paramGraphics.translate(paramInt1, paramInt2); /* 635 */ if (WindowsGraphicsUtils.isLeftToRight(paramComponent)) { /* 636 */ paramGraphics.drawLine(0, 0, 0, 7); /* 637 */ paramGraphics.drawLine(1, 1, 1, 6); /* 638 */ paramGraphics.drawLine(2, 2, 2, 5); /* 639 */ paramGraphics.drawLine(3, 3, 3, 4); /* */ } else { /* 641 */ paramGraphics.drawLine(4, 0, 4, 7); /* 642 */ paramGraphics.drawLine(3, 1, 3, 6); /* 643 */ paramGraphics.drawLine(2, 2, 2, 5); /* 644 */ paramGraphics.drawLine(1, 3, 1, 4); /* */ } /* 646 */ paramGraphics.translate(-paramInt1, -paramInt2); /* */ } /* */ } /* */ /* 650 */ public int getIconWidth() { XPStyle localXPStyle = XPStyle.getXP(); /* 651 */ if (WindowsMenuItemUI.isVistaPainting(localXPStyle)) { /* 652 */ XPStyle.Skin localSkin = localXPStyle.getSkin(null, TMSchema.Part.MP_POPUPSUBMENU); /* 653 */ return localSkin.getWidth(); /* */ } /* 655 */ return 4; } /* */ /* */ public int getIconHeight() /* */ { /* 659 */ XPStyle localXPStyle = XPStyle.getXP(); /* 660 */ if (WindowsMenuItemUI.isVistaPainting(localXPStyle)) { /* 661 */ XPStyle.Skin localSkin = localXPStyle.getSkin(null, TMSchema.Part.MP_POPUPSUBMENU); /* 662 */ return localSkin.getHeight(); /* */ } /* 664 */ return 8; /* */ } /* */ } /* */ /* */ private static class MenuItemArrowIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* */ } /* */ /* */ public int getIconWidth() /* */ { /* 609 */ return 4; } /* 610 */ public int getIconHeight() { return 8; } /* */ /* */ } /* */ /* */ private static class MenuItemCheckIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* */ } /* */ /* */ public int getIconWidth() /* */ { /* 595 */ return 9; } /* 596 */ public int getIconHeight() { return 9; } /* */ /* */ } /* */ /* */ private static class RadioButtonIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* 434 */ AbstractButton localAbstractButton = (AbstractButton)paramComponent; /* 435 */ ButtonModel localButtonModel = localAbstractButton.getModel(); /* 436 */ XPStyle localXPStyle = XPStyle.getXP(); /* */ /* 438 */ if (localXPStyle != null) { /* 439 */ TMSchema.Part localPart = TMSchema.Part.BP_RADIOBUTTON; /* 440 */ XPStyle.Skin localSkin = localXPStyle.getSkin(localAbstractButton, localPart); /* */ /* 442 */ int i = 0; /* */ TMSchema.State localState; /* 443 */ if (localButtonModel.isSelected()) { /* 444 */ localState = TMSchema.State.CHECKEDNORMAL; /* 445 */ if (!localButtonModel.isEnabled()) /* 446 */ localState = TMSchema.State.CHECKEDDISABLED; /* 447 */ else if ((localButtonModel.isPressed()) && (localButtonModel.isArmed())) /* 448 */ localState = TMSchema.State.CHECKEDPRESSED; /* 449 */ else if (localButtonModel.isRollover()) /* 450 */ localState = TMSchema.State.CHECKEDHOT; /* */ } /* */ else { /* 453 */ localState = TMSchema.State.UNCHECKEDNORMAL; /* 454 */ if (!localButtonModel.isEnabled()) /* 455 */ localState = TMSchema.State.UNCHECKEDDISABLED; /* 456 */ else if ((localButtonModel.isPressed()) && (localButtonModel.isArmed())) /* 457 */ localState = TMSchema.State.UNCHECKEDPRESSED; /* 458 */ else if (localButtonModel.isRollover()) { /* 459 */ localState = TMSchema.State.UNCHECKEDHOT; /* */ } /* */ } /* 462 */ localSkin.paintSkin(paramGraphics, paramInt1, paramInt2, localState); /* */ } /* */ else { /* 465 */ if (((localButtonModel.isPressed()) && (localButtonModel.isArmed())) || (!localButtonModel.isEnabled())) /* 466 */ paramGraphics.setColor(UIManager.getColor("RadioButton.background")); /* */ else { /* 468 */ paramGraphics.setColor(UIManager.getColor("RadioButton.interiorBackground")); /* */ } /* 470 */ paramGraphics.fillRect(paramInt1 + 2, paramInt2 + 2, 8, 8); /* */ /* 474 */ paramGraphics.setColor(UIManager.getColor("RadioButton.shadow")); /* 475 */ paramGraphics.drawLine(paramInt1 + 4, paramInt2 + 0, paramInt1 + 7, paramInt2 + 0); /* 476 */ paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 1, paramInt1 + 3, paramInt2 + 1); /* 477 */ paramGraphics.drawLine(paramInt1 + 8, paramInt2 + 1, paramInt1 + 9, paramInt2 + 1); /* 478 */ paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 2, paramInt1 + 1, paramInt2 + 3); /* 479 */ paramGraphics.drawLine(paramInt1 + 0, paramInt2 + 4, paramInt1 + 0, paramInt2 + 7); /* 480 */ paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 8, paramInt1 + 1, paramInt2 + 9); /* */ /* 483 */ paramGraphics.setColor(UIManager.getColor("RadioButton.highlight")); /* 484 */ paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 10, paramInt1 + 3, paramInt2 + 10); /* 485 */ paramGraphics.drawLine(paramInt1 + 4, paramInt2 + 11, paramInt1 + 7, paramInt2 + 11); /* 486 */ paramGraphics.drawLine(paramInt1 + 8, paramInt2 + 10, paramInt1 + 9, paramInt2 + 10); /* 487 */ paramGraphics.drawLine(paramInt1 + 10, paramInt2 + 9, paramInt1 + 10, paramInt2 + 8); /* 488 */ paramGraphics.drawLine(paramInt1 + 11, paramInt2 + 7, paramInt1 + 11, paramInt2 + 4); /* 489 */ paramGraphics.drawLine(paramInt1 + 10, paramInt2 + 3, paramInt1 + 10, paramInt2 + 2); /* */ /* 493 */ paramGraphics.setColor(UIManager.getColor("RadioButton.darkShadow")); /* 494 */ paramGraphics.drawLine(paramInt1 + 4, paramInt2 + 1, paramInt1 + 7, paramInt2 + 1); /* 495 */ paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 2, paramInt1 + 3, paramInt2 + 2); /* 496 */ paramGraphics.drawLine(paramInt1 + 8, paramInt2 + 2, paramInt1 + 9, paramInt2 + 2); /* 497 */ paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 3, paramInt1 + 2, paramInt2 + 3); /* 498 */ paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 4, paramInt1 + 1, paramInt2 + 7); /* 499 */ paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 8, paramInt1 + 2, paramInt2 + 8); /* */ /* 503 */ paramGraphics.setColor(UIManager.getColor("RadioButton.light")); /* 504 */ paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 9, paramInt1 + 3, paramInt2 + 9); /* 505 */ paramGraphics.drawLine(paramInt1 + 4, paramInt2 + 10, paramInt1 + 7, paramInt2 + 10); /* 506 */ paramGraphics.drawLine(paramInt1 + 8, paramInt2 + 9, paramInt1 + 9, paramInt2 + 9); /* 507 */ paramGraphics.drawLine(paramInt1 + 9, paramInt2 + 8, paramInt1 + 9, paramInt2 + 8); /* 508 */ paramGraphics.drawLine(paramInt1 + 10, paramInt2 + 7, paramInt1 + 10, paramInt2 + 4); /* 509 */ paramGraphics.drawLine(paramInt1 + 9, paramInt2 + 3, paramInt1 + 9, paramInt2 + 3); /* */ /* 513 */ if (localButtonModel.isSelected()) { /* 514 */ if (localButtonModel.isEnabled()) /* 515 */ paramGraphics.setColor(UIManager.getColor("RadioButton.foreground")); /* */ else { /* 517 */ paramGraphics.setColor(UIManager.getColor("RadioButton.shadow")); /* */ } /* 519 */ paramGraphics.fillRect(paramInt1 + 4, paramInt2 + 5, 4, 2); /* 520 */ paramGraphics.fillRect(paramInt1 + 5, paramInt2 + 4, 2, 4); /* */ } /* */ } /* */ } /* */ /* */ public int getIconWidth() { /* 526 */ XPStyle localXPStyle = XPStyle.getXP(); /* 527 */ if (localXPStyle != null) { /* 528 */ return localXPStyle.getSkin(null, TMSchema.Part.BP_RADIOBUTTON).getWidth(); /* */ } /* 530 */ return 13; /* */ } /* */ /* */ public int getIconHeight() /* */ { /* 535 */ XPStyle localXPStyle = XPStyle.getXP(); /* 536 */ if (localXPStyle != null) { /* 537 */ return localXPStyle.getSkin(null, TMSchema.Part.BP_RADIOBUTTON).getHeight(); /* */ } /* 539 */ return 13; /* */ } /* */ } /* */ /* */ private static class RadioButtonMenuItemIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* 573 */ AbstractButton localAbstractButton = (AbstractButton)paramComponent; /* 574 */ ButtonModel localButtonModel = localAbstractButton.getModel(); /* 575 */ if (localAbstractButton.isSelected() == true) /* 576 */ paramGraphics.fillRoundRect(paramInt1 + 3, paramInt2 + 3, getIconWidth() - 6, getIconHeight() - 6, 4, 4); /* */ } /* */ /* */ public int getIconWidth() { /* 580 */ return 12; } /* 581 */ public int getIconHeight() { return 12; } /* */ /* */ } /* */ /* */ private static class ResizeIcon /* */ implements Icon, Serializable /* */ { /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) /* */ { /* 301 */ paramGraphics.setColor(UIManager.getColor("InternalFrame.resizeIconHighlight")); /* 302 */ paramGraphics.drawLine(0, 11, 11, 0); /* 303 */ paramGraphics.drawLine(4, 11, 11, 4); /* 304 */ paramGraphics.drawLine(8, 11, 11, 8); /* */ /* 306 */ paramGraphics.setColor(UIManager.getColor("InternalFrame.resizeIconShadow")); /* 307 */ paramGraphics.drawLine(1, 11, 11, 1); /* 308 */ paramGraphics.drawLine(2, 11, 11, 2); /* 309 */ paramGraphics.drawLine(5, 11, 11, 5); /* 310 */ paramGraphics.drawLine(6, 11, 11, 6); /* 311 */ paramGraphics.drawLine(9, 11, 11, 9); /* 312 */ paramGraphics.drawLine(10, 11, 11, 10); /* */ } /* 314 */ public int getIconWidth() { return 13; } /* 315 */ public int getIconHeight() { return 13; } /* */ /* */ } /* */ /* */ static class VistaMenuItemCheckIconFactory /* */ implements MenuItemCheckIconFactory /* */ { /* */ private static final int OFFSET = 3; /* */ /* */ public Icon getIcon(JMenuItem paramJMenuItem) /* */ { /* 674 */ return new VistaMenuItemCheckIcon(paramJMenuItem); /* */ } /* */ /* */ public boolean isCompatible(Object paramObject, String paramString) { /* 678 */ return ((paramObject instanceof VistaMenuItemCheckIcon)) && (((VistaMenuItemCheckIcon)paramObject).type == getType(paramString)); /* */ } /* */ /* */ public Icon getIcon(String paramString) /* */ { /* 683 */ return new VistaMenuItemCheckIcon(paramString); /* */ } /* */ /* */ static int getIconWidth() { /* 687 */ XPStyle localXPStyle = XPStyle.getXP(); /* 688 */ return (localXPStyle != null ? localXPStyle.getSkin(null, TMSchema.Part.MP_POPUPCHECK).getWidth() : 16) + 6; /* */ } /* */ /* */ private static Class<? extends JMenuItem> getType(Component paramComponent) /* */ { /* 693 */ Object localObject = null; /* 694 */ if ((paramComponent instanceof JCheckBoxMenuItem)) /* 695 */ localObject = JCheckBoxMenuItem.class; /* 696 */ else if ((paramComponent instanceof JRadioButtonMenuItem)) /* 697 */ localObject = JRadioButtonMenuItem.class; /* 698 */ else if ((paramComponent instanceof JMenu)) /* 699 */ localObject = JMenu.class; /* 700 */ else if ((paramComponent instanceof JMenuItem)) { /* 701 */ localObject = JMenuItem.class; /* */ } /* 703 */ return localObject; /* */ } /* */ /* */ private static Class<? extends JMenuItem> getType(String paramString) { /* 707 */ Object localObject = null; /* 708 */ if (paramString == "CheckBoxMenuItem") /* 709 */ localObject = JCheckBoxMenuItem.class; /* 710 */ else if (paramString == "RadioButtonMenuItem") /* 711 */ localObject = JRadioButtonMenuItem.class; /* 712 */ else if (paramString == "Menu") /* 713 */ localObject = JMenu.class; /* 714 */ else if (paramString == "MenuItem") { /* 715 */ localObject = JMenuItem.class; /* */ } /* */ else { /* 718 */ localObject = JMenuItem.class; /* */ } /* 720 */ return localObject; /* */ } /* */ /* */ private static class VistaMenuItemCheckIcon /* */ implements Icon, UIResource, Serializable /* */ { /* */ private final JMenuItem menuItem; /* */ private final Class<? extends JMenuItem> type; /* */ /* */ VistaMenuItemCheckIcon(JMenuItem paramJMenuItem) /* */ { /* 735 */ this.type = WindowsIconFactory.VistaMenuItemCheckIconFactory.getType(paramJMenuItem); /* 736 */ this.menuItem = paramJMenuItem; /* */ } /* */ VistaMenuItemCheckIcon(String paramString) { /* 739 */ this.type = WindowsIconFactory.VistaMenuItemCheckIconFactory.getType(paramString); /* 740 */ this.menuItem = null; /* */ } /* */ /* */ public int getIconHeight() { /* 744 */ Icon localIcon1 = getLaFIcon(); /* 745 */ if (localIcon1 != null) { /* 746 */ return localIcon1.getIconHeight(); /* */ } /* 748 */ Icon localIcon2 = getIcon(); /* 749 */ int i = 0; /* 750 */ if (localIcon2 != null) { /* 751 */ i = localIcon2.getIconHeight(); /* */ } else { /* 753 */ XPStyle localXPStyle = XPStyle.getXP(); /* 754 */ if (localXPStyle != null) { /* 755 */ XPStyle.Skin localSkin = localXPStyle.getSkin(null, TMSchema.Part.MP_POPUPCHECK); /* 756 */ i = localSkin.getHeight(); /* */ } else { /* 758 */ i = 16; /* */ } /* */ } /* 761 */ i += 6; /* 762 */ return i; /* */ } /* */ /* */ public int getIconWidth() { /* 766 */ Icon localIcon1 = getLaFIcon(); /* 767 */ if (localIcon1 != null) { /* 768 */ return localIcon1.getIconWidth(); /* */ } /* 770 */ Icon localIcon2 = getIcon(); /* 771 */ int i = 0; /* 772 */ if (localIcon2 != null) /* 773 */ i = localIcon2.getIconWidth() + 6; /* */ else { /* 775 */ i = WindowsIconFactory.VistaMenuItemCheckIconFactory.getIconWidth(); /* */ } /* 777 */ return i; /* */ } /* */ /* */ public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2) { /* 781 */ Icon localIcon1 = getLaFIcon(); /* 782 */ if (localIcon1 != null) { /* 783 */ localIcon1.paintIcon(paramComponent, paramGraphics, paramInt1, paramInt2); /* 784 */ return; /* */ } /* 786 */ assert ((this.menuItem == null) || (paramComponent == this.menuItem)); /* 787 */ Icon localIcon2 = getIcon(); /* 788 */ if ((this.type == JCheckBoxMenuItem.class) || (this.type == JRadioButtonMenuItem.class)) /* */ { /* 790 */ AbstractButton localAbstractButton = (AbstractButton)paramComponent; /* 791 */ if (localAbstractButton.isSelected()) { /* 792 */ TMSchema.Part localPart1 = TMSchema.Part.MP_POPUPCHECKBACKGROUND; /* 793 */ TMSchema.Part localPart2 = TMSchema.Part.MP_POPUPCHECK; /* */ TMSchema.State localState1; /* */ TMSchema.State localState2; /* 796 */ if (isEnabled(paramComponent, null)) { /* 797 */ localState1 = localIcon2 != null ? TMSchema.State.BITMAP : TMSchema.State.NORMAL; /* */ /* 799 */ localState2 = this.type == JRadioButtonMenuItem.class ? TMSchema.State.BULLETNORMAL : TMSchema.State.CHECKMARKNORMAL; /* */ } /* */ else /* */ { /* 803 */ localState1 = TMSchema.State.DISABLEDPUSHED; /* 804 */ localState2 = this.type == JRadioButtonMenuItem.class ? TMSchema.State.BULLETDISABLED : TMSchema.State.CHECKMARKDISABLED; /* */ } /* */ /* 809 */ XPStyle localXPStyle = XPStyle.getXP(); /* 810 */ if (localXPStyle != null) /* */ { /* 812 */ XPStyle.Skin localSkin = localXPStyle.getSkin(paramComponent, localPart1); /* 813 */ localSkin.paintSkin(paramGraphics, paramInt1, paramInt2, getIconWidth(), getIconHeight(), localState1); /* */ /* 815 */ if (localIcon2 == null) { /* 816 */ localSkin = localXPStyle.getSkin(paramComponent, localPart2); /* 817 */ localSkin.paintSkin(paramGraphics, paramInt1 + 3, paramInt2 + 3, localState2); /* */ } /* */ } /* */ } /* */ } /* 822 */ if (localIcon2 != null) /* 823 */ localIcon2.paintIcon(paramComponent, paramGraphics, paramInt1 + 3, paramInt2 + 3); /* */ } /* */ /* */ private static WindowsMenuItemUIAccessor getAccessor(JMenuItem paramJMenuItem) /* */ { /* 828 */ WindowsMenuItemUIAccessor localWindowsMenuItemUIAccessor = null; /* 829 */ Object localObject = paramJMenuItem != null ? paramJMenuItem.getUI() : null; /* */ /* 831 */ if ((localObject instanceof WindowsMenuItemUI)) /* 832 */ localWindowsMenuItemUIAccessor = ((WindowsMenuItemUI)localObject).accessor; /* 833 */ else if ((localObject instanceof WindowsMenuUI)) /* 834 */ localWindowsMenuItemUIAccessor = ((WindowsMenuUI)localObject).accessor; /* 835 */ else if ((localObject instanceof WindowsCheckBoxMenuItemUI)) /* 836 */ localWindowsMenuItemUIAccessor = ((WindowsCheckBoxMenuItemUI)localObject).accessor; /* 837 */ else if ((localObject instanceof WindowsRadioButtonMenuItemUI)) { /* 838 */ localWindowsMenuItemUIAccessor = ((WindowsRadioButtonMenuItemUI)localObject).accessor; /* */ } /* 840 */ return localWindowsMenuItemUIAccessor; /* */ } /* */ /* */ private static boolean isEnabled(Component paramComponent, TMSchema.State paramState) { /* 844 */ if ((paramState == null) && ((paramComponent instanceof JMenuItem))) { /* 845 */ WindowsMenuItemUIAccessor localWindowsMenuItemUIAccessor = getAccessor((JMenuItem)paramComponent); /* */ /* 847 */ if (localWindowsMenuItemUIAccessor != null) { /* 848 */ paramState = localWindowsMenuItemUIAccessor.getState((JMenuItem)paramComponent); /* */ } /* */ } /* 851 */ if (paramState == null) { /* 852 */ if (paramComponent != null) { /* 853 */ return paramComponent.isEnabled(); /* */ } /* 855 */ return true; /* */ } /* */ /* 858 */ return (paramState != TMSchema.State.DISABLED) && (paramState != TMSchema.State.DISABLEDHOT) && (paramState != TMSchema.State.DISABLEDPUSHED); /* */ } /* */ /* */ private Icon getIcon() /* */ { /* 864 */ Icon localIcon = null; /* 865 */ if (this.menuItem == null) { /* 866 */ return localIcon; /* */ } /* 868 */ WindowsMenuItemUIAccessor localWindowsMenuItemUIAccessor = getAccessor(this.menuItem); /* */ /* 870 */ Object localObject = localWindowsMenuItemUIAccessor != null ? localWindowsMenuItemUIAccessor.getState(this.menuItem) : null; /* */ /* 872 */ if (isEnabled(this.menuItem, null)) { /* 873 */ if (localObject == TMSchema.State.PUSHED) /* 874 */ localIcon = this.menuItem.getPressedIcon(); /* */ else /* 876 */ localIcon = this.menuItem.getIcon(); /* */ } /* */ else { /* 879 */ localIcon = this.menuItem.getDisabledIcon(); /* */ } /* 881 */ return localIcon; /* */ } /* */ /* */ private Icon getLaFIcon() /* */ { /* 891 */ Icon localIcon = (Serializable)UIManager.getDefaults().get(typeToString(this.type)); /* 892 */ if (((localIcon instanceof VistaMenuItemCheckIcon)) && (((VistaMenuItemCheckIcon)localIcon).type == this.type)) /* */ { /* 894 */ localIcon = null; /* */ } /* 896 */ return localIcon; /* */ } /* */ /* */ private static String typeToString(Class<? extends JMenuItem> paramClass) /* */ { /* 901 */ assert ((paramClass == JMenuItem.class) || (paramClass == JMenu.class) || (paramClass == JCheckBoxMenuItem.class) || (paramClass == JRadioButtonMenuItem.class)); /* */ /* 905 */ StringBuilder localStringBuilder = new StringBuilder(paramClass.getName()); /* */ /* 907 */ localStringBuilder.delete(0, localStringBuilder.lastIndexOf("J") + 1); /* 908 */ localStringBuilder.append(".checkIcon"); /* 909 */ return localStringBuilder.toString(); /* */ } /* */ } /* */ } /* */ } /* Location: C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar * Qualified Name: com.sun.java.swing.plaf.windows.WindowsIconFactory * JD-Core Version: 0.6.2 */
71e5d1184a96016a28886123f96ff7ac5e98c423
75633dbedb7f68f8ef8a507d0295cc31d6d12078
/jbgd/src/main/java/com/edu/shop/sale/model/SaleListDto.java
1f79f51f78e3b6a64fa2c35ee9fc06b75d75d9fb
[]
no_license
cropsin/disertPj
6ea89cd6955e7dbf13d1a671f6fb4081898c586c
8ed40a7d0ad82f91e4d4b2fca0ae495104fdc0a8
refs/heads/master
2022-12-26T00:14:28.685782
2019-12-10T08:56:21
2019-12-10T08:56:21
227,056,599
0
0
null
2022-12-16T12:01:38
2019-12-10T07:34:04
Java
UTF-8
Java
false
false
1,383
java
package com.edu.shop.sale.model; import java.util.Date; public class SaleListDto { private int saleNo = 0; private String itemName = ""; private int count = 0; private int salePrice = 0; private Date saleDate = null; private String saleState = ""; public SaleListDto() { super(); } public SaleListDto(int saleNo, String itemName, int count, int salePrice, Date saleDate, String saleState) { super(); this.saleNo = saleNo; this.itemName = itemName; this.count = count; this.salePrice = salePrice; this.saleDate = saleDate; this.saleState = saleState; } public int getSaleNo() { return saleNo; } public void setSaleNo(int saleNo) { this.saleNo = saleNo; } public String getItemName() { return itemName; } public void setItemName(String itemName) { this.itemName = itemName; } public int getCount() { return count; } public void setCount(int count) { this.count = count; } public int getSalePrice() { return salePrice; } public void setSalePrice(int salePrice) { this.salePrice = salePrice; } public Date getSaleDate() { return saleDate; } public void setSaleDate(Date saleDate) { this.saleDate = saleDate; } public String getSaleState() { return saleState; } public void setSaleState(String saleState) { this.saleState = saleState; } }
13c4f884b3ca5d167920c316c9c16022b15933d0
7adc8a0a46340f94cec9dce1a2042c25bf7ebac0
/backend/suyang_project_server/o2o-massage/o2o-client-web/src/main/java/com/o2o/massage/web/client/controllers/CommonController.java
45422866dc0d5c48046ba4ff670303c0c0d29fe2
[]
no_license
sonia630/suyang_project
23b651b4259a0359bde20fd082410b8a09235466
0701c1706cf7d45274758053bba3bb8d64bc9205
refs/heads/master
2021-04-12T10:34:54.413844
2018-07-25T01:35:47
2018-07-25T01:35:47
126,292,773
1
1
null
null
null
null
UTF-8
Java
false
false
7,532
java
package com.o2o.massage.web.client.controllers; import com.o2o.massage.biz.ClientUserBiz; import com.o2o.massage.biz.ProviderBiz; import com.o2o.massage.core.common.ApiRequestContext; import com.o2o.massage.core.common.EnumApiRequestSide; import com.o2o.massage.dao.entity.CustomerAddress; import com.o2o.massage.web.Constants; import com.o2o.massage.web.client.aop.ClientUserIdentify; import com.o2o.massage.web.client.aop.EnumRequiredUserType; import com.o2o.massage.web.common.context.ApiRequestMethod; import com.o2o.massage.web.common.context.ClientRequestContext; import com.o2o.nm.vo.ProviderScheduleVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.Getter; import lombok.Setter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Map; @Controller @Api(description = "通用服务接口") @RequestMapping("common") public class CommonController { private Logger logger = LoggerFactory.getLogger(getClass()); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd"); public static final int span = 10000;//查询方圆10km @Autowired private ClientUserBiz clientUserBiz; @Autowired private ProviderBiz providerBiz; @RequestMapping("location") @ApiOperation(value = "获取地址信息") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.COMMON_USER) public String location(Model model, String serviceId, String from) { String userId = ApiRequestContext.getCurrent().getUserId(); model.addAttribute("locations", clientUserBiz.getUserLocations(userId)); model.addAttribute("serviceId", serviceId); model.addAttribute("from", from); return "selectlocation"; } @RequestMapping("time") @ApiOperation(value = "获取时间安排") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.COMMON_USER) public String time(Model model, String serviceId, String from, BigDecimal lng, BigDecimal lat) { model.addAttribute("serviceId", serviceId); model.addAttribute("from", from); model.addAttribute("time", simpleDateFormat.format(new Date())); model.addAttribute("lng", lng); model.addAttribute("lat", lat); model.addAttribute("span", span); return "selecttime"; } @RequestMapping("schedule") @ApiOperation(value = "获取某天安排") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.COMMON_USER) @ResponseBody public Map<Integer, List<String>> schedule(ProviderScheduleVo providerScheduleVo) { return providerBiz.getProviderSchedulesByLongLat(providerScheduleVo); } @RequestMapping("save_defaultLocation") @ApiOperation(value = "保存默认地址信息") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.COMMON_USER) @ResponseBody public CommonResult save_defaultLocation(CustomerAddress customerAddress) { CommonResult result = new CommonResult(); try { customerAddress.setDefaultAddress((byte) 1); clientUserBiz.saveUserDefaultLocation(customerAddress, ClientRequestContext.getCurrent().getUserId()); result.setMessage("保存成功"); result.setStatus(Constants.SUCCESS); } catch (Exception e) { logger.error("{}", e); result.setMessage("保存失败"); result.setStatus(Constants.FAILURE); } return result; } @RequestMapping("my_name") @ApiOperation(value = "显示修改用户姓名页面") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.SERVICE_PROVIDER) public String providerMyName(Model model, String name, String from) { model.addAttribute("name", name); model.addAttribute("from", from); return "myName"; } @RequestMapping("update_realName") @ResponseBody @ApiOperation(value = "修改用户真实姓名") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.SERVICE_PROVIDER) public CommonResult saveRealName(String name) { CommonResult result = new CommonResult(); try { String userId = ApiRequestContext.getCurrent().getUserId(); clientUserBiz.updateUserRealName(userId, name); result.setMessage("修改成功"); result.setStatus(Constants.SUCCESS); } catch (Exception e) { logger.error("{}", e); result.setMessage("修改失败"); result.setStatus(Constants.FAILURE); } return result; } @RequestMapping("common_address") @ApiOperation(value = "显示修改顾问常用地址页") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.SERVICE_PROVIDER) public String providerAddress(Model model, String address) { model.addAttribute("address", address); return "provider/provider_address"; } @RequestMapping("customer_address") @ApiOperation(value = "显示修改用户常用地址页") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.COMMON_USER) public String customerAddress(Model model, String address) { String userId = ApiRequestContext.getCurrent().getUserId(); model.addAttribute("address", address); model.addAttribute("locations", clientUserBiz.getUserLocations(userId)); return "client/customer_address"; } @RequestMapping("save_commonAddress") @ApiOperation(value = "修改顾问常用地址") @ApiRequestMethod(requestSide = EnumApiRequestSide.CLIENT) @ClientUserIdentify(mustLogin = true, requiredClientUserType = EnumRequiredUserType.SERVICE_PROVIDER) @ResponseBody public CommonResult saveCommonAddress(String address, BigDecimal longitude, BigDecimal latitude) { CommonResult result = new CommonResult(); try { String userId = ApiRequestContext.getCurrent().getUserId(); providerBiz.updateCommonAddress(userId, address, longitude, latitude); result.setMessage("修改成功"); result.setStatus(Constants.SUCCESS); } catch (Exception e) { logger.error("{}", e); result.setMessage("修改失败"); result.setStatus(Constants.FAILURE); } return result; } @Getter @Setter public static class CommonResult { String message; String status; } }
349d003c94f5d1ee75c83ae5fba32764630b2d58
d7c839d6ccb78e1c77940c758d0b330cbc9cffcb
/Java interface cyber medallions/cyber medallians/src/cyber/medallians/disable.java
485e708e3d0f987f8297ed3490e853ff4da1731b
[]
no_license
desilvaNSP/Level-1-Project
024bb0b25949bf9148f5a5afdcb814f587c0af6c
1cb56ca0f72d8e12670cdc49cc598e29b9d4e051
refs/heads/master
2016-09-05T23:21:41.102984
2013-12-25T09:17:01
2013-12-25T09:17:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
27,286
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * disable.java * * Created on Jul 2, 2012, 12:04:23 AM */ package cyber.medallians; import DBManage.DBManager; import DBManage.DatabaseConnector; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.table.DefaultTableModel; import resources.ApplyTheme; /** * * @author DELL */ public class disable extends javax.swing.JFrame { DefaultTableModel defaultTableModeldisablelist; DefaultTableModel defaultTableModeldisable; String hastopay; /** Creates new form disable */ public disable() { initComponents(); setLocationRelativeTo(null); defaultTableModeldisable =(DefaultTableModel) jtbdisable.getModel(); defaultTableModeldisablelist =(DefaultTableModel) jtbdisablelist.getModel(); runonload(); } public void runonload(){ try { int DLRC= defaultTableModeldisablelist.getRowCount(); for(int i=0;i<DLRC;i++){ defaultTableModeldisablelist.removeRow(0); } int DRC= defaultTableModeldisable.getRowCount(); for(int i=0;i<DRC;i++){ defaultTableModeldisable.removeRow(0); } ResultSet rsDISL=null; Connection connection=DatabaseConnector.makeConnection(); String sqlforDISL="select cust_name,cust_id,nic,homeno,homecity,street,meterno,meterid From disable"; rsDISL=DBManager.getData(connection, sqlforDISL); while(rsDISL.next()){ Object raw1[]={rsDISL.getString("cust_id"),rsDISL.getString("cust_name"),rsDISL.getString("nic"),rsDISL.getString("homecity"),rsDISL.getString("meterid"),rsDISL.getString("meterno")}; defaultTableModeldisablelist.addRow(raw1); } } catch (SQLException ex) { Logger.getLogger(disable.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(disable.class.getName()).log(Level.SEVERE, null, ex); } } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jButton3 = new javax.swing.JButton(); jLayeredPane1 = new javax.swing.JLayeredPane(); jPanel1 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jtfcustname = new javax.swing.JTextField(); jtfmeterno = new javax.swing.JTextField(); jtfcustid = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jtfname = new javax.swing.JTextField(); jtfteleno = new javax.swing.JTextField(); jtfnic = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jtfaddress = new javax.swing.JTextField(); jPanel3 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jtbdisable = new javax.swing.JTable(); jButton2 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); jtbdisablelist = new javax.swing.JTable(); jLabel10 = new javax.swing.JLabel(); jLabel1.setText("jLabel1"); jButton3.setText("jButton3"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Dissable [Ceylon Electricity Board]"); jLayeredPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel3.setText("Consumer Name"); jLabel4.setText("Consumer Id"); jLabel5.setText("Meter no"); jtfcustname.setBackground(new java.awt.Color(153, 255, 255)); jtfcustname.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jtfcustnameActionPerformed(evt); } }); jtfmeterno.setBackground(new java.awt.Color(153, 255, 255)); jtfcustid.setBackground(new java.awt.Color(153, 255, 255)); jButton1.setText("Search"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jButton1) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfcustname, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfcustid, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfmeterno, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jtfcustname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(jtfcustid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5) .addComponent(jtfmeterno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(54, Short.MAX_VALUE) .addComponent(jButton1) .addContainerGap()) ); jPanel1.setBounds(10, 40, 740, 90); jLayeredPane1.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); jLabel2.setText("Dissable"); jLabel2.setBounds(330, 10, 100, 22); jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Concumer")); jLabel6.setText("Name"); jLabel7.setText("Telephone No"); jLabel8.setText("NIC"); jLabel9.setText("Address"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addComponent(jLabel7) .addComponent(jLabel8)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jtfnic) .addComponent(jtfteleno) .addComponent(jtfname, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE))) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel9) .addGap(49, 49, 49) .addComponent(jtfaddress, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE))) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jtfname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(jtfteleno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jtfnic, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(jtfaddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel2.setBounds(10, 140, 370, 150); jLayeredPane1.add(jPanel2, javax.swing.JLayeredPane.DEFAULT_LAYER); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Meter")); jtbdisable.setBackground(new java.awt.Color(204, 255, 255)); jtbdisable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null} }, new String [] { "meter no", "has to pay" } ) { boolean[] canEdit = new boolean [] { false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jScrollPane1.setViewportView(jtbdisable); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 347, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel3.setBounds(380, 140, 370, 160); jLayeredPane1.add(jPanel3, javax.swing.JLayeredPane.DEFAULT_LAYER); jButton2.setText("Cancel"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton2.setBounds(660, 490, 73, 23); jLayeredPane1.add(jButton2, javax.swing.JLayeredPane.DEFAULT_LAYER); jButton5.setText("Back"); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jButton5.setBounds(550, 490, 73, 23); jLayeredPane1.add(jButton5, javax.swing.JLayeredPane.DEFAULT_LAYER); jtbdisablelist.setBackground(new java.awt.Color(204, 255, 255)); jtbdisablelist.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null} }, new String [] { "Consumer ID", "Consumer name", "NIC", "Address", "Meter ID", "Meter No" } )); jScrollPane2.setViewportView(jtbdisablelist); jtbdisablelist.getColumnModel().getColumn(0).setResizable(false); jScrollPane2.setBounds(10, 320, 720, 160); jLayeredPane1.add(jScrollPane2, javax.swing.JLayeredPane.DEFAULT_LAYER); jLabel10.setFont(new java.awt.Font("Tahoma", 0, 18)); jLabel10.setText("Disable List...."); jLabel10.setBounds(20, 290, 120, 22); jLayeredPane1.add(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 758, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 519, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jtfcustnameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtfcustnameActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jtfcustnameActionPerformed private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed System.exit(0); }//GEN-LAST:event_jButton2ActionPerformed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed try { String custname=jtfcustname.getText(); String custid=jtfcustid.getText(); String meterno=jtfmeterno.getText(); ResultSet rsDIS=null; ResultSet rsDIS1=null; ResultSet rsDIS2=null; Connection connection=DatabaseConnector.makeConnection(); String SqlforDIS="select cust_name,cust_id,nic,homeno,homecity,street,meterno,meterid,telephone_no,hastopay From disable where cust_name='"+ custname +"' "; String SqlforDIS1="select cust_name,cust_id,nic,homeno,homecity,street,meterno,meterid,telephone_no,hastopay From disable where cust_id='"+ custid +"' "; String SqlforDIS2="select cust_name,cust_id,nic,homeno,homecity,street,meterno,meterid,telephone_no,hastopay From disable where meterno='"+ meterno +"' "; rsDIS=DBManager.getData(connection, SqlforDIS); rsDIS1=DBManager.getData(connection, SqlforDIS1); rsDIS2=DBManager.getData(connection, SqlforDIS2); while(rsDIS.next()){ jtfcustname.setText(rsDIS.getString("cust_name")); jtfname.setText(rsDIS.getString("cust_name")); jtfcustid.setText(rsDIS.getString("cust_id")); jtfnic.setText(rsDIS.getString("nic")); jtfaddress.setText(rsDIS.getString("homecity")); jtfmeterno.setText(rsDIS.getString("meterno")); jtfteleno.setText(rsDIS.getString("telephone_no")); Object rawDIS[]={rsDIS.getString("meterno"),rsDIS.getString("hastopay")}; defaultTableModeldisable.addRow(rawDIS); } while(rsDIS1.next()){ jtfcustname.setText(rsDIS1.getString("cust_name")); jtfname.setText(rsDIS1.getString("cust_name")); jtfcustid.setText(rsDIS1.getString("cust_id")); jtfnic.setText(rsDIS1.getString("nic")); jtfaddress.setText(rsDIS1.getString("homecity")); jtfmeterno.setText(rsDIS1.getString("meterno")); jtfteleno.setText(rsDIS1.getString("telephone_no")); Object rawDIS1[]={rsDIS1.getString("meterno"),rsDIS1.getString("hastopay")}; defaultTableModeldisable.addRow(rawDIS1); } while(rsDIS2.next()){ jtfcustname.setText(rsDIS2.getString("cust_name")); jtfname.setText(rsDIS2.getString("cust_name")); jtfcustid.setText(rsDIS2.getString("cust_id")); jtfnic.setText(rsDIS2.getString("nic")); jtfaddress.setText(rsDIS2.getString("homecity")); jtfmeterno.setText(rsDIS2.getString("meterno")); jtfteleno.setText(rsDIS2.getString("telephone_no")); Object rawDIS2[]={rsDIS2.getString("meterno"),rsDIS2.getString("hastopay")}; defaultTableModeldisable.addRow(rawDIS2); hastopay =rsDIS2.getString("hastopay"); } } catch (SQLException ex) { Logger.getLogger(disable.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(disable.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jButton1ActionPerformed private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed this.setVisible(false); MainWindow MainWindow = new MainWindow(); //MainWindow.setVisible(true); }//GEN-LAST:event_jButton5ActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(disable.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(disable.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(disable.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(disable.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { ApplyTheme.Theme(); new disable().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JButton jButton5; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JLayeredPane jLayeredPane1; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JTable jtbdisable; private javax.swing.JTable jtbdisablelist; private javax.swing.JTextField jtfaddress; private javax.swing.JTextField jtfcustid; private javax.swing.JTextField jtfcustname; private javax.swing.JTextField jtfmeterno; private javax.swing.JTextField jtfname; private javax.swing.JTextField jtfnic; private javax.swing.JTextField jtfteleno; // End of variables declaration//GEN-END:variables }
e771c29b612db769f28dc0cd60c3e2818ef753e9
f29c91f6481bcf718c89447ef1db3a48c9853621
/src/main/java/Method/Client/module/player/FoodMod.java
d3608a88ef112face7cd3ff2eae42095fc6ce2b5
[ "WTFPL" ]
permissive
ProfKambing/MethodClient
264de79b23fe42918025bed93dd191e28ff34e56
d3aae34431880ee6efc3a242aa24daef2e72241b
refs/heads/main
2023-03-20T06:37:38.038004
2021-03-17T04:45:08
2021-03-17T04:45:08
348,583,403
1
1
null
2021-03-17T04:52:49
2021-03-17T04:52:48
null
UTF-8
Java
false
false
10,786
java
package Method.Client.module.player; import Method.Client.managers.Setting; import Method.Client.module.Category; import Method.Client.module.Module; import Method.Client.utils.system.Connection; import Method.Client.utils.system.Wrapper; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.BlockWorkbench; import net.minecraft.client.multiplayer.PlayerControllerMP; import net.minecraft.entity.Entity; import net.minecraft.entity.passive.EntityTameable; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.init.Items; import net.minecraft.inventory.ClickType; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemSoup; import net.minecraft.item.ItemStack; import net.minecraft.network.play.client.CPacketPlayer; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent; import org.lwjgl.input.Keyboard; import static Method.Client.Main.setmgr; import static Method.Client.module.combat.AutoArmor.isNullOrEmpty; import static Method.Client.utils.BlockUtils.getState; public class FoodMod extends Module { Setting Souphunger = setmgr.add(new Setting("Hunger", this, 10, 0, 20, true)); Setting Soup = setmgr.add(new Setting("Soup", this, false)); Setting AntiHunger = setmgr.add(new Setting("AntiHunger", this, false)); Setting AutoEat = setmgr.add(new Setting("AutoEat", this, false)); Setting SetFoodLevelMax = setmgr.add(new Setting("SetFoodLevelMax", this, false)); int slotBefore = -1; int bestSlot = -1; int eating = 40; private int oldSlot = -1; public FoodMod() { super("FoodMod", Keyboard.KEY_NONE, Category.PLAYER, "FoodMod"); } @Override public void onEnable() { this.oldSlot = -1; this.bestSlot = -1; super.onEnable(); } @Override public boolean onPacket(Object packet, Connection.Side side) { if (side == Connection.Side.OUT && AntiHunger.getValBoolean()) { if (packet instanceof CPacketPlayer) { CPacketPlayer packet2 = (CPacketPlayer) packet; packet2.onGround = (mc.player.fallDistance >= 0.0F || mc.playerController.getIsHittingBlock()); } } return true; } @Override public void onClientTick(ClientTickEvent event) { if (SetFoodLevelMax.getValBoolean()) { mc.player.getFoodStats().setFoodLevel(20); } if (AutoEat.getValBoolean()) { if (this.oldSlot == -1) { if (!this.canEat()) { return; } float bestSaturation = 0.0F; for (int i = 0; i < 9; ++i) { ItemStack stack = mc.player.inventory.getStackInSlot(i); if (this.isFood(stack)) { ItemFood food = (ItemFood) stack.getItem(); float saturation = food.getSaturationModifier(stack); if (saturation > bestSaturation) { bestSaturation = saturation; this.bestSlot = i; } } } if (this.bestSlot != -1) { this.oldSlot = mc.player.inventory.currentItem; } } else { if (!this.canEat()) { this.stop(); return; } if (!this.isFood(mc.player.inventory.getStackInSlot(this.bestSlot))) { this.stop(); return; } mc.player.inventory.currentItem = this.bestSlot; mc.gameSettings.keyBindUseItem.pressed = true; } } if (AntiHunger.getValBoolean()) { mc.player.onGround = false; } if (Soup.getValBoolean()) { for (int i = 0; i < 36; i++) { // filter out non-bowl items and empty bowl slot ItemStack stack = mc.player.inventory.getStackInSlot(i); if (stack.getItem() != Items.BOWL || i == 9) continue; // check if empty bowl slot contains a non-bowl item ItemStack emptyBowlStack = mc.player.inventory.getStackInSlot(9); boolean swap = !isNullOrEmpty(emptyBowlStack) && emptyBowlStack.getItem() != Items.BOWL; // place bowl in empty bowl slot windowClick_PICKUP(i < 9 ? 36 + i : i); windowClick_PICKUP(9); // place non-bowl item from empty bowl slot in current slot if (swap) windowClick_PICKUP(i < 9 ? 36 + i : i); } int soupInHotbar = findSoup(0, 9); // check if any soup was found if (soupInHotbar != -1) { // check if player should eat soup if (!shouldEatSoup()) { stopIfEating(); return; } // save old slot if (oldSlot == -1) oldSlot = mc.player.inventory.currentItem; // set slot mc.player.inventory.currentItem = soupInHotbar; // eat soup mc.gameSettings.keyBindUseItem.pressed = true; processRightClick(); return; } stopIfEating(); // search soup in inventory int soupInInventory = findSoup(9, 36); // move soup in inventory to hotbar if (soupInInventory != -1) windowClick_QUICK_MOVE(soupInInventory); } if (!Soup.getValBoolean()) { if (eating < 41) { eating++; if (eating <= 1) { mc.player.inventory.currentItem = bestSlot; } mc.gameSettings.keyBindUseItem.pressed = true; if (eating >= 38) { mc.gameSettings.keyBindUseItem.pressed = true; if (slotBefore != -1) { mc.player.inventory.currentItem = slotBefore; } slotBefore = -1; } return; } float bestRestoration = 0; bestSlot = -1; // Loop through hotbar int PrevSlot = mc.player.inventory.currentItem; for (int i = 0; i < 9; i++) { ItemStack item = mc.player.inventory.getStackInSlot(i); float restoration = 0; if (item.getItem() instanceof ItemFood) { restoration = ((ItemFood) item.getItem()).getSaturationModifier(item); } if (restoration > bestRestoration) { bestRestoration = restoration; bestSlot = i; } } if (bestSlot == -1) { return; } if (!(mc.player.getFoodStats().getFoodLevel() < Souphunger.getValDouble())) { return; } slotBefore = mc.player.inventory.currentItem; if (slotBefore == -1) { return; } mc.player.inventory.currentItem = PrevSlot; mc.player.stopActiveHand(); mc.player.inventory.currentItem = PrevSlot; eating = 0; super.onClientTick(event); } } private int findSoup(int startSlot, int endSlot) { for (int i = startSlot; i < endSlot; i++) { ItemStack stack = mc.player.inventory.getStackInSlot(i); if (stack.getItem() instanceof ItemSoup) return i; } return -1; } private boolean canEat() { if (!mc.player.canEat(false)) { return false; } else { if (mc.objectMouseOver != null) { Entity entity = mc.objectMouseOver.entityHit; if (entity instanceof EntityVillager || entity instanceof EntityTameable) { return false; } BlockPos pos = mc.objectMouseOver.getBlockPos(); if (pos != null) { Block block = mc.world.getBlockState(pos).getBlock(); if (block instanceof BlockContainer || block instanceof BlockWorkbench) { return false; } } } return true; } } private boolean isFood(ItemStack stack) { return stack.getItem() instanceof ItemFood; } private void stop() { mc.gameSettings.keyBindUseItem.pressed = false; mc.player.inventory.currentItem = this.oldSlot; this.oldSlot = -1; } private boolean shouldEatSoup() { // check health if (mc.player.getHealth() > 6.5 * 2F) return false; // check screen if (Wrapper.mc.currentScreen != null) return false; // check for clickable objects if (Wrapper.mc.objectMouseOver != null) { // clickable entities Entity entity = Wrapper.mc.objectMouseOver.entityHit; if (entity instanceof EntityVillager || entity instanceof EntityTameable) return false; // clickable blocks Wrapper.mc.objectMouseOver.getBlockPos(); return !(getBlock( Wrapper.mc.objectMouseOver.getBlockPos()) instanceof BlockContainer); } return true; } private void stopIfEating() { if (oldSlot == -1) return; mc.gameSettings.keyBindUseItem.pressed = true; mc.player.inventory.currentItem = oldSlot; oldSlot = -1; } public static Block getBlock(BlockPos pos) { return getState(pos).getBlock(); } public static ItemStack windowClick_PICKUP(int slot) { return getPlayerController().windowClick(0, slot, 0, ClickType.PICKUP, mc.player); } private static PlayerControllerMP getPlayerController() { return mc.playerController; } public static void processRightClick() { getPlayerController().processRightClick(mc.player, mc.player.world, EnumHand.MAIN_HAND); } public static ItemStack windowClick_QUICK_MOVE(int slot) { return getPlayerController().windowClick(0, slot, 0, ClickType.QUICK_MOVE, mc.player); } }
5492cc56a3f98fcdba6b86b4abeea6cc44a0e9c0
36fca6ee6e3d27b8568f3999fae89a443937ba6c
/daydream/com/google/vr/cardboard/MutableEglConfigChooser.java
00cc078ab65eb849f3fe2311ba27c0291ce77640
[]
no_license
wjfsanhe/ddwangjf
c2a9e61e5e1b22ec65b095dc2c5b4e9a5d1fe6ef
95ee031abf532d837061e952683a71a500a2302c
refs/heads/master
2021-01-11T14:26:54.481864
2017-02-09T06:08:44
2017-02-09T06:08:44
81,415,471
2
0
null
null
null
null
UTF-8
Java
false
false
3,181
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: packimports(3) // Source File Name: MutableEglConfigChooser.java package com.google.vr.cardboard; import android.opengl.GLSurfaceView; import javax.microedition.khronos.egl.*; public class MutableEglConfigChooser implements android.opengl.GLSurfaceView.EGLConfigChooser { public MutableEglConfigChooser() { forceMutableBuffer = true; } public MutableEglConfigChooser(boolean flag) { forceMutableBuffer = true; forceMutableBuffer = flag; } public EGLConfig chooseConfig(EGL10 egl10, EGLDisplay egldisplay) { int ai[] = { 12324, 8, 12323, 8, 12322, 8, 12321, 0, 12325, 0, 12326, 0, 12352, 64, 12339, 4100, 12344 }; int ai1[] = new int[1]; if(!egl10.eglChooseConfig(egldisplay, ai, null, 0, ai1) && forceMutableBuffer) throw new IllegalArgumentException("eglChooseConfig failed"); ai[15] = 4; if(!egl10.eglChooseConfig(egldisplay, ai, null, 0, ai1)) throw new IllegalArgumentException("eglChooseConfig failed"); int i; if((i = ai1[0]) <= 0) throw new IllegalArgumentException("No configs match configSpec"); EGLConfig aeglconfig[] = new EGLConfig[i]; if(!egl10.eglChooseConfig(egldisplay, ai, aeglconfig, i, ai1)) throw new IllegalArgumentException("eglChooseConfig#2 failed"); EGLConfig eglconfig; if((eglconfig = chooseConfig(egl10, egldisplay, aeglconfig, forceMutableBuffer)) == null) throw new IllegalArgumentException("No config chosen"); else return eglconfig; } private static EGLConfig chooseConfig(EGL10 egl10, EGLDisplay egldisplay, EGLConfig aeglconfig[], boolean flag) { EGLConfig aeglconfig1[]; int i = (aeglconfig1 = aeglconfig).length; for(int j = 0; j < i; j++) { EGLConfig eglconfig = aeglconfig1[j]; int k = findConfigAttrib(egl10, egldisplay, eglconfig, 12325, 0); int l = findConfigAttrib(egl10, egldisplay, eglconfig, 12326, 0); int i1 = findConfigAttrib(egl10, egldisplay, eglconfig, 12324, 0); int j1 = findConfigAttrib(egl10, egldisplay, eglconfig, 12323, 0); int k1 = findConfigAttrib(egl10, egldisplay, eglconfig, 12322, 0); int l1 = findConfigAttrib(egl10, egldisplay, eglconfig, 12339, 0); if(i1 == 8 && j1 == 8 && k1 == 8 && k == 0 && l == 0 && (!flag || (l1 & 0x1000) != 0)) return eglconfig; } return null; } private static int findConfigAttrib(EGL10 egl10, EGLDisplay egldisplay, EGLConfig eglconfig, int i, int j) { int ai[] = new int[1]; if(egl10.eglGetConfigAttrib(egldisplay, eglconfig, i, ai)) return ai[0]; else return j; } private static final int EGL_MUTABLE_RENDER_BUFFER_BIT = 4096; private static final int EGL_OPENGL_ES3_BIT_KHR = 64; private boolean forceMutableBuffer; }
9baacec11ca78c30988a09ab8374a8a96edfe311
62d7594cd12e84f99828183124474e634d86fe19
/Assignment5/Question5.java
7d953fdf4dddaa60b73614529cc6b608a7395ef5
[]
no_license
karanaggarwal1/competitive-coding
028672ff32e54181967125e3439382c699cdb9ce
fba6cbdd6111848a60941f8d0e0318348876d584
refs/heads/master
2021-05-12T07:44:55.249040
2018-04-14T19:04:41
2018-04-14T19:04:41
117,256,146
0
0
null
null
null
null
UTF-8
Java
false
false
756
java
package Assignment5; import java.util.Scanner; public class Question5 { public static void main(String[] args) { Scanner scn = new Scanner(System.in); System.out.print("Enter a string:"); String str = scn.next(); System.out.print("The converted string is:" + replacePi(str, "")); } public static String replacePi(String str, String osf) { if (str.length() == 0||str.length()==1) { return osf+str; } String ros = new String(); String temp = str.substring(0, 2); if (temp.equals("pi") || temp.equals("Pi")) { temp = "3.14"; osf = osf + temp; ros = str.substring(2); } else { osf = osf + str.charAt(0); ros = str.substring(1); } ros = replacePi(ros, osf); return ros; } }
cea69bbadf143ce7b2004f93c4e501df2e25cb4f
3a699fd6695f15c13286cbac4f4db7b353b045e4
/lab5/InterfaceDemo/src/net/machina/interfacedemo/workers/Worker.java
c1d6bc47b73d0d5cd9a2e43c2084acd1e5074190
[ "MIT" ]
permissive
Machina123/JavaCourse
30e258606a2e5cd4851a9b5317821de10ef86605
3fb916ddf62d02954ac9304233d0b5a6e65a1d10
refs/heads/master
2020-04-25T17:24:55.827901
2019-05-15T17:35:18
2019-05-15T17:35:18
172,947,292
0
0
null
null
null
null
UTF-8
Java
false
false
576
java
package net.machina.interfacedemo.workers; public class Worker implements IPayment, Comparable<Worker> { private String fullName; private double payment = 2500; public Worker(String fullName) { this.fullName = fullName; } @Override public double getPayment() { return this.payment; } @Override public void increasePayment(double percent) { this.payment *= 1 + (percent / 100.0); } @Override public int compareTo(Worker o) { return Double.compare(this.getPayment(), o.getPayment()); } }
bdad49ea4879d192847c70d7ce3ce2b093d9f14d
9494b29d58ea98fba2938a2c7b5470ab06593745
/src/main/java/CustomLogAppender.java
4d38725cb75c813032fd1b153054f7663e0fda68
[]
no_license
evvil/webspider
a9e1a2f351334d65d946f78f6b82d9560e5ba0ba
20600d425d88e7f5b143dd6005e3539a9cc13a38
refs/heads/master
2021-05-30T21:51:35.347061
2016-05-13T09:45:24
2016-05-13T09:45:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,098
java
import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import org.apache.log4j.FileAppender; import org.apache.log4j.Layout; import org.apache.log4j.helpers.LogLog; import org.apache.log4j.spi.LoggingEvent; /** * Log4j自定义工具类 * 扩展的一个按天滚动的appender类, 暂时不支持datePattern设置, 但是可以配置maxBackupIndex. * * @author LiuAifeng * */ public class CustomLogAppender extends FileAppender { /** 不允许改写的datepattern */ private static final String datePattern = "'.'yyyy-MM-dd"; /** 最多文件增长个数 */ private int maxBackupIndex = 7; /** 文件名+上次最后更新时间 */ private String scheduledFilename; /** * The next time we estimate a rollover should occur. */ private long nextCheck = System.currentTimeMillis() - 1; Date now = new Date(); SimpleDateFormat sdf; /** * The default constructor does nothing. */ public CustomLogAppender() { } /** * 改造过的构造器 */ public CustomLogAppender(Layout layout, String filename, int maxBackupIndex) throws IOException { super(layout, filename, true); this.maxBackupIndex = maxBackupIndex; activateOptions(); } /** * 初始化本Appender对象的时候调用一次 */ @Override public void activateOptions() { super.activateOptions(); if (fileName != null) { // perf.log now.setTime(System.currentTimeMillis()); sdf = new SimpleDateFormat(datePattern); File file = new File(fileName); // 获取最后更新时间拼成的文件名 scheduledFilename = fileName + sdf.format(new Date(file.lastModified())); } else { LogLog.error("File is not set for appender [" + name + "]."); } if (maxBackupIndex <= 0) { LogLog.error("maxBackupIndex reset to default value[2],orignal value is:" + maxBackupIndex); maxBackupIndex = 2; } } /** * 滚动文件的函数:<br> * 1. 对文件名带的时间戳进行比较, 确定是否更新<br> * 2. if需要更新, 当前文件rename到文件名+日期, 重新开始写文件<br> * 3. 针对配置的maxBackupIndex,删除过期的文件 */ void rollOver() throws IOException { String datedFilename = fileName + sdf.format(now); // 如果上次写的日期跟当前日期相同,不需要换文件 if (scheduledFilename.equals(datedFilename)) { return; } // close current file, and rename it to datedFilename this.closeFile(); File target = new File(scheduledFilename); if (target.exists()) { try { target.delete(); } catch (SecurityException e) { e.printStackTrace(); } } File file = new File(fileName); boolean result = file.renameTo(target); if (result) { LogLog.debug(fileName + " -> " + scheduledFilename); } else { LogLog.error("Failed to rename [" + fileName + "] to [" + scheduledFilename + "]."); } // 删除过期文件 if (maxBackupIndex > 0) { File folder = new File(file.getParent()); List<String> maxBackupIndexDates = getMaxBackupIndexDates(); for (File ff : folder.listFiles()) { // 遍历目录,将日期不在备份范围内的日志删掉 if (ff.getName().startsWith(file.getName()) && !ff.getName().equals(file.getName())) { // 获取文件名带的日期时间戳 String markedDate = ff.getName().substring(file.getName().length()); if (!maxBackupIndexDates.contains(markedDate)) { result = ff.delete(); } if (result) { LogLog.debug(ff.getName() + " -> deleted "); } else { LogLog.error("Failed to deleted old DayRollingFileAppender file :" + ff.getName()); } } } } try { // This will also close the file. This is OK since multiple // close operations are safe. this.setFile(fileName, false, this.bufferedIO, this.bufferSize); } catch (IOException e) { errorHandler.error("setFile(" + fileName + ", false) call failed."); } scheduledFilename = datedFilename; // 更新最后更新日期戳 } /** * Actual writing occurs here. 这个方法是写操作真正的执行过程. */ @Override protected void subAppend(LoggingEvent event) { long n = System.currentTimeMillis(); if (n >= nextCheck) { // 在每次写操作前判断一下是否需要滚动文件 now.setTime(n); nextCheck = getNextDayCheckPoint(now); try { rollOver(); } catch (IOException ioe) { LogLog.error("rollOver() failed.", ioe); } } super.subAppend(event); } /** * 获取下一天的时间变更点 * * @param now * @return */ long getNextDayCheckPoint(Date now) { Calendar calendar = Calendar.getInstance(); calendar.setTime(now); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0);// 注意MILLISECOND,毫秒也要置0.。。否则错了也找不出来的 // calendar.add(Calendar.DATE, // 1); return calendar.getTimeInMillis(); } /** * 根据maxBackupIndex配置的备份文件个数,获取要保留log文件的日期范围集合 * @return list<'fileName+yyyy-MM-dd'> */ List<String> getMaxBackupIndexDates() { List<String> result = new ArrayList<String>(); if (maxBackupIndex > 0) { for (int i = 1; i <= maxBackupIndex; i++) { Calendar calendar = Calendar.getInstance(); calendar.setTime(now); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); // 注意MILLISECOND,毫秒也要置0...否则错了也找不出来的 calendar.add(Calendar.DATE, -i); result.add(sdf.format(calendar.getTime())); } } return result; } public int getMaxBackupIndex() { return maxBackupIndex; } public void setMaxBackupIndex(int maxBackupIndex) { this.maxBackupIndex = maxBackupIndex; } public String getDatePattern() { return datePattern; } }
9cab3cb118a3c651bc4f109244585dd1e9801727
476c028ad11c119a85ed3b5ae084a9a92d7abc6e
/docroot/WEB-INF/service/net/zylk/liferay/portal/model/SubscriptorCategory.java
26823e1761d2ea12660e4f2d88fcac7e22919397
[]
no_license
PolitAktiv/newslettter-fork
d5d054022e1e82e875772491b5e953ff6b816b6d
e8bf3f061a389e60a535a24ef21673abd133f4f7
refs/heads/master
2021-01-19T14:23:51.414685
2017-08-23T14:00:22
2017-08-23T14:00:22
88,156,908
1
0
null
null
null
null
UTF-8
Java
false
false
864
java
package net.zylk.liferay.portal.model; import com.liferay.portal.model.PersistedModel; /** * The extended model interface for the SubscriptorCategory service. Represents a row in the &quot;ZN_SubscriptorCategory&quot; database table, with each column mapped to a property of this class. * * @author zylk.net * @see SubscriptorCategoryModel * @see net.zylk.liferay.portal.model.impl.SubscriptorCategoryImpl * @see net.zylk.liferay.portal.model.impl.SubscriptorCategoryModelImpl * @generated */ public interface SubscriptorCategory extends SubscriptorCategoryModel, PersistedModel { /* * NOTE FOR DEVELOPERS: * * Never modify this interface directly. Add methods to {@link net.zylk.liferay.portal.model.impl.SubscriptorCategoryImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. */ }
930ae50bf603b1d5446ddc9f8152429392b22270
60282a55340d75325bb96e95e86381a12d66c006
/src/main/java/io/webfolder/cdp/type/debugger/Scope.java
462fb8d73ce81c8a0c89354643565388458b1fd6
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Billesper/cdp4j
f7aee808f5d1833d83b113bd63f2ed61cbb3abb9
d94a69195b4e8874f42e30dc69b97b61dade4015
refs/heads/master
2022-11-25T16:23:51.822342
2020-08-03T18:34:41
2020-08-03T18:34:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,958
java
/** * cdp4j Commercial License * * Copyright 2017, 2020 WebFolder OÜ * * Permission is hereby granted, to "____" obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, modify, merge, * publish, distribute and sublicense of the Software, and to permit persons to whom * the Software is furnished to do so, subject to the following conditions: * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package io.webfolder.cdp.type.debugger; import io.webfolder.cdp.type.constant.ScopeType; import io.webfolder.cdp.type.runtime.RemoteObject; /** * Scope description */ public class Scope { private ScopeType type; private RemoteObject object; private String name; private Location startLocation; private Location endLocation; /** * Scope type. */ public ScopeType getType() { return type; } /** * Scope type. */ public void setType(ScopeType type) { this.type = type; } /** * Object representing the scope. For global and with scopes it represents the actual * object; for the rest of the scopes, it is artificial transient object enumerating scope * variables as its properties. */ public RemoteObject getObject() { return object; } /** * Object representing the scope. For global and with scopes it represents the actual * object; for the rest of the scopes, it is artificial transient object enumerating scope * variables as its properties. */ public void setObject(RemoteObject object) { this.object = object; } public String getName() { return name; } public void setName(String name) { this.name = name; } /** * Location in the source code where scope starts */ public Location getStartLocation() { return startLocation; } /** * Location in the source code where scope starts */ public void setStartLocation(Location startLocation) { this.startLocation = startLocation; } /** * Location in the source code where scope ends */ public Location getEndLocation() { return endLocation; } /** * Location in the source code where scope ends */ public void setEndLocation(Location endLocation) { this.endLocation = endLocation; } }
b8e89b6c68780376fbacce6c4d302d4ade7d09eb
19f887cc2586d12f4cd4a4a5b6c560be13ae5148
/src/main/java/com/bitbus/fantasyprep/lineup/LineupOptimizationService.java
e2fe2c883d801a4ad3cd614adb49099a1e598008
[]
no_license
jayprock/fantasy-prep
f87427a5c8bd1bf9c76fe482b07e3b1cd2c1f7a6
7bb33c33ab32dfeba12f4df091a235d8a7b04a82
refs/heads/master
2021-09-22T11:20:15.797886
2018-09-09T10:37:07
2018-09-09T10:37:07
148,013,257
0
0
null
null
null
null
UTF-8
Java
false
false
26,802
java
package com.bitbus.fantasyprep.lineup; import java.util.ArrayList; import java.util.List; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.bitbus.fantasyprep.league.League; import com.bitbus.fantasyprep.league.LeagueSettings; import com.bitbus.fantasyprep.league.LeagueSettingsService; import com.bitbus.fantasyprep.player.Player; import com.bitbus.fantasyprep.player.PlayerProjectedPoints; import com.bitbus.fantasyprep.player.PlayerService; @Service public class LineupOptimizationService { @Autowired private LeagueSettingsService leagueSettingsService; @Autowired private PlayerService playerService; @Transactional public Lineup optimize(League league, int maxStarterSalary) { LeagueSettings settings = leagueSettingsService.find(league); System.out.println(settings); List<Player> allPlayers = playerService.findAll(); allPlayers.sort((p1, p2) -> { PlayerProjectedPoints projPoints1 = p1.getProjection().getPointProjections().get(0); PlayerProjectedPoints projPoints2 = p2.getProjection().getPointProjections().get(0); return Double.valueOf(projPoints2.getProjectedPoints()) .compareTo(Double.valueOf(projPoints1.getProjectedPoints())); }); List<Player> quarterbacks = new ArrayList<>(); List<Player> runningBacks = new ArrayList<>(); List<Player> wideReceivers = new ArrayList<>(); List<Player> tightEnds = new ArrayList<>(); for (Player player : allPlayers) { switch (player.getPosition()) { case QB: quarterbacks.add(player); break; case RB: runningBacks.add(player); break; case WR: wideReceivers.add(player); break; case TE: tightEnds.add(player); break; default: break; } } Lineup optimalLineup = new Lineup(); qbLoop: for (Player qb1 : quarterbacks) { Lineup lineup = new Lineup(); lineup.setQb1(qb1); { double maxProjectedPointsLeft = getMaxProjectedPoints(runningBacks.get(0), runningBacks.get(1), wideReceivers.get(0), wideReceivers.get(1), tightEnds.get(0), runningBacks.get(2), wideReceivers.get(2)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break qbLoop; } } rb1Loop: for (int rb1Index = 0; rb1Index < runningBacks.size() - 2; rb1Index++) { Player rb1 = runningBacks.get(rb1Index); lineup.setRb1(rb1); lineup.setRb2(null); lineup.setWr1(null); lineup.setWr2(null); lineup.setTe1(null); lineup.setFlex(null); { double maxProjectedPointsLeft = getMaxProjectedPoints(runningBacks.get(rb1Index + 1), wideReceivers.get(0), wideReceivers.get(1), tightEnds.get(0), runningBacks.get(rb1Index + 2), wideReceivers.get(2)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break rb1Loop; } } rb2Loop: for (int rb2Index = rb1Index + 1; rb2Index < runningBacks.size() - 1; rb2Index++) { Player rb2 = runningBacks.get(rb2Index); lineup.setRb2(rb2); lineup.setWr1(null); lineup.setWr2(null); lineup.setTe1(null); lineup.setFlex(null); { double maxProjectedPointsLeft = getMaxProjectedPoints(wideReceivers.get(0), wideReceivers.get(1), tightEnds.get(0), runningBacks.get(rb2Index + 1), wideReceivers.get(2)); if (optimalLineup .getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break rb2Loop; } } wr1Loop: for (int wr1Index = 0; wr1Index < wideReceivers.size() - 2; wr1Index++) { Player wr1 = wideReceivers.get(wr1Index); lineup.setWr1(wr1); lineup.setWr2(null); lineup.setTe1(null); lineup.setFlex(null); if (lineup.getTotalSalary() > maxStarterSalary - 3) { continue wr1Loop; } { double maxProjectedPointsLeft = getMaxProjectedPoints(wideReceivers.get(wr1Index + 1), tightEnds.get(0), runningBacks.get(rb2Index + 1), wideReceivers.get(wr1Index + 2)); if (optimalLineup .getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break wr1Loop; } } wr2Loop: for (int wr2Index = wr1Index + 1; wr2Index < wideReceivers.size() - 1; wr2Index++) { Player wr2 = wideReceivers.get(wr2Index); lineup.setWr2(wr2); lineup.setTe1(null); lineup.setFlex(null); if (lineup.getTotalSalary() > maxStarterSalary - 2) { continue wr2Loop; } { double maxProjectedPointsLeft = getMaxProjectedPoints(tightEnds.get(0), runningBacks.get(rb2Index + 1), wideReceivers.get(wr2Index + 1)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break wr2Loop; } } te1Loop: for (int te1Index = 0; te1Index < tightEnds.size(); te1Index++) { Player te1 = tightEnds.get(te1Index); lineup.setTe1(te1); lineup.setFlex(null); if (lineup.getTotalSalary() > maxStarterSalary - 1) { continue te1Loop; } { double maxProjectedPointsLeft = getMaxProjectedPoints( runningBacks.get(rb2Index + 1), wideReceivers.get(wr2Index + 1)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break te1Loop; } } flexRbLoop: for (int flexRbIndex = rb2Index + 1; flexRbIndex < runningBacks .size(); flexRbIndex++) { Player flex = runningBacks.get(flexRbIndex); lineup.setFlex(flex); if (lineup.getTotalSalary() > maxStarterSalary) { continue flexRbLoop; } if (lineup.getProjectedPoints() > optimalLineup.getProjectedPoints()) { optimalLineup.setQb1(qb1); optimalLineup.setWr1(wr1); optimalLineup.setWr2(wr2); optimalLineup.setRb1(rb1); optimalLineup.setRb2(rb2); optimalLineup.setTe1(te1); optimalLineup.setFlex(flex); // optimalLineup.prettyPrint(); } break flexRbLoop; } flexWrLoop: for (int flexWrIndex = wr2Index + 1; flexWrIndex < wideReceivers .size(); flexWrIndex++) { Player flex = wideReceivers.get(flexWrIndex); lineup.setFlex(flex); if (lineup.getTotalSalary() > maxStarterSalary) { continue flexWrLoop; } if (lineup.getProjectedPoints() > optimalLineup.getProjectedPoints()) { optimalLineup.setQb1(qb1); optimalLineup.setWr1(wr1); optimalLineup.setWr2(wr2); optimalLineup.setRb1(rb1); optimalLineup.setRb2(rb2); optimalLineup.setTe1(te1); optimalLineup.setFlex(flex); // optimalLineup.prettyPrint(); } break flexWrLoop; } // flexWr } // te } // wr2 } // wr1 } // rb2 } // rb1 } // qb return optimalLineup; } public Lineup optimizeUsingPlayerSalary(League league, int maxStarterSalary, Player playerWithCustomSalary) { List<Player> allPlayers = playerService.findAllFetchChildren(); for (Player player : allPlayers) { if (player.getPlayerId() == playerWithCustomSalary.getPlayerId()) { player.getPlayerAuctions().get(0).setAuctionValue(playerWithCustomSalary.getAuctionCost()); } } allPlayers.sort((p1, p2) -> { PlayerProjectedPoints projPoints1 = p1.getProjection().getPointProjections().get(0); PlayerProjectedPoints projPoints2 = p2.getProjection().getPointProjections().get(0); return Double.valueOf(projPoints2.getProjectedPoints()) .compareTo(Double.valueOf(projPoints1.getProjectedPoints())); }); List<Player> quarterbacks = new ArrayList<>(); List<Player> runningBacks = new ArrayList<>(); List<Player> wideReceivers = new ArrayList<>(); List<Player> tightEnds = new ArrayList<>(); for (Player player : allPlayers) { switch (player.getPosition()) { case QB: quarterbacks.add(player); break; case RB: runningBacks.add(player); break; case WR: wideReceivers.add(player); break; case TE: tightEnds.add(player); break; default: break; } } Lineup optimalLineup = new Lineup(); qbLoop: for (Player qb1 : quarterbacks) { Lineup lineup = new Lineup(); lineup.setQb1(qb1); { double maxProjectedPointsLeft = getMaxProjectedPoints(runningBacks.get(0), runningBacks.get(1), wideReceivers.get(0), wideReceivers.get(1), tightEnds.get(0), runningBacks.get(2), wideReceivers.get(2)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break qbLoop; } } rb1Loop: for (int rb1Index = 0; rb1Index < runningBacks.size() - 2; rb1Index++) { Player rb1 = runningBacks.get(rb1Index); lineup.setRb1(rb1); lineup.setRb2(null); lineup.setWr1(null); lineup.setWr2(null); lineup.setTe1(null); lineup.setFlex(null); { double maxProjectedPointsLeft = getMaxProjectedPoints(runningBacks.get(rb1Index + 1), wideReceivers.get(0), wideReceivers.get(1), tightEnds.get(0), runningBacks.get(rb1Index + 2), wideReceivers.get(2)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break rb1Loop; } } rb2Loop: for (int rb2Index = rb1Index + 1; rb2Index < runningBacks.size() - 1; rb2Index++) { Player rb2 = runningBacks.get(rb2Index); lineup.setRb2(rb2); lineup.setWr1(null); lineup.setWr2(null); lineup.setTe1(null); lineup.setFlex(null); { double maxProjectedPointsLeft = getMaxProjectedPoints(wideReceivers.get(0), wideReceivers.get(1), tightEnds.get(0), runningBacks.get(rb2Index + 1), wideReceivers.get(2)); if (optimalLineup .getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break rb2Loop; } } wr1Loop: for (int wr1Index = 0; wr1Index < wideReceivers.size() - 2; wr1Index++) { Player wr1 = wideReceivers.get(wr1Index); lineup.setWr1(wr1); lineup.setWr2(null); lineup.setTe1(null); lineup.setFlex(null); if (lineup.getTotalSalary() > maxStarterSalary - 3) { continue wr1Loop; } { double maxProjectedPointsLeft = getMaxProjectedPoints(wideReceivers.get(wr1Index + 1), tightEnds.get(0), runningBacks.get(rb2Index + 1), wideReceivers.get(wr1Index + 2)); if (optimalLineup .getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break wr1Loop; } } wr2Loop: for (int wr2Index = wr1Index + 1; wr2Index < wideReceivers.size() - 1; wr2Index++) { Player wr2 = wideReceivers.get(wr2Index); lineup.setWr2(wr2); lineup.setTe1(null); lineup.setFlex(null); if (lineup.getTotalSalary() > maxStarterSalary - 2) { continue wr2Loop; } { double maxProjectedPointsLeft = getMaxProjectedPoints(tightEnds.get(0), runningBacks.get(rb2Index + 1), wideReceivers.get(wr2Index + 1)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break wr2Loop; } } te1Loop: for (int te1Index = 0; te1Index < tightEnds.size(); te1Index++) { Player te1 = tightEnds.get(te1Index); lineup.setTe1(te1); lineup.setFlex(null); if (lineup.getTotalSalary() > maxStarterSalary - 1) { continue te1Loop; } { double maxProjectedPointsLeft = getMaxProjectedPoints( runningBacks.get(rb2Index + 1), wideReceivers.get(wr2Index + 1)); if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { break te1Loop; } } flexRbLoop: for (int flexRbIndex = rb2Index + 1; flexRbIndex < runningBacks .size(); flexRbIndex++) { Player flex = runningBacks.get(flexRbIndex); lineup.setFlex(flex); if (lineup.getTotalSalary() > maxStarterSalary) { continue flexRbLoop; } if (lineup.getProjectedPoints() > optimalLineup.getProjectedPoints()) { optimalLineup.setQb1(qb1); optimalLineup.setWr1(wr1); optimalLineup.setWr2(wr2); optimalLineup.setRb1(rb1); optimalLineup.setRb2(rb2); optimalLineup.setTe1(te1); optimalLineup.setFlex(flex); // optimalLineup.prettyPrint(); } break flexRbLoop; } flexWrLoop: for (int flexWrIndex = wr2Index + 1; flexWrIndex < wideReceivers .size(); flexWrIndex++) { Player flex = wideReceivers.get(flexWrIndex); lineup.setFlex(flex); if (lineup.getTotalSalary() > maxStarterSalary) { continue flexWrLoop; } if (lineup.getProjectedPoints() > optimalLineup.getProjectedPoints()) { optimalLineup.setQb1(qb1); optimalLineup.setWr1(wr1); optimalLineup.setWr2(wr2); optimalLineup.setRb1(rb1); optimalLineup.setRb2(rb2); optimalLineup.setTe1(te1); optimalLineup.setFlex(flex); // optimalLineup.prettyPrint(); } break flexWrLoop; } // flexWr } // te } // wr2 } // wr1 } // rb2 } // rb1 } // qb return optimalLineup; } // @Transactional // public Lineup optimizeAroundRb(League league, int maxStarterSalary, Player lockedPlayer) { // if (lockedPlayer.getPosition() != Position.RB) { // throw new RuntimeException("Unexpected lock player position"); // } // List<Player> allPlayers = playerService.findAll(); // allPlayers.sort((p1, p2) -> { // PlayerProjectedPoints projPoints1 = p1.getProjection().getPointProjections().get(0); // PlayerProjectedPoints projPoints2 = p2.getProjection().getPointProjections().get(0); // return Double.valueOf(projPoints2.getProjectedPoints()) // .compareTo(Double.valueOf(projPoints1.getProjectedPoints())); // }); // List<Player> quarterbacks = new ArrayList<>(); // List<Player> runningBacks = new ArrayList<>(); // List<Player> wideReceivers = new ArrayList<>(); // List<Player> tightEnds = new ArrayList<>(); // for (Player player : allPlayers) { // switch (player.getPosition()) { // case QB: // quarterbacks.add(player); // break; // case RB: // runningBacks.add(player); // break; // case WR: // wideReceivers.add(player); // break; // case TE: // tightEnds.add(player); // break; // default: // break; // } // } // // Lineup optimalLineup = new Lineup(); // qbLoop: for (Player qb1 : quarterbacks) { // Lineup lineup = new Lineup(); // lineup.setQb1(qb1); // lineup.setRb1(lockedPlayer); // { // double maxProjectedPointsLeft = // getMaxProjectedPoints(runningBacks.get(0), runningBacks.get(1), wideReceivers.get(0), // wideReceivers.get(1), tightEnds.get(0), runningBacks.get(2), wideReceivers.get(2)); // if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + // maxProjectedPointsLeft)) { // break qbLoop; // } // } // rbLoop: for (int rbIndex = 0; rbIndex < runningBacks.size() - 2; rbIndex++) { // Player rb2 = runningBacks.get(rbIndex); // Player nextRb = runningBacks.get(rbIndex + 1); // if (rb2.getPlayerId() == lockedPlayer.getPlayerId()) { // continue rbLoop; // } else if (nextRb.getPlayerId() == lockedPlayer.getPlayerId()) { // nextRb = runningBacks.get(rbIndex + 2); // } // lineup.setRb2(rb2); // lineup.setWr1(null); // lineup.setWr2(null); // lineup.setTe1(null); // lineup.setFlex(null); // { // double maxProjectedPointsLeft = getMaxProjectedPoints(wideReceivers.get(0), // wideReceivers.get(1), // tightEnds.get(0), nextRb, wideReceivers.get(2)); // if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() + // maxProjectedPointsLeft)) { // break rbLoop; // } // } // wr1Loop: for (int wr1Index = 0; wr1Index < wideReceivers.size() - 2; wr1Index++) { // Player wr1 = wideReceivers.get(wr1Index); // lineup.setWr1(wr1); // lineup.setWr2(null); // lineup.setTe1(null); // lineup.setFlex(null); // if (lineup.getTotalSalary() > maxStarterSalary - 3) { // continue wr1Loop; // } // { // double maxProjectedPointsLeft = getMaxProjectedPoints(wideReceivers.get(wr1Index + 1), // tightEnds.get(0), nextRb, wideReceivers.get(wr1Index + 2)); // if (optimalLineup // .getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { // break wr1Loop; // } // } // wr2Loop: for (int wr2Index = wr1Index + 1; wr2Index < wideReceivers.size() - 1; wr2Index++) { // Player wr2 = wideReceivers.get(wr2Index); // lineup.setWr2(wr2); // lineup.setTe1(null); // lineup.setFlex(null); // if (lineup.getTotalSalary() > maxStarterSalary - 2) { // continue wr2Loop; // } // { // double maxProjectedPointsLeft = // getMaxProjectedPoints(tightEnds.get(0), nextRb, wideReceivers.get(wr2Index + 1)); // if (optimalLineup // .getProjectedPoints() >= (lineup.getProjectedPoints() + maxProjectedPointsLeft)) { // break wr2Loop; // } // } // te1Loop: for (int te1Index = 0; te1Index < tightEnds.size(); te1Index++) { // Player te1 = tightEnds.get(te1Index); // lineup.setTe1(te1); // lineup.setFlex(null); // if (lineup.getTotalSalary() > maxStarterSalary - 1) { // continue te1Loop; // } // { // double maxProjectedPointsLeft = // getMaxProjectedPoints(nextRb, wideReceivers.get(wr2Index + 1)); // if (optimalLineup.getProjectedPoints() >= (lineup.getProjectedPoints() // + maxProjectedPointsLeft)) { // break te1Loop; // } // } // flexRbLoop: for (int flexRbIndex = rbIndex + 1; flexRbIndex < runningBacks // .size(); flexRbIndex++) { // Player flex = runningBacks.get(flexRbIndex); // if (flex.getPlayerId() == lockedPlayer.getPlayerId()) { // continue flexRbLoop; // } // lineup.setFlex(flex); // if (lineup.getTotalSalary() > maxStarterSalary) { // continue flexRbLoop; // } // if (lineup.getProjectedPoints() > optimalLineup.getProjectedPoints()) { // optimalLineup.setQb1(qb1); // optimalLineup.setWr1(wr1); // optimalLineup.setWr2(wr2); // optimalLineup.setRb1(lockedPlayer); // optimalLineup.setRb2(rb2); // optimalLineup.setTe1(te1); // optimalLineup.setFlex(flex); // optimalLineup.prettyPrint(); // } // break flexRbLoop; // } // } // flexWrLoop: for (int flexWrIndex = wr2Index + 1; flexWrIndex < wideReceivers // .size(); flexWrIndex++) { // Player flex = wideReceivers.get(flexWrIndex); // lineup.setFlex(flex); // if (lineup.getTotalSalary() > maxStarterSalary) { // continue flexWrLoop; // } // if (lineup.getProjectedPoints() > optimalLineup.getProjectedPoints()) { // optimalLineup.setQb1(qb1); // optimalLineup.setWr1(wr1); // optimalLineup.setWr2(wr2); // optimalLineup.setRb1(lockedPlayer); // optimalLineup.setRb2(rb2); // optimalLineup.setTe1(te1); // optimalLineup.setFlex(flex); // optimalLineup.prettyPrint(); // } // break flexWrLoop; // } // flexWr // } // te // } // wr2 // } // wr1 // } // rb2 // } // qb // return optimalLineup; // // } private double getMaxProjectedPoints(Player... players) { double max = 0; for (int i = 0; i < players.length - 2; i++) { max += players[i].getProjectedPoints(); } max += Math.max(players[players.length - 1].getProjectedPoints(), players[players.length - 2].getProjectedPoints()); return max; } }
15733d3bd88c20610eb7f1c1ea9997966f9ddacb
53beb95e200a6d6825f80a89ccbf4398d7a0ade9
/src/main/java/com/csharp/bikerental/persistence/model/TwoWheel/Bike.java
cf06aedb26948d6d08001772e6a83cbb948133e3
[]
no_license
conorH22/bike-rental
63b53ea4acb301a8b59e1c25fef70e87695fdc29
fcc4137af757e38663e6c82783936bcbd89e7b7f
refs/heads/master
2020-04-24T21:14:27.199508
2019-04-19T07:38:24
2019-04-19T07:38:24
172,271,222
0
0
null
2019-04-19T07:38:25
2019-02-23T22:31:54
Java
UTF-8
Java
false
false
1,505
java
package com.csharp.bikerental.persistence.model.TwoWheel; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Bike extends TwoWheel { @Id @GeneratedValue(strategy = GenerationType.AUTO) private String id; private Boolean seat; private Boolean lights; private String Speedometer; private String twoWheelType = "Bike"; public Bike(String twoWheelType) { this.twoWheelType = twoWheelType; } public Bike(){} //region Getters and Setters @Override public String getTwoWheelType() { return twoWheelType; } @Override public void setTwoWheelType(String twoWheelType) { this.twoWheelType = twoWheelType; } @Override public void select() { System.out.println("Bike"); } @Override public String getId() { return id; } public void setId(String id) { this.id = id; } @Override public Boolean getSeat() { return seat; } public void setSeat(Boolean seat) { this.seat = seat; } public Boolean getLights() { return lights; } public void setLights(Boolean lights) { this.lights = lights; } @Override public String getSpeedometer() { return Speedometer; } public void setSpeedometer(String speedometer) { Speedometer = speedometer; } }
d4217e47d7c340433f3b45504a4a7e89bc139276
594909074c1af66e02d883f892eb788a02315665
/xmdl.core/src/org/xmdl/core/templates/ui/web/decorator/Application01.java
211dd99f2fa92cf65c09e68332e18900571f06c0
[]
no_license
GArlington/xmdl
8d23fab821f061f34e4fbcc9151ec33af466eb40
812a3d22a7182398be94c05e80839e85d7889917
refs/heads/master
2016-08-12T22:54:32.937489
2008-11-27T16:27:28
2008-11-27T16:27:28
52,354,136
0
0
null
null
null
null
UTF-8
Java
false
false
565
java
package org.xmdl.core.templates.ui.web.decorator; import org.xmdl.xgen.*; import org.xmdl.xmdl.XProject; import org.xmdl.core.templates.ui.web.decorator.impl.Application01Impl; public class Application01 extends Application01Impl implements TemplateConfiguration{ public String targetFile(Object object) { StringBuffer buffer = new StringBuffer("web/"); buffer.append("decorators/application01.jsp"); return buffer.toString(); } public boolean accept(Object object) { return (object instanceof XProject); } }
[ "hakandilek@4326f340-9937-0410-85f0-7193a15cbf30" ]
hakandilek@4326f340-9937-0410-85f0-7193a15cbf30
5f0ce719e6d7a89ff10fb8779da1b87b5236ac3e
d5e67541765f6ea3782ec2b75be2a5416cb35cc3
/L23-noSQL/redis-demo/src/main/java/ru/otus/redisdemo/model/Phone.java
0b434858ffa9a63345bc0c6c53c52b0beda9d7a9
[ "MIT" ]
permissive
petrelevich/otus_java_2020_06
53ddbf0fd96fa1fe17df289766447a239869a819
432ffe13dc58466c7845b268b024c4f0df5caaeb
refs/heads/master
2023-01-09T09:42:55.653183
2020-11-09T22:18:15
2020-11-09T22:18:15
275,573,565
3
17
MIT
2020-08-02T17:07:47
2020-06-28T11:47:40
Java
UTF-8
Java
false
false
322
java
package ru.otus.redisdemo.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.UUID; @AllArgsConstructor @NoArgsConstructor @Data public class Phone { private String id; private String model; private String color; private String serialNumber; }
94d476fd4252a8b4988625cd8a13b2e533267996
94bdf8ccee118fac7bc3f269b95ee016ac30b8b8
/src/main/java/com/xujiang/childbodyguard/domain/po/ArticlePO.java
49c66154022f983d4a2a3c1115f2aff36ba8329c
[]
no_license
wxmaudio/child-bodyguard
49901092bcc6920f863e09c9070d68b062583743
48f81360999cee2c19e6706dccf5b027b078bcb4
refs/heads/master
2020-03-21T09:07:12.126849
2018-06-25T05:01:35
2018-06-25T05:01:35
138,383,372
0
0
null
null
null
null
UTF-8
Java
false
false
14,273
java
package com.xujiang.childbodyguard.domain.po; import java.util.Date; public class ArticlePO { /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.id * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private Long id; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.title * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private String title; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.author * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private String author; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.original_author * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private String originalAuthor; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.icon * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private String icon; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.write_type * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private Byte writeType; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.cat_id * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private Long catId; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.write_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private Date writeTime; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.update_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private Date updateTime; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.created_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private Date createdTime; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column t_article.url * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ private String url; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.id * * @return the value of t_article.id * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public Long getId() { return id; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.id * * @param id the value for t_article.id * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setId(Long id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.title * * @return the value of t_article.title * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public String getTitle() { return title; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.title * * @param title the value for t_article.title * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setTitle(String title) { this.title = title == null ? null : title.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.author * * @return the value of t_article.author * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public String getAuthor() { return author; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.author * * @param author the value for t_article.author * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setAuthor(String author) { this.author = author == null ? null : author.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.original_author * * @return the value of t_article.original_author * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public String getOriginalAuthor() { return originalAuthor; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.original_author * * @param originalAuthor the value for t_article.original_author * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setOriginalAuthor(String originalAuthor) { this.originalAuthor = originalAuthor == null ? null : originalAuthor.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.icon * * @return the value of t_article.icon * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public String getIcon() { return icon; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.icon * * @param icon the value for t_article.icon * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setIcon(String icon) { this.icon = icon == null ? null : icon.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.write_type * * @return the value of t_article.write_type * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public Byte getWriteType() { return writeType; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.write_type * * @param writeType the value for t_article.write_type * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setWriteType(Byte writeType) { this.writeType = writeType; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.cat_id * * @return the value of t_article.cat_id * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public Long getCatId() { return catId; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.cat_id * * @param catId the value for t_article.cat_id * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setCatId(Long catId) { this.catId = catId; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.write_time * * @return the value of t_article.write_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public Date getWriteTime() { return writeTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.write_time * * @param writeTime the value for t_article.write_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setWriteTime(Date writeTime) { this.writeTime = writeTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.update_time * * @return the value of t_article.update_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public Date getUpdateTime() { return updateTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.update_time * * @param updateTime the value for t_article.update_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.created_time * * @return the value of t_article.created_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public Date getCreatedTime() { return createdTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.created_time * * @param createdTime the value for t_article.created_time * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setCreatedTime(Date createdTime) { this.createdTime = createdTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_article.url * * @return the value of t_article.url * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public String getUrl() { return url; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column t_article.url * * @param url the value for t_article.url * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ public void setUrl(String url) { this.url = url == null ? null : url.trim(); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table t_article * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } ArticlePO other = (ArticlePO) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor())) && (this.getOriginalAuthor() == null ? other.getOriginalAuthor() == null : this.getOriginalAuthor().equals(other.getOriginalAuthor())) && (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon())) && (this.getWriteType() == null ? other.getWriteType() == null : this.getWriteType().equals(other.getWriteType())) && (this.getCatId() == null ? other.getCatId() == null : this.getCatId().equals(other.getCatId())) && (this.getWriteTime() == null ? other.getWriteTime() == null : this.getWriteTime().equals(other.getWriteTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl())); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table t_article * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode()); result = prime * result + ((getOriginalAuthor() == null) ? 0 : getOriginalAuthor().hashCode()); result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode()); result = prime * result + ((getWriteType() == null) ? 0 : getWriteType().hashCode()); result = prime * result + ((getCatId() == null) ? 0 : getCatId().hashCode()); result = prime * result + ((getWriteTime() == null) ? 0 : getWriteTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode()); return result; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table t_article * * @mbggenerated Sun Jun 24 19:54:09 CST 2018 */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", title=").append(title); sb.append(", author=").append(author); sb.append(", originalAuthor=").append(originalAuthor); sb.append(", icon=").append(icon); sb.append(", writeType=").append(writeType); sb.append(", catId=").append(catId); sb.append(", writeTime=").append(writeTime); sb.append(", updateTime=").append(updateTime); sb.append(", createdTime=").append(createdTime); sb.append(", url=").append(url); sb.append("]"); return sb.toString(); } }
9b9be74c3c110123316f54f44cc8dcffead80a3a
739ead93d140c47b0884feaa7006455fec711a4f
/app/src/main/java/com/developer/alienapps/networkingex/RetrofitAPI.java
46fc36057146730361cb67525ee0a2186d95e003
[]
no_license
Singhak/AndroidNetwrkEx
49f477378042ceb74765ea77f02730cc525e144c
0150a570adb5ea97c5d4eefc42453b06c9f24961
refs/heads/master
2021-07-08T02:07:09.932983
2017-09-29T17:31:13
2017-09-29T17:31:13
105,298,680
0
0
null
null
null
null
UTF-8
Java
false
false
284
java
package com.developer.alienapps.networkingex; import java.util.ArrayList; import retrofit2.Call; import retrofit2.http.GET; /** * Created by AMIT on 24-Sep-17. */ public interface RetrofitAPI { @GET("/repositories") Call<ArrayList<Repository>> retrieveRepositories(); }
996ed714af1f8dd06f2ebeaef38e33b83efe6229
aba8b18352b7b7eb42a9da32c1bc34b81e682e7e
/xiangmu/daima/src/main/java/com/jianz/degeapp/config/SpringWebConfig.java
2e60bd03f5d12af4d585574ff9d57a4a4a2d48b9
[]
no_license
degeapp/xiangqiankan
5bb0825f807e6f5540bb2c89e67a9b8bc7310f50
b7c5e7d275a5849b2484516a77b6cc6323ef64a7
refs/heads/master
2023-05-01T15:32:44.354749
2019-10-24T00:47:06
2019-10-24T00:47:06
217,179,272
2
0
null
2023-04-14T17:09:16
2019-10-24T00:40:39
JavaScript
UTF-8
Java
false
false
1,213
java
package com.jianz.degeapp.config; import javax.servlet.Filter; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.filter.DelegatingFilterProxy; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration public class SpringWebConfig implements WebMvcConfigurer{//web.xml //配置spring mvc 拦截器 @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new TimeAccessInterceptor()) .addPathPatterns("/user/doLogin"); } @Bean public FilterRegistrationBean<Filter> newFilterRegistrationBeand() { //创建过滤器注册器 FilterRegistrationBean<Filter> rBean= new FilterRegistrationBean<>(); //创建过滤器对象 DelegatingFilterProxy filterProxy= new DelegatingFilterProxy("shiroFilterFactory"); rBean.setFilter(filterProxy); //配置过滤器映射路径 rBean.addUrlPatterns("/*"); return rBean; } }
[ "Administrator@I91T1FM30VWNVX5" ]
Administrator@I91T1FM30VWNVX5
b8ec710a6c2cbf968cd937c714e909b0e96f42fb
e2a65861467a2c929d33bdd210bd01df77146c60
/QualCepJDBC/src/main/java/br/paulorjuniorp/jdbc/LogradouroDao.java
9bb5109fb203094b769ec32ea10a5eca78432c14
[]
no_license
paulorjuniorp/QualCep
969ba2e019ba360769a33109ae6f1b8e723059de
489c598be56d9200765d285ac05f9ce06a971cb1
refs/heads/master
2021-01-25T06:30:48.107973
2017-06-07T03:43:27
2017-06-07T03:43:27
93,585,966
0
0
null
null
null
null
UTF-8
Java
false
false
3,884
java
package br.paulorjuniorp.jdbc; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.mysql.jdbc.PreparedStatement; import br.paulorjuniorp.entidades.Logradouro; import br.paulorjuniorp.entidades.TiposLogradouro; public class LogradouroDao { private Connection connection; public LogradouroDao() { this.connection = new ConnectionFactory().getConnection(); } public void adiciona(Logradouro log) { String sql = "insert into logradouros " + "(id,cep,nome,id_tipo_logradouro,id_bairro)" + " values (?,?,?,?,?)"; try { PreparedStatement stmt = (PreparedStatement) connection .prepareStatement(sql); stmt.setLong(1, log.getId()); stmt.setString(2, log.getCep()); stmt.setString(3, log.getNome()); stmt.setLong(4, log.getTipoLogradouro().getId()); stmt.setLong(5, log.getBairro().getId()); stmt.execute(); stmt.close(); } catch (SQLException e) { throw new RuntimeException(e); } } public List<Logradouro> pegaTodos() { try { List<Logradouro> logs = new ArrayList<Logradouro>(); PreparedStatement stmt = (PreparedStatement) connection .prepareStatement("select * from logradouros"); ResultSet rs = stmt.executeQuery(); while (rs.next()) { Logradouro log = new Logradouro(); log.setId(rs.getLong("id")); log.setCep(rs.getString("cep")); log.setNome(rs.getString("nome")); log.getTipoLogradouro().setId(rs.getLong("id_tipo_logradouro")); log.getBairro().setId(rs.getLong("id_bairro")); logs.add(log); } rs.close(); stmt.close(); return logs; } catch (SQLException e) { throw new RuntimeException(e); } } public List<Logradouro> ordenadosPeloNome() { try { List<Logradouro> logs = new ArrayList<Logradouro>(); PreparedStatement stmt = (PreparedStatement) connection .prepareStatement("select * from logradouros order By nome"); ResultSet rs = stmt.executeQuery(); while (rs.next()) { Logradouro log = new Logradouro(); log.setId(rs.getLong("id")); log.setCep(rs.getString("cep")); log.setNome(rs.getString("nome")); log.getTipoLogradouro().setId(rs.getLong("id_tipo_logradouro")); log.getBairro().setId(rs.getLong("id_bairro")); logs.add(log); } rs.close(); stmt.close(); return logs; } catch (SQLException e) { throw new RuntimeException(e); } } public void altera(Logradouro log) { String sql = "update logradouros set cep=?, nome=?"; try { PreparedStatement stmt = (PreparedStatement) connection .prepareStatement(sql); stmt.setLong(1, log.getId()); stmt.setString(2, log.getCep()); stmt.setString(3, log.getNome()); stmt.execute(); stmt.close(); } catch (SQLException e) { throw new RuntimeException(e); } } public void remove(Logradouro log) { try { PreparedStatement stmt = (PreparedStatement) connection .prepareStatement("delete from logradouros where id=?"); stmt.setLong(1, log.getId()); stmt.execute(); stmt.close(); } catch (SQLException e) { throw new RuntimeException(e); } } public Logradouro buscaPorCep(String cep) { Logradouro log = new Logradouro(); try { PreparedStatement stmt = (PreparedStatement) connection.prepareStatement("select * from logradouros where id=?"); stmt.setString(1, cep); ResultSet rs = stmt.executeQuery(); if (rs.next()) { log.setId(rs.getLong("id")); log.setCep(rs.getString("cep")); log.setNome(rs.getString("nome")); log.getTipoLogradouro().setId(rs.getLong("id_tipo_logradouro")); log.getBairro().setId(rs.getLong("id_bairro")); } stmt.close(); return log; } catch (SQLException e) { throw new RuntimeException(e); } } }
36a8c40955e06d0aa57857b5ac2273c2bf3bfa5b
acd43c42c30fdb0ecf2954bd9fffb042a02e4190
/src/_9_inheritance/exe3/Employee.java
f0c78b5baa590442c6e9995978499d34d14660d8
[]
no_license
talgreen1/Basic-Java-Exercises-Solutions
27e49e5f419a6fbf97fb756aac109bbf7ba49a89
6c0914c60a8198127a4ecd56c057c9f389814313
refs/heads/master
2021-09-17T20:59:08.853705
2018-07-05T10:36:39
2018-07-05T10:36:39
110,505,453
0
0
null
null
null
null
UTF-8
Java
false
false
967
java
package _9_inheritance.exe3; public class Employee { ////////////////////////////////////// Members private String m_name; private int m_id; private int m_basicSalary; ////////////////////////////////////// Constructors public Employee() { m_name = ""; m_id = 0; m_basicSalary = 0; } public Employee(String name, int id, int basicSalary) { m_name = name; m_id = id; m_basicSalary = basicSalary; } ///////////////////////////////////// Getters & Setters public String getName() { return m_name; } public void setName(String name) { m_name = name; } public int getBasicSalary() { return m_basicSalary; } public void setBasicSalary(int basicSalary) { m_basicSalary = basicSalary; } public int getId() { return m_id; } /////////////////////////////////// Methods public int calcMonthlySalary() { return m_basicSalary; } public void WhoAmI() { System.out.println("I�m an employee"); } }
b17137042f9d2eb848028205f744a1603520eed3
cbaeffa0cab3b8cb849dd6348aa163042b037fb5
/Alpha/Early Code/Old Code/Processing/libraries/GameControlPlus/src/net/java/games/input/ButtonUsage.java
e5f035e2ee3a2da4747de40cd0fe6c17cb00c3cf
[]
no_license
k-sheridan/HighlyAutonomousAerialReconnaissanceRobot
208c7204db60bbe3500929cf3389cb2ba3db1d88
0798a73586c8191cf751f55c01a82f1e4673722e
refs/heads/master
2022-02-22T21:49:55.408031
2019-09-14T21:39:14
2019-09-14T21:39:14
68,154,334
7
6
null
null
null
null
UTF-8
Java
false
false
4,819
java
/* * %W% %E% * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /***************************************************************************** * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * - Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materails provided with the distribution. * * Neither the name Sun Microsystems, Inc. or the names of the contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * This software is provided "AS IS," without a warranty of any kind. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANT OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR * NON-INFRINGEMEN, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND * ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS * A RESULT OF USING, MODIFYING OR DESTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, * INCIDENTAL OR PUNITIVE DAMAGES. HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OUR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed or intended for us in * the design, construction, operation or maintenance of any nuclear facility * *****************************************************************************/ package net.java.games.input; import java.util.Map; import java.util.HashMap; /** Button Usages * @author elias * @version 1.0 */ final class ButtonUsage implements Usage { private final static Map map = new HashMap(); private final int button_id; public final static ButtonUsage map(int button_id) { Integer button_id_obj = new Integer(button_id); ButtonUsage existing = (ButtonUsage)map.get(button_id_obj); if (existing != null) return existing; ButtonUsage new_button = new ButtonUsage(button_id); map.put(button_id_obj, new_button); return new_button; } private ButtonUsage(int button_id) { this.button_id = button_id; } public final Component.Identifier.Button getIdentifier() { switch (button_id) { case 1: return Component.Identifier.Button._0; case 2: return Component.Identifier.Button._1; case 3: return Component.Identifier.Button._2; case 4: return Component.Identifier.Button._3; case 5: return Component.Identifier.Button._4; case 6: return Component.Identifier.Button._5; case 7: return Component.Identifier.Button._6; case 8: return Component.Identifier.Button._7; case 9: return Component.Identifier.Button._8; case 10: return Component.Identifier.Button._9; case 11: return Component.Identifier.Button._10; case 12: return Component.Identifier.Button._11; case 13: return Component.Identifier.Button._12; case 14: return Component.Identifier.Button._13; case 15: return Component.Identifier.Button._14; case 16: return Component.Identifier.Button._15; case 17: return Component.Identifier.Button._16; case 18: return Component.Identifier.Button._17; case 19: return Component.Identifier.Button._18; case 20: return Component.Identifier.Button._19; case 21: return Component.Identifier.Button._20; case 22: return Component.Identifier.Button._21; case 23: return Component.Identifier.Button._22; case 24: return Component.Identifier.Button._23; case 25: return Component.Identifier.Button._24; case 26: return Component.Identifier.Button._25; case 27: return Component.Identifier.Button._26; case 28: return Component.Identifier.Button._27; case 29: return Component.Identifier.Button._28; case 30: return Component.Identifier.Button._29; case 31: return Component.Identifier.Button._30; case 32: return Component.Identifier.Button._31; default: return null; } } public final String toString() { return "ButtonUsage (" + button_id + ")"; } }
ac0e2cf44e7ff410d543f17b20a38cb8a9cb4846
f54446a58be17e4ca9e5a75792b3419aa96b3e91
/2.JavaCore/src/com/javarush/task/task14/task1408/MoldovanHen.java
9cef8e8f0c1e407fbcf926388ad399567b964abe
[]
no_license
marinated32/JavaRushHomeWork
e6b7e30c25a6a5b06b99c5d3afaa84bdb5cb4bdb
99eca4042c3a095bca0ca07b50fa7d0e865cf171
refs/heads/master
2023-03-16T12:25:53.097989
2021-03-15T12:12:42
2021-03-15T12:12:42
328,926,360
0
0
null
2021-03-15T12:12:43
2021-01-12T08:54:29
Java
UTF-8
Java
false
false
427
java
package com.javarush.task.task14.task1408; public class MoldovanHen extends Hen { public int getCountOfEggsPerMonth() { return 10; } public String getDescription() { // String result = this.getDescription(); return String.format(super.getDescription() + " Моя страна - %s. Я несу %s яиц в месяц.", Country.MOLDOVA, this.getCountOfEggsPerMonth()); } }
2c2b4207b26180ddbc93575bf1601c7baec683c0
ac440385c6bebdcd569c8080a4faaed75238a27d
/src/main/java/com/mageshuo/trash/web/rest/AccountResource.java
818060f9e612f8683ef95c5b8bb04bf1003f4fba
[]
no_license
coolma0516/springbootdemo
5f1c892f59315d1bed1253bc234282dd15c43a7a
9999d438d1e0af1348d5573bdcc2b48d28d923f8
refs/heads/master
2022-07-23T22:45:13.639926
2019-07-24T06:37:32
2019-07-24T06:37:32
197,296,565
0
0
null
2022-07-07T10:59:38
2019-07-17T02:02:40
Java
UTF-8
Java
false
false
7,489
java
package com.mageshuo.trash.web.rest; import com.mageshuo.trash.domain.User; import com.mageshuo.trash.repository.UserRepository; import com.mageshuo.trash.security.SecurityUtils; import com.mageshuo.trash.service.MailService; import com.mageshuo.trash.service.UserService; import com.mageshuo.trash.service.dto.PasswordChangeDTO; import com.mageshuo.trash.service.dto.UserDTO; import com.mageshuo.trash.web.rest.errors.*; import com.mageshuo.trash.web.rest.vm.KeyAndPasswordVM; import com.mageshuo.trash.web.rest.vm.ManagedUserVM; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import java.util.*; /** * REST controller for managing the current user's account. */ @RestController @RequestMapping("/api") public class AccountResource { private static class AccountResourceException extends RuntimeException { private AccountResourceException(String message) { super(message); } } private final Logger log = LoggerFactory.getLogger(AccountResource.class); private final UserRepository userRepository; private final UserService userService; private final MailService mailService; public AccountResource(UserRepository userRepository, UserService userService, MailService mailService) { this.userRepository = userRepository; this.userService = userService; this.mailService = mailService; } /** * {@code POST /register} : register the user. * * @param managedUserVM the managed user View Model. * @throws InvalidPasswordException {@code 400 (Bad Request)} if the password is incorrect. * @throws EmailAlreadyUsedException {@code 400 (Bad Request)} if the email is already used. * @throws LoginAlreadyUsedException {@code 400 (Bad Request)} if the login is already used. */ @PostMapping("/register") @ResponseStatus(HttpStatus.CREATED) public void registerAccount(@Valid @RequestBody ManagedUserVM managedUserVM) { if (!checkPasswordLength(managedUserVM.getPassword())) { throw new InvalidPasswordException(); } User user = userService.registerUser(managedUserVM, managedUserVM.getPassword()); mailService.sendActivationEmail(user); } /** * {@code GET /activate} : activate the registered user. * * @param key the activation key. * @throws RuntimeException {@code 500 (Internal Server Error)} if the user couldn't be activated. */ @GetMapping("/activate") public void activateAccount(@RequestParam(value = "key") String key) { Optional<User> user = userService.activateRegistration(key); if (!user.isPresent()) { throw new AccountResourceException("No user was found for this activation key"); } } /** * {@code GET /authenticate} : check if the user is authenticated, and return its login. * * @param request the HTTP request. * @return the login if the user is authenticated. */ @GetMapping("/authenticate") public String isAuthenticated(HttpServletRequest request) { log.debug("REST request to check if the current user is authenticated"); return request.getRemoteUser(); } /** * {@code GET /account} : get the current user. * * @return the current user. * @throws RuntimeException {@code 500 (Internal Server Error)} if the user couldn't be returned. */ @GetMapping("/account") public UserDTO getAccount() { return userService.getUserWithAuthorities() .map(UserDTO::new) .orElseThrow(() -> new AccountResourceException("User could not be found")); } /** * {@code POST /account} : update the current user information. * * @param userDTO the current user information. * @throws EmailAlreadyUsedException {@code 400 (Bad Request)} if the email is already used. * @throws RuntimeException {@code 500 (Internal Server Error)} if the user login wasn't found. */ @PostMapping("/account") public void saveAccount(@Valid @RequestBody UserDTO userDTO) { String userLogin = SecurityUtils.getCurrentUserLogin().orElseThrow(() -> new AccountResourceException("Current user login not found")); Optional<User> existingUser = userRepository.findOneByEmailIgnoreCase(userDTO.getEmail()); if (existingUser.isPresent() && (!existingUser.get().getLogin().equalsIgnoreCase(userLogin))) { throw new EmailAlreadyUsedException(); } Optional<User> user = userRepository.findOneByLogin(userLogin); if (!user.isPresent()) { throw new AccountResourceException("User could not be found"); } userService.updateUser(userDTO.getFirstName(), userDTO.getLastName(), userDTO.getEmail(), userDTO.getLangKey(), userDTO.getImageUrl()); } /** * {@code POST /account/change-password} : changes the current user's password. * * @param passwordChangeDto current and new password. * @throws InvalidPasswordException {@code 400 (Bad Request)} if the new password is incorrect. */ @PostMapping(path = "/account/change-password") public void changePassword(@RequestBody PasswordChangeDTO passwordChangeDto) { if (!checkPasswordLength(passwordChangeDto.getNewPassword())) { throw new InvalidPasswordException(); } userService.changePassword(passwordChangeDto.getCurrentPassword(), passwordChangeDto.getNewPassword()); } /** * {@code POST /account/reset-password/init} : Send an email to reset the password of the user. * * @param mail the mail of the user. * @throws EmailNotFoundException {@code 400 (Bad Request)} if the email address is not registered. */ @PostMapping(path = "/account/reset-password/init") public void requestPasswordReset(@RequestBody String mail) { mailService.sendPasswordResetMail( userService.requestPasswordReset(mail) .orElseThrow(EmailNotFoundException::new) ); } /** * {@code POST /account/reset-password/finish} : Finish to reset the password of the user. * * @param keyAndPassword the generated key and the new password. * @throws InvalidPasswordException {@code 400 (Bad Request)} if the password is incorrect. * @throws RuntimeException {@code 500 (Internal Server Error)} if the password could not be reset. */ @PostMapping(path = "/account/reset-password/finish") public void finishPasswordReset(@RequestBody KeyAndPasswordVM keyAndPassword) { if (!checkPasswordLength(keyAndPassword.getNewPassword())) { throw new InvalidPasswordException(); } Optional<User> user = userService.completePasswordReset(keyAndPassword.getNewPassword(), keyAndPassword.getKey()); if (!user.isPresent()) { throw new AccountResourceException("No user was found for this reset key"); } } private static boolean checkPasswordLength(String password) { return !StringUtils.isEmpty(password) && password.length() >= ManagedUserVM.PASSWORD_MIN_LENGTH && password.length() <= ManagedUserVM.PASSWORD_MAX_LENGTH; } }
6689cada9c332313c5e9a9e2682eeedc7ba1a9c2
66928879f97ec4fc0d6d36b8189e498b4a43d6d7
/app/src/main/java/com/fishflying/org/GameOverActivity.java
934f14b9965370ad442799f718daa7deaa1ac155
[]
no_license
mjmaurya/FishFlying
cc789ea58e39f8858eaa8a3a5794b1b8230755f6
15a88d2c2912c1fdd922bb60520b91030117e3a7
refs/heads/master
2020-09-10T16:15:39.443086
2019-11-14T07:15:17
2019-11-14T07:15:17
221,755,268
1
0
null
null
null
null
UTF-8
Java
false
false
965
java
package com.fishflying.org; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class GameOverActivity extends AppCompatActivity { Button button; TextView displayScore; String Score; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game_over); button=findViewById(R.id.button); displayScore=findViewById(R.id.textView3); Score=getIntent().getExtras().get("score").toString(); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(GameOverActivity.this,MainActivity.class)); } }); displayScore.setText("Score :"+Score); } }
50e230590997f6dd3b81077b491581d3bfd1e07c
cc5b547f63340ddce2e0f9692b68b6fd3129389a
/springwithxml/src/main/java/com/olgun/dependency/injection/service/impl/GoodMorningServiceTurkishImpl.java
7c4404df74a10acf4881d1f8b06284c71e25b6f5
[]
no_license
olgunyldz/springwithxml
a5fb79c2f45638121aedb63411f99fb6f574f4b1
28a97194b7c7ede227dbf5b4a16cc69333190fea
refs/heads/master
2021-01-13T15:48:24.450382
2017-01-25T14:31:30
2017-01-25T14:31:30
80,022,011
0
0
null
null
null
null
UTF-8
Java
false
false
299
java
package com.olgun.dependency.injection.service.impl; import com.olgun.dependency.injection.service.GoodMorningService; public class GoodMorningServiceTurkishImpl implements GoodMorningService { @Override public String sayGoodMorning() { return "Good Morning in Turkish!!!"; } }
29610a5a2007a42f4c99309f286afd7fabf5150a
6b8db603f961fed816493303700daa4e79d2c24b
/ibmiotplatform-android-mqtt/app/src/androidTest/java/com/funers/ibmiotplatform_mqtt/ExampleInstrumentedTest.java
29be61b80746173706fe2a1da027f88a5c9afe85
[]
no_license
jihye-kim11/2021cns01
ba25ae2ca9c33b1d059f3d928deb2a7287e178a7
7000be91cb21cc9ea99220ca7e48ec765b63b015
refs/heads/master
2023-06-12T15:52:09.056018
2021-07-09T07:55:08
2021-07-09T07:55:08
383,349,421
1
0
null
null
null
null
UTF-8
Java
false
false
775
java
package com.funers.ibmiotplatform_mqtt; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.linkkit.aiot_android_demo", appContext.getPackageName()); } }
992e1f8ae2a885d264631688b97a9a7afa13c6f7
d0959c0d6547d70e6ada3938ce456def3d968d7d
/training/DominosPizza/DominosPizza/src/com/psl/main/Client.java
eca73dbfe5b19738e450f17e9fdd5095fa5aed91
[]
no_license
lokeshsarathe18/MPC-Persistent
7a279931ab8d2d83acf4c681ed1123b7ca5fe9c2
ecd769001043f6c598f88110fe651ed838a635dd
refs/heads/master
2022-12-02T02:58:14.200509
2020-08-10T07:42:37
2020-08-10T07:42:37
286,413,195
2
0
null
null
null
null
UTF-8
Java
false
false
1,096
java
package com.psl.main; import java.util.ArrayList; import java.util.List; import com.psl.bean.Dish; import com.psl.bean.Location; import com.psl.bean.Order; import com.psl.util.DominozPizzaDeliveryImpl; /* * @Author: Gandhali Inamdar */ public class Client { public static void main(String[] args) { List<Dish>dish=new ArrayList<Dish>(); List<Location>loc=new ArrayList<Location>(); List<Order>order=new ArrayList<Order>(); DominozPizzaDeliveryImpl dpd=new DominozPizzaDeliveryImpl(); try { dpd.populateData("dish.txt", "location.txt", dish, loc); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println(dish.toString()); System.out.println("\n"+loc.toString()+"\n"); dpd.calculateLocationForDistance(dish, loc); System.out.println("\n"+dish.toString()); order=dpd.calculateOrder("order.txt", dish, loc); System.out.println("\nOrders--\n"); System.out.println(order); System.out.println("\nOrders--(After availing free delivery if applicable)\n"); dpd.freeDelivery(order, dish, loc); } }
cb8cfe630745d97fbc3b92a6aca83c3103374d7f
3e2266f5ae213e8ee5f94a2dcd348ea5c579cdc3
/02-backend/spring-boot-ecommerce/src/main/java/com/xs2929/ecommerce/dao/ProductCategoryRepository.java
35d14d263310f72dfaba011f2e6815b4d81ae6b6
[]
no_license
XS2929/EcommerceApp
d81379a66da7ab6bef25357ca5773df5cf895cfa
fa4324d8c011c086632826f7fe39f5b737fd9ea1
refs/heads/master
2022-10-17T10:56:24.310230
2020-06-11T07:27:43
2020-06-11T07:27:43
270,903,526
0
0
null
null
null
null
UTF-8
Java
false
false
522
java
package com.xs2929.ecommerce.dao; import com.xs2929.ecommerce.entity.ProductCategory; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframework.web.bind.annotation.CrossOrigin; @CrossOrigin("http://localhost:4200") @RepositoryRestResource(collectionResourceRel = "productCategory", path = "product-category") public interface ProductCategoryRepository extends JpaRepository<ProductCategory, Long> { }
47fda8e8b705c2721b97b0b3a8f6fa81d20e81a6
dcf96d5ce172af2046a6a7e73b09aa379348757f
/itemlib/src/main/java/free/com/itemlib/RecyclerViewPagerAdapter.java
cca8ecc46c448917d83dbece4fad177c46c52d70
[]
no_license
free46000/itemlib
f2af502d476cb5b1587b5742b87ddf257609255a
b367792d15d0e65d4065476e3fd5c50f3bfc7a41
refs/heads/master
2020-05-21T22:29:36.227512
2017-01-26T03:32:25
2017-01-26T03:32:25
61,463,931
2
0
null
null
null
null
UTF-8
Java
false
false
3,391
java
package free.com.itemlib; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; public class RecyclerViewPagerAdapter<VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> { private final PagerRecyclerView mViewPager; RecyclerView.Adapter<VH> mAdapter; public RecyclerViewPagerAdapter(PagerRecyclerView viewPager, RecyclerView.Adapter<VH> adapter) { mAdapter = adapter; mViewPager = viewPager; setHasStableIds(mAdapter.hasStableIds()); } @Override public VH onCreateViewHolder(ViewGroup parent, int viewType) { return mAdapter.onCreateViewHolder(parent, viewType); } @Override public void registerAdapterDataObserver(RecyclerView.AdapterDataObserver observer) { super.registerAdapterDataObserver(observer); mAdapter.registerAdapterDataObserver(observer); } @Override public void unregisterAdapterDataObserver(RecyclerView.AdapterDataObserver observer) { super.unregisterAdapterDataObserver(observer); mAdapter.unregisterAdapterDataObserver(observer); } @Override public void onViewRecycled(VH holder) { super.onViewRecycled(holder); mAdapter.onViewRecycled(holder); } @Override public boolean onFailedToRecycleView(VH holder) { return mAdapter.onFailedToRecycleView(holder); } @Override public void onViewAttachedToWindow(VH holder) { super.onViewAttachedToWindow(holder); mAdapter.onViewAttachedToWindow(holder); } @Override public void onViewDetachedFromWindow(VH holder) { super.onViewDetachedFromWindow(holder); mAdapter.onViewDetachedFromWindow(holder); } @Override public void onAttachedToRecyclerView(RecyclerView recyclerView) { super.onAttachedToRecyclerView(recyclerView); mAdapter.onAttachedToRecyclerView(recyclerView); } @Override public void onDetachedFromRecyclerView(RecyclerView recyclerView) { super.onDetachedFromRecyclerView(recyclerView); mAdapter.onDetachedFromRecyclerView(recyclerView); } @Override public void onBindViewHolder(VH holder, int position) { mAdapter.onBindViewHolder(holder, position); final View itemView = holder.itemView; ViewGroup.LayoutParams lp; if (itemView.getLayoutParams() == null) { lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); } else { lp = itemView.getLayoutParams(); if (mViewPager.getLayoutManager().canScrollHorizontally()) { lp.width = ViewGroup.LayoutParams.MATCH_PARENT; } else { lp.height = ViewGroup.LayoutParams.MATCH_PARENT; } } itemView.setLayoutParams(lp); } @Override public void setHasStableIds(boolean hasStableIds) { super.setHasStableIds(hasStableIds); mAdapter.setHasStableIds(hasStableIds); } @Override public int getItemCount() { return mAdapter.getItemCount(); } @Override public int getItemViewType(int position) { return mAdapter.getItemViewType(position); } @Override public long getItemId(int position) { return mAdapter.getItemId(position); } }
90371f006441800763391d8cc9043b4ee157052d
c44f2f9fe32baef0e18d34f5d3f48c583111eb46
/src/Dr_Sideburns/SecretAgentMod/entity/EntityArchAgent.java
f7c47aa74d7ee6395023e4c3a5f42a80c1a606a1
[ "Apache-2.0" ]
permissive
Vecktor007/Secret-Agent-Craft-Minecraft-1.6.4
9f1469d6065e6b2ee4ea8f3203578a257f2e6e92
7576a5056d9838a976f4f193b106ca32f90cf896
refs/heads/master
2020-04-05T18:58:07.665234
2014-01-03T03:10:29
2014-01-03T03:10:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,900
java
package Dr_Sideburns.SecretAgentMod.entity; import java.util.Calendar; import Dr_Sideburns.SecretAgentMod.EntityBullet; import Dr_Sideburns.SecretAgentMod.EntityGoldenBullet; import Dr_Sideburns.SecretAgentMod.EntityOddjobsHat; import Dr_Sideburns.SecretAgentMod.EntityThrowableHat; import Dr_Sideburns.SecretAgentMod.secretAgentMod; import net.minecraft.block.Block; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingData; import net.minecraft.entity.EnumCreatureAttribute; import net.minecraft.entity.IRangedAttackMob; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIArrowAttack; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAIFleeSun; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.entity.projectile.EntityFireball; import net.minecraft.entity.projectile.EntityPotion; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraft.world.WorldProviderHell; public class EntityArchAgent extends EntityMob implements IRangedAttackMob { public EntityArchAgent(World par1World) { super(par1World); this.experienceValue = 50; this.tasks.addTask(1, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIArrowAttack(this, 1.25D, 60, 10.0F)); this.tasks.addTask(5, new EntityAIWander(this, 0.15D)); this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.tasks.addTask(6, new EntityAILookIdle(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); } protected boolean isAIEnabled() { return true; } public void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(120.0F); this.getEntityAttribute(SharedMonsterAttributes.followRange).setAttribute(80.0F); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(0.18D); } protected String getHurtSound() { return "mob.villager.hit"; } protected String getDeathSound() { return "mob.villager.death"; } protected void dropFewItems(boolean par1, int par2) { this.dropItem(secretAgentMod.goldenGun.itemID, 1); this.dropItem(secretAgentMod.goldenBullet.itemID, 8); } public void attackEntityWithRangedAttack(EntityLivingBase par1EntityLivingBase, float par2) { EntityGoldenBullet entitybullet = new EntityGoldenBullet(this.worldObj, this, 1.6F); this.playSound("mob.zombie.metal", 3.0F, 1.0F); this.playSound("random.explode", 0.5F, 1.0F); this.worldObj.spawnEntityInWorld(entitybullet); double d0 = par1EntityLivingBase.posX - this.posX; double d1 = par1EntityLivingBase.posY + (double)par1EntityLivingBase.getEyeHeight() - 1.100000023841858D - entitybullet.posY; double d2 = par1EntityLivingBase.posZ - this.posZ; float f1 = MathHelper.sqrt_double(d0 * d0 + d2 * d2) * 0.2F; entitybullet.setThrowableHeading(d0, d1 + (double)f1, d2, 1.6F, 12.0F); } }
c3f6a25d5c3178c50a750e70285139342df93fe0
1c53d5257ea7be9450919e6b9e0491944a93ba80
/merge-scenarios/dubbo/9af1f1a97-dubbo-config-dubbo-config-api-src-main-java-org-apache-dubbo-config-AbstractConfig/base.java
d56dc95e30259adbf3a953a70b5da7d6870ce5c1
[]
no_license
anonyFVer/mastery-material
89062928807a1f859e9e8b9a113b2d2d123dc3f1
db76ee571b84be5db2d245f3b593b29ebfaaf458
refs/heads/master
2023-03-16T13:13:49.798374
2021-02-26T04:19:19
2021-02-26T04:19:19
342,556,129
0
0
null
null
null
null
UTF-8
Java
false
false
20,404
java
package org.apache.dubbo.config; import org.apache.dubbo.common.Constants; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.ExtensionLoader; import org.apache.dubbo.common.logger.Logger; import org.apache.dubbo.common.logger.LoggerFactory; import org.apache.dubbo.common.utils.CollectionUtils; import org.apache.dubbo.common.utils.ConfigUtils; import org.apache.dubbo.common.utils.ReflectUtils; import org.apache.dubbo.common.utils.StringUtils; import org.apache.dubbo.config.support.Parameter; import java.io.Serializable; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.HashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; public abstract class AbstractConfig implements Serializable { protected static final Logger logger = LoggerFactory.getLogger(AbstractConfig.class); private static final long serialVersionUID = 4267533505537413570L; private static final int MAX_LENGTH = 200; private static final int MAX_PATH_LENGTH = 200; private static final Pattern PATTERN_NAME = Pattern.compile("[\\-._0-9a-zA-Z]+"); private static final Pattern PATTERN_MULTI_NAME = Pattern.compile("[,\\-._0-9a-zA-Z]+"); private static final Pattern PATTERN_METHOD_NAME = Pattern.compile("[a-zA-Z][0-9a-zA-Z]*"); private static final Pattern PATTERN_PATH = Pattern.compile("[/\\-$._0-9a-zA-Z]+"); private static final Pattern PATTERN_NAME_HAS_SYMBOL = Pattern.compile("[:*,/\\-._0-9a-zA-Z]+"); private static final Pattern PATTERN_KEY = Pattern.compile("[*,\\-._0-9a-zA-Z]+"); private static final Map<String, String> legacyProperties = new HashMap<String, String>(); private static final String[] SUFFIXES = new String[] { "Config", "Bean" }; static { legacyProperties.put("dubbo.protocol.name", "dubbo.service.protocol"); legacyProperties.put("dubbo.protocol.host", "dubbo.service.server.host"); legacyProperties.put("dubbo.protocol.port", "dubbo.service.server.port"); legacyProperties.put("dubbo.protocol.threads", "dubbo.service.max.thread.pool.size"); legacyProperties.put("dubbo.consumer.timeout", "dubbo.service.invoke.timeout"); legacyProperties.put("dubbo.consumer.retries", "dubbo.service.max.retry.providers"); legacyProperties.put("dubbo.consumer.check", "dubbo.service.allow.no.provider"); legacyProperties.put("dubbo.service.url", "dubbo.service.address"); Runtime.getRuntime().addShutdownHook(DubboShutdownHook.getDubboShutdownHook()); } protected String id; private static String convertLegacyValue(String key, String value) { if (value != null && value.length() > 0) { if ("dubbo.service.max.retry.providers".equals(key)) { return String.valueOf(Integer.parseInt(value) - 1); } else if ("dubbo.service.allow.no.provider".equals(key)) { return String.valueOf(!Boolean.parseBoolean(value)); } } return value; } protected static void appendProperties(AbstractConfig config) { if (config == null) { return; } String prefix = "dubbo." + getTagName(config.getClass()) + "."; Method[] methods = config.getClass().getMethods(); for (Method method : methods) { try { String name = method.getName(); if (name.length() > 3 && name.startsWith("set") && Modifier.isPublic(method.getModifiers()) && method.getParameterTypes().length == 1 && isPrimitive(method.getParameterTypes()[0])) { String property = StringUtils.camelToSplitName(name.substring(3, 4).toLowerCase() + name.substring(4), "."); String value = null; if (config.getId() != null && config.getId().length() > 0) { String pn = prefix + config.getId() + "." + property; value = System.getProperty(pn); if (!StringUtils.isBlank(value)) { logger.info("Use System Property " + pn + " to config dubbo"); } } if (value == null || value.length() == 0) { String pn = prefix + property; value = System.getProperty(pn); if (!StringUtils.isBlank(value)) { logger.info("Use System Property " + pn + " to config dubbo"); } } if (value == null || value.length() == 0) { Method getter; try { getter = config.getClass().getMethod("get" + name.substring(3)); } catch (NoSuchMethodException e) { try { getter = config.getClass().getMethod("is" + name.substring(3)); } catch (NoSuchMethodException e2) { getter = null; } } if (getter != null) { if (getter.invoke(config) == null) { if (config.getId() != null && config.getId().length() > 0) { value = ConfigUtils.getProperty(prefix + config.getId() + "." + property); } if (value == null || value.length() == 0) { value = ConfigUtils.getProperty(prefix + property); } if (value == null || value.length() == 0) { String legacyKey = legacyProperties.get(prefix + property); if (legacyKey != null && legacyKey.length() > 0) { value = convertLegacyValue(legacyKey, ConfigUtils.getProperty(legacyKey)); } } } } } if (value != null && value.length() > 0) { method.invoke(config, convertPrimitive(method.getParameterTypes()[0], value)); } } } catch (Exception e) { logger.error(e.getMessage(), e); } } } private static String getTagName(Class<?> cls) { String tag = cls.getSimpleName(); for (String suffix : SUFFIXES) { if (tag.endsWith(suffix)) { tag = tag.substring(0, tag.length() - suffix.length()); break; } } tag = tag.toLowerCase(); return tag; } protected static void appendParameters(Map<String, String> parameters, Object config) { appendParameters(parameters, config, null); } @SuppressWarnings("unchecked") protected static void appendParameters(Map<String, String> parameters, Object config, String prefix) { if (config == null) { return; } Method[] methods = config.getClass().getMethods(); for (Method method : methods) { try { String name = method.getName(); if ((name.startsWith("get") || name.startsWith("is")) && !"getClass".equals(name) && Modifier.isPublic(method.getModifiers()) && method.getParameterTypes().length == 0 && isPrimitive(method.getReturnType())) { Parameter parameter = method.getAnnotation(Parameter.class); if (method.getReturnType() == Object.class || parameter != null && parameter.excluded()) { continue; } int i = name.startsWith("get") ? 3 : 2; String prop = StringUtils.camelToSplitName(name.substring(i, i + 1).toLowerCase() + name.substring(i + 1), "."); String key; if (parameter != null && parameter.key().length() > 0) { key = parameter.key(); } else { key = prop; } Object value = method.invoke(config); String str = String.valueOf(value).trim(); if (value != null && str.length() > 0) { if (parameter != null && parameter.escaped()) { str = URL.encode(str); } if (parameter != null && parameter.append()) { String pre = parameters.get(Constants.DEFAULT_KEY + "." + key); if (pre != null && pre.length() > 0) { str = pre + "," + str; } pre = parameters.get(key); if (pre != null && pre.length() > 0) { str = pre + "," + str; } } if (prefix != null && prefix.length() > 0) { key = prefix + "." + key; } parameters.put(key, str); } else if (parameter != null && parameter.required()) { throw new IllegalStateException(config.getClass().getSimpleName() + "." + key + " == null"); } } else if ("getParameters".equals(name) && Modifier.isPublic(method.getModifiers()) && method.getParameterTypes().length == 0 && method.getReturnType() == Map.class) { Map<String, String> map = (Map<String, String>) method.invoke(config, new Object[0]); if (map != null && map.size() > 0) { String pre = (prefix != null && prefix.length() > 0 ? prefix + "." : ""); for (Map.Entry<String, String> entry : map.entrySet()) { parameters.put(pre + entry.getKey().replace('-', '.'), entry.getValue()); } } } } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } } } protected static void appendAttributes(Map<Object, Object> parameters, Object config) { appendAttributes(parameters, config, null); } protected static void appendAttributes(Map<Object, Object> parameters, Object config, String prefix) { if (config == null) { return; } Method[] methods = config.getClass().getMethods(); for (Method method : methods) { try { String name = method.getName(); if ((name.startsWith("get") || name.startsWith("is")) && !"getClass".equals(name) && Modifier.isPublic(method.getModifiers()) && method.getParameterTypes().length == 0 && isPrimitive(method.getReturnType())) { Parameter parameter = method.getAnnotation(Parameter.class); if (parameter == null || !parameter.attribute()) continue; String key; if (parameter.key().length() > 0) { key = parameter.key(); } else { int i = name.startsWith("get") ? 3 : 2; key = name.substring(i, i + 1).toLowerCase() + name.substring(i + 1); } Object value = method.invoke(config); if (value != null) { if (prefix != null && prefix.length() > 0) { key = prefix + "." + key; } parameters.put(key, value); } } } catch (Exception e) { throw new IllegalStateException(e.getMessage(), e); } } } private static boolean isPrimitive(Class<?> type) { return type.isPrimitive() || type == String.class || type == Character.class || type == Boolean.class || type == Byte.class || type == Short.class || type == Integer.class || type == Long.class || type == Float.class || type == Double.class || type == Object.class; } private static Object convertPrimitive(Class<?> type, String value) { if (type == char.class || type == Character.class) { return value.length() > 0 ? value.charAt(0) : '\0'; } else if (type == boolean.class || type == Boolean.class) { return Boolean.valueOf(value); } else if (type == byte.class || type == Byte.class) { return Byte.valueOf(value); } else if (type == short.class || type == Short.class) { return Short.valueOf(value); } else if (type == int.class || type == Integer.class) { return Integer.valueOf(value); } else if (type == long.class || type == Long.class) { return Long.valueOf(value); } else if (type == float.class || type == Float.class) { return Float.valueOf(value); } else if (type == double.class || type == Double.class) { return Double.valueOf(value); } return value; } protected static void checkExtension(Class<?> type, String property, String value) { checkName(property, value); if (value != null && value.length() > 0 && !ExtensionLoader.getExtensionLoader(type).hasExtension(value)) { throw new IllegalStateException("No such extension " + value + " for " + property + "/" + type.getName()); } } protected static void checkMultiExtension(Class<?> type, String property, String value) { checkMultiName(property, value); if (value != null && value.length() > 0) { String[] values = value.split("\\s*[,]+\\s*"); for (String v : values) { if (v.startsWith(Constants.REMOVE_VALUE_PREFIX)) { v = v.substring(1); } if (Constants.DEFAULT_KEY.equals(v)) { continue; } if (!ExtensionLoader.getExtensionLoader(type).hasExtension(v)) { throw new IllegalStateException("No such extension " + v + " for " + property + "/" + type.getName()); } } } } protected static void checkLength(String property, String value) { checkProperty(property, value, MAX_LENGTH, null); } protected static void checkPathLength(String property, String value) { checkProperty(property, value, MAX_PATH_LENGTH, null); } protected static void checkName(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_NAME); } protected static void checkNameHasSymbol(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_NAME_HAS_SYMBOL); } protected static void checkKey(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_KEY); } protected static void checkMultiName(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_MULTI_NAME); } protected static void checkPathName(String property, String value) { checkProperty(property, value, MAX_PATH_LENGTH, PATTERN_PATH); } protected static void checkMethodName(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_METHOD_NAME); } protected static void checkParameterName(Map<String, String> parameters) { if (parameters == null || parameters.size() == 0) { return; } for (Map.Entry<String, String> entry : parameters.entrySet()) { checkNameHasSymbol(entry.getKey(), entry.getValue()); } } protected static void checkProperty(String property, String value, int maxlength, Pattern pattern) { if (value == null || value.length() == 0) { return; } if (value.length() > maxlength) { throw new IllegalStateException("Invalid " + property + "=\"" + value + "\" is longer than " + maxlength); } if (pattern != null) { Matcher matcher = pattern.matcher(value); if (!matcher.matches()) { throw new IllegalStateException("Invalid " + property + "=\"" + value + "\" contains illegal " + "character, only digit, letter, '-', '_' or '.' is legal."); } } } @Parameter(excluded = true) public String getId() { return id; } public void setId(String id) { this.id = id; } protected void appendAnnotation(Class<?> annotationClass, Object annotation) { Method[] methods = annotationClass.getMethods(); for (Method method : methods) { if (method.getDeclaringClass() != Object.class && method.getReturnType() != void.class && method.getParameterTypes().length == 0 && Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { try { String property = method.getName(); if ("interfaceClass".equals(property) || "interfaceName".equals(property)) { property = "interface"; } String setter = "set" + property.substring(0, 1).toUpperCase() + property.substring(1); Object value = method.invoke(annotation); if (value != null && !value.equals(method.getDefaultValue())) { Class<?> parameterType = ReflectUtils.getBoxedClass(method.getReturnType()); if ("filter".equals(property) || "listener".equals(property)) { parameterType = String.class; value = StringUtils.join((String[]) value, ","); } else if ("parameters".equals(property)) { parameterType = Map.class; value = CollectionUtils.toStringMap((String[]) value); } try { Method setterMethod = getClass().getMethod(setter, parameterType); setterMethod.invoke(this, value); } catch (NoSuchMethodException e) { } } } catch (Throwable e) { logger.error(e.getMessage(), e); } } } } @Override public String toString() { try { StringBuilder buf = new StringBuilder(); buf.append("<dubbo:"); buf.append(getTagName(getClass())); Method[] methods = getClass().getMethods(); for (Method method : methods) { try { String name = method.getName(); if ((name.startsWith("get") || name.startsWith("is")) && !"getClass".equals(name) && !"get".equals(name) && !"is".equals(name) && Modifier.isPublic(method.getModifiers()) && method.getParameterTypes().length == 0 && isPrimitive(method.getReturnType())) { int i = name.startsWith("get") ? 3 : 2; String key = name.substring(i, i + 1).toLowerCase() + name.substring(i + 1); Object value = method.invoke(this); if (value != null) { buf.append(" "); buf.append(key); buf.append("=\""); buf.append(value); buf.append("\""); } } } catch (Exception e) { logger.warn(e.getMessage(), e); } } buf.append(" />"); return buf.toString(); } catch (Throwable t) { logger.warn(t.getMessage(), t); return super.toString(); } } }
2c5220befbaa9c91dbeea348943d0e3255c4ba04
15d66d1eaf6274acbe7f46b81b778f004466937d
/CalcularMedia/app/src/main/java/br/com/calcularmedia/MediaActivity.java
f2dc9b706b1630612cae48f6cdfb51553fc8c4ca
[]
no_license
Tinuthas/MediaEnem
e24d5d3f1564d2639b9fcda480989b7e088248b7
d61cfa4925f41db45ae75a8d2395116aa217b6e2
refs/heads/master
2020-04-28T18:58:12.455670
2019-03-13T20:43:49
2019-03-13T20:43:49
175,495,665
0
0
null
null
null
null
UTF-8
Java
false
false
892
java
package br.com.calcularmedia; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MediaActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_media); Intent intent = getIntent(); String media = intent.getStringExtra("media"); TextView resultadoMedia = findViewById(R.id.txtMedia); resultadoMedia.setText(media); Button btnVoltar = findViewById(R.id.btn_voltar); btnVoltar.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); } }