mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
RefField#getOwner
This commit is contained in:
@@ -361,6 +361,14 @@ public class RefField extends RefModifiers {
|
|||||||
return field;
|
return field;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the declaring <code>RefClass</code> of this field
|
||||||
|
* @return <code>RefClass</code> holding this field
|
||||||
|
*/
|
||||||
|
public RefClass getOwner() {
|
||||||
|
return new RefClass(field.getDeclaringClass(), instance);
|
||||||
|
}
|
||||||
|
|
||||||
public String toGenericString() {
|
public String toGenericString() {
|
||||||
return field.toGenericString();
|
return field.toGenericString();
|
||||||
}
|
}
|
||||||
@@ -369,4 +377,5 @@ public class RefField extends RefModifiers {
|
|||||||
return field.toString();
|
return field.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user