Searched refs:line (Results 1 - 25 of 390) sorted by relevance

1234567891011>>

/openjdk7/langtools/src/share/classes/com/sun/source/tree/
H A DLineMap.java29 * Provides methods to convert between character positions and line numbers
36 * Find the start position of a line.
38 * @param line line number (beginning at 1)
39 * @return position of first character in line
44 long getStartPosition(long line); argument
47 * Find the position corresponding to a (line,column).
49 * @param line line number (beginning at 1)
54 * if {@code line <
57 getPosition(long line, long column) argument
[all...]
/openjdk7/jdk/test/java/io/LineNumberReader/
H A DRead.java38 int line = 0;
46 line = r.getLineNumber();
48 if (line != 2)
49 throw new Exception("Failed test: Expected line number: 2, got "
50 + line);
H A DReadReadLine.java41 int c, line;
49 line = r.getLineNumber();
51 if(line != good) {
52 throw new Exception("Failed test: Expected line number "
53 + good + " Got: " + line);
H A DMarkReset.java26 @summary Make sure LineNumberReader returns right line number
40 int n, line;
50 line = reader.getLineNumber();
51 if(line != (c - 48)) {
53 + (c - 48) + " got " + line );
/openjdk7/jdk/src/share/instrument/
H A DJPLISAssert.c43 int line) {
45 fprintf(stderr, "*** java.lang.instrument ASSERTION FAILED ***: \"%s\" at %s line: %d\n",
48 line);
58 int line) {
60 fprintf(stderr, "*** java.lang.instrument ASSERTION FAILED ***: \"%s\" with message %s at %s line: %d\n",
64 line);
40 JPLISAssertCondition( jboolean condition, const char * assertionText, const char * file, int line) argument
54 JPLISAssertConditionWithMessage( jboolean condition, const char * assertionText, const char * message, const char * file, int line) argument
/openjdk7/jdk/src/share/classes/sun/net/ftp/
H A DFtpDirParser.java40 * Takes one line from a directory listing and returns an FtpDirEntry instance
43 * @param line a <code>String</code>, a line sent by the FTP server as a
48 public FtpDirEntry parseLine(String line); argument
/openjdk7/jdk/src/share/classes/sun/swing/icon/
H A DSortArrowIcon.java92 for (int line = 1; line < ARROW_HEIGHT; line++) {
93 g.fillRect(startX - line, startY + line,
94 line + line + 1, 1);
100 for (int line = 1; line < ARROW_HEIGHT; line
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/
H A DInternetHeaders.java35 * until the blank line that indicates end of header. The input stream
53 * exceed the line length limitation for the transport (1000 bytes for
66 * blank line separating the header from the body. Store the
76 // Read header lines until a blank line. It is valid
78 String line;
79 String prevline = null; // the previous header line, as a string
84 //while ((line = lis.readLine()) != null) {
86 line = lis.readLine();
87 if (line != null &&
88 (line
154 addHeaderLine(String line) argument
180 String line; // the entire RFC822 header "line" field in class:hdr
[all...]
/openjdk7/make/scripts/
H A Dnormalizer.pl31 # 4. Makes one and only one empty line at the end of each file
127 my $line;
131 while ($line = <FILE>) {
132 my $originalline = $line;
134 # Process line
136 # Remove from the end of the line spaces and return character
137 while ($line =~ /\s$/) {
138 chop($line);
142 for (my $i = 0; $i < length($line); $i++) {
143 if (substr($line,
[all...]
/openjdk7/langtools/test/tools/javac/
H A DT6366196.java46 public static void positiveTest(int line, int col) { argument
47 if (Position.encodePosition(line, col) == Position.NOPOS) {
48 throw new Error("test failed at line = " + line + ", column = " + col);
50 System.out.println("test passed at line = " + line + ", column = " + col);
54 public static void negativeTest(int line, int col) { argument
55 if (Position.encodePosition(line, col) != Position.NOPOS) {
56 throw new Error("test failed at line = " + line
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/util/
H A DSimpleLocator.java35 int line, column; field in class:SimpleLocator
41 public SimpleLocator(String lsid, String esid, int line, int column) { argument
42 this(lsid, esid, line, column, -1);
45 public void setValues(String lsid, String esid, int line, int column) { argument
46 setValues(lsid, esid, line, column, -1);
49 public SimpleLocator(String lsid, String esid, int line, int column, int offset) { argument
50 this.line = line;
57 public void setValues(String lsid, String esid, int line, int column, int offset) { argument
58 this.line
102 setLineNumber(int line) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/
H A DCompressedLineNumberReadStream.java40 /** Read (bci, line number) pair from stream. Returns false at end-of-stream. */
48 line += readSignedInt();
52 line += next & 0x7;
58 public int line() { return line; } method in class:CompressedLineNumberReadStream
65 private int line; field in class:CompressedLineNumberReadStream
/openjdk7/jdk/make/tools/src/build/tools/charsetmapping/
H A DSBCS.java43 String line = s.nextLine();
44 if (line.startsWith("#") || line.length() == 0)
46 String[] fields = line.split("\\s+");
48 System.err.println("Misconfiged sbcs line <" + line + ">?");
216 String line = s.nextLine();
217 int i = line.indexOf("$");
219 out.println(line);
222 if (line
[all...]
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DLineIterator.java31 * A utility class to iterate over the path segments of a line segment
37 Line2D line; field in class:LineIterator
42 this.line = l;
93 throw new NoSuchElementException("line iterator out of bounds");
97 coords[0] = (float) line.getX1();
98 coords[1] = (float) line.getY1();
101 coords[0] = (float) line.getX2();
102 coords[1] = (float) line.getY2();
131 throw new NoSuchElementException("line iterator out of bounds");
135 coords[0] = line
[all...]
/openjdk7/langtools/test/tools/javap/6937244/
H A DT6937244A.java51 for (String line: out.split("[\r\n]+")) {
52 if (line.contains("implements")) {
53 verify(line, "implements java.util.List<java.lang.String>");
57 if (line.contains("field")) {
58 verify(line, "java.util.List<java.lang.String> field");
62 if (line.contains("method")) {
63 verify(line, "java.util.List<java.lang.String> method(java.util.List<java.lang.String>) throws java.lang.Exception");
76 void verify(String line, String expect) throws Exception { argument
77 if (!line.contains(expect)) {
78 System.err.println("line
[all...]
/openjdk7/jdk/make/tools/reorder/tools/
H A DCombine.java41 // Read a line at a time. If the line does not appear in the
47 String line = br.readLine();
48 if (line == null)
50 if (keep || !map.containsKey(line)) {
51 System.out.println(line);
52 map.put(line,line);
/openjdk7/jdk/test/java/util/Locale/data/
H A Ddeflocale.sh35 /usr/bin/locale -a | while read line; do
37 echo "OS Locale: " $line
38 env LC_ALL= LC_CTYPE= LC_MESSAGES= LANG=$line $1 $2 $3 $4 $5 $6 $7 $8 $9 PrintDefaultLocale
/openjdk7/jdk/test/javax/sound/sampled/DirectAudio/
H A Dbug6400879.java70 SourceDataLine line = null;
79 line = (SourceDataLine)AudioSystem.getLine(infos[lineNum]);
80 log("testing line: " + line);
81 line.open(line.getFormat());
84 line.start();
85 line.stop();
89 line.close();
90 line
[all...]
/openjdk7/langtools/test/tools/javap/
H A DT4459541.java27 * @summary "javap -l" shows line numbers as signed short; they should be unsigned.
52 while (line < 32750)
53 println("// " + line);
58 while (line < 32768-4)
59 println("// " + line);
61 while (line < 32768+4)
64 while (line < 65520)
65 println("// " + line);
70 while (line < 65536-4)
71 println("// " + line);
111 int line = 1; field in class:T4459541
[all...]
/openjdk7/jdk/test/java/io/BufferedReader/
H A DBigMark.java38 String line;
45 line = br.readLine();
46 System.err.println(i + ": " + line);
52 line = br.readLine();
/openjdk7/jdk/test/java/io/RandomAccessFile/
H A DReadLine.java37 String line;
45 while ((line=raf.readLine()) != null) {
52 if (!line.equals(expected)) {
54 ", read \"" + line + "\"");
/openjdk7/langtools/src/share/classes/com/sun/javadoc/
H A DSourcePosition.java31 * This interface describes a source position: filename, line number,
42 /** The line in the source file. The first line is numbered 1;
43 * 0 means no line number information is available. */
44 int line(); method in interface:SourcePosition
53 /** Convert the source position to the form "Filename:line". */
/openjdk7/langtools/src/share/classes/com/sun/mirror/util/
H A DSourcePosition.java59 * Returns the line number of this position. Lines are numbered
62 * @return the line number of this position, or 0 if the line
65 int line(); method in interface:SourcePosition
/openjdk7/jdk/test/javax/sound/sampled/DataLine/
H A DDataLine_ArrayIndexOutOfBounds.java26 abstract int getBufferOffset(DataLine line); argument
27 abstract int getBufferLength(DataLine line); argument
36 public int getBufferOffset(DataLine line) {
39 public int getBufferLength(DataLine line) {
47 int getBufferOffset(DataLine line) {
50 int getBufferLength(DataLine line) {
51 return Integer.MAX_VALUE - getBufferOffset(line) + 4096;
84 private final DataLine line; field in class:DataLine_ArrayIndexOutOfBounds.AsyncLineStopper
85 private final long delayMS; // delay before stop the line
90 public AsyncLineStopper(DataLine line, lon argument
[all...]
/openjdk7/jdk/test/com/sun/crypto/provider/TLS/
H A DTestKeyMaterial.java75 String line = reader.readLine();
77 if (line == null) {
80 if (line.startsWith("km-") == false) {
83 String data = line.substring(PREFIX_LENGTH);
84 if (line.startsWith("km-master:")) {
86 } else if (line.startsWith("km-major:")) {
88 } else if (line.startsWith("km-minor:")) {
90 } else if (line.startsWith("km-crandom:")) {
92 } else if (line.startsWith("km-srandom:")) {
94 } else if (line
[all...]

Completed in 159 milliseconds

1234567891011>>