Package org.jboss.forge.roaster.model
Interface MethodHolder<O extends JavaType<O>>
- All Superinterfaces:
MemberHolder<O>
- All Known Subinterfaces:
EnumConstant.ReadBody<O>,EnumConstantSource.Body,JavaClass<O>,JavaClassSource,JavaEnum<O>,JavaEnumSource,JavaInterface<O>,JavaInterfaceSource,JavaRecord<O>,JavaRecordSource,MethodHolderSource<O>,PropertyHolder<O>,PropertyHolderSource<O>
Represents a
JavaType that may declare methods.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionReturn theMethodwith the given name and zero parameters; otherwise return null.Return theMethodwith the given name and signature types; otherwise return null.Return theMethodwith the given name and signature types; otherwise return null.Get aListof allMethods declared by thisMethodHolderinstance, if any; otherwise, return an emptyListdefault booleanReturn true if thisMethodHolderhas a method with the given name and zero parameters; otherwise return false.default booleanhasMethodSignature(String name) Return true if thisMethodHolderhas a method with the given name and zero parameters; otherwise return false.default booleanhasMethodSignature(String name, Class<?>... paramTypes) Return true if thisMethodHolderhas a method with the given name and signature types; otherwise return false.default booleanhasMethodSignature(String name, String... paramTypes) Return true if thisMethodHolderhas a method with the given name and signature types; otherwise return false.default booleanhasMethodSignature(Method<?, ?> method) Return true if thisMethodHolderhas a method with signature matching the given method's signature.Methods inherited from interface org.jboss.forge.roaster.model.MemberHolder
getMembers
-
Method Details
-
hasMethod
Return true if thisMethodHolderhas a method with the given name and zero parameters; otherwise return false. -
hasMethodSignature
Return true if thisMethodHolderhas a method with signature matching the given method's signature. -
hasMethodSignature
Return true if thisMethodHolderhas a method with the given name and zero parameters; otherwise return false. -
hasMethodSignature
Return true if thisMethodHolderhas a method with the given name and signature types; otherwise return false. -
hasMethodSignature
Return true if thisMethodHolderhas a method with the given name and signature types; otherwise return false. -
getMethod
Return theMethodwith the given name and zero parameters; otherwise return null. -
getMethod
Return theMethodwith the given name and signature types; otherwise return null. -
getMethod
Return theMethodwith the given name and signature types; otherwise return null. -
getMethods
Get aListof allMethods declared by thisMethodHolderinstance, if any; otherwise, return an emptyList
-