Package | Description |
---|---|
com.github.javaparser.ast | |
com.github.javaparser.ast.body | |
com.github.javaparser.ast.expr | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.ast.stmt |
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(EnumSet<Modifier> modifiers) |
Modifier and Type | Method and Description |
---|---|
EnumSet<Modifier> |
ConstructorDeclaration.getModifiers()
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
Parameter.getModifiers()
Return the modifiers of this parameter declaration.
|
EnumSet<Modifier> |
FieldDeclaration.getModifiers()
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
AnnotationMemberDeclaration.getModifiers()
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
MethodDeclaration.getModifiers()
Return the modifiers of this member declaration.
|
EnumSet<Modifier> |
TypeDeclaration.getModifiers()
Return the modifiers of this type declaration.
|
Modifier and Type | Method and Description |
---|---|
ConstructorDeclaration |
ConstructorDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
Parameter |
Parameter.setModifiers(EnumSet<Modifier> modifiers) |
FieldDeclaration |
FieldDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
MethodDeclaration |
MethodDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
T |
TypeDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
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<VariableDeclarator> variables) |
VariableDeclarationExpr(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
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 |
NodeWithMembers.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 MethodDeclaration |
NodeWithMembers.addMethod(String methodName,
Modifier... modifiers)
Adds a methods with void return by default to this
|
default N |
NodeWithModifiers.addModifier(Modifier... modifiers) |
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 catchBlock) |
Copyright © 2007–2016. All rights reserved.