Java Uast: Initial implementation
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
default class _Dummy_ {
|
||||
default inner class SpecialExpressions {
|
||||
default fun test(): boolean {
|
||||
assert 5 > 3 : EmptyExpression
|
||||
assert 5 > 3 : "Message"
|
||||
synchronized this : {
|
||||
System.out.println("A")
|
||||
}
|
||||
|
||||
var a: int = 5
|
||||
var b: int = 7
|
||||
var c: int
|
||||
while (a > 0) {
|
||||
if (a === 3) {
|
||||
break
|
||||
}
|
||||
|
||||
if (a % 5 === 0) {
|
||||
continue
|
||||
}
|
||||
|
||||
a--
|
||||
}
|
||||
|
||||
this.test()
|
||||
super.hashCode()
|
||||
var x: String
|
||||
switch (a)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
x = "1"
|
||||
break
|
||||
}
|
||||
|
||||
case 3:
|
||||
x = "3"
|
||||
case 4:
|
||||
x = "4"
|
||||
else:
|
||||
x = ""
|
||||
}
|
||||
|
||||
|
||||
if (System.getProperty("abc", "").equals("1")) {
|
||||
throw <noref>("Err")
|
||||
}
|
||||
|
||||
try {
|
||||
Thread.sleep(1000)
|
||||
}
|
||||
|
||||
catch (e) {
|
||||
}
|
||||
|
||||
finally {
|
||||
a = 3
|
||||
}
|
||||
|
||||
{
|
||||
a = 5
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user