AnnotationDeclaration
, AnnotationExpr
, AnnotationMemberDeclaration
, ArrayAccessExpr
, ArrayCreationExpr
, ArrayCreationLevel
, ArrayInitializerExpr
, ArrayType
, AssertStmt
, AssignExpr
, BinaryExpr
, BlockComment
, BlockStmt
, BodyDeclaration
, BooleanLiteralExpr
, BreakStmt
, CallableDeclaration
, CastExpr
, CatchClause
, CharLiteralExpr
, ClassExpr
, ClassOrInterfaceDeclaration
, ClassOrInterfaceType
, Comment
, CompilationUnit
, ConditionalExpr
, ConstructorDeclaration
, ContinueStmt
, DoStmt
, DoubleLiteralExpr
, EmptyStmt
, EnclosedExpr
, EnumConstantDeclaration
, EnumDeclaration
, ExplicitConstructorInvocationStmt
, Expression
, ExpressionStmt
, FieldAccessExpr
, FieldDeclaration
, ForeachStmt
, ForStmt
, IfStmt
, ImportDeclaration
, InitializerDeclaration
, InstanceOfExpr
, IntegerLiteralExpr
, IntersectionType
, JavadocComment
, LabeledStmt
, LambdaExpr
, LineComment
, LiteralExpr
, LiteralStringValueExpr
, LocalClassDeclarationStmt
, LongLiteralExpr
, MarkerAnnotationExpr
, MemberValuePair
, MethodCallExpr
, MethodDeclaration
, MethodReferenceExpr
, ModuleDeclaration
, ModuleExportsStmt
, ModuleOpensStmt
, ModuleProvidesStmt
, ModuleRequiresStmt
, ModuleStmt
, ModuleUsesStmt
, Name
, NameExpr
, Node
, NormalAnnotationExpr
, NullLiteralExpr
, ObjectCreationExpr
, PackageDeclaration
, Parameter
, PrimitiveType
, ReferenceType
, ReturnStmt
, SimpleName
, SingleMemberAnnotationExpr
, Statement
, StringLiteralExpr
, SuperExpr
, SwitchEntryStmt
, SwitchStmt
, SynchronizedStmt
, ThisExpr
, ThrowStmt
, TryStmt
, Type
, TypeDeclaration
, TypeExpr
, TypeParameter
, UnaryExpr
, UnionType
, UnknownType
, UnparsableStmt
, VariableDeclarationExpr
, VariableDeclarator
, VoidType
, WhileStmt
, WildcardType
public interface NodeWithRange<N>
Modifier and Type | Method | Description |
---|---|---|
default boolean |
containsWithin(Node other) |
|
default Optional<Position> |
getBegin() |
The begin position of this node in the source file.
|
default Optional<Position> |
getEnd() |
The end position of this node in the source file.
|
Optional<Range> |
getRange() |
|
default boolean |
isPositionedAfter(Position position) |
Deprecated.
use isAfter() on range
|
default boolean |
isPositionedBefore(Position position) |
Deprecated.
use isBefore() on range
|
N |
setRange(Range range) |
default boolean containsWithin(Node other)
@Deprecated default boolean isPositionedAfter(Position position)
@Deprecated default boolean isPositionedBefore(Position position)
Copyright © 2007–2019. All rights reserved.