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 |
---|---|
static FieldDeclaration |
FieldDeclaration.create(EnumSet<Modifier> modifiers,
Type type,
String name)
Creates a
FieldDeclaration . |
static FieldDeclaration |
FieldDeclaration.create(EnumSet<Modifier> modifiers,
Type type,
VariableDeclarator variable)
Creates a
FieldDeclaration . |
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 elementType,
String variableName,
Modifier... modifiers) |
VariableDeclarationExpr(Type elementType,
VariableDeclarator var,
Modifier... modifiers) |
Constructor and Description |
---|
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
Type elementType,
List<VariableDeclarator> variables) |
VariableDeclarationExpr(Range range,
EnumSet<Modifier> modifiers,
List<AnnotationExpr> annotations,
Type elementType,
List<VariableDeclarator> variables,
List<ArrayBracketPair> arrayBracketPairsAfterType) |
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.addCtor(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 T |
NodeWithModifiers.addModifier(Modifier... modifiers) |
Modifier and Type | Method and Description |
---|---|
T |
NodeWithModifiers.setModifiers(EnumSet<Modifier> modifiers) |
Constructor and Description |
---|
CatchClause(Range range,
EnumSet<Modifier> exceptModifier,
List<AnnotationExpr> exceptAnnotations,
Type exceptType,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
Copyright © 2007–2016. All rights reserved.