1 /* |
1 /* |
2 * reserved comment block |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT REMOVE OR ALTER! |
3 * @LastModified: Oct 2017 |
4 */ |
4 */ |
|
5 /* |
|
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
|
7 * contributor license agreements. See the NOTICE file distributed with |
|
8 * this work for additional information regarding copyright ownership. |
|
9 * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
10 * (the "License"); you may not use this file except in compliance with |
|
11 * the License. You may obtain a copy of the License at |
|
12 * |
|
13 * http://www.apache.org/licenses/LICENSE-2.0 |
|
14 * |
|
15 * Unless required by applicable law or agreed to in writing, software |
|
16 * distributed under the License is distributed on an "AS IS" BASIS, |
|
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
18 * See the License for the specific language governing permissions and |
|
19 * limitations under the License. |
|
20 */ |
|
21 |
5 package com.sun.org.apache.bcel.internal.util; |
22 package com.sun.org.apache.bcel.internal.util; |
6 |
23 |
|
24 import com.sun.org.apache.bcel.internal.Const; |
|
25 import com.sun.org.apache.bcel.internal.generic.ClassGenException; |
|
26 import com.sun.org.apache.bcel.internal.generic.InstructionHandle; |
|
27 import com.sun.org.apache.bcel.internal.generic.InstructionList; |
7 import java.util.ArrayList; |
28 import java.util.ArrayList; |
8 import java.util.HashMap; |
29 import java.util.HashMap; |
9 import java.util.Iterator; |
30 import java.util.Iterator; |
10 import java.util.List; |
31 import java.util.List; |
11 import java.util.Locale; |
32 import java.util.Locale; |
12 import java.util.Map; |
33 import java.util.Map; |
13 import java.util.regex.Matcher; |
34 import java.util.regex.Matcher; |
14 import java.util.regex.Pattern; |
35 import java.util.regex.Pattern; |
15 |
|
16 import com.sun.org.apache.bcel.internal.Const; |
|
17 import com.sun.org.apache.bcel.internal.generic.ClassGenException; |
|
18 import com.sun.org.apache.bcel.internal.generic.InstructionHandle; |
|
19 import com.sun.org.apache.bcel.internal.generic.InstructionList; |
|
20 |
36 |
21 /** |
37 /** |
22 * InstructionFinder is a tool to search for given instructions patterns, i.e., |
38 * InstructionFinder is a tool to search for given instructions patterns, i.e., |
23 * match sequences of instructions in an instruction list via regular |
39 * match sequences of instructions in an instruction list via regular |
24 * expressions. This can be used, e.g., in order to implement a peep hole |
40 * expressions. This can be used, e.g., in order to implement a peep hole |