Interface NodeWithRange<N>
-
- All Known Implementing Classes:
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,Modifier,ModuleDeclaration,ModuleDirective,ModuleExportsDirective,ModuleOpensDirective,ModuleProvidesDirective,ModuleRequiresDirective,ModuleUsesDirective,Name,NameExpr,Node,NormalAnnotationExpr,NullLiteralExpr,ObjectCreationExpr,PackageDeclaration,Parameter,PrimitiveType,ReceiverParameter,ReferenceType,ReturnStmt,SimpleName,SingleMemberAnnotationExpr,Statement,StringLiteralExpr,SuperExpr,SwitchEntryStmt,SwitchStmt,SynchronizedStmt,ThisExpr,ThrowStmt,TryStmt,Type,TypeDeclaration,TypeExpr,TypeParameter,UnaryExpr,UnionType,UnknownType,UnparsableStmt,VariableDeclarationExpr,VariableDeclarator,VarType,VoidType,WhileStmt,WildcardType
public interface NodeWithRange<N>A node that has a Range, which is every Node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default booleancontainsWithin(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 booleanisPositionedAfter(Position position)Deprecated.use isAfter() on rangedefault booleanisPositionedBefore(Position position)Deprecated.use isBefore() on rangeNsetRange(Range range)
-
-
-
Method Detail
-
containsWithin
default boolean containsWithin(Node other)
-
isPositionedAfter
@Deprecated default boolean isPositionedAfter(Position position)
Deprecated.use isAfter() on range
-
isPositionedBefore
@Deprecated default boolean isPositionedBefore(Position position)
Deprecated.use isBefore() on range
-
-