Package | Description |
---|---|
com.github.javaparser.ast.body | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.ast.visitor | |
com.github.javaparser.printer |
Modifier and Type | Method and Description |
---|---|
FieldDeclaration |
FieldDeclaration.setArrayBracketPairsAfterElementType(NodeList<ArrayBracketPair> arrayBracketPairsAfterType)
Deprecated.
will be removed in 3.0
|
FieldDeclaration |
FieldDeclaration.setElementType(Type<?> elementType)
Deprecated.
will be removed in 3.0
|
FieldDeclaration |
FieldDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
FieldDeclaration |
FieldDeclaration.setVariables(NodeList<VariableDeclarator> variables) |
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) |
Visitable |
ModifierVisitorAdapter.visit(FieldDeclaration n,
A arg) |
R |
GenericVisitorAdapter.visit(FieldDeclaration n,
A arg) |
Visitable |
CloneVisitor.visit(FieldDeclaration _n,
Object _arg) |
Boolean |
EqualsVisitor.visit(FieldDeclaration n1,
Visitable arg) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(FieldDeclaration n,
Void arg) |
Copyright © 2007–2016. All rights reserved.