Modifier and Type | Method | Description |
---|---|---|
static Modifier |
Modifier.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Modifier[] |
Modifier.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
EnumSet<Modifier> |
Modifier.toEnumSet() |
Modifier and Type | Method | Description |
---|---|---|
AnnotationDeclaration |
CompilationUnit.addAnnotationDeclaration(String name,
Modifier... modifiers) |
Add an annotation declaration to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(String name,
Modifier... modifiers) |
Add a class to the types of this compilation unit
|
EnumDeclaration |
CompilationUnit.addEnum(String name,
Modifier... modifiers) |
Add an enum to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(String name,
Modifier... modifiers) |
Add an interface to the types of this compilation unit
|
Modifier and Type | Method | Description |
---|---|---|
static AccessSpecifier |
Modifier.getAccessSpecifier(EnumSet<Modifier> modifiers) |
Modifier and Type | Method | Description |
---|---|---|
EnumSet<Modifier> |
AnnotationMemberDeclaration.getModifiers() |
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
CallableDeclaration.getModifiers() |
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
FieldDeclaration.getModifiers() |
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
Parameter.getModifiers() |
Return the modifiers of this parameter declaration.
|
EnumSet<Modifier> |
TypeDeclaration.getModifiers() |
Return the modifiers of this type declaration.
|
Modifier and Type | Method | Description |
---|---|---|
ConstructorDeclaration |
ClassOrInterfaceDeclaration.addConstructor(Modifier... modifiers) |
Adds a constructor to this
|
Modifier and Type | Method | Description |
---|---|---|
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
|
T |
CallableDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
|
ConstructorDeclaration |
ConstructorDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
|
FieldDeclaration |
FieldDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
|
MethodDeclaration |
MethodDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
|
Parameter |
Parameter.setModifiers(EnumSet<Modifier> modifiers) |
|
T |
TypeDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
Constructor | Description |
---|---|
AnnotationDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
AnnotationDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
|
AnnotationDeclaration(EnumSet<Modifier> modifiers,
String name) |
|
AnnotationMemberDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
This constructor is used by the parser and is considered private.
|
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
|
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name,
Expression defaultValue) |
|
CallableDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions) |
This constructor is used by the parser and is considered private.
|
CallableDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions) |
|
ClassOrInterfaceDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers,
boolean isInterface,
String name) |
|
ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members) |
|
ConstructorDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
This constructor is used by the parser and is considered private.
|
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
|
ConstructorDeclaration(EnumSet<Modifier> modifiers,
String name) |
|
EnumDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<EnumConstantDeclaration> entries,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
EnumDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<EnumConstantDeclaration> entries,
NodeList<BodyDeclaration<?>> members) |
|
EnumDeclaration(EnumSet<Modifier> modifiers,
String name) |
|
FieldDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
This constructor is used by the parser and is considered private.
|
FieldDeclaration(EnumSet<Modifier> modifiers,
VariableDeclarator variable) |
|
FieldDeclaration(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
|
FieldDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
|
FieldDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name) |
Creates a
FieldDeclaration . |
MethodDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
This constructor is used by the parser and is considered private.
|
MethodDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
boolean isDefault,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
Deprecated.
this constructor allows you to set "isDefault", but this is no longer a field of this node, but simply one of the modifiers. Use setDefault(boolean) or add DEFAULT to the modifiers set.
|
MethodDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
|
MethodDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name) |
|
MethodDeclaration(EnumSet<Modifier> modifiers,
String name,
Type type,
NodeList<Parameter> parameters) |
|
Parameter(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
NodeList<AnnotationExpr> varArgsAnnotations,
SimpleName name) |
This constructor is used by the parser and is considered private.
|
Parameter(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
NodeList<AnnotationExpr> varArgsAnnotations,
SimpleName name) |
|
Parameter(EnumSet<Modifier> modifiers,
Type type,
SimpleName name) |
|
TypeDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
TypeDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
|
TypeDeclaration(EnumSet<Modifier> modifiers,
String name) |
Modifier and Type | Method | Description |
---|---|---|
EnumSet<Modifier> |
VariableDeclarationExpr.getModifiers() |
Return the modifiers of this variable declaration.
|
Modifier and Type | Method | Description |
---|---|---|
VariableDeclarationExpr |
VariableDeclarationExpr.setModifiers(EnumSet<Modifier> modifiers) |
Constructor | Description |
---|---|
VariableDeclarationExpr(VariableDeclarator var,
Modifier... modifiers) |
|
VariableDeclarationExpr(Type type,
String variableName,
Modifier... modifiers) |
Constructor | Description |
---|---|
VariableDeclarationExpr(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
This constructor is used by the parser and is considered private.
|
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
|
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
Modifier and Type | Method | Description |
---|---|---|
EnumSet<Modifier> |
ModuleRequiresStmt.getModifiers() |
Modifier and Type | Method | Description |
---|---|---|
ModuleRequiresStmt |
ModuleRequiresStmt.setModifiers(EnumSet<Modifier> modifiers) |
Constructor | Description |
---|---|
ModuleRequiresStmt(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
Name name) |
This constructor is used by the parser and is considered private.
|
ModuleRequiresStmt(EnumSet<Modifier> modifiers,
Name name) |
Modifier and Type | Method | Description |
---|---|---|
EnumSet<Modifier> |
NodeWithModifiers.getModifiers() |
Return the modifiers of this variable declaration.
|
Modifier and Type | Method | Description |
---|---|---|
default FieldDeclaration |
NodeWithMembers.addField(Type type,
String name,
Modifier... modifiers) |
Add a field to this
|
default FieldDeclaration |
NodeWithMembers.addField(Class<?> typeClass,
String name,
Modifier... modifiers) |
Add a field to this and automatically add the import of the type if needed
|
default FieldDeclaration |
NodeWithMembers.addField(String type,
String name,
Modifier... modifiers) |
Add a field to this
|
default MethodDeclaration |
NodeWithMembers.addMethod(String methodName,
Modifier... modifiers) |
Adds a methods with void return by default to this
|
default N |
NodeWithModifiers.addModifier(Modifier... modifiers) |
|
default N |
NodeWithModifiers.removeModifier(Modifier... m) |
|
default N |
NodeWithModifiers.setModifier(Modifier m,
boolean set) |
Modifier and Type | Method | Description |
---|---|---|
N |
NodeWithModifiers.setModifiers(EnumSet<Modifier> modifiers) |
Constructor | Description |
---|---|
CatchClause(EnumSet<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
SimpleName exceptName,
BlockStmt body) |
Copyright © 2007–2019. All rights reserved.