aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/Parser.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-05-19 05:57:40 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-05-19 05:57:40 +0000
commit03e676c3ec809a09ebcc3ee3c2927e903d19e461 (patch)
tree5e7c7fb595c79b34b5a8f3ad2ffd96f70919d765 /src/main/javassist/compiler/Parser.java
parent0ed1ede707440a9a981c2e0cfd5421b0ba0e364d (diff)
downloadjavassist-03e676c3ec809a09ebcc3ee3c2927e903d19e461.tar.gz
javassist-03e676c3ec809a09ebcc3ee3c2927e903d19e461.zip
changed CtBehavior.setBody() so that setBody(null) produces a body
including nothing but a return statement. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@20 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/compiler/Parser.java')
-rw-r--r--src/main/javassist/compiler/Parser.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/Parser.java b/src/main/javassist/compiler/Parser.java
index 3bddb7c8..f1865951 100644
--- a/src/main/javassist/compiler/Parser.java
+++ b/src/main/javassist/compiler/Parser.java
@@ -262,6 +262,8 @@ public final class Parser implements TokenId {
return parseTry(tbl);
else if (t == SWITCH)
return parseSwitch(tbl);
+ else if (t == SYNCHRONIZED)
+ return parseSynchronized(tbl);
else if (t == RETURN)
return parseReturn(tbl);
else if (t == THROW)
@@ -403,6 +405,13 @@ public final class Parser implements TokenId {
throw new CompileError("switch is not supported", lex);
}
+ /* synchronized.statement :
+ * SYNCHRONIZED "(" expression ")" block.statement
+ */
+ private Stmnt parseSynchronized(SymbolTable tbl) throws CompileError {
+ throw new CompileError("synchronized is not supported", lex);
+ }
+
/* try.statement
* : TRY block.statement
* [ CATCH "(" class.type Identifier ")" block.statement ]*