Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.util
Class Implementations

java.lang.Object
  extended by org.jboss.errai.codegen.util.Implementations

public class Implementations
extends Object

Author:
Mike Brock

Nested Class Summary
static interface Implementations.StringBuilderBuilder
           
 
Constructor Summary
Implementations()
           
 
Method Summary
static BlockBuilder<StatementEnd> autoForLoop(String varName, Statement value)
           
static void autoInitializedField(ClassStructureBuilder<?> builder, MetaClass type, String name, Class<?> implementation)
           
static void autoInitializedField(ClassStructureBuilder<?> builder, MetaClass type, String name, MetaClass implementation)
           
static ClassStructureBuilder<?> extend(Class<?> superclass, String implClassName)
          Creates a builder for a new class that extends the given superclass.
static ClassStructureBuilder<?> implement(Class<?> clazz)
           
static ClassStructureBuilder<?> implement(Class<?> clazz, String implClassName)
           
static ClassStructureBuilder<?> implement(Class<?> clazz, String implPackageName, String implClassName)
           
static Implementations.StringBuilderBuilder newStringBuilder()
           
static Implementations.StringBuilderBuilder newStringBuilder(int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Implementations

public Implementations()
Method Detail

implement

public static ClassStructureBuilder<?> implement(Class<?> clazz)

implement

public static ClassStructureBuilder<?> implement(Class<?> clazz,
                                                 String implClassName)

implement

public static ClassStructureBuilder<?> implement(Class<?> clazz,
                                                 String implPackageName,
                                                 String implClassName)

extend

public static ClassStructureBuilder<?> extend(Class<?> superclass,
                                              String implClassName)
Creates a builder for a new class that extends the given superclass. The new class being built will be in the same package as the given superclass.

Parameters:
superclass - The class that the class being built extends.
implClassName - The simple name (no package prefix) of the new class to be built.
Returns:
an instance of the ClassStructureBuilder for building the extended class

autoInitializedField

public static void autoInitializedField(ClassStructureBuilder<?> builder,
                                        MetaClass type,
                                        String name,
                                        Class<?> implementation)

autoInitializedField

public static void autoInitializedField(ClassStructureBuilder<?> builder,
                                        MetaClass type,
                                        String name,
                                        MetaClass implementation)

newStringBuilder

public static Implementations.StringBuilderBuilder newStringBuilder()

newStringBuilder

public static Implementations.StringBuilderBuilder newStringBuilder(int length)

autoForLoop

public static BlockBuilder<StatementEnd> autoForLoop(String varName,
                                                     Statement value)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.