Uses of Class
com.github.javaparser.ast.Modifier
Package
Description
-
Uses of Modifier in com.github.javaparser.ast
Modifier 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()
Modifier 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
Modifier 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.Modifier 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)
ModifierConstructorDescriptionAnnotationDeclaration(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
Modifier and TypeMethodDescriptionVariableDeclarationExpr.getModifiers()
Return the modifiers of this variable declaration.Modifier and TypeMethodDescriptionVariableDeclarationExpr.setModifiers(NodeList<Modifier> modifiers)
ModifierConstructorDescriptionVariableDeclarationExpr(VariableDeclarator var, Modifier... modifiers)
VariableDeclarationExpr(Type type, String variableName, Modifier... modifiers)
ModifierConstructorDescriptionVariableDeclarationExpr(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
Modifier and TypeMethodDescriptionModuleRequiresDirective.setModifiers(NodeList<Modifier> modifiers)
ModifierConstructorDescriptionModuleRequiresDirective(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
Modifier and TypeMethodDescriptionNodeWithModifiers.getModifiers()
Return the modifiers of this variable declaration. -
Uses of Modifier in com.github.javaparser.ast.stmt
ModifierConstructorDescriptionCatchClause(NodeList<Modifier> exceptModifier, NodeList<AnnotationExpr> exceptAnnotations, ClassOrInterfaceType exceptType, SimpleName exceptName, BlockStmt body)
-
Uses of Modifier in com.github.javaparser.ast.visitor
Modifier and TypeMethodDescriptionvoid
void
void
-
Uses of Modifier in com.github.javaparser.printer
Modifier and TypeMethodDescriptionvoid
void
Deprecated.Modifier and TypeMethodDescriptionprotected void
DefaultPrettyPrinterVisitor.printModifiers(NodeList<Modifier> modifiers)
protected void
PrettyPrintVisitor.printModifiers(NodeList<Modifier> modifiers)
Deprecated.