summaryrefslogtreecommitdiff
path: root/src/minijava/symboltable/MClasses.java
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2014-10-09 21:27:22 +0800
committerIru Cai <mytbk920423@gmail.com>2014-10-09 21:27:22 +0800
commit0f1c5cf0bc56cbbc990d4f57ced59c518a5cc114 (patch)
tree82b10e0081811b3b9261c8344dde388ec6b876b9 /src/minijava/symboltable/MClasses.java
parent07c5fd6cb477f7a561aad6128d93d4dab5d7e8cc (diff)
downloadminijava-0f1c5cf0bc56cbbc990d4f57ced59c518a5cc114.tar.xz
Update debugging support
Diffstat (limited to 'src/minijava/symboltable/MClasses.java')
-rw-r--r--src/minijava/symboltable/MClasses.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/minijava/symboltable/MClasses.java b/src/minijava/symboltable/MClasses.java
index a4d066f..2df2ba8 100644
--- a/src/minijava/symboltable/MClasses.java
+++ b/src/minijava/symboltable/MClasses.java
@@ -27,5 +27,12 @@ public class MClasses extends MType {
}
return false;
}
+
+ // 调试输出: 打印所有的类的信息
+ public void printClasses(int spaces) {
+ for (int i=0; i<mj_classes.size(); i++) {
+ mj_classes.elementAt(i).printClass(spaces);
+ }
+ }
}