Uses of Class
com.github.javaparser.ast.Modifier
-
-
Uses of Modifier in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return Modifier Modifier and Type Method Description static ModifierModifier. valueOf(String name)Returns the enum constant of this type with the specified name.static Modifier[]Modifier. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.github.javaparser.ast that return types with arguments of type Modifier Modifier and Type Method Description EnumSet<Modifier>Modifier. toEnumSet()Methods in com.github.javaparser.ast with parameters of type Modifier Modifier and Type Method Description AnnotationDeclarationCompilationUnit. addAnnotationDeclaration(String name, Modifier... modifiers)Add an annotation declaration to the types of this compilation unitClassOrInterfaceDeclarationCompilationUnit. addClass(String name, Modifier... modifiers)Add a class to the types of this compilation unitEnumDeclarationCompilationUnit. addEnum(String name, Modifier... modifiers)Add an enum to the types of this compilation unitClassOrInterfaceDeclarationCompilationUnit. addInterface(String name, Modifier... modifiers)Add an interface to the types of this compilation unitMethod parameters in com.github.javaparser.ast with type arguments of type Modifier Modifier and Type Method Description static AccessSpecifierModifier. getAccessSpecifier(Set<Modifier> modifiers) -
Uses of Modifier in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return types with arguments of type Modifier Modifier and Type Method Description EnumSet<Modifier>AnnotationMemberDeclaration. getModifiers()Return the modifiers of this member declaration.EnumSet<Modifier>CallableDeclaration. getModifiers()Return the modifiers of this member declaration.EnumSet<Modifier>FieldDeclaration. getModifiers()Return the modifiers of this member declaration.EnumSet<Modifier>Parameter. getModifiers()Return the modifiers of this parameter declaration.EnumSet<Modifier>TypeDeclaration. getModifiers()Return the modifiers of this type declaration.Method parameters in com.github.javaparser.ast.body with type arguments of type Modifier Modifier and Type Method Description AnnotationMemberDeclarationAnnotationMemberDeclaration. setModifiers(EnumSet<Modifier> modifiers)TCallableDeclaration. setModifiers(EnumSet<Modifier> modifiers)ConstructorDeclarationConstructorDeclaration. setModifiers(EnumSet<Modifier> modifiers)FieldDeclarationFieldDeclaration. setModifiers(EnumSet<Modifier> modifiers)MethodDeclarationMethodDeclaration. setModifiers(EnumSet<Modifier> modifiers)ParameterParameter. setModifiers(EnumSet<Modifier> modifiers)TTypeDeclaration. setModifiers(EnumSet<Modifier> modifiers)Constructor parameters in com.github.javaparser.ast.body with type arguments of type Modifier Constructor Description AnnotationDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)This constructor is used by the parser and is considered private.AnnotationDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)AnnotationDeclaration(EnumSet<Modifier> modifiers, String name)AnnotationMemberDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)This constructor is used by the parser and is considered private.AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, Type type, String name, Expression defaultValue)CallableDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, ReceiverParameter receiverParameter)This constructor is used by the parser and is considered private.ClassOrInterfaceDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members)This constructor is used by the parser and is considered private.ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers, boolean isInterface, String name)ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members)ConstructorDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter)This constructor is used by the parser and is considered private.ConstructorDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body)ConstructorDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter)ConstructorDeclaration(EnumSet<Modifier> modifiers, String name)EnumDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members)This constructor is used by the parser and is considered private.EnumDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members)EnumDeclaration(EnumSet<Modifier> modifiers, String name)FieldDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)This constructor is used by the parser and is considered private.FieldDeclaration(EnumSet<Modifier> modifiers, VariableDeclarator variable)FieldDeclaration(EnumSet<Modifier> modifiers, NodeList<VariableDeclarator> variables)FieldDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)FieldDeclaration(EnumSet<Modifier> modifiers, Type type, String name)Creates aFieldDeclaration.MethodDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter)This constructor is used by the parser and is considered private.MethodDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, boolean isDefault, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body)Deprecated.this constructor allows you to set "isDefault", but this is no longer a field of this node, but simply one of the modifiers.MethodDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body)MethodDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter)MethodDeclaration(EnumSet<Modifier> modifiers, Type type, String name)MethodDeclaration(EnumSet<Modifier> modifiers, String name, Type type, NodeList<Parameter> parameters)Parameter(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, boolean isVarArgs, NodeList<AnnotationExpr> varArgsAnnotations, SimpleName name)This constructor is used by the parser and is considered private.Parameter(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, boolean isVarArgs, NodeList<AnnotationExpr> varArgsAnnotations, SimpleName name)Parameter(EnumSet<Modifier> modifiers, Type type, SimpleName name)TypeDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)This constructor is used by the parser and is considered private.TypeDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)TypeDeclaration(EnumSet<Modifier> modifiers, String name) -
Uses of Modifier in com.github.javaparser.ast.expr
Methods in com.github.javaparser.ast.expr that return types with arguments of type Modifier Modifier and Type Method Description EnumSet<Modifier>VariableDeclarationExpr. getModifiers()Return the modifiers of this variable declaration.Method parameters in com.github.javaparser.ast.expr with type arguments of type Modifier Modifier and Type Method Description VariableDeclarationExprVariableDeclarationExpr. setModifiers(EnumSet<Modifier> modifiers)Constructors in com.github.javaparser.ast.expr with parameters of type Modifier Constructor Description VariableDeclarationExpr(VariableDeclarator var, Modifier... modifiers)VariableDeclarationExpr(Type type, String variableName, Modifier... modifiers)Constructor parameters in com.github.javaparser.ast.expr with type arguments of type Modifier Constructor Description VariableDeclarationExpr(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)This constructor is used by the parser and is considered private.VariableDeclarationExpr(EnumSet<Modifier> modifiers, NodeList<VariableDeclarator> variables)VariableDeclarationExpr(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables) -
Uses of Modifier in com.github.javaparser.ast.modules
Methods in com.github.javaparser.ast.modules that return types with arguments of type Modifier Modifier and Type Method Description EnumSet<Modifier>ModuleRequiresDirective. getModifiers()Method parameters in com.github.javaparser.ast.modules with type arguments of type Modifier Modifier and Type Method Description ModuleRequiresDirectiveModuleRequiresDirective. setModifiers(EnumSet<Modifier> modifiers)Constructor parameters in com.github.javaparser.ast.modules with type arguments of type Modifier Constructor Description ModuleRequiresDirective(TokenRange tokenRange, EnumSet<Modifier> modifiers, Name name)This constructor is used by the parser and is considered private.ModuleRequiresDirective(EnumSet<Modifier> modifiers, Name name) -
Uses of Modifier in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type Modifier Modifier and Type Method Description EnumSet<Modifier>NodeWithModifiers. getModifiers()Return the modifiers of this variable declaration.Methods in com.github.javaparser.ast.nodeTypes with parameters of type Modifier Modifier and Type Method Description default ConstructorDeclarationNodeWithConstructors. addConstructor(Modifier... modifiers)Adds a constructor to thisdefault FieldDeclarationNodeWithMembers. addField(Type type, String name, Modifier... modifiers)Add a field to this.default FieldDeclarationNodeWithMembers. addField(Class<?> typeClass, String name, Modifier... modifiers)Add a field to this and automatically add the import of the type if neededdefault FieldDeclarationNodeWithMembers. addField(String type, String name, Modifier... modifiers)Add a field to this.default FieldDeclarationNodeWithMembers. addFieldWithInitializer(Type type, String name, Expression initializer, Modifier... modifiers)Add a field to this.default FieldDeclarationNodeWithMembers. addFieldWithInitializer(Class<?> typeClass, String name, Expression initializer, Modifier... 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... modifiers)Add a field to this.default MethodDeclarationNodeWithMembers. addMethod(String methodName, Modifier... modifiers)Adds a methods with void return by default to this.default NNodeWithModifiers. addModifier(Modifier... modifiers)default NNodeWithModifiers. removeModifier(Modifier... m)default NNodeWithModifiers. setModifier(Modifier m, boolean set)Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type Modifier Modifier and Type Method Description NNodeWithModifiers. setModifiers(EnumSet<Modifier> modifiers) -
Uses of Modifier in com.github.javaparser.ast.stmt
Constructor parameters in com.github.javaparser.ast.stmt with type arguments of type Modifier Constructor Description CatchClause(EnumSet<Modifier> exceptModifier, NodeList<AnnotationExpr> exceptAnnotations, ClassOrInterfaceType exceptType, SimpleName exceptName, BlockStmt body)
-