Class TextElement
java.lang.Object
com.github.javaparser.printer.lexicalpreservation.TextElement
- All Implemented Interfaces:
TextElementMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isChild()
abstract boolean
isChildOfClass(Class<? extends Node> nodeClass)
Is this TextElement representing a child of the given class?abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
boolean
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
-
Constructor Details
-
TextElement
public TextElement()
-
-
Method Details
-
match
- Specified by:
match
in interfaceTextElementMatcher
-
isLiteral
public abstract boolean isLiteral() -
isWhiteSpace
public abstract boolean isWhiteSpace() -
isSpaceOrTab
public abstract boolean isSpaceOrTab() -
isNewline
public abstract boolean isNewline() -
isComment
public abstract boolean isComment() -
isSeparator
public abstract boolean isSeparator() -
isIdentifier
public abstract boolean isIdentifier() -
isKeyword
public abstract boolean isKeyword() -
isPrimitive
public abstract boolean isPrimitive() -
isWhiteSpaceOrComment
public final boolean isWhiteSpaceOrComment() -
isChildOfClass
Is this TextElement representing a child of the given class? -
isChild
public boolean isChild()
-