Class TextElement
java.lang.Object
com.github.javaparser.printer.lexicalpreservation.TextElement
- All Implemented Interfaces:
TextElementMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisChild()abstract booleanisChildOfClass(Class<? extends Node> nodeClass)Is this TextElement representing a child of the given class?abstract booleanabstract booleanabstract booleanabstract booleanabstract booleanabstract booleanabstract booleanabstract booleanbooleanbooleanmatch(TextElement textElement)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.printer.lexicalpreservation.TextElementMatcher
and
-
Constructor Details
-
TextElement
public TextElement()
-
-
Method Details
-
match
- Specified by:
matchin 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() -
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()
-