Class MetaClassConstant<T>
java.lang.Object
org.apache.groovy.internal.metaclass.MetaClassConstant<T>
The one and only implementation of a metaclass.
INTERNAL USE ONLY.
-
Constructor Summary
ConstructorsConstructorDescriptionMetaClassConstant(Class<T> clazz) Creates a constant whose meta class is aMetaClassImplforclazz. -
Method Summary
Modifier and TypeMethodDescriptionSelects a method by name and parameter types.The switch point created with this constant.
-
Constructor Details
-
MetaClassConstant
Creates a constant whose meta class is aMetaClassImplforclazz.- Parameters:
clazz- the class this constant describes
-
-
Method Details
-
getSwitchPoint
The switch point created with this constant. Nothing in this class invalidates it.- Returns:
- the switch point created for this constant
-
getMethod
Selects a method by name and parameter types.- Parameters:
name- the method nameparameters- the parameter types passed toMetaClassImpl.pickMethod(String, Class[])- Returns:
- the selected meta method, or
nullwhen none matches
-