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 void
addDefaultConstructor()
IRClassBuilder
asAbstract()
IRClassBuilder
asInterface()
IRClass
build()
IRMethodBuilder
createConstructor()
IRFieldBuilder
createField()
IRMethodBuilder
createMethod()
Class
define(ClassLoader classLoader)
List<IRFieldDecl>
getFields()
List<IRMethodStatement>
getMethods()
IRType
getSuperType()
IRType
getThisType()
IRClassBuilder
withField(IRFieldDecl field)
IRClassBuilder
withInterface(IRType type)
IRClassBuilder
withInterface(IType type)
IRClassBuilder
withInterface(IJavaClassInfo type)
IRClassBuilder
withInterface(Class type)
IRClassBuilder
withMethod(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)
-
-