📄 program.java
字号:
ConstructorDecl constrDecl = new ConstructorDecl( new Modifiers(new List().add(new Modifier("public"))), "Unknown", new List(), new List(), new Opt(), new Block() ); classDecl.addBodyDecl(constrDecl); return classDecl; } // Declared in GenerateClassfile.jrag at line 11 public void generateClassfile() { for(Iterator iter = compilationUnitIterator(); iter.hasNext(); ) { CompilationUnit cu = (CompilationUnit)iter.next(); cu.generateClassfile(); } } // Declared in java.ast at line 3 // Declared in java.ast line 1
public Program() { super();
setChild(new List(), 0);
is$Final(true);
} // Declared in java.ast at line 12
// Declared in java.ast line 1 public Program(List<CompilationUnit> p0) { setChild(p0, 0); is$Final(true); } // Declared in java.ast at line 17 protected int numChildren() {
return 1;
} // Declared in java.ast at line 20
public boolean mayHaveRewrite() { return false; } // Declared in java.ast at line 2 // Declared in java.ast line 1 public void setCompilationUnitList(List<CompilationUnit> list) { setChild(list, 0); } // Declared in java.ast at line 6 private int getNumCompilationUnit = 0; // Declared in java.ast at line 7 public int getNumCompilationUnit() { return getCompilationUnitList().getNumChild(); } // Declared in java.ast at line 11 @SuppressWarnings({"unchecked", "cast"}) public CompilationUnit getCompilationUnit(int i) { return (CompilationUnit)getCompilationUnitList().getChild(i); } // Declared in java.ast at line 15 public void addCompilationUnit(CompilationUnit node) { List<CompilationUnit> list = getCompilationUnitList(); list.addChild(node); } // Declared in java.ast at line 20 public void setCompilationUnit(CompilationUnit node, int i) { List<CompilationUnit> list = getCompilationUnitList(); list.setChild(node, i); } // Declared in java.ast at line 24 public List<CompilationUnit> getCompilationUnits() { return getCompilationUnitList(); } // Declared in java.ast at line 27 public List<CompilationUnit> getCompilationUnitsNoTransform() { return getCompilationUnitListNoTransform(); } // Declared in java.ast at line 31 @SuppressWarnings({"unchecked", "cast"}) public List<CompilationUnit> getCompilationUnitList() { return (List<CompilationUnit>)getChild(0); } // Declared in java.ast at line 35 @SuppressWarnings({"unchecked", "cast"}) public List<CompilationUnit> getCompilationUnitListNoTransform() { return (List<CompilationUnit>)getChildNoTransform(0); } protected boolean typeObject_computed = false; protected TypeDecl typeObject_value; // Declared in LookupType.jrag at line 15 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeObject() { if(typeObject_computed) return typeObject_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeObject_value = typeObject_compute(); if(isFinal && num == boundariesCrossed) typeObject_computed = true; return typeObject_value; } private TypeDecl typeObject_compute() { return lookupType("java.lang", "Object"); } protected boolean typeCloneable_computed = false; protected TypeDecl typeCloneable_value; // Declared in LookupType.jrag at line 16 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeCloneable() { if(typeCloneable_computed) return typeCloneable_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeCloneable_value = typeCloneable_compute(); if(isFinal && num == boundariesCrossed) typeCloneable_computed = true; return typeCloneable_value; } private TypeDecl typeCloneable_compute() { return lookupType("java.lang", "Cloneable"); } protected boolean typeSerializable_computed = false; protected TypeDecl typeSerializable_value; // Declared in LookupType.jrag at line 17 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeSerializable() { if(typeSerializable_computed) return typeSerializable_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeSerializable_value = typeSerializable_compute(); if(isFinal && num == boundariesCrossed) typeSerializable_computed = true; return typeSerializable_value; } private TypeDecl typeSerializable_compute() { return lookupType("java.io", "Serializable"); } protected boolean typeBoolean_computed = false; protected TypeDecl typeBoolean_value; // Declared in LookupType.jrag at line 22 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeBoolean() { if(typeBoolean_computed) return typeBoolean_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeBoolean_value = typeBoolean_compute(); if(isFinal && num == boundariesCrossed) typeBoolean_computed = true; return typeBoolean_value; } private TypeDecl typeBoolean_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME, "boolean"); } protected boolean typeByte_computed = false; protected TypeDecl typeByte_value; // Declared in LookupType.jrag at line 23 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeByte() { if(typeByte_computed) return typeByte_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeByte_value = typeByte_compute(); if(isFinal && num == boundariesCrossed) typeByte_computed = true; return typeByte_value; } private TypeDecl typeByte_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "byte"); } protected boolean typeShort_computed = false; protected TypeDecl typeShort_value; // Declared in LookupType.jrag at line 24 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeShort() { if(typeShort_computed) return typeShort_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeShort_value = typeShort_compute(); if(isFinal && num == boundariesCrossed) typeShort_computed = true; return typeShort_value; } private TypeDecl typeShort_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "short"); } protected boolean typeChar_computed = false; protected TypeDecl typeChar_value; // Declared in LookupType.jrag at line 25 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeChar() { if(typeChar_computed) return typeChar_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeChar_value = typeChar_compute(); if(isFinal && num == boundariesCrossed) typeChar_computed = true; return typeChar_value; } private TypeDecl typeChar_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "char"); } protected boolean typeInt_computed = false; protected TypeDecl typeInt_value; // Declared in LookupType.jrag at line 26 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeInt() { if(typeInt_computed) return typeInt_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeInt_value = typeInt_compute(); if(isFinal && num == boundariesCrossed) typeInt_computed = true; return typeInt_value; } private TypeDecl typeInt_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "int"); } protected boolean typeLong_computed = false; protected TypeDecl typeLong_value; // Declared in LookupType.jrag at line 27 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeLong() { if(typeLong_computed) return typeLong_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeLong_value = typeLong_compute(); if(isFinal && num == boundariesCrossed) typeLong_computed = true; return typeLong_value; } private TypeDecl typeLong_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "long"); } protected boolean typeFloat_computed = false; protected TypeDecl typeFloat_value; // Declared in LookupType.jrag at line 28 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeFloat() { if(typeFloat_computed) return typeFloat_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeFloat_value = typeFloat_compute(); if(isFinal && num == boundariesCrossed) typeFloat_computed = true; return typeFloat_value; } private TypeDecl typeFloat_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "float"); } protected boolean typeDouble_computed = false; protected TypeDecl typeDouble_value; // Declared in LookupType.jrag at line 29 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeDouble() { if(typeDouble_computed) return typeDouble_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeDouble_value = typeDouble_compute(); if(isFinal && num == boundariesCrossed) typeDouble_computed = true; return typeDouble_value; } private TypeDecl typeDouble_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME , "double"); } protected boolean typeString_computed = false; protected TypeDecl typeString_value; // Declared in LookupType.jrag at line 30 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeString() { if(typeString_computed) return typeString_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeString_value = typeString_compute(); if(isFinal && num == boundariesCrossed) typeString_computed = true; return typeString_value; } private TypeDecl typeString_compute() { return lookupType("java.lang", "String"); } protected boolean typeVoid_computed = false; protected TypeDecl typeVoid_value; // Declared in LookupType.jrag at line 41 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeVoid() { if(typeVoid_computed) return typeVoid_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeVoid_value = typeVoid_compute(); if(isFinal && num == boundariesCrossed) typeVoid_computed = true; return typeVoid_value; } private TypeDecl typeVoid_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME, "void"); } protected boolean typeNull_computed = false; protected TypeDecl typeNull_value; // Declared in LookupType.jrag at line 43 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeNull() { if(typeNull_computed) return typeNull_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); typeNull_value = typeNull_compute(); if(isFinal && num == boundariesCrossed) typeNull_computed = true; return typeNull_value; } private TypeDecl typeNull_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME, "null"); } protected boolean unknownType_computed = false; protected TypeDecl unknownType_value; // Declared in LookupType.jrag at line 46 @SuppressWarnings({"unchecked", "cast"}) public TypeDecl unknownType() { if(unknownType_computed) return unknownType_value; int num = boundariesCrossed; boolean isFinal = this.is$Final(); unknownType_value = unknownType_compute(); if(isFinal && num == boundariesCrossed) unknownType_computed = true; return unknownType_value; } private TypeDecl unknownType_compute() { return lookupType(PRIMITIVE_PACKAGE_NAME, "Unknown"); } protected java.util.Map hasPackage_String_values; // Declared in LookupType.jrag at line 77 @SuppressWarnings({"unchecked", "cast"}) public boolean hasPackage(String packageName) { Object _parameters = packageName;if(hasPackage_String_values == null) hasPackage_String_values = new java.util.HashMap(4); if(hasPackage_String_values.containsKey(_parameters)) return ((Boolean)hasPackage_String_values.get(_parameters)).booleanValue(); int num = boundariesCrossed; boolean isFinal = this.is$Final(); boolean hasPackage_String_value = hasPackage_compute(packageName); if(isFinal && num == boundariesCrossed) hasPackage_String_values.put(_parameters, Boolean.valueOf(hasPackage_String_value)); return hasPackage_String_value; } private boolean hasPackage_compute(String packageName) { return isPackage(packageName); } protected java.util.Map lookupType_String_String_values; // Declared in LookupType.jrag at line 105
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -