Uses of Class
com.github.javaparser.ast.Modifier.Keyword
-
Packages that use Modifier.Keyword Package Description com.github.javaparser.ast com.github.javaparser.ast.nodeTypes com.github.javaparser.resolution.declarations -
-
Uses of Modifier.Keyword in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return Modifier.Keyword Modifier and Type Method Description Modifier.KeywordModifier. getKeyword()static Modifier.KeywordModifier.Keyword. valueOf(String name)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.Keyword Modifier and Type Method Description AnnotationDeclarationCompilationUnit. addAnnotationDeclaration(String name, Modifier.Keyword... modifiers)Add an annotation declaration to the types of this compilation unitClassOrInterfaceDeclarationCompilationUnit. addClass(String name, Modifier.Keyword... modifiers)Add a class to the types of this compilation unitEnumDeclarationCompilationUnit. addEnum(String name, Modifier.Keyword... modifiers)Add an enum to the types of this compilation unitClassOrInterfaceDeclarationCompilationUnit. addInterface(String name, Modifier.Keyword... modifiers)Add an interface to the types of this compilation unitstatic NodeList<Modifier>Modifier. createModifierList(Modifier.Keyword... modifiers)Utility method that instantiaties "Modifier"s for the keywords, and puts them in a NodeList.ModifierModifier. setKeyword(Modifier.Keyword keyword)Constructors in com.github.javaparser.ast with parameters of type Modifier.Keyword Constructor Description Modifier(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.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return Modifier.Keyword Modifier and Type Method Description default Modifier.KeywordNodeWithModifiers. getAccessSpecifier()Methods in com.github.javaparser.ast.nodeTypes with parameters of type Modifier.Keyword Modifier and Type Method Description default ConstructorDeclarationNodeWithConstructors. addConstructor(Modifier.Keyword... modifiers)Adds a constructor to thisdefault 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.resolution.declarations
Methods in com.github.javaparser.resolution.declarations that return Modifier.Keyword Modifier and Type Method Description Modifier.KeywordHasAccessSpecifier. accessSpecifier()The access specifier of this element.
-