Class TextNode
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.TextNode
-
- All Implemented Interfaces:
UserDataStore
,IFreezable
,INode
,java.lang.Cloneable
public class TextNode extends AstNode
-
-
Field Summary
Fields Modifier and Type Field Description private TextLocation
_endLocation
private TextLocation
_startLocation
private java.lang.String
_text
-
Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, NULL, ROLE_INDEX_MASK, ROOT_ROLE
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description TextNode()
TextNode(java.lang.String text)
TextNode(java.lang.String text, TextLocation startLocation, TextLocation endLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R>
RacceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
TextLocation
getEndLocation()
NodeType
getNodeType()
Role<? extends TextNode>
getRole()
TextLocation
getStartLocation()
java.lang.String
getText()
boolean
matches(INode other, Match match)
void
setEndLocation(TextLocation endLocation)
void
setStartLocation(TextLocation startLocation)
void
setText(java.lang.String text)
-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
addChild, addChildUnsafe, clone, contains, contains, copyUserDataFrom, debugToString, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, setRoleUnsafe, toString, withName
-
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
-
-
-
Field Detail
-
_text
private java.lang.String _text
-
_startLocation
private TextLocation _startLocation
-
_endLocation
private TextLocation _endLocation
-
-
Constructor Detail
-
TextNode
public TextNode()
-
TextNode
public TextNode(java.lang.String text)
-
TextNode
public TextNode(java.lang.String text, TextLocation startLocation, TextLocation endLocation)
-
-
Method Detail
-
setText
public final void setText(java.lang.String text)
-
getStartLocation
public final TextLocation getStartLocation()
- Overrides:
getStartLocation
in classAstNode
-
setStartLocation
public final void setStartLocation(TextLocation startLocation)
-
getEndLocation
public final TextLocation getEndLocation()
- Overrides:
getEndLocation
in classAstNode
-
setEndLocation
public final void setEndLocation(TextLocation endLocation)
-
acceptVisitor
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
- Specified by:
acceptVisitor
in classAstNode
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in classAstNode
-
-