Modifier and Type | Field and Description |
---|---|
static ParseStart<SimpleName> |
ParseStart.SIMPLE_NAME |
Modifier and Type | Method and Description |
---|---|
static SimpleName |
StaticJavaParser.parseSimpleName(String name)
Parses a simple name (one that can NOT have "."
|
SimpleName |
JavaParserAdapter.parseSimpleName(String name) |
Modifier and Type | Method and Description |
---|---|
ParseResult<SimpleName> |
JavaParser.parseSimpleName(String name)
Parses a simple name (one that can NOT have "."
|
Modifier and Type | Method and Description |
---|---|
SimpleName |
VariableDeclarator.getName() |
SimpleName |
TypeDeclaration.getName() |
SimpleName |
Parameter.getName() |
SimpleName |
EnumConstantDeclaration.getName() |
SimpleName |
CompactConstructorDeclaration.getName() |
SimpleName |
CallableDeclaration.getName() |
SimpleName |
AnnotationMemberDeclaration.getName() |
Modifier and Type | Method and Description |
---|---|
VariableDeclarator |
VariableDeclarator.setName(SimpleName name) |
T |
TypeDeclaration.setName(SimpleName name) |
Parameter |
Parameter.setName(SimpleName name) |
MethodDeclaration |
MethodDeclaration.setName(SimpleName name) |
EnumConstantDeclaration |
EnumConstantDeclaration.setName(SimpleName name) |
ConstructorDeclaration |
ConstructorDeclaration.setName(SimpleName name) |
CompactConstructorDeclaration |
CompactConstructorDeclaration.setName(SimpleName name) |
T |
CallableDeclaration.setName(SimpleName name) |
AnnotationMemberDeclaration |
AnnotationMemberDeclaration.setName(SimpleName name) |
Constructor and Description |
---|
AnnotationDeclaration(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
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(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,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<ClassOrInterfaceType> permittedTypes,
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<ClassOrInterfaceType> permittedTypes,
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(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(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.
|
EnumConstantDeclaration(NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody) |
EnumConstantDeclaration(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody)
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(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.
|
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(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.
|
Parameter(Type type,
SimpleName name) |
RecordDeclaration(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members,
ReceiverParameter receiverParameter) |
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(TokenRange tokenRange,
NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private.
|
VariableDeclarator(TokenRange tokenRange,
Type type,
SimpleName name,
Expression initializer)
This constructor is used by the parser and is considered private.
|
VariableDeclarator(Type type,
SimpleName name) |
VariableDeclarator(Type type,
SimpleName name,
Expression initializer)
Defines the declaration of a variable.
|
Modifier and Type | Method and Description |
---|---|
SimpleName |
SimpleName.clone() |
SimpleName |
TypePatternExpr.getName() |
SimpleName |
NameExpr.getName() |
SimpleName |
MethodCallExpr.getName() |
SimpleName |
MemberValuePair.getName() |
SimpleName |
FieldAccessExpr.getName() |
SimpleName |
SimpleName.setIdentifier(String identifier) |
Modifier and Type | Method and Description |
---|---|
Optional<SimpleName> |
InstanceOfExpr.getName()
Helper method which, if this is an expression with a type pattern, returns the identifier/name.
|
Modifier and Type | Method and Description |
---|---|
TypePatternExpr |
TypePatternExpr.setName(SimpleName name) |
NameExpr |
NameExpr.setName(SimpleName name) |
MethodCallExpr |
MethodCallExpr.setName(SimpleName name) |
MemberValuePair |
MemberValuePair.setName(SimpleName name) |
FieldAccessExpr |
FieldAccessExpr.setName(SimpleName name) |
Constructor and Description |
---|
FieldAccessExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name) |
FieldAccessExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name)
This constructor is used by the parser and is considered private.
|
MemberValuePair(SimpleName name,
Expression value) |
MemberValuePair(TokenRange tokenRange,
SimpleName name,
Expression value)
This constructor is used by the parser and is considered private.
|
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(Expression scope,
SimpleName name) |
MethodCallExpr(Expression scope,
SimpleName name,
NodeList<Expression> arguments) |
MethodCallExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments)
This constructor is used by the parser and is considered private.
|
NameExpr(SimpleName name) |
NameExpr(TokenRange tokenRange,
SimpleName name)
This constructor is used by the parser and is considered private.
|
TypePatternExpr(NodeList<Modifier> modifiers,
Type type,
SimpleName name) |
TypePatternExpr(TokenRange tokenRange,
NodeList<Modifier> modifiers,
Type type,
SimpleName name)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
SimpleName |
NodeWithSimpleName.getName() |
Modifier and Type | Method and Description |
---|---|
Optional<SimpleName> |
NodeWithOptionalLabel.getLabel() |
Modifier and Type | Method and Description |
---|---|
T |
NodeWithOptionalLabel.setLabel(SimpleName label) |
N |
NodeWithSimpleName.setName(SimpleName name) |
Modifier and Type | Method and Description |
---|---|
SimpleName |
LabeledStmt.getLabel() |
Modifier and Type | Method and Description |
---|---|
Optional<SimpleName> |
ContinueStmt.getLabel() |
Optional<SimpleName> |
BreakStmt.getLabel() |
Modifier and Type | Method and Description |
---|---|
LabeledStmt |
LabeledStmt.setLabel(SimpleName label) |
ContinueStmt |
ContinueStmt.setLabel(SimpleName label)
Sets the label
|
BreakStmt |
BreakStmt.setLabel(SimpleName label)
Sets the label
|
Constructor and Description |
---|
BreakStmt(SimpleName label) |
BreakStmt(TokenRange tokenRange,
SimpleName label)
This constructor is used by the parser and is considered private.
|
CatchClause(NodeList<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
SimpleName exceptName,
BlockStmt body) |
ContinueStmt(SimpleName label) |
ContinueStmt(TokenRange tokenRange,
SimpleName label)
This constructor is used by the parser and is considered private.
|
LabeledStmt(SimpleName label,
Statement statement) |
LabeledStmt(TokenRange tokenRange,
SimpleName label,
Statement statement)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
SimpleName |
TypeParameter.getName()
Return the name of the paramenter.
|
SimpleName |
ClassOrInterfaceType.getName() |
Modifier and Type | Method and Description |
---|---|
TypeParameter |
TypeParameter.setName(SimpleName name) |
ClassOrInterfaceType |
ClassOrInterfaceType.setName(SimpleName name) |
Constructor and Description |
---|
ClassOrInterfaceType(ClassOrInterfaceType scope,
SimpleName name,
NodeList<Type> typeArguments) |
ClassOrInterfaceType(ClassOrInterfaceType scope,
SimpleName name,
NodeList<Type> typeArguments,
NodeList<AnnotationExpr> annotations) |
ClassOrInterfaceType(TokenRange tokenRange,
ClassOrInterfaceType scope,
SimpleName name,
NodeList<Type> typeArguments,
NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.
|
TypeParameter(SimpleName name,
NodeList<ClassOrInterfaceType> typeBound,
NodeList<AnnotationExpr> annotations) |
TypeParameter(TokenRange tokenRange,
SimpleName name,
NodeList<ClassOrInterfaceType> typeBound,
NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
void |
ReservedKeywordValidator.visit(SimpleName n,
ProblemReporter arg) |
void |
RecordAsTypeIdentifierNotAllowed.visit(SimpleName n,
ProblemReporter arg) |
Modifier and Type | Method and Description |
---|---|
void |
UnderscoreKeywordValidator.visit(SimpleName n,
ProblemReporter arg) |
Modifier and Type | Method and Description |
---|---|
void |
VoidVisitorWithDefaults.visit(SimpleName n,
A arg) |
void |
VoidVisitorAdapter.visit(SimpleName n,
A arg) |
void |
VoidVisitor.visit(SimpleName n,
A arg) |
Visitable |
ModifierVisitor.visit(SimpleName n,
A arg) |
R |
GenericVisitorWithDefaults.visit(SimpleName n,
A arg) |
R |
GenericVisitorAdapter.visit(SimpleName n,
A arg) |
R |
GenericVisitor.visit(SimpleName n,
A arg) |
List<R> |
GenericListVisitorAdapter.visit(SimpleName n,
A arg) |
Visitable |
CloneVisitor.visit(SimpleName n,
Object arg) |
void |
NodeFinderVisitor.visit(SimpleName n,
Range arg) |
Boolean |
ObjectIdentityEqualsVisitor.visit(SimpleName n,
Visitable arg) |
Boolean |
NoCommentEqualsVisitor.visit(SimpleName n,
Visitable arg) |
Boolean |
EqualsVisitor.visit(SimpleName n,
Visitable arg) |
Integer |
ObjectIdentityHashCodeVisitor.visit(SimpleName n,
Void arg) |
Integer |
NoCommentHashCodeVisitor.visit(SimpleName n,
Void arg) |
Integer |
HashCodeVisitor.visit(SimpleName n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(SimpleName n,
Void arg)
Deprecated.
|
void |
DefaultPrettyPrinterVisitor.visit(SimpleName n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
static Optional<SimpleName> |
Navigator.findSimpleName(Node node,
String name) |
Copyright © 2007–2024. All rights reserved.