summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/proxies/FieldProxy.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-21 18:24:29 +0100
committer zaaarf <zaaarf@proton.me>2023-03-21 18:24:29 +0100
commitff47129cf3ac12817bf4ca9af8753592298f03e4 (patch)
tree49fbdf8b1ca388747a2893c25176c69186431e75 /src/main/java/ftbsc/lll/proxies/FieldProxy.java
parent884cefead9e4fede7243650afc4f22f08f8e5090 (diff)
feat: restored flat descriptors, implemented primitive proxies
Diffstat (limited to 'src/main/java/ftbsc/lll/proxies/FieldProxy.java')
-rw-r--r--src/main/java/ftbsc/lll/proxies/FieldProxy.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/ftbsc/lll/proxies/FieldProxy.java b/src/main/java/ftbsc/lll/proxies/FieldProxy.java
index 8855cd8..d374bf7 100644
--- a/src/main/java/ftbsc/lll/proxies/FieldProxy.java
+++ b/src/main/java/ftbsc/lll/proxies/FieldProxy.java
@@ -16,18 +16,18 @@ public class FieldProxy extends AbstractProxy {
* @param f the {@link Field} object corresponding to this.
*/
public FieldProxy(Field f) {
- super(f.getName(), Type.getType(f.getType()), f.getModifiers(), ClassProxy.from(f.getDeclaringClass()));
+ super(f.getName(), Type.getDescriptor(f.getType()), f.getModifiers(), TypeProxy.from(f.getDeclaringClass()));
}
/**
* Protected constructor, called only from the builder.
* @param name the name of the field
- * @param type the {@link Type} of the field
+ * @param descriptor the descriptor of the field
* @param modifiers the modifiers of the field
* @param parent the {@link QualifiableProxy} for the parent
*/
- protected FieldProxy(String name, Type type, int modifiers, QualifiableProxy parent) {
- super(name, type, modifiers, parent);
+ protected FieldProxy(String name, String descriptor, int modifiers, QualifiableProxy parent) {
+ super(name, descriptor, modifiers, parent);
}
/**
@@ -68,7 +68,7 @@ public class FieldProxy extends AbstractProxy {
* @return the builder's state after the change
*/
public Builder setParent(String parentFQN, int modifiers) {
- super.setParent(ClassProxy.from(parentFQN, 0, modifiers));
+ super.setParent(TypeProxy.from(parentFQN, 0, modifiers));
return this;
}
@@ -88,7 +88,7 @@ public class FieldProxy extends AbstractProxy {
*/
@Override
public FieldProxy build() {
- return new FieldProxy(this.name, this.type, this.modifiers, this.parent);
+ return new FieldProxy(this.name, this.descriptor, this.modifiers, this.parent);
}
}
}