void CreateJavaFile(CiSymbol symbol) { string dir = Path.GetDirectoryName(this.OutputFile); CreateFile(Path.Combine(dir, symbol.Name + ".java")); if (this.Namespace != null) { Write("package "); Write(this.Namespace); WriteLine(";"); } WriteLine(); Write(symbol.Documentation); Write(symbol.Visibility); }
void WriteVisibility(CiSymbol symbol) { switch (symbol.Visibility) { case CiVisibility.Dead: case CiVisibility.Private: Write("private "); break; case CiVisibility.Internal: if (symbol.Documentation == null) WriteLine("/** @private */"); Write("internal "); break; case CiVisibility.Public: Write("public "); break; } }
void WritePackage(CiSymbol symbol) { Write("package "); Write(this.Package); Write(symbol.Name); WriteLine(";"); WriteLine(); }
void CreateAsFile(CiSymbol symbol) { string dir = Path.GetDirectoryName(this.OutputFile); CreateFile(Path.Combine(dir, symbol.Name + ".as")); if (this.Namespace != null) { Write("package "); WriteLine(this.Namespace); } else WriteLine("package"); OpenBlock(); WriteLine("import flash.utils.ByteArray;"); WriteLine(); Write(symbol.Documentation); WriteVisibility(symbol); }
void WriteConstDoc(CiSymbol parent, CiSymbol child) { Write("=head2 C<"); Write(this.Package); Write(parent.Name); Write("::"); WriteUppercaseWithUnderscores(child.Name); WriteLine("()>"); WriteLine(); Write(child.Documentation); }