File: CodeUnit2.java

package info (click to toggle)
libxjavadoc-java 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 652 kB
  • ctags: 1,061
  • sloc: java: 6,259; xml: 505; makefile: 11
file content (39 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package codeunit;

import java.awt.Component;

/**
 * This is test data for CodeUnit. This source is similar to the one you'll
 * find in CodeUnit1.java. The comments and formattings are different.
 * The APIs are the same,
 * but the ASTs are different. (this one has int hahahahah = 0; the other one doesn't).
 * These classes also have different import statements and different qualified class
 * names for the extended/implemented classes. The ASTs are still the same at this level,
 * and so is the API. Neither the API or AST comparison is able to detect differences
 * at this level (contents of AST nodes are not compared).
 *
 * Look at the CodeTest class, which is an example of how to use CodeUnit
 *
 * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Helles&oslash;y</a>
 */
class CodeUnit extends Component implements java.io.Serializable {
static { int i; }

/**
* do foo
*/
void foo() {
int hahahahah = 0;
Class c = int[].class;
Class d = Object[].class;
t.new T();
((T)t).method();
this( (int) (r * 255), (int) (g * 255));
return "[i=" + (value) + "]";
int q = (int)+3;
int z = (int)4;
int y = (z)+5;
String s = (String) "ff";
String t = (s)+"blort";
}
}