Uses of Class
com.sun.codemodel.JMethod
Package
Description
Library for generating Java source code
-
Uses of JMethod in com.sun.codemodel
Modifier and TypeMethodDescriptionAdd an exception to the list of exceptions that this method may throw.JDefinedClass.constructor
(int mods) Adds a constructor to this class.JDefinedClass.getConstructor
(JType[] argTypes) Looks for a method that has the specified method signature and return it.Looks for a method that has the specified method signature and return it.Add a method to the list of method members of this JDefinedClass instance.Modifier and TypeMethodDescriptionJDefinedClass.constructors()
Returns an iterator that walks the constructors defined in this class.JDefinedClass.methods()
Returns the set of methods defined in this class.Modifier and TypeMethodDescriptionJBlock.invoke
(JExpression expr, JMethod method) Creates an invocation statement and adds it to this block.Creates an invocation statement and adds it to this block.static JInvocation
JExpr.invoke
(JExpression lhs, JMethod method) static JInvocation
Returns "[this].[method]".final JInvocation
final JInvocation
JClass.staticInvoke
(JMethod method) Generates a static method invocation. -
Uses of JMethod in com.sun.tools.ws.api
Modifier and TypeMethodDescriptionabstract void
TJavaGeneratorExtension.writeMethodAnnotations
(TWSDLOperation wsdlOperation, JMethod jMethod) Deprecated.This method should be used to write annotations onJMethod
. -
Uses of JMethod in com.sun.tools.ws.processor.generator
Modifier and TypeMethodDescriptionvoid
JavaGeneratorExtensionFacade.writeMethodAnnotations
(TWSDLOperation wsdlOperation, JMethod jMethod) void
W3CAddressingJavaGeneratorExtension.writeMethodAnnotations
(TWSDLOperation two, JMethod jMethod) -
Uses of JMethod in com.sun.tools.xjc.generator.bean
Modifier and TypeMethodDescriptionabstract JMethod
MethodWriter.declareMethod
(JType returnType, String methodName) Declares a method in both the interface and the implementation.final JMethod
MethodWriter.declareMethod
(Class<?> returnType, String methodName)