Uses of Enum
com.github.javaparser.ast.Modifier.Keyword
Packages that use Modifier.Keyword
Package
Description
-
Uses of Modifier.Keyword in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return Modifier.KeywordModifier and TypeMethodDescriptionModifier.getKeyword()
static Modifier.Keyword
Returns the enum constant of this type with the specified name.static Modifier.Keyword[]
Modifier.Keyword.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.github.javaparser.ast with parameters of type Modifier.KeywordModifier and TypeMethodDescriptionCompilationUnit.addAnnotationDeclaration(String name, Modifier.Keyword... modifiers)
Add an annotation declaration to the types of this compilation unitCompilationUnit.addClass(String name, Modifier.Keyword... modifiers)
Add a class to the types of this compilation unitCompilationUnit.addEnum(String name, Modifier.Keyword... modifiers)
Add an enum to the types of this compilation unitCompilationUnit.addInterface(String name, Modifier.Keyword... modifiers)
Add an interface to the types of this compilation unitModifier.createModifierList(Modifier.Keyword... modifiers)
Utility method that instantiaties "Modifier"s for the keywords, and puts them in a NodeList.Modifier.setKeyword(Modifier.Keyword keyword)
Constructors in com.github.javaparser.ast with parameters of type Modifier.KeywordModifierConstructorDescriptionModifier(Modifier.Keyword keyword)
Modifier(TokenRange tokenRange, Modifier.Keyword keyword)
This constructor is used by the parser and is considered private. -
Uses of Modifier.Keyword in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body with parameters of type Modifier.KeywordModifier and TypeMethodDescriptionAnnotationDeclaration.addField(Type type, String name, Modifier.Keyword... modifiers)
-
Uses of Modifier.Keyword in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes with parameters of type Modifier.KeywordModifier and TypeMethodDescriptiondefault ConstructorDeclaration
NodeWithMembers.addConstructor(Modifier.Keyword... modifiers)
Adds a constructor to this node with members.default FieldDeclaration
NodeWithMembers.addField(Type type, String name, Modifier.Keyword... modifiers)
Add a field to this.default FieldDeclaration
NodeWithMembers.addField(Class<?> typeClass, String name, Modifier.Keyword... modifiers)
Add a field to this and automatically add the import of the type if neededdefault FieldDeclaration
NodeWithMembers.addField(String type, String name, Modifier.Keyword... modifiers)
Add a field to this.default FieldDeclaration
NodeWithMembers.addFieldWithInitializer(Type type, String name, Expression initializer, Modifier.Keyword... modifiers)
Add a field to this.default FieldDeclaration
NodeWithMembers.addFieldWithInitializer(Class<?> typeClass, String name, Expression initializer, Modifier.Keyword... modifiers)
Add a field to this and automatically add the import of the type if neededdefault FieldDeclaration
NodeWithMembers.addFieldWithInitializer(String type, String name, Expression initializer, Modifier.Keyword... modifiers)
Add a field to this.default MethodDeclaration
NodeWithMembers.addMethod(String methodName, Modifier.Keyword... modifiers)
Adds a methods with void return by default to this.default N
NodeWithModifiers.addModifier(Modifier.Keyword... newModifiers)
default boolean
NodeWithModifiers.hasModifier(Modifier.Keyword modifier)
default N
NodeWithModifiers.removeModifier(Modifier.Keyword... modifiersToRemove)
default N
NodeWithModifiers.setModifier(Modifier.Keyword m, boolean set)
default N
NodeWithModifiers.setModifiers(Modifier.Keyword... modifiers)
Creates a list of modifier nodes corresponding to the keywords passed, and set it.