Searched defs:pattern (Results 1 - 25 of 92) sorted by relevance

1234

/openjdk7/jdk/test/java/rmi/server/RMISocketFactory/useSocketFactory/unicast/
H A DEchoImpl.java33 private static final byte[] pattern = { (byte) 'A' }; field in class:EchoImpl
37 new MultiSocketFactory.ClientFactory(protocol, pattern),
38 new MultiSocketFactory.ServerFactory(protocol, pattern));
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/tools/jcore/
H A DNameFilter.java35 this(System.getProperty("sun.jvm.hotspot.tools.jcore.NameFilter.pattern"));
38 public NameFilter(String pattern) { argument
39 if (pattern == null) pattern = "*";
40 includePattern = Pattern.compile(pattern);
H A DPackageNameFilter.java39 public PackageNameFilter(String pattern) { argument
41 StringTokenizer st = new StringTokenizer(pattern, ",");
/openjdk7/jdk/test/java/text/Format/DateFormat/
H A DBug4396385.java64 private static void test(String pattern, String src) { argument
65 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.US);
68 System.out.printf("parse: \"%s\" with \"%s\"", src, pattern);
/openjdk7/jdk/src/share/classes/java/util/regex/
H A DPatternSyntaxException.java33 * regular-expression pattern.
46 private final String pattern; field in class:PatternSyntaxException
56 * The erroneous pattern
59 * The approximate index in the pattern of the error,
64 this.pattern = regex;
71 * @return The approximate index in the pattern of the error,
88 * Retrieves the erroneous regular-expression pattern.
90 * @return The erroneous pattern
93 return pattern;
102 * error and its index, the erroneous regular-expression pattern, an
[all...]
/openjdk7/jdk/src/share/classes/javax/management/
H A DMatchQueryExp.java48 * @serial The pattern to be matched
50 private String pattern; field in class:MatchQueryExp
61 * the specified pattern StringValueExp.
65 pattern = s.getValue();
77 * Returns the pattern of the query.
80 return pattern;
105 return wildmatch(((StringValueExp)val).getValue(), pattern);
112 return exp + " like " + new StringValueExp(pattern);
116 * Tests whether string s is matched by pattern p.
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/jxc/
H A DNGCCRuntimeEx.java91 Pattern pattern = Pattern.compile(regex);
92 includeRegexList.add(pattern);
111 Pattern pattern = Pattern.compile(regex);
112 excludeRegexList.add(pattern);
119 * This will tokenize the pattern and convert it into a regular expression
120 * @param pattern
122 private String convertToRegex(String pattern) { argument
125 if (pattern.length() >0 ) {
127 for ( int i = 0 ; i < pattern.length(); i ++ ) {
128 char c = pattern
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/
H A DDDefine.java54 private DPattern pattern; field in class:DDefine
63 return pattern;
72 public void setPattern(DPattern pattern) { argument
73 this.pattern = pattern;
78 * Gets the name of the pattern block.
86 nullable = pattern.isNullable()?Boolean.TRUE:Boolean.FALSE;
/openjdk7/jdk/test/java/nio/file/PathMatcher/
H A DBasic.java35 static void match(String name, String pattern, boolean expectedToMatch) { argument
36 System.out.format("%s -> %s", name, pattern);
39 .getPathMatcher("glob:" + pattern).matches(file);
52 static void assertMatch(String path, String pattern) { argument
53 match(path, pattern, true);
56 static void assertNotMatch(String path, String pattern) { argument
57 match(path, pattern, false);
60 static void assertBadPattern(String path, String pattern) { argument
61 System.out.format("Compile bad pattern %s\t", pattern);
71 assertRegExMatch(String path, String pattern) argument
[all...]
/openjdk7/jdk/test/sun/security/util/Resources/
H A DNewResourcesNames.java245 * Rewrites a file using a pattern. The name string should be right after
246 * the pattern. Note: pattern ignores whitespaces. Returns names found.
248 private static Set<String> rewriteFile(String file, String pattern) argument
254 int plen = pattern.length();
262 String phead = pattern.substring(0, plen-2);
264 // The non-whitespace chars read since, used to check for pattern
289 history.substring(hlen-plen, hlen).equals(pattern)) {
/openjdk7/jdk/test/java/rmi/server/RMISocketFactory/useSocketFactory/activatable/
H A DEchoImpl.java36 private static final byte[] pattern = { (byte) 'A' }; field in class:EchoImpl
45 new MultiSocketFactory.ClientFactory(protocol, pattern),
46 new MultiSocketFactory.ServerFactory(protocol, pattern));
56 new MultiSocketFactory.ClientFactory(getProtocol(obj), pattern),
57 new MultiSocketFactory.ServerFactory(getProtocol(obj), pattern));
/openjdk7/jdk/test/java/util/PluggableLocale/
H A DCurrencyNameProviderTest.java105 final String pattern = "###,###\u00A4"; field in class:CurrencyNameProviderTest
116 df = new DecimalFormat(pattern, DecimalFormatSymbols.getInstance(OSAKA));
126 df = new DecimalFormat(pattern, DecimalFormatSymbols.getInstance());
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/
H A DFooDateFormat.java35 public FooDateFormat(String pattern, Locale loc) { argument
36 sdf = new SimpleDateFormat(pattern, loc);
H A DFooNumberFormat.java34 public FooNumberFormat(String pattern, DecimalFormatSymbols dfs) { argument
35 df = new DecimalFormat(pattern, dfs);
/openjdk7/jdk/test/javax/management/remote/mandatory/notif/
H A DNotificationBufferTest.java439 final ObjectName pattern,
444 if (pattern.apply(source)) {
438 makeFilter(final Integer id, final ObjectName pattern, final NotificationFilter filter) argument
/openjdk7/jdk/test/sun/management/jmxremote/startstop/
H A DJMXStartStopTest.java63 public static int listMBeans(MBeanServerConnection server, ObjectName pattern, QueryExp query) argument
66 Set names = server.queryNames(pattern,query);
105 ObjectName pattern = new ObjectName("java.lang:type=Memory,*");
107 int count = listMBeans(conn,pattern,null);
109 throw new Exception("Expected at least one matching "+ "MBean for "+pattern);
152 ObjectName pattern = new ObjectName("java.lang:type=Memory,*");
154 int count = listMBeans(conn,pattern,null);
156 throw new Exception("Expected at least one matching "+ "MBean for "+pattern);
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/logging/
H A DHttpLogFormatter.java39 private static volatile Pattern pattern = null; field in class:HttpLogFormatter
44 if (pattern == null) {
45 pattern = Pattern.compile("\\{[^\\}]*\\}");
64 Matcher match = pattern.matcher(src);
/openjdk7/corba/src/share/classes/org/omg/CORBA/
H A DContext.java72 * A context property name pattern is either a property name
74 * name pattern without a trailing "*" is said to match only
75 * itself. A property name pattern of the form "&lt;name&gt;*" matches any
205 * pattern. This method allows for wildcard searches,
229 * @param pattern the property name whose values are to
230 * be retrieved. <code>pattern</code> may be a
237 * name pattern
243 String pattern);
242 get_values(String start_scope, int op_flags, String pattern) argument
/openjdk7/jdk/src/share/classes/java/sql/
H A DBlob.java50 * determining the position of a pattern of bytes within a
115 * <code>pattern</code> begins within the <code>BLOB</code>
117 * search for <code>pattern</code> begins at position
120 * @param pattern the byte array for which to search
123 * @return the position at which the pattern appears, else -1
130 long position(byte pattern[], long start) throws SQLException; argument
135 * <code>pattern</code> begins. The search begins at position
138 * @param pattern the <code>Blob</code> object designating
142 * @return the position at which the pattern begins, else -1
149 long position(Blob pattern, lon argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/
H A DJJavaName.java197 private final Pattern pattern; field in class:JJavaName.Entry
200 public Entry(String pattern, String replacement) { argument
201 this.pattern = Pattern.compile(pattern,Pattern.CASE_INSENSITIVE);
206 Matcher m = pattern.matcher(word);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/
H A DJAXWSUtils.java117 * part of the target must match the local part of the 'pattern'
120 public static boolean matchQNames(QName target, QName pattern) { argument
121 if ((target == null) || (pattern == null)) {
125 if (pattern.getNamespaceURI().equals(target.getNamespaceURI())) {
126 String regex = pattern.getLocalPart().replaceAll("\\*", ".*");
/openjdk7/jdk/test/com/sun/jdi/sde/
H A DFilterMangleTest.java66 static String pattern; field in class:FilterMangleTest
79 // this is a pattern to test
83 pattern = args[0].substring(5);
90 pattern = "Mangle.java";
93 pattern = "Mangle.java";
172 cpReq.addSourceNameFilter(pattern);
191 "onion.pickle.Mangle, pattern = " + pattern);
196 "onion.pickle.Mangle, pattern = " + pattern);
[all...]
/openjdk7/jdk/test/demo/jvmti/
H A DDemoRun.java63 /* Check to see if a pattern is inside the output. */
64 boolean contains(String pattern) { argument
66 return str.contains(pattern);
227 /* Does the pattern appear in the output of this process */
228 public boolean output_contains(String pattern) argument
230 return output.contains(pattern) || error.contains(pattern);
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltStrings.java147 * @param pattern The string to be used as pattern
151 public static String padding(double length, String pattern) argument
153 if (pattern == null || pattern.length() == 0)
162 if (index == pattern.length())
165 sb.append(pattern.charAt(index));
185 * The first argument is the string to be split. The second argument is a pattern
187 * this pattern. For example:
198 * @param pattern Th
202 split(String str, String pattern) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/regex/
H A DBMPattern.java32 char[] pattern; field in class:BMPattern
41 this.pattern = pat.toCharArray();
45 int length = pattern.length;
50 char ch = this.pattern[i];
70 * @return -1 if <var>iterator</var> does not contain this pattern.
74 int plength = this.pattern.length;
82 if ((ch = iterator.setIndex(--index)) != this.pattern[--pindex])
95 * @return -1 if <var>str</var> does not contain this pattern.
99 int plength = this.pattern.length;
108 if ((ch = str.charAt(--index)) != this.pattern[
[all...]

Completed in 150 milliseconds

1234