E - the type of the enclosing classT - the type of the described classpublic class ClassDefinition<E,T> extends Definition<ClassDeclaration<E,T>>
Class definitions can be derived with constructor and method definitions or delegation strategies. The derived definitions will share the same signature.
| Modifier | Constructor and Description |
|---|---|
protected |
ClassDefinition(ClassDeclaration<E,T> declaration,
ClassRegister classSpace) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
ClassRegister |
getRegister() |
java.lang.Class<T> |
loadClass() |
java.lang.String |
toString() |
<U> ClassDefinition<E,T> |
withImplementation(MethodImplementor methodImplementor) |
<U> ClassDefinition<E,T> |
withImplementation(MethodMatcher<?,? super U> methodMatcher,
MethodImplementation<? extends U> methodImplementation) |
<U> ClassDefinition<E,T> |
withImplementations(MethodImplementor methodImplementor) |
<U> ClassDefinition<E,T> |
withImplementations(MethodMatcher<?,? super U> methodMatcher,
MethodImplementation<? extends U> methodImplementation) |
byte[] |
writeClass() |
getDeclarationprotected ClassDefinition(ClassDeclaration<E,T> declaration, ClassRegister classSpace)
public java.lang.String getName()
public ClassRegister getRegister()
public <U> ClassDefinition<E,T> withImplementation(MethodMatcher<?,? super U> methodMatcher, MethodImplementation<? extends U> methodImplementation)
public <U> ClassDefinition<E,T> withImplementations(MethodMatcher<?,? super U> methodMatcher, MethodImplementation<? extends U> methodImplementation)
public <U> ClassDefinition<E,T> withImplementation(MethodImplementor methodImplementor)
public <U> ClassDefinition<E,T> withImplementations(MethodImplementor methodImplementor)
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] writeClass()
public java.lang.Class<T> loadClass()