Class TextElement
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.TextElement
-
- All Implemented Interfaces:
TextElementMatcher
public abstract class TextElement extends Object implements TextElementMatcher
-
-
Constructor Summary
Constructors Constructor Description TextElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isChildOfClass(Class<? extends Node> nodeClass)
Is this TextElement representing a child of the given class?abstract boolean
isComment()
abstract boolean
isNewline()
abstract boolean
isSpaceOrTab()
abstract boolean
isWhiteSpace()
boolean
isWhiteSpaceOrComment()
boolean
match(TextElement textElement)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.printer.lexicalpreservation.TextElementMatcher
and
-
-
-
-
Method Detail
-
match
public boolean match(TextElement textElement)
- Specified by:
match
in interfaceTextElementMatcher
-
isWhiteSpace
public abstract boolean isWhiteSpace()
-
isSpaceOrTab
public abstract boolean isSpaceOrTab()
-
isNewline
public abstract boolean isNewline()
-
isComment
public abstract boolean isComment()
-
isWhiteSpaceOrComment
public final boolean isWhiteSpaceOrComment()
-
-