Package gw.lang.ir.builder
Class IRClassBuilder
- java.lang.Object
-
- gw.lang.ir.builder.IRBuilder
-
- gw.lang.ir.builder.IRFeatureBuilder<IRClassBuilder>
-
- gw.lang.ir.builder.IRClassBuilder
-
public class IRClassBuilder extends IRFeatureBuilder<IRClassBuilder>
-
-
Field Summary
-
Fields inherited from class gw.lang.ir.builder.IRFeatureBuilder
_modifiers
-
-
Constructor Summary
Constructors Constructor Description IRClassBuilder(String name, Class superType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultConstructor()IRClassBuilderasAbstract()IRClassBuilderasInterface()IRClassbuild()IRMethodBuildercreateConstructor()IRFieldBuildercreateField()IRMethodBuildercreateMethod()Classdefine(ClassLoader classLoader)List<IRFieldDecl>getFields()List<IRMethodStatement>getMethods()IRTypegetSuperType()IRTypegetThisType()IRClassBuilderwithField(IRFieldDecl field)IRClassBuilderwithInterface(IRType type)IRClassBuilderwithInterface(IType type)IRClassBuilderwithInterface(IJavaClassInfo type)IRClassBuilderwithInterface(Class type)IRClassBuilderwithMethod(IRMethodStatement method)-
Methods inherited from class gw.lang.ir.builder.IRFeatureBuilder
_internal, _private, _protected, _public, _static, withModifiers
-
Methods inherited from class gw.lang.ir.builder.IRBuilder
getIRType, getIRType, getIRType, getIRTypes
-
-
-
-
Method Detail
-
getThisType
public IRType getThisType()
-
getFields
public List<IRFieldDecl> getFields()
-
getMethods
public List<IRMethodStatement> getMethods()
-
getSuperType
public IRType getSuperType()
-
createMethod
public IRMethodBuilder createMethod()
-
createConstructor
public IRMethodBuilder createConstructor()
-
addDefaultConstructor
public void addDefaultConstructor()
-
createField
public IRFieldBuilder createField()
-
withField
public IRClassBuilder withField(IRFieldDecl field)
-
withMethod
public IRClassBuilder withMethod(IRMethodStatement method)
-
withInterface
public IRClassBuilder withInterface(Class type)
-
withInterface
public IRClassBuilder withInterface(IJavaClassInfo type)
-
withInterface
public IRClassBuilder withInterface(IType type)
-
withInterface
public IRClassBuilder withInterface(IRType type)
-
asAbstract
public IRClassBuilder asAbstract()
-
asInterface
public IRClassBuilder asInterface()
-
build
public IRClass build()
-
define
public Class define(ClassLoader classLoader)
-
-