Modifier and Type | Method and 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 and Description |
---|---|
EnumSet<Modifier> |
Modifier.toEnumSet() |
Modifier and Type | Method and 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 and Description |
---|---|
static AccessSpecifier |
Modifier.getAccessSpecifier(Set<Modifier> modifiers) |
Modifier and Type | Method and 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> |
Parameter.getModifiers()
Return the modifiers of this parameter declaration.
|
EnumSet<Modifier> |
TypeDeclaration.getModifiers()
Return the modifiers of this type declaration.
|
EnumSet<Modifier> |
FieldDeclaration.getModifiers()
Return the modifiers of this member declaration.
|
Modifier and Type | Method and Description |
---|---|
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
ConstructorDeclaration |
ConstructorDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
MethodDeclaration |
MethodDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
T |
CallableDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
Parameter |
Parameter.setModifiers(EnumSet<Modifier> modifiers) |
T |
TypeDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
FieldDeclaration |
FieldDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
Constructor and Description |
---|
AnnotationDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
AnnotationDeclaration(EnumSet<Modifier> modifiers,
String name) |
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.
|
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name,
Expression defaultValue) |
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.
|
CallableDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
ReceiverParameter receiverParameter)
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) |
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.
|
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter) |
ConstructorDeclaration(EnumSet<Modifier> modifiers,
String name) |
ConstructorDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter)
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) |
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.
|
FieldDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
FieldDeclaration(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
FieldDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name)
Creates a
FieldDeclaration . |
FieldDeclaration(EnumSet<Modifier> modifiers,
VariableDeclarator variable) |
FieldDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables)
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,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter) |
MethodDeclaration(EnumSet<Modifier> modifiers,
String name,
Type type,
NodeList<Parameter> parameters) |
MethodDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name) |
MethodDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter)
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) |
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.
|
TypeDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
TypeDeclaration(EnumSet<Modifier> modifiers,
String 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.
|
Modifier and Type | Method and Description |
---|---|
EnumSet<Modifier> |
VariableDeclarationExpr.getModifiers()
Return the modifiers of this variable declaration.
|
Modifier and Type | Method and Description |
---|---|
VariableDeclarationExpr |
VariableDeclarationExpr.setModifiers(EnumSet<Modifier> modifiers) |
Constructor and Description |
---|
VariableDeclarationExpr(Type type,
String variableName,
Modifier... modifiers) |
VariableDeclarationExpr(VariableDeclarator var,
Modifier... modifiers) |
Constructor and Description |
---|
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
EnumSet<Modifier> |
ModuleRequiresStmt.getModifiers() |
Modifier and Type | Method and Description |
---|---|
ModuleRequiresStmt |
ModuleRequiresStmt.setModifiers(EnumSet<Modifier> modifiers) |
Constructor and Description |
---|
ModuleRequiresStmt(EnumSet<Modifier> modifiers,
Name name) |
ModuleRequiresStmt(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
Name name)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
EnumSet<Modifier> |
NodeWithModifiers.getModifiers()
Return the modifiers of this variable declaration.
|
Modifier and Type | Method and Description |
---|---|
default ConstructorDeclaration |
NodeWithConstructors.addConstructor(Modifier... modifiers)
Adds a constructor 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 FieldDeclaration |
NodeWithMembers.addField(Type type,
String name,
Modifier... modifiers)
Add a field to this.
|
default FieldDeclaration |
NodeWithMembers.addFieldWithInitializer(Class<?> typeClass,
String name,
Expression initializer,
Modifier... modifiers)
Add a field to this and automatically add the import of the type if needed
|
default FieldDeclaration |
NodeWithMembers.addFieldWithInitializer(String type,
String name,
Expression initializer,
Modifier... modifiers)
Add a field to this.
|
default FieldDeclaration |
NodeWithMembers.addFieldWithInitializer(Type type,
String name,
Expression initializer,
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 and Description |
---|---|
N |
NodeWithModifiers.setModifiers(EnumSet<Modifier> modifiers) |
Constructor and Description |
---|
CatchClause(EnumSet<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
SimpleName exceptName,
BlockStmt body) |
Copyright © 2007–2018. All rights reserved.