| Package | Description |
|---|---|
| com.github.javaparser.ast.body | |
| com.github.javaparser.ast.nodeTypes | |
| com.github.javaparser.ast.visitor |
| 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. |
FieldDeclaration |
FieldDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
FieldDeclaration |
FieldDeclaration.setType(Type type) |
| Modifier and Type | Method and Description |
|---|---|
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.addPrivateField(Class<?> typeClass,
String name)
Add a private field to this
|
default FieldDeclaration |
NodeWithMembers.addPrivateField(String type,
String name)
Add a private field to this and automatically add the import of the type if
needed
|
default FieldDeclaration |
NodeWithMembers.addProtectedField(Class<?> typeClass,
String name)
Add a protected field to this
|
default FieldDeclaration |
NodeWithMembers.addProtectedField(String type,
String name)
Add a protected field to this and automatically add the import of the type
if needed
|
default FieldDeclaration |
NodeWithMembers.addPublicField(Class<?> typeClass,
String name)
Add a public field to this
|
default FieldDeclaration |
NodeWithMembers.addPublicField(String type,
String name)
Add a public field to this and automatically add the import of the type if
needed
|
default FieldDeclaration |
NodeWithMembers.getFieldByName(String name)
Try to find a
FieldDeclaration by its name |
| Modifier and Type | Method and Description |
|---|---|
default List<FieldDeclaration> |
NodeWithMembers.getFields()
Find all fields in the members of this node.
|
| Modifier and Type | Method and Description |
|---|---|
R |
GenericVisitor.visit(FieldDeclaration n,
A arg) |
void |
VoidVisitor.visit(FieldDeclaration n,
A arg) |
void |
VoidVisitorAdapter.visit(FieldDeclaration n,
A arg) |
Node |
ModifierVisitorAdapter.visit(FieldDeclaration n,
A arg) |
R |
GenericVisitorAdapter.visit(FieldDeclaration n,
A arg) |
Boolean |
EqualsVisitor.visit(FieldDeclaration n1,
Node arg) |
void |
DumpVisitor.visit(FieldDeclaration n,
Object arg) |
Node |
CloneVisitor.visit(FieldDeclaration _n,
Object _arg) |
Copyright © 2007–2016. All rights reserved.