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
A Builder for the generic proxy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe descriptor of the element.protected intThe modifiers of the element, as a packed int.protected StringThe name of the element.protected QualifiableProxyThe fully qualified name of the parent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddModifier(int newModifier) abstract Tbuild()setDescriptor(String descriptor) SetsTypefor this element from the descriptor, passed as aString.setModifiers(int newModifier) setParent(QualifiableProxy parent) setType(org.objectweb.asm.Type type)
-
Field Details
-
name
The name of the element. -
modifiers
protected int modifiersThe modifiers of the element, as a packed int. -
parent
The fully qualified name of the parent. -
descriptor
The descriptor of the element.
-
-
Constructor Details
-
Builder
The constructor.- Parameters:
name- the name of the element
-
-
Method Details
-
addModifier
- Parameters:
newModifier- the modifier to add- Returns:
- the current state of the builder
-
setModifiers
- Parameters:
newModifier- the new modifier value- Returns:
- the current state of the builder
-
setParent
- Parameters:
parent- theQualifiableProxyrepresenting the parent- Returns:
- the current state of the builder
-
setDescriptor
SetsTypefor this element from the descriptor, passed as aString.- Parameters:
descriptor- the descriptor passed as aString- Returns:
- the builder's state after the change
-
setType
- Parameters:
type- theTypecorresponding to the element- Returns:
- the current state of the builder
-
build
- Returns:
- the built proxy object
-