Uses of Enum Class
com.github.javaparser.ast.Modifier.Keyword
Packages that use Modifier.Keyword
Package
Description
-
Uses of Modifier.Keyword in com.github.javaparser.ast
Fields in com.github.javaparser.ast declared as Modifier.KeywordMethods in com.github.javaparser.ast that return Modifier.KeywordModifier and TypeMethodDescriptionModifier.getKeyword()static Modifier.KeywordReturns the enum constant of this class with the specified name.static Modifier.Keyword[]Modifier.Keyword.values()Returns an array containing the constants of this enum class, 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 ConstructorDeclarationNodeWithMembers.addConstructor(Modifier.Keyword... modifiers) Adds a constructor to this node with members.default FieldDeclarationNodeWithMembers.addField(Type type, String name, Modifier.Keyword... modifiers) Add a field to this.default FieldDeclarationNodeWithMembers.addField(Class<?> typeClass, String name, Modifier.Keyword... modifiers) Add a field to this and automatically add the import of the type if neededdefault FieldDeclarationNodeWithMembers.addField(String type, String name, Modifier.Keyword... modifiers) Add a field to this.default FieldDeclarationNodeWithMembers.addFieldWithInitializer(Type type, String name, Expression initializer, Modifier.Keyword... modifiers) Add a field to this.default FieldDeclarationNodeWithMembers.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 FieldDeclarationNodeWithMembers.addFieldWithInitializer(String type, String name, Expression initializer, Modifier.Keyword... modifiers) Add a field to this.default MethodDeclarationNodeWithMembers.addMethod(String methodName, Modifier.Keyword... modifiers) Adds a methods with void return by default to this.default NNodeWithModifiers.addModifier(Modifier.Keyword... newModifiers) default booleanNodeWithModifiers.hasModifier(Modifier.Keyword modifier) default NNodeWithModifiers.removeModifier(Modifier.Keyword... modifiersToRemove) default NNodeWithModifiers.setModifier(Modifier.Keyword m, boolean set) default NNodeWithModifiers.setModifiers(Modifier.Keyword... modifiers) Creates a list of modifier nodes corresponding to the keywords passed, and set it. -
Uses of Modifier.Keyword in com.github.javaparser.ast.validator.language_level_validations.chunks
Fields in com.github.javaparser.ast.validator.language_level_validations.chunks declared as Modifier.KeywordModifier and TypeFieldDescriptionprivate final Modifier.Keyword[]ModifierValidator.interfaceWithNothingSpecialprivate final Modifier.Keyword[]ModifierValidator.interfaceWithStaticAndDefaultprivate final Modifier.Keyword[]ModifierValidator.interfaceWithStaticAndDefaultAndPrivateMethods in com.github.javaparser.ast.validator.language_level_validations.chunks that return Modifier.KeywordModifier and TypeMethodDescriptionprivate Modifier.Keyword[]ModifierValidator.removeModifierFromArray(Modifier.Keyword m, Modifier.Keyword[] allowedModifiers) Methods in com.github.javaparser.ast.validator.language_level_validations.chunks with parameters of type Modifier.KeywordModifier and TypeMethodDescriptionprivate Modifier.Keyword[]ModifierValidator.removeModifierFromArray(Modifier.Keyword m, Modifier.Keyword[] allowedModifiers) private <T extends NodeWithModifiers<?> & NodeWithTokenRange<?>>
voidModifierValidator.validateAtMostOneOf(T t, ProblemReporter reporter, Modifier.Keyword... modifiers) private <T extends NodeWithModifiers<?> & NodeWithTokenRange<?>>
voidModifierValidator.validateModifiers(T n, ProblemReporter reporter, Modifier.Keyword... allowedModifiers)