21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 * or visit www.oracle.com if you need additional information or have any |
22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 /* |
25 /* |
26 * Copyright (C) 2004-2011 |
26 * Copyright (C) 2004-2012 |
27 * |
27 * |
28 * Permission is hereby granted, free of charge, to any person obtaining a copy |
28 * Permission is hereby granted, free of charge, to any person obtaining a copy |
29 * of this software and associated documentation files (the "Software"), to deal |
29 * of this software and associated documentation files (the "Software"), to deal |
30 * in the Software without restriction, including without limitation the rights |
30 * in the Software without restriction, including without limitation the rights |
31 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
31 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
80 return makePattern(null,loc,anno); |
80 return makePattern(null,loc,anno); |
81 } |
81 } |
82 |
82 |
83 public ParsedPattern makePattern(ParsedPattern except, Location loc, Annotations anno) throws BuildException { |
83 public ParsedPattern makePattern(ParsedPattern except, Location loc, Annotations anno) throws BuildException { |
84 p.except = (DPattern)except; |
84 p.except = (DPattern)except; |
85 if(anno!=null) |
85 if (anno!=null) { |
86 p.annotation = ((Annotation)anno).getResult(); |
86 p.annotation = ((Annotation)anno).getResult(); |
|
87 } |
87 return p; |
88 return p; |
88 } |
89 } |
89 } |
90 } |