public class Renderer extends Object implements ExprVisitor, StatementVisitor, RenderingContext
| Constructor and Description |
|---|
Renderer(SourceWriter writer,
ListableClassHolderSource classSource,
ClassLoader classLoader,
ServiceRepository services,
Set<MethodReference> asyncMethods,
Set<MethodReference> asyncFamilyMethods,
Diagnostics diagnostics) |
public Renderer(SourceWriter writer, ListableClassHolderSource classSource, ClassLoader classLoader, ServiceRepository services, Set<MethodReference> asyncMethods, Set<MethodReference> asyncFamilyMethods, Diagnostics diagnostics)
public void addInjector(MethodReference method, Injector injector)
public SourceWriter getWriter()
getWriter in interface RenderingContextpublic NamingStrategy getNaming()
getNaming in interface RenderingContextpublic boolean isMinifying()
isMinifying in interface RenderingContextpublic void setMinifying(boolean minifying)
public ListableClassHolderSource getClassSource()
getClassSource in interface RenderingContextpublic ClassLoader getClassLoader()
getClassLoader in interface RenderingContextpublic Properties getProperties()
getProperties in interface RenderingContextpublic DebugInformationEmitter getDebugEmitter()
public void setDebugEmitter(DebugInformationEmitter debugEmitter)
public void setProperties(Properties properties)
public void renderStringPool()
throws RenderingException
RenderingExceptionpublic void renderRuntime()
throws RenderingException
RenderingExceptionpublic void render(List<ClassNode> classes) throws RenderingException
RenderingExceptionpublic void renderBody(MethodNode method, boolean inner) throws IOException
IOExceptionpublic void visit(AssignmentStatement statement) throws RenderingException
visit in interface StatementVisitorRenderingExceptionpublic void visit(SequentialStatement statement)
visit in interface StatementVisitorpublic void visit(ConditionalStatement statement)
visit in interface StatementVisitorpublic void visit(SwitchStatement statement)
visit in interface StatementVisitorpublic void visit(WhileStatement statement)
visit in interface StatementVisitorpublic void visit(BlockStatement statement)
visit in interface StatementVisitorpublic void visit(BreakStatement statement)
visit in interface StatementVisitorpublic void visit(ContinueStatement statement)
visit in interface StatementVisitorpublic void visit(ReturnStatement statement)
visit in interface StatementVisitorpublic void visit(ThrowStatement statement)
visit in interface StatementVisitorpublic void visit(InitClassStatement statement)
visit in interface StatementVisitorpublic String variableName(int index)
public void visit(BinaryExpr expr)
visit in interface ExprVisitorpublic void visit(UnaryExpr expr)
visit in interface ExprVisitorpublic void visit(ConditionalExpr expr)
visit in interface ExprVisitorpublic void visit(ConstantExpr expr)
visit in interface ExprVisitorpublic static String typeToClsString(NamingStrategy naming, ValueType type)
public void visit(VariableExpr expr)
visit in interface ExprVisitorpublic void visit(SubscriptExpr expr)
visit in interface ExprVisitorpublic void visit(UnwrapArrayExpr expr)
visit in interface ExprVisitorpublic void visit(InvocationExpr expr)
visit in interface ExprVisitorpublic void visit(QualificationExpr expr)
visit in interface ExprVisitorpublic void visit(NewExpr expr)
visit in interface ExprVisitorpublic void visit(NewArrayExpr expr)
visit in interface ExprVisitorpublic void visit(NewMultiArrayExpr expr)
visit in interface ExprVisitorpublic void visit(InstanceOfExpr expr)
visit in interface ExprVisitorpublic void visit(StaticClassExpr expr)
visit in interface ExprVisitorpublic void visit(TryCatchStatement statement)
visit in interface StatementVisitorpublic void visit(GotoPartStatement statement)
visit in interface StatementVisitorpublic void visit(MonitorEnterStatement statement)
visit in interface StatementVisitorpublic void visit(MonitorExitStatement statement)
visit in interface StatementVisitorpublic <T> T getService(Class<T> type)
getService in interface ServiceRepositoryCopyright © 2015. All rights reserved.