Searched refs:template (Results 1 - 25 of 153) sorted by relevance

1234567

/openjdk10/langtools/test/tools/javac/classfiles/attributes/LineNumberTable/
H A DContainer.java33 * Source code template container. Contains methods for inserting one template inside another one and for generating
41 private String template; field in class:Container
44 Container(String template) { argument
45 this.template = template;
49 return template;
53 template = template.replace(SUB_TEMPLATE, container.getTemplate());
54 template
[all...]
/openjdk10/nashorn/test/script/basic/
H A DNASHORN-703a.js38 function template() { class
80 return new template();
88 var a = new template();
92 var a2 = [new template()];
104 var a5 = new template();
108 var a6 = [new template()];
H A DNASHORN-703.js38 function template() { class
72 return new template();
79 var a = new template();
83 var a2 = [new template()];
95 var a5 = new template();
99 var a6 = [new template()];
/openjdk10/jdk/src/java.base/share/classes/sun/security/util/
H A DHostnameChecker.java276 * Returns true if name matches against template.<p>
282 * The <code>template</code> parameter
285 private boolean isMatched(String name, String template, argument
287 if (hasIllegalWildcard(name, template, chainsToPublicCA)) {
291 // check the validity of the domain name template.
294 // the domain name template validity.
297 SNIHostName sni = new SNIHostName(template.replace('*', 'x'));
304 return matchAllWildcards(name, template);
306 return matchLeftmostWildcard(name, template);
313 * Returns true if the template contain
315 hasIllegalWildcard(String domain, String template, boolean chainsToPublicCA) argument
378 matchAllWildcards(String name, String template) argument
408 matchLeftmostWildcard(String name, String template) argument
438 matchWildCards(String name, String template) argument
[all...]
/openjdk10/nashorn/test/script/basic/es6/
H A Dtemplate-literals.js25 * JDK-8134941: Implement ES6 template literal support
31 function tag(template) {
32 return JSON.stringify([template, template.raw, Array.prototype.slice.call(arguments, 1)]);
/openjdk10/jdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/
H A DTemplateManager.java48 * The template manager is responsible for reading the attribute configuration
68 final Template template; field in class:TemplateManager.KeyAndTemplate
70 KeyAndTemplate(TemplateKey key, Template template) { argument
72 this.template = template;
76 // primitive templates contains the individual template configuration
80 // composite templates is a cache of the exact configuration template for
83 // primitive template entries. the result is then stored in this map
92 // add a template. Called by Config.
96 Template template
201 add(Template template) argument
[all...]
/openjdk10/langtools/test/tools/javac/classfiles/attributes/innerclasses/
H A DInnerClassesInLocalClassTest.java89 String template = CLASS_TEMPLATE.replace("%CLASS%", "class");
90 list.addAll(lambda(template));
91 list.addAll(constructor(template));
92 list.addAll(method(template,
95 list.addAll(staticAndInstanceInitializer(template));
100 String template = CLASS_TEMPLATE.replace("%CLASS%", "interface");
101 return method(template,
106 private List<TestCase> generate(String template, String prefix, String suffix) { argument
109 list.add(new TestCase(template.replace("%SOURCE%",
116 private List<TestCase> lambda(String template) { argument
120 constructor(String template) argument
129 method(String template, Modifier[] mods, Modifier[] otherMods) argument
143 staticAndInstanceInitializer(String template) argument
[all...]
/openjdk10/jdk/test/java/time/tck/java/time/temporal/serial/
H A DTCKValueRangeSerialization.java127 byte[] template = {
146 byte[] val = Arrays.copyOf(template, template.length);
157 val = Arrays.copyOf(template, template.length);
168 val = Arrays.copyOf(template, template.length);
H A DTCKWeekFieldsSerialization.java107 byte[] template = baos.toByteArray();
111 byte[] val = Arrays.copyOf(template, template.length);
122 val = Arrays.copyOf(template, template.length);
133 val = Arrays.copyOf(template, template.length);
144 val = Arrays.copyOf(template, 110);
/openjdk10/test/fmw/gtest/include/gtest/
H A Dgtest-printers.h131 template <typename T, TypeKind kTypeKind>
146 template <typename T>
158 template <typename T>
198 template <typename Char, typename CharTraits, typename T>
217 template <typename T>
257 // We define UniversalPrinter as a class template (as opposed to a
258 // function template), as we need to partially specialize it for
260 template <typename T>
263 template <typename T>
268 template <typenam
[all...]
H A Dgtest-message.h107 template <typename T>
114 template <typename T>
148 template <typename T>
202 // const T& and const T* in a function template. The Nokia compiler _can_
203 // decide between class template specializations for T and T*, so a
205 template <typename T>
213 template <typename T>
242 template <typename T>
/openjdk10/test/fmw/gtest/include/gtest/internal/
H A Dgtest-tuple.h44 // tuple template as a friend (it complains that tuple is redefined). This
52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
107 template <typename T0 = void, typename T1 = void, typename T2 = void,
118 template <typename T>
120 template <typename T>
128 template <typename T>
130 template <typename T>
137 template <int k> class Get;
141 template <bool kIndexValid, int kIndex, class Tuple>
144 template <GTEST_10_TYPENAMES
[all...]
H A Dgtest-linked_ptr.h83 // a non-template class because different types of linked_ptr<> can refer to
135 template <typename T>
146 template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); }
153 template <typename U> linked_ptr& operator=(linked_ptr<U> const& ptr) {
178 template <typename U>
182 template <typename U>
188 template <typename U>
203 template <typename U> void copy(linked_ptr<U> const* ptr) {
212 template<typename T> inline
217 template<typenam
[all...]
H A Dgtest-internal.h90 template <typename T>
202 // This template class represents an IEEE floating-point number
204 // template parameters).
231 template <typename RawType>
383 template <>
385 template <>
388 // Typedefs the instances of the FloatingPoint template class that we
401 template <typename T>
410 template <typename T>
416 template <typenam
[all...]
/openjdk10/jdk/test/java/text/Format/MessageFormat/
H A DLargeMessageFormat.java74 // construct large template
75 StringBuffer template = new StringBuffer();
77 template.append("section {" + (i * samples) + ", number} - ");
78 template.append("string: {" + (i * samples + 1) + "}; ");
79 template.append("date: {" + (i * samples + 2) + ", date}; ");
80 template.append("integer: {" + (i * samples + 3) + ", number}; ");
81 template.append("currency: {" + (i * samples + 4) + ", number, currency};\n");
95 MessageFormat format = new MessageFormat(template.toString());
99 System.out.println(template);
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/
H A DLocationPathPattern.java49 public void setTemplate(final Template template) { argument
50 _template = template;
51 _priority = template.getPriority();
52 _importPrecedence = template.getImportPrecedence();
53 _position = template.getPosition();
70 * template. This method is called for templates that are in the same
74 * o) then check the position - the template that occured last wins
/openjdk10/jdk/make/gensrc/
H A DGensrcCharsetMapping.gmk37 $(CHARSET_DATA_DIR)/SingleByte-X.java.template \
38 $(CHARSET_DATA_DIR)/DoubleByte-X.java.template
40 $(JDK_TOPDIR)/src/java.base/share/classes/sun/nio/cs/StandardCharsets.java.template
H A DGensrcCharacterData.gmk37 $(CHARACTERDATA)/$1.java.template
41 -template $(CHARACTERDATA)/$1.java.template \
58 $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/%.java: $(CHARACTERDATA)/%.java.template
H A DGensrcMisc.gmk31 SOURCE_FILES := $(JDK_TOPDIR)/src/java.base/share/classes/java/lang/VersionProps.java.template, \
49 # Need to specify language since the template file has a non standard
56 # Generate a java source file from a template through the C preprocessor for the
60 # that were added to variable references in the template files to avoid being
77 $(JDK_TOPDIR)/src/java.base/share/classes/sun/nio/ch/SocketOptionRegistry.java.template
89 $(JDK_TOPDIR)/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template
103 $(JDK_TOPDIR)/src/java.base/solaris/classes/sun/nio/fs/SolarisConstants.java.template
119 ifneq ($(wildcard $(JDK_TOPDIR)/src/java.base/share/classes/javax/crypto/JceSecurity.java.template), )
121 SOURCE_FILES := $(JDK_TOPDIR)/src/java.base/share/classes/javax/crypto/JceSecurity.java.template, \
/openjdk10/hotspot/test/compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/
H A DVirtualObjectDebugInfoTest.java113 TestClass template = new TestClass();
127 JavaValue[] arrayContent = new JavaValue[template.arrayField.length];
128 JavaKind[] arrayKind = new JavaKind[template.arrayField.length];
131 if (template.arrayField[i] == null) {
133 } else if (template.arrayField[i] == template) {
135 } else if (template.arrayField[i] instanceof Integer) {
136 int value = (Integer) template.arrayField[i];
141 } else if (template.arrayField[i] instanceof String) {
142 String value = (String) template
[all...]
/openjdk10/langtools/test/lib/combo/tools/javac/combo/
H A DTemplate.java31 * A template into which tags of the form {@code #\{KEY\}} or
61 public static String expandTemplate(String template, final Map<String, Template> vars) { argument
62 return expandTemplate(template, new MapResolver(vars));
65 public static String expandTemplate(String template, Resolver res) { argument
66 CharSequence in = template;
H A DTemplateTest.java44 private void assertTemplate(String expected, String template) { argument
45 String result = Template.Behavior.expandTemplate(template, vars);
46 assertEquals(result, expected, "for " + template);
H A DJavacTemplateTestBase.java59 * Base class for template-driven TestNG javac tests that support on-the-fly
87 /** Add a template with a specified name */
92 /** Add a template with a specified name */
282 protected final String template; field in class:JavacTemplateTestBase.StringTemplate
284 public StringTemplate(String template) { argument
285 this.template = template;
289 return Behavior.expandTemplate(template, currentResolver);
297 return new StringTemplateWithResolver(template, new KeyResolver(key, value));
307 public StringTemplateWithResolver(String template, Resolve argument
348 private final Template template; field in class:JavacTemplateTestBase.FileAdapter
350 FileAdapter(String filename, Template template) argument
[all...]
/openjdk10/langtools/test/tools/javac/annotations/repeatingAnnotations/combo/
H A DBasicSyntaxCombo.java43 * The test uses Helper.java to get the template to create test src and
163 String template = Helper.template;
174 srcContent = template.replace(replaceStr, "package testpkg;")
183 template = template.replace(replaceStr, Helper.ContentVars.REPEATABLEANNO.getVal())
185 srcContent = annoData + template;
/openjdk10/langtools/test/tools/javac/classfiles/attributes/AnnotationDefault/
H A DAnnotationDefaultTest.java52 private final static String templateFileName = "AnnotationDefault.java.template";
60 private void test(String template, Map<String, String> replacements, boolean hasDefault) { argument
61 String source = replace(template, replacements);
119 private String replace(String template, Map<String, String> replacements) { argument
120 String ans = template;
141 String template = getSource(getSourceFile(templateFileName));
153 test(template, replacements, i == 0);

Completed in 280 milliseconds

1234567