T
- the type of proxypublic abstract static class AbstractProxy.Builder<T extends AbstractProxy>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
descriptor
The descriptor of the element.
|
protected int |
modifiers
The modifiers of the element, as a packed int.
|
protected java.lang.String |
name
The name of the element.
|
protected QualifiableProxy |
parent
The fully qualified name of the parent.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String name)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractProxy.Builder<T> |
addModifier(int newModifier) |
abstract T |
build() |
AbstractProxy.Builder<T> |
setDescriptor(java.lang.String descriptor)
Sets
Type for this element from the descriptor, passed as a String . |
AbstractProxy.Builder<T> |
setModifiers(int newModifier) |
AbstractProxy.Builder<T> |
setParent(QualifiableProxy parent) |
AbstractProxy.Builder<T> |
setType(org.objectweb.asm.Type type) |
protected java.lang.String name
protected int modifiers
protected QualifiableProxy parent
protected java.lang.String descriptor
protected Builder(java.lang.String name)
name
- the name of the elementpublic AbstractProxy.Builder<T> addModifier(int newModifier)
newModifier
- the modifier to addpublic AbstractProxy.Builder<T> setModifiers(int newModifier)
newModifier
- the new modifier valuepublic AbstractProxy.Builder<T> setParent(QualifiableProxy parent)
parent
- the QualifiableProxy
representing the parentpublic AbstractProxy.Builder<T> setDescriptor(java.lang.String descriptor)
Type
for this element from the descriptor, passed as a String
.descriptor
- the descriptor passed as a String
public AbstractProxy.Builder<T> setType(org.objectweb.asm.Type type)
type
- the Type
corresponding to the elementpublic abstract T build()