Uses of Interface
org.jboss.forge.roaster.model.source.MethodSource
Packages that use MethodSource
-
Uses of MethodSource in org.jboss.forge.roaster.model.source
Methods in org.jboss.forge.roaster.model.source that return MethodSourceModifier and TypeMethodDescriptionMethodHolderSource.addMethod()Add an uninitializedMethodSourcedeclaration to thisMethodHolderSourceinstance.Add a newMethodSourcedeclaration to thisMethodHolderSourceinstance, using the givenMethodas the method declaration.Add a newMethodSourcedeclaration to thisMethodHolderSourceinstance, using the givenStringas the method declaration.Add a newMethodSourcedeclaration to thisMethodHolderSourceinstance, using the givenMethodas the method declaration.Add a thrownExceptionto this method's signature.Add a thrownExceptionto this method's signature.PropertySource.createAccessor()Create the accessor method.PropertySource.createMutator()Create the mutator method.PropertySource.getAccessor()Override.default MethodSource<O>Return theMethodSourcewith the given name and zero parameters; otherwise return null.default MethodSource<O>Return theMethodSourcewith the given name and signature types; otherwise return null.default MethodSource<O>Return theMethodSourcewith the given name and signature types; otherwise return null.PropertySource.getMutator()Override.MethodSource.removeParameter(Class<?> type, String name) Remove a parameter with the specifiedClasstype and name from this methodMethodSource.removeParameter(String type, String name) Remove a parameter with the specified type and name from this methodMethodSource.removeParameter(JavaType<?> type, String name) Remove a parameter with the specifiedJavaTypetype and name to this methodMethodSource.removeParameter(ParameterSource<O> parameter) Remove a parameter from this methodMethodSource.removeThrows(Class<? extends Exception> type) Remove a thrownExceptionto this method's signature.MethodSource.removeThrows(String type) Remove a thrownExceptionto this method's signature.Set the inner body of thisMethodMethodSource.setConstructor(boolean constructor) Toggle this method as a constructor.MethodSource.setDefault(boolean value) Sets the default keyword in this methodMethodSource.setNative(boolean value) Sets this method to be native IMPORTANT: Setting it totruewill remove the method body.MethodSource.setParameters(String string) Set thisMethod's parameters.MethodSource.setReturnType(Class<?> type) Set thisMethodto return the given type.MethodSource.setReturnType(String type) Set thisMethodto return the given type.MethodSource.setReturnType(JavaType<?> type) Set thisMethodto return the given type.MethodSource.setReturnType(Type<?> type) Set thisMethodto return the given type.MethodSource.setReturnTypeVoid()Set thisMethodto return 'void'MethodSource.setSynchronized(boolean value) Sets the synchronized keyword in this element.Methods in org.jboss.forge.roaster.model.source that return types with arguments of type MethodSourceModifier and TypeMethodDescriptionMethodHolderSource.getMethods()Get aListof allMethodSources declared by thisMethodHolderSourceinstance, if any; otherwise, return an emptyList -
Uses of MethodSource in org.jboss.forge.roaster.model.util
Methods in org.jboss.forge.roaster.model.util that return types with arguments of type MethodSourceModifier and TypeMethodDescriptionstatic List<MethodSource<?>>Methods.implementAbstractMethods(Class<?> source, MethodHolderSource<?> target) Implement the abstract methods present in aClassto the specifiedMethodHolderSource.static List<MethodSource<?>>Methods.implementAbstractMethods(MethodHolder<?> source, MethodHolderSource<?> target) Implement the abstract methods present in aMethodHolderto the specifiedMethodHolderSource.Methods in org.jboss.forge.roaster.model.util with parameters of type MethodSourceModifier and TypeMethodDescriptionstatic voidMethods.implementMethod(MethodSource<?> source) Adds a default method implementation to the givenMethodSource.static voidMethods.removeAllAnnotations(MethodSource<?> source)