Skip to content

Commit 98a2659

Browse files
committed
first import
1 parent 410094f commit 98a2659

File tree

338 files changed

+30764
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+30764
-0
lines changed

.classpath

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
5+
<attributes>
6+
<attribute name="module" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="lib" path="lib/commons-compress-1.22.jar"/>
10+
<classpathentry kind="lib" path="lib/commons-io-2.11.0.jar"/>
11+
<classpathentry kind="lib" path="lib/commons-lang3-3.12.0.jar"/>
12+
<classpathentry kind="lib" path="lib/jackson-annotations-2.14.2.jar"/>
13+
<classpathentry kind="lib" path="lib/jackson-core-2.14.2.jar"/>
14+
<classpathentry kind="lib" path="lib/jackson-databind-2.14.2.jar"/>
15+
<classpathentry kind="lib" path="lib/javax.annotation-api-1.2.jar"/>
16+
<classpathentry kind="lib" path="lib/javax.inject-1.jar"/>
17+
<classpathentry kind="lib" path="lib/jsap-2.1.jar"/>
18+
<classpathentry kind="lib" path="lib/maven-api-meta-4.0.0-alpha-4.jar"/>
19+
<classpathentry kind="lib" path="lib/maven-api-model-4.0.0-alpha-4.jar"/>
20+
<classpathentry kind="lib" path="lib/maven-api-xml-4.0.0-alpha-4.jar"/>
21+
<classpathentry kind="lib" path="lib/maven-invoker-3.2.0.jar"/>
22+
<classpathentry kind="lib" path="lib/maven-model-4.0.0-alpha-4.jar"/>
23+
<classpathentry kind="lib" path="lib/maven-shared-utils-3.3.4.jar"/>
24+
<classpathentry kind="lib" path="lib/maven-xml-impl-4.0.0-alpha-4.jar"/>
25+
<classpathentry kind="lib" path="lib/org.eclipse.jdt.core-3.32.0.jar"/>
26+
<classpathentry kind="lib" path="lib/org.eclipse.sisu.inject-0.3.5.jar"/>
27+
<classpathentry kind="lib" path="lib/org.eclipse.sisu.plexus-0.3.5.jar"/>
28+
<classpathentry kind="lib" path="lib/plexus-classworlds-2.5.2.jar"/>
29+
<classpathentry kind="lib" path="lib/plexus-component-annotations-1.5.5.jar"/>
30+
<classpathentry kind="lib" path="lib/plexus-utils-3.0.24.jar"/>
31+
<classpathentry kind="lib" path="lib/slf4j-api-1.7.36.jar"/>
32+
<classpathentry kind="lib" path="lib/spoon-core-10.3.0-beta-16.jar"/>
33+
<classpathentry kind="output" path="bin"/>
34+
</classpath>

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>javazero</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

haxe/.vscode/launch.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Haxe Interpreter",
6+
"type": "haxe-eval",
7+
"request": "launch"
8+
}
9+
]
10+
}

haxe/.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.formatting.provider": "black"
3+
}

haxe/.vscode/tasks.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "haxe",
6+
"args": "active configuration",
7+
"group": {
8+
"kind": "build",
9+
"isDefault": true
10+
}
11+
}
12+
]
13+
}

haxe/MainCLI.hx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
import review.*;
3+
4+
class MainCLI {
5+
static function main() {
6+
review.Full.main_1(null);
7+
8+
}
9+
}

haxe/jztest/Test.hx

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// THIS FILE HAS BEEN GENERATED.
2+
3+
package jztest;
4+
5+
import zava.lang.*;
6+
import haxe.Exception;
7+
using hx.strings.Strings;
8+
using zava.lang.JZStringUtils;
9+
10+
11+
12+
13+
abstract class Test {
14+
public var name: String;
15+
16+
17+
18+
// jztest.Test(java.lang.String)
19+
public function new(name: String) {
20+
this.name = name;
21+
}
22+
23+
24+
25+
26+
// assertStringEquals(java.lang.String,java.lang.String)[11]
27+
public function assertStringEquals_2(expected: String, actual: String): Bool {
28+
var result: Bool = expected.equals(actual);
29+
if (result) {
30+
Sys.print(".");
31+
}
32+
else {
33+
Sys.print("X");
34+
Sys.println("");
35+
Sys.println((("expected=") + (expected)));
36+
Sys.println((("actual=") + (actual)));
37+
Sys.println("");
38+
}
39+
40+
return result;
41+
}
42+
43+
44+
// assertIntegerEquals(int,int)[25]
45+
public function assertIntegerEquals_2(expected: Int, actual: Int): Bool {
46+
var result: Bool = ((expected) == (actual));
47+
if (result) {
48+
Sys.print(".");
49+
}
50+
else {
51+
Sys.print("X");
52+
Sys.println("");
53+
Sys.println((("expected=") + (expected)));
54+
Sys.println((("actual=") + (actual)));
55+
Sys.println("");
56+
}
57+
58+
return result;
59+
}
60+
61+
62+
// assertDoubleEquals(double,double)[40]
63+
public function assertDoubleEquals_2(expected: Float, actual: Float): Bool {
64+
var result: Bool = ((Math.abs(((expected) - (actual)))) <= (0.01));
65+
if (result) {
66+
Sys.print(".");
67+
}
68+
else {
69+
Sys.print("X");
70+
Sys.println("");
71+
Sys.println((("expected=") + (expected)));
72+
Sys.println((("actual=") + (actual)));
73+
Sys.println("");
74+
}
75+
76+
return result;
77+
}
78+
79+
80+
// assertFalse(boolean)[55]
81+
public function assertFalse_1(expected: Bool): Bool {
82+
return assertTrue_1(!(expected));
83+
}
84+
85+
86+
// assertTrue(boolean)[59]
87+
public function assertTrue_1(expected: Bool): Bool {
88+
var result: Bool = expected;
89+
if (result) {
90+
Sys.print(".");
91+
}
92+
else {
93+
Sys.print("X");
94+
Sys.println("");
95+
Sys.println((("expected=") + (expected)));
96+
Sys.println("");
97+
}
98+
99+
return result;
100+
}
101+
102+
103+
// allTests()[73]
104+
abstract public function allTests_0(): Void;
105+
106+
107+
// doAllTests()[75]
108+
public function doAllTests_0(): Void {
109+
Sys.print(((name) + (" [")));
110+
allTests_0();
111+
Sys.println("]");
112+
}
113+
114+
}

haxe/jztest/TestSuite.hx

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// THIS FILE HAS BEEN GENERATED.
2+
3+
package jztest;
4+
5+
import zava.lang.*;
6+
import haxe.Exception;
7+
using hx.strings.Strings;
8+
using zava.lang.JZStringUtils;
9+
import zava.util.ArrayList;
10+
11+
12+
13+
14+
class TestSuite {
15+
public var name: String;
16+
public var tests: ArrayList<Test> = new ArrayList<Test>();
17+
18+
19+
20+
// jztest.TestSuite(java.lang.String)
21+
public function new(name: String) {
22+
this.name = name;
23+
}
24+
25+
26+
27+
28+
// addTest(jztest.Test)[14]
29+
public function addTest_1(test: Test): Void {
30+
this.tests.add(test);
31+
}
32+
33+
34+
// doAllTests()[18]
35+
public function doAllTests_0(): Void {
36+
{
37+
var _list_TestSuite_java_19 = tests;
38+
for (_i_TestSuite_java_19 in 0..._list_TestSuite_java_19.size()) {
39+
var test: Test = _list_TestSuite_java_19.get(_i_TestSuite_java_19);
40+
{
41+
test.doAllTests_0();
42+
}
43+
}
44+
}
45+
46+
}
47+
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// THIS FILE HAS BEEN GENERATED.
2+
3+
package net.sourceforge.plantuml;
4+
5+
import zava.lang.*;
6+
import haxe.Exception;
7+
using hx.strings.Strings;
8+
using zava.lang.JZStringUtils;
9+
10+
11+
12+
13+
class ErrorStatus {
14+
public var noData: Bool;
15+
public var hasErrors: Bool;
16+
public var hasOk: Bool;
17+
18+
19+
20+
// net.sourceforge.plantuml.ErrorStatus()
21+
public function new() {
22+
this.noData = true;
23+
}
24+
25+
26+
27+
28+
// init()[14]
29+
public static function init_0(): ErrorStatus {
30+
return new ErrorStatus();
31+
}
32+
33+
34+
// goWithError()[22]
35+
public function goWithError_0(): Void {
36+
this.hasErrors = true;
37+
this.noData = false;
38+
}
39+
40+
41+
// goOk()[27]
42+
public function goOk_0(): Void {
43+
this.hasOk = true;
44+
this.noData = false;
45+
}
46+
47+
48+
// hasError()[32]
49+
public function hasError_0(): Bool {
50+
return hasErrors;
51+
}
52+
53+
54+
// isNoData()[36]
55+
public function isNoData_0(): Bool {
56+
return noData;
57+
}
58+
59+
60+
// getExitCode()[40]
61+
public function getExitCode_0(): Int {
62+
if (isNoData_0()) {
63+
return 100;
64+
}
65+
66+
if (hasErrors) {
67+
return 200;
68+
}
69+
70+
return 0;
71+
}
72+
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// THIS FILE HAS BEEN GENERATED.
2+
3+
package net.sourceforge.plantuml;
4+
5+
import zava.lang.*;
6+
import haxe.Exception;
7+
using hx.strings.Strings;
8+
using zava.lang.JZStringUtils;
9+
10+
class ErrorUmlType extends JZEnum {
11+
public static final SYNTAX_ERROR = new ErrorUmlType("SYNTAX_ERROR");
12+
public static final EXECUTION_ERROR = new ErrorUmlType("EXECUTION_ERROR");
13+
14+
15+
}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// THIS FILE HAS BEEN GENERATED.
2+
3+
package net.sourceforge.plantuml;
4+
5+
import zava.lang.*;
6+
import haxe.Exception;
7+
using hx.strings.Strings;
8+
using zava.lang.JZStringUtils;
9+
10+
interface Scale {
11+
12+
13+
14+
// getScale(double,double)[6]
15+
public function getScale_2(width: Float, height: Float): Float;
16+
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// THIS FILE HAS BEEN GENERATED.
2+
3+
package net.sourceforge.plantuml;
4+
5+
import zava.lang.*;
6+
import haxe.Exception;
7+
using hx.strings.Strings;
8+
using zava.lang.JZStringUtils;
9+
10+
11+
12+
13+
class ScaleHeight extends ScaleProtected implements Scale {
14+
public var maxHeight: Float;
15+
16+
17+
18+
// net.sourceforge.plantuml.ScaleHeight(double)
19+
public function new(maxHeight: Float) {
20+
super();
21+
this.maxHeight = maxHeight;
22+
}
23+
24+
25+
26+
27+
// getScaleInternal(double,double)[12]
28+
public function getScaleInternal_2(width: Float, height: Float): Float {
29+
return ((maxHeight) / (height));
30+
}
31+
32+
}

0 commit comments

Comments
 (0)