Uses of Class
com.github.javaparser.ast.Modifier
Packages that use Modifier
Package
Description
-
Uses of Modifier in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return ModifierModifier and TypeMethodDescriptionstatic Modifier
Modifier.abstractModifier()
Modifier.clone()
static Modifier
Modifier.finalModifier()
static Modifier
Modifier.nativeModifier()
static Modifier
Modifier.privateModifier()
static Modifier
Modifier.protectedModifier()
static Modifier
Modifier.publicModifier()
Modifier.setKeyword(Modifier.Keyword keyword)
static Modifier
Modifier.staticModifier()
static Modifier
Modifier.strictfpModifier()
static Modifier
Modifier.synchronizedModifier()
static Modifier
Modifier.transientModifier()
static Modifier
Modifier.transitiveModifier()
static Modifier
Modifier.volatileModifier()
Methods in com.github.javaparser.ast that return types with arguments of type ModifierModifier and TypeMethodDescriptionModifier.createModifierList(Modifier.Keyword... modifiers)
Utility method that instantiaties "Modifier"s for the keywords, and puts them in a NodeList. -
Uses of Modifier in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return types with arguments of type ModifierModifier and TypeMethodDescriptionAnnotationMemberDeclaration.getModifiers()
Return the modifiers of this member declaration.CallableDeclaration.getModifiers()
Return the modifiers of this member declaration.CompactConstructorDeclaration.getModifiers()
FieldDeclaration.getModifiers()
Return the modifiers of this member declaration.Parameter.getModifiers()
Return the modifiers of this parameter declaration.TypeDeclaration.getModifiers()
Return the modifiers of this type declaration.Method parameters in com.github.javaparser.ast.body with type arguments of type ModifierModifier and TypeMethodDescriptionAnnotationMemberDeclaration.setModifiers(NodeList<Modifier> modifiers)
CallableDeclaration.setModifiers(NodeList<Modifier> modifiers)
CompactConstructorDeclaration.setModifiers(NodeList<Modifier> modifiers)
ConstructorDeclaration.setModifiers(NodeList<Modifier> modifiers)
FieldDeclaration.setModifiers(NodeList<Modifier> modifiers)
MethodDeclaration.setModifiers(NodeList<Modifier> modifiers)
Parameter.setModifiers(NodeList<Modifier> modifiers)
TypeDeclaration.setModifiers(NodeList<Modifier> modifiers)
Constructor parameters in com.github.javaparser.ast.body with type arguments of type ModifierModifierConstructorDescriptionAnnotationDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
AnnotationDeclaration(NodeList<Modifier> modifiers, String name)
AnnotationDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private.AnnotationMemberDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)
AnnotationMemberDeclaration(NodeList<Modifier> modifiers, Type type, String name, Expression defaultValue)
AnnotationMemberDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)
This constructor is used by the parser and is considered private.CallableDeclaration(TokenRange tokenRange, NodeList<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(NodeList<Modifier> modifiers, boolean isInterface, String name)
ClassOrInterfaceDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members)
ClassOrInterfaceDeclaration(TokenRange tokenRange, NodeList<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.CompactConstructorDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<ReferenceType> thrownExceptions, BlockStmt body)
CompactConstructorDeclaration(NodeList<Modifier> modifiers, String name)
CompactConstructorDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<ReferenceType> thrownExceptions, BlockStmt body)
This constructor is used by the parser and is considered private.ConstructorDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body)
ConstructorDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter)
ConstructorDeclaration(NodeList<Modifier> modifiers, String name)
ConstructorDeclaration(TokenRange tokenRange, NodeList<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.EnumDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members)
EnumDeclaration(NodeList<Modifier> modifiers, String name)
EnumDeclaration(TokenRange tokenRange, NodeList<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.FieldDeclaration(NodeList<Modifier> modifiers, VariableDeclarator variable)
FieldDeclaration(NodeList<Modifier> modifiers, NodeList<VariableDeclarator> variables)
FieldDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
FieldDeclaration(NodeList<Modifier> modifiers, Type type, String name)
Creates aFieldDeclaration
.FieldDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
This constructor is used by the parser and is considered private.MethodDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body)
MethodDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter)
MethodDeclaration(NodeList<Modifier> modifiers, Type type, String name)
MethodDeclaration(NodeList<Modifier> modifiers, String name, Type type, NodeList<Parameter> parameters)
MethodDeclaration(TokenRange tokenRange, NodeList<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.Parameter(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, boolean isVarArgs, NodeList<AnnotationExpr> varArgsAnnotations, SimpleName name)
Parameter(NodeList<Modifier> modifiers, Type type, SimpleName name)
Parameter(TokenRange tokenRange, NodeList<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.RecordDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Parameter> parameters, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members, ReceiverParameter receiverParameter)
RecordDeclaration(NodeList<Modifier> modifiers, String name)
RecordDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Parameter> parameters, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members, ReceiverParameter receiverParameter)
This constructor is used by the parser and is considered private.TypeDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
TypeDeclaration(NodeList<Modifier> modifiers, String name)
TypeDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private. -
Uses of Modifier in com.github.javaparser.ast.expr
Methods in com.github.javaparser.ast.expr that return types with arguments of type ModifierModifier and TypeMethodDescriptionVariableDeclarationExpr.getModifiers()
Return the modifiers of this variable declaration.Method parameters in com.github.javaparser.ast.expr with type arguments of type ModifierModifier and TypeMethodDescriptionVariableDeclarationExpr.setModifiers(NodeList<Modifier> modifiers)
Constructors in com.github.javaparser.ast.expr with parameters of type ModifierModifierConstructorDescriptionVariableDeclarationExpr(VariableDeclarator var, Modifier... modifiers)
VariableDeclarationExpr(Type type, String variableName, Modifier... modifiers)
Constructor parameters in com.github.javaparser.ast.expr with type arguments of type ModifierModifierConstructorDescriptionVariableDeclarationExpr(NodeList<Modifier> modifiers, NodeList<VariableDeclarator> variables)
VariableDeclarationExpr(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
VariableDeclarationExpr(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
This constructor is used by the parser and is considered private. -
Uses of Modifier in com.github.javaparser.ast.modules
Methods in com.github.javaparser.ast.modules that return types with arguments of type ModifierMethod parameters in com.github.javaparser.ast.modules with type arguments of type ModifierModifier and TypeMethodDescriptionModuleRequiresDirective.setModifiers(NodeList<Modifier> modifiers)
Constructor parameters in com.github.javaparser.ast.modules with type arguments of type ModifierModifierConstructorDescriptionModuleRequiresDirective(NodeList<Modifier> modifiers, Name name)
ModuleRequiresDirective(TokenRange tokenRange, NodeList<Modifier> modifiers, Name name)
This constructor is used by the parser and is considered private. -
Uses of Modifier in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type ModifierModifier and TypeMethodDescriptionNodeWithModifiers.getModifiers()
Return the modifiers of this variable declaration.Method parameters in com.github.javaparser.ast.nodeTypes with type arguments of type Modifier -
Uses of Modifier in com.github.javaparser.ast.stmt
Constructor parameters in com.github.javaparser.ast.stmt with type arguments of type ModifierModifierConstructorDescriptionCatchClause(NodeList<Modifier> exceptModifier, NodeList<AnnotationExpr> exceptAnnotations, ClassOrInterfaceType exceptType, SimpleName exceptName, BlockStmt body)
-
Uses of Modifier in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type ModifierModifier and TypeMethodDescriptionvoid
void
void
-
Uses of Modifier in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type ModifierModifier and TypeMethodDescriptionvoid
void
Deprecated.Method parameters in com.github.javaparser.printer with type arguments of type ModifierModifier and TypeMethodDescriptionprotected void
DefaultPrettyPrinterVisitor.printModifiers(NodeList<Modifier> modifiers)
protected void
PrettyPrintVisitor.printModifiers(NodeList<Modifier> modifiers)
Deprecated.