Uses of Class
com.sun.codemodel.JMethod
Packages that use JMethod
Package
Description
Library for generating Java source code
-
Uses of JMethod in com.sun.codemodel
Methods in com.sun.codemodel that return JMethodModifier 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.Methods in com.sun.codemodel that return types with arguments of type JMethodModifier 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.Methods in com.sun.codemodel with parameters of type JMethodModifier 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.xjc.generator.bean
Methods in com.sun.tools.xjc.generator.bean that return JMethodModifier 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)