Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
com.sun.tools.xjc.generator.bean |
Modifier and Type | Method and Description |
---|---|
JMethod |
JMethod._throws(Class<? extends Throwable> exception) |
JMethod |
JMethod._throws(JClass exception)
Add an exception to the list of exceptions that this
method may throw.
|
JMethod |
JDefinedClass.constructor(int mods)
Adds a constructor to this class.
|
JMethod |
JDefinedClass.getConstructor(JType[] argTypes)
Looks for a method that has the specified method signature
and return it.
|
JMethod |
JDefinedClass.getMethod(String name,
JType[] argTypes)
Looks for a method that has the specified method signature
and return it.
|
JMethod |
JDefinedClass.method(int mods,
Class<?> type,
String name) |
JMethod |
JDefinedClass.method(int mods,
JType type,
String name)
Add a method to the list of method members of this JDefinedClass instance.
|
Modifier and Type | Method and Description |
---|---|
Iterator<JMethod> |
JDefinedClass.constructors()
Returns an iterator that walks the constructors defined in this class.
|
Collection<JMethod> |
JDefinedClass.methods()
Returns the set of methods defined in this class.
|
Modifier and Type | Method and Description |
---|---|
static JInvocation |
JExpr.invoke(JExpression lhs,
JMethod method) |
JInvocation |
JBlock.invoke(JExpression expr,
JMethod method)
Creates an invocation statement and adds it to this block.
|
JInvocation |
JExpressionImpl.invoke(JMethod method) |
JInvocation |
JExpression.invoke(JMethod method)
Returns "[this].[method]".
|
static JInvocation |
JExpr.invoke(JMethod method) |
JInvocation |
JBlock.invoke(JMethod method)
Creates an invocation statement and adds it to this block.
|
JInvocation |
JClass.staticInvoke(JMethod method)
Generates a static method invocation.
|
Modifier and Type | Method and Description |
---|---|
JMethod |
MethodWriter.declareMethod(Class returnType,
String methodName) |
abstract JMethod |
MethodWriter.declareMethod(JType returnType,
String methodName)
Declares a method in both the interface and the implementation.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.