JCatch |
ImplJCatch._catch(int mods,
JType type,
java.lang.String var) |
|
JCatch |
ImplJTry._catch(int mods,
JType type,
java.lang.String var) |
|
JCatch |
JTry._catch(int mods,
JType type,
java.lang.String var) |
Add a catch block.
|
JClassDef |
AbstractJClassDef._extends(JType type) |
|
JClassDef |
AnnotationJClassDef._extends(JType type) |
|
JClassDef |
EnumJClassDef._extends(JType type) |
|
JClassDef |
ImplJAnonymousClassDef._extends(JType type) |
|
JTypeParamDef |
ImplJTypeParamDef._extends(JType type) |
|
JClassDef |
InterfaceJClassDef._extends(JType type) |
|
JClassDef |
JClassDef._extends(JType type) |
Add an extends type to this type.
|
JTypeParamDef |
JTypeParamDef._extends(JType type) |
Add an extends bound to this parameter.
|
JClassDef |
AbstractJClassDef._implements(JType... types) |
|
JClassDef |
AnnotationJClassDef._implements(JType... types) |
|
JClassDef |
ImplJAnonymousClassDef._implements(JType... types) |
|
JClassDef |
JClassDef._implements(JType... type) |
Add one or more implements type(s) to this type.
|
JSourceFile |
ImplJSourceFile._import(JType type) |
|
JSourceFile |
JSourceFile._import(JType type) |
Add a type import to this source file.
|
JExpr |
AbstractJExpr._instanceof(JType type) |
|
JExpr |
JExpr._instanceof(JType type) |
Get a type-testing expression using the instanceof operator.
|
JCall |
AbstractJExpr._new(JType type) |
|
JCall |
BasicJBlock._new(JType type) |
|
JCall |
JBlock._new(JType type) |
Insert an object construction statement at this point.
|
JCall |
JExpr._new(JType type) |
Get an expression to construct a new inner class instance of this instance expression.
|
JAnonymousClassDef |
AbstractJExpr._newAnon(JType type) |
|
JAnonymousClassDef |
BasicJBlock._newAnon(JType type) |
|
JAnonymousClassDef |
JBlock._newAnon(JType type) |
Insert an object construction statement for an anonymous class at this point.
|
JAnonymousClassDef |
JExpr._newAnon(JType type) |
Construct a new anonymous subclass of the given type, which must be an inner class of the type of this
expression.
|
JTypeParamDef |
ImplJTypeParamDef._super(JType type) |
|
JTypeParamDef |
JTypeParamDef._super(JType type) |
Add a super bound to this parameter.
|
JHtmlComment |
AbstractJDocComment._throws(JType exceptionType) |
|
JComment |
AbstractJMethodDef._throws(JType type) |
|
JComment |
AnnotationJMethodDef._throws(JType type) |
|
JHtmlComment |
JDocComment._throws(JType exceptionType) |
Add a @throws tag.
|
JComment |
JMethodDef._throws(JType type) |
Get a @throws doc comment block.
|
JAnnotation |
BasicJAnnotatable.annotate(JType type) |
|
JAnnotation |
ImplJAnonymousClassDef.annotate(JType type) |
|
JAnnotation |
JAnnotatable.annotate(JType type) |
Add an annotation.
|
JAnnotation |
SuccessorJVarDeclaration.annotate(JType type) |
|
JAnnotationArray |
ImplJAnnotation.annotationArrayValue(java.lang.String name,
JType type) |
|
JAnnotationArray |
ImplJAnnotation.annotationArrayValue(JType type) |
|
JAnnotationArray |
JAnnotation.annotationArrayValue(java.lang.String name,
JType type) |
Set the named property of this annotation to an array of nested annotations of the given type.
|
JAnnotationArray |
JAnnotation.annotationArrayValue(JType type) |
Set the "value" property of this annotation to an array of nested annotations of the given type.
|
JAnnotation |
ImplJAnnotation.annotationValue(java.lang.String name,
JType type) |
|
JAnnotation |
ImplJAnnotation.annotationValue(JType type) |
|
JAnnotation |
JAnnotation.annotationValue(java.lang.String name,
JType type) |
Set the named property of this annotation to a nested annotation of the given type.
|
JAnnotation |
JAnnotation.annotationValue(JType type) |
Set the "value" property of this annotation to a nested annotation of the given type.
|
JCall |
BasicJBlock.callStatic(JType type,
java.lang.String name) |
|
JCall |
JBlock.callStatic(JType type,
java.lang.String name) |
Insert a type-qualified static method invocation at this point.
|
static JCall |
JExprs.callStatic(JType type,
java.lang.String name) |
Generate a method call expression to a method on the given static type.
|
JExpr |
AbstractJExpr.cast(JType type) |
|
JExpr |
JExpr.cast(JType type) |
Get an expression which is a cast of this expression to the given type.
|
private static JType[] |
NarrowedJType.concat(JType[] a,
JType[] b) |
|
JVarDeclaration |
AbstractJClassDef.field(int mods,
JType type,
java.lang.String name) |
|
JVarDeclaration |
AbstractJClassDef.field(int mods,
JType type,
java.lang.String name,
JExpr init) |
|
JVarDeclaration |
AbstractJClassDef.field(java.util.ArrayList<ClassContent> content,
int mods,
JType type,
java.lang.String name,
JExpr init) |
|
JVarDeclaration |
ImplJAnonymousClassDef.field(int mods,
JType type,
java.lang.String name) |
|
JVarDeclaration |
ImplJAnonymousClassDef.field(int mods,
JType type,
java.lang.String name,
JExpr init) |
|
JVarDeclaration |
JClassDefSection.field(int mods,
JType type,
java.lang.String name) |
Add a field to this type.
|
JVarDeclaration |
JClassDefSection.field(int mods,
JType type,
java.lang.String name,
JExpr init) |
Add a field to this type.
|
JVarDeclaration |
JClassDefSectionImpl.field(int mods,
JType type,
java.lang.String name) |
|
JVarDeclaration |
JClassDefSectionImpl.field(int mods,
JType type,
java.lang.String name,
JExpr init) |
|
JVarDeclaration |
Sectionable.field(java.util.ArrayList<ClassContent> content,
int mods,
JType type,
java.lang.String name,
JExpr init) |
|
JBlock |
BasicJBlock.forEach(int mods,
JType type,
java.lang.String name,
JExpr iterable) |
|
JBlock |
JBlock.forEach(int mods,
JType type,
java.lang.String name,
JExpr iterable) |
Insert a "for-each" style for loop at this point.
|
JTry |
ImplJCatch.ignore(JType type) |
|
JTry |
ImplJTry.ignore(JType type) |
|
JTry |
JTry.ignore(JType type) |
Add a catch for an ignored exception.
|
JSourceFile |
ImplJSourceFile.importStatic(JType type,
java.lang.String member) |
|
JSourceFile |
JSourceFile.importStatic(JType type,
java.lang.String member) |
Add a static member import to this source file.
|
JVarDeclaration |
ForJBlock.init(int mods,
JType type,
java.lang.String name,
JExpr value) |
|
JVarDeclaration |
JFor.init(int mods,
JType type,
java.lang.String name,
JExpr value) |
Add a loop initializer.
|
JComment |
AbstractJComment.linkConstructor(boolean plain,
JType targetType,
JType... params) |
|
JComment |
JComment.linkConstructor(boolean plain,
JType targetType,
JType... targetConstructorArgumentTypes) |
Add an inline @link to a constructor.
|
JComment |
AbstractJComment.linkField(boolean plain,
JType targetType,
java.lang.String targetField) |
|
JComment |
JComment.linkField(boolean plain,
JType targetType,
java.lang.String targetField) |
Add an inline @link to a field of a type.
|
JComment |
AbstractJComment.linkMethod(boolean plain,
JType targetType,
java.lang.String targetMethod,
JType... params) |
|
JComment |
JComment.linkMethod(boolean plain,
JType targetType,
java.lang.String targetMethod,
JType... targetMethodArgumentTypes) |
Add an inline @link to a method.
|
JComment |
AbstractJComment.linkType(boolean plain,
JType targetType) |
|
JComment |
JComment.linkType(boolean plain,
JType targetType) |
Add an inline @link to a type.
|
JMethodDef |
AbstractJClassDef.method(int mods,
JType returnType,
java.lang.String name) |
|
JMethodDef |
AbstractJClassDef.method(java.util.ArrayList<ClassContent> content,
int mods,
JType returnType,
java.lang.String name) |
|
JMethodDef |
AnnotationJClassDef.method(java.util.ArrayList<ClassContent> content,
int mods,
JType returnType,
java.lang.String name) |
|
JMethodDef |
ImplJAnonymousClassDef.method(int mods,
JType returnType,
java.lang.String name) |
|
JMethodDef |
JClassDefSection.method(int mods,
JType returnType,
java.lang.String name) |
Add a method to this type.
|
JMethodDef |
JClassDefSectionImpl.method(int mods,
JType returnType,
java.lang.String name) |
|
JMethodDef |
Sectionable.method(java.util.ArrayList<ClassContent> content,
int mods,
JType returnType,
java.lang.String name) |
|
(package private) static AbstractJType |
AbstractJType.of(JType type) |
|
(package private) static ReferenceJType |
ReferenceJType.of(JType type) |
|
JCatch |
ImplJCatch.or(JType orType) |
|
JCatch |
JCatch.or(JType orType) |
Add another type option to this catch branch.
|
JParamDeclaration |
AbstractJMethodDef.param(int mods,
JType type,
java.lang.String name) |
|
JParamDeclaration |
AbstractJMethodDef.param(JType type,
java.lang.String name) |
|
JParamDeclaration |
AnnotationJMethodDef.param(int mods,
JType type,
java.lang.String name) |
|
JLambda |
JLambda.param(JType type,
java.lang.String name) |
Add a declared-type parameter to this lambda.
|
JLambda |
JLambdaImpl.param(JType type,
java.lang.String name) |
|
JParamDeclaration |
JMethodDef.param(int mods,
JType type,
java.lang.String name) |
Add a parameter to this method.
|
JParamDeclaration |
JMethodDef.param(JType type,
java.lang.String name) |
Add a parameter to this method.
|
JExpr |
BasicJBlock.tempVar(JType type,
JExpr value) |
|
JExpr |
JBlock.tempVar(JType type,
JExpr value) |
Insert a local variable declaration at this point with a generated name.
|
JCall |
AbstractJCall.typeArg(JType type) |
|
JType |
AbstractJType.typeArg(JType... args) |
|
JCall |
DirectJCall.typeArg(JType type) |
|
JCall |
JCall.typeArg(JType type) |
Add a type argument to this call.
|
JType |
JType.typeArg(JType... args) |
This type, with the given generic type arguments.
|
JType |
NarrowedJType.typeArg(JType... args) |
|
JType |
NestedJType.typeArg(JType... args) |
|
JType |
ReferenceJType.typeArg(JType... args) |
|
JComment |
AbstractJComment.typeName(JType type) |
|
JDocComment |
AbstractJDocComment.typeName(JType type) |
|
JHtmlComment |
AbstractJHtmlComment.typeName(JType type) |
|
JComment |
JComment.typeName(JType type) |
Add a type name to the end of this comment.
|
JDocComment |
JDocComment.typeName(JType type) |
Add a type name to the end of this comment.
|
JHtmlComment |
JHtmlComment.typeName(JType type) |
Add a type name to the end of this comment.
|
JDocComment |
AbstractJDocComment.value(JType type,
java.lang.String fieldName) |
|
JHtmlComment |
AbstractJHtmlComment.value(JType type,
java.lang.String fieldName) |
|
JDocComment |
JDocComment.value(JType type,
java.lang.String fieldName) |
Add a @value inline tag.
|
JHtmlComment |
JHtmlComment.value(JType type,
java.lang.String fieldName) |
Add a @value inline tag.
|
JVarDeclaration |
BasicJBlock.var(int mods,
JType type,
java.lang.String name) |
|
JVarDeclaration |
BasicJBlock.var(int mods,
JType type,
java.lang.String name,
JExpr value) |
|
JVarDeclaration |
JBlock.var(int mods,
JType type,
java.lang.String name) |
Insert a local variable declaration at this point.
|
JVarDeclaration |
JBlock.var(int mods,
JType type,
java.lang.String name,
JExpr value) |
Insert a local variable declaration at this point.
|
JParamDeclaration |
AbstractJMethodDef.varargParam(int mods,
JType type,
java.lang.String name) |
|
JParamDeclaration |
AbstractJMethodDef.varargParam(JType type,
java.lang.String name) |
|
JParamDeclaration |
AnnotationJMethodDef.varargParam(int mods,
JType type,
java.lang.String name) |
|
JParamDeclaration |
JMethodDef.varargParam(int mods,
JType type,
java.lang.String name) |
Add a vararg parameter to this method.
|
JParamDeclaration |
JMethodDef.varargParam(JType type,
java.lang.String name) |
Add a vararg parameter to this method.
|
JVarDeclaration |
ImplJCatch.with(int mods,
JType type,
java.lang.String var,
JExpr init) |
|
JVarDeclaration |
ImplJTry.with(int mods,
JType type,
java.lang.String var,
JExpr init) |
|
JVarDeclaration |
JTry.with(int mods,
JType type,
java.lang.String var,
JExpr init) |
Add a resource for try -with-resources constructs.
|
(package private) void |
SourceFileWriter.write(JType type) |
|