Searched refs:literal (Results 1 – 4 of 4) sorted by relevance
97 for(Object literal : literals) { in testPassingObjectReferences()99 a[i] = literal; in testPassingObjectReferences()125 for(boolean literal : literals) { in testPassingBooleans()127 a[i] = literal; in testPassingBooleans()156 for(char literal : literals) { in testPassingChars()158 a[i] = literal; in testPassingChars()184 for(byte literal : literals) { in testPassingBytes()186 a[i] = literal; in testPassingBytes()212 for(short literal : literals) { in testPassingShorts()214 a[i] = literal; in testPassingShorts()[all …]
289 String literal = nextToInternal("{}[]/\\:,=;# \t\f"); in readLiteral() local291 if (literal.length() == 0) { in readLiteral()293 } else if ("null".equalsIgnoreCase(literal)) { in readLiteral()295 } else if ("true".equalsIgnoreCase(literal)) { in readLiteral()297 } else if ("false".equalsIgnoreCase(literal)) { in readLiteral()302 if (literal.indexOf('.') == -1) { in readLiteral()304 String number = literal; in readLiteral()330 return Double.valueOf(literal); in readLiteral()335 return new String(literal); // a new string avoids leaking memory in readLiteral()
1293 public DateTimeFormatterBuilder appendLiteral(char literal) { in appendLiteral() argument1294 appendInternal(new CharLiteralPrinterParser(literal)); in appendLiteral()1308 public DateTimeFormatterBuilder appendLiteral(String literal) { in appendLiteral() argument1309 Objects.requireNonNull(literal, "literal"); in appendLiteral()1310 if (literal.length() > 0) { in appendLiteral()1311 if (literal.length() == 1) { in appendLiteral()1312 appendInternal(new CharLiteralPrinterParser(literal.charAt(0))); in appendLiteral()1314 appendInternal(new StringLiteralPrinterParser(literal)); in appendLiteral()2385 private final char literal; field in DateTimeFormatterBuilder.CharLiteralPrinterParser2387 CharLiteralPrinterParser(char literal) { in CharLiteralPrinterParser() argument[all …]
188 String literal = (String) Class.forName("libcore.java.lang.StringTest$HasLiteral") in testInternBeforeLiteralIsLoaded() local190 assertEquals(System.identityHashCode(programmatic), System.identityHashCode(literal)); in testInternBeforeLiteralIsLoaded()191 assertSame(programmatic, literal); in testInternBeforeLiteralIsLoaded()195 static String literal = "[5058, 9962, 1563, 5744]"; field in StringTest.HasLiteral