Package org.spongepowered.asm.service
Interface IClassTracker
public interface IClassTracker
Class trackers are responsible for interacting with the class loading process
to for the purposes of tracking class load activity and class load
restrictions. This service component is entirely optional and services can
elect to return null if the platform does not support this
functionality.
-
Method Summary
Modifier and TypeMethodDescriptiongetClassRestrictions(String className) Check whether the specified class name is subject to any restrictions in the context of this servicebooleanisClassLoaded(String className) Check whether the specified class was already loaded by the service classloadervoidregisterInvalidClass(String className) Register an invalid class with the service classloader
-
Method Details
-
registerInvalidClass
Register an invalid class with the service classloader- Parameters:
className- invalid class name
-
isClassLoaded
Check whether the specified class was already loaded by the service classloader- Parameters:
className- class name to check- Returns:
- true if the class was already loaded
-
getClassRestrictions
Check whether the specified class name is subject to any restrictions in the context of this service- Parameters:
className- class name to check- Returns:
- comma-separated list of restrictions, empty string if no restrictions apply
-