mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +00:00
RefClass instanceof method
This commit is contained in:
@@ -119,6 +119,15 @@ public class RefClass extends RefModifiers {
|
|||||||
return fields.toArray(new RefField[fields.size()]);
|
return fields.toArray(new RefField[fields.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines if a object is an instance of this class
|
||||||
|
* @param object the object you want to check
|
||||||
|
* @return <code>true</code> if the object is an instance of this class; <code>false</code> otherwise
|
||||||
|
*/
|
||||||
|
public boolean instanceOf(Object object) {
|
||||||
|
return this.clazz.isInstance(object);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets field by field name
|
* Gets field by field name
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user