public static class

ServantGenerator.JavaGenerator

extends Object
java.lang.Object
   ↳ com.microstrategy.web.servant.ServantGenerator.JavaGenerator

Class Overview

This class is used to generate portion of a Java class.

Summary

Public Constructors
ServantGenerator.JavaGenerator()
Public Methods
static void addBlankLine(PrintWriter writer, int indent)
static void generateAssignment(PrintWriter writer, int indent, String lhs, String rhs)
static void generateCast(PrintWriter writer, int indent, String type)
static void generateCppStyleComment(PrintWriter writer, int indent, String line)
static void generateEndOfCatch(PrintWriter writer, int indent)
static void generateEndOfClass(PrintWriter writer, int indent)
static void generateEndOfMethod(PrintWriter writer, int indent)
static void generateEndOfTry(PrintWriter writer, int indent)
static void generateField(PrintWriter writer, int indent, String[] modifiers, String type, String fieldName, String initValue)
static void generateImportDeclaration(PrintWriter writer, int indent, String type)
static void generateMethodCall(PrintWriter writer, int indent, String object, String methodName, String[] args)
static void generateMethodCall(PrintWriter writer, int indent, String methodName, String[] args)
static void generateMethodCallNoEnd(PrintWriter writer, int indent, String object, String methodName, String[] args)
static void generateMultilineCStyleComment(PrintWriter writer, int indent, Vector lines)
static void generateMultilineCppStyleComment(PrintWriter writer, int indent, String[] lines)
static void generateOpeningReturnStatement(PrintWriter writer, int indent)
static void generatePackageDeclaration(PrintWriter writer, int indent, String packageName)
static void generateStartOfCatch(PrintWriter writer, int indent, String exceptionType, String arg)
static void generateStartOfClass(PrintWriter writer, int indent, String[] modifiers, String className, String superClassName, String[] intfs)
static void generateStartOfMethod(PrintWriter writer, int indent, String[] modifiers, String resultType, String name, String[] formalParams, String[] exceptions)
static void generateStartOfTry(PrintWriter writer, int indent)
static void generateVariable(PrintWriter writer, int indent, boolean isFinal, String type, String var, String initValue)
static String indent(int indent)
static void indent(PrintWriter writer, int indent)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ServantGenerator.JavaGenerator ()

Public Methods

public static void addBlankLine (PrintWriter writer, int indent)

public static void generateAssignment (PrintWriter writer, int indent, String lhs, String rhs)

public static void generateCast (PrintWriter writer, int indent, String type)

public static void generateCppStyleComment (PrintWriter writer, int indent, String line)

public static void generateEndOfCatch (PrintWriter writer, int indent)

public static void generateEndOfClass (PrintWriter writer, int indent)

public static void generateEndOfMethod (PrintWriter writer, int indent)

public static void generateEndOfTry (PrintWriter writer, int indent)

public static void generateField (PrintWriter writer, int indent, String[] modifiers, String type, String fieldName, String initValue)

public static void generateImportDeclaration (PrintWriter writer, int indent, String type)

public static void generateMethodCall (PrintWriter writer, int indent, String object, String methodName, String[] args)

public static void generateMethodCall (PrintWriter writer, int indent, String methodName, String[] args)

public static void generateMethodCallNoEnd (PrintWriter writer, int indent, String object, String methodName, String[] args)

public static void generateMultilineCStyleComment (PrintWriter writer, int indent, Vector lines)

public static void generateMultilineCppStyleComment (PrintWriter writer, int indent, String[] lines)

public static void generateOpeningReturnStatement (PrintWriter writer, int indent)

public static void generatePackageDeclaration (PrintWriter writer, int indent, String packageName)

public static void generateStartOfCatch (PrintWriter writer, int indent, String exceptionType, String arg)

public static void generateStartOfClass (PrintWriter writer, int indent, String[] modifiers, String className, String superClassName, String[] intfs)

public static void generateStartOfMethod (PrintWriter writer, int indent, String[] modifiers, String resultType, String name, String[] formalParams, String[] exceptions)

public static void generateStartOfTry (PrintWriter writer, int indent)

public static void generateVariable (PrintWriter writer, int indent, boolean isFinal, String type, String var, String initValue)

public static String indent (int indent)

public static void indent (PrintWriter writer, int indent)