Package ftbsc.lll.proxies
Class AbstractProxy.Builder<T extends AbstractProxy>
- java.lang.Object
-
- ftbsc.lll.proxies.AbstractProxy.Builder<T>
-
- Type Parameters:
T
- the type of proxy
- Direct Known Subclasses:
FieldProxy.Builder
,MethodProxy.Builder
- Enclosing class:
- AbstractProxy
public abstract static class AbstractProxy.Builder<T extends AbstractProxy> extends java.lang.Object
A Builder for the generic proxy.
-
-
Field Summary
Fields Modifier and Type Field 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.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String name)
The constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractProxy.Builder<T>
addModifier(int newModifier)
abstract T
build()
AbstractProxy.Builder<T>
setDescriptor(java.lang.String descriptor)
SetsType
for this element from the descriptor, passed as aString
.AbstractProxy.Builder<T>
setModifiers(int newModifier)
AbstractProxy.Builder<T>
setParent(QualifiableProxy parent)
AbstractProxy.Builder<T>
setType(org.objectweb.asm.Type type)
-
-
-
Field Detail
-
name
protected java.lang.String name
The name of the element.
-
modifiers
protected int modifiers
The modifiers of the element, as a packed int.
-
parent
protected QualifiableProxy parent
The fully qualified name of the parent.
-
descriptor
protected java.lang.String descriptor
The descriptor of the element.
-
-
Method Detail
-
addModifier
public AbstractProxy.Builder<T> addModifier(int newModifier)
- Parameters:
newModifier
- the modifier to add- Returns:
- the current state of the builder
-
setModifiers
public AbstractProxy.Builder<T> setModifiers(int newModifier)
- Parameters:
newModifier
- the new modifier value- Returns:
- the current state of the builder
-
setParent
public AbstractProxy.Builder<T> setParent(QualifiableProxy parent)
- Parameters:
parent
- theQualifiableProxy
representing the parent- Returns:
- the current state of the builder
-
setDescriptor
public AbstractProxy.Builder<T> setDescriptor(java.lang.String descriptor)
SetsType
for this element from the descriptor, passed as aString
.- Parameters:
descriptor
- the descriptor passed as aString
- Returns:
- the builder's state after the change
-
setType
public AbstractProxy.Builder<T> setType(org.objectweb.asm.Type type)
- Parameters:
type
- theType
corresponding to the element- Returns:
- the current state of the builder
-
build
public abstract T build()
- Returns:
- the built proxy object
-
-