public class IRClassBuilder extends IRFeatureBuilder<IRClassBuilder>
_modifiers| Constructor and Description |
|---|
IRClassBuilder(String name,
Class superType) |
| Modifier and Type | Method and 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(Class type) |
IRClassBuilder |
withInterface(IJavaClassInfo type) |
IRClassBuilder |
withInterface(IRType type) |
IRClassBuilder |
withInterface(IType type) |
IRClassBuilder |
withMethod(IRMethodStatement method) |
_internal, _private, _protected, _public, _static, withModifiersgetIRType, getIRType, getIRType, getIRTypespublic IRType getThisType()
public List<IRFieldDecl> getFields()
public List<IRMethodStatement> getMethods()
public IRType getSuperType()
public IRMethodBuilder createMethod()
public IRMethodBuilder createConstructor()
public void addDefaultConstructor()
public IRFieldBuilder createField()
public IRClassBuilder withField(IRFieldDecl field)
public IRClassBuilder withMethod(IRMethodStatement method)
public IRClassBuilder withInterface(Class type)
public IRClassBuilder withInterface(IJavaClassInfo type)
public IRClassBuilder withInterface(IType type)
public IRClassBuilder withInterface(IRType type)
public IRClassBuilder asAbstract()
public IRClassBuilder asInterface()
public IRClass build()
public Class define(ClassLoader classLoader)
Copyright © 2021. All rights reserved.