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_endLocationprivate TextLocation_startLocationprivate 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)TextLocationgetEndLocation()NodeTypegetNodeType()Role<? extends TextNode>getRole()TextLocationgetStartLocation()java.lang.StringgetText()booleanmatches(INode other, Match match)voidsetEndLocation(TextLocation endLocation)voidsetStartLocation(TextLocation startLocation)voidsetText(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:
getStartLocationin classAstNode
-
setStartLocation
public final void setStartLocation(TextLocation startLocation)
-
getEndLocation
public final TextLocation getEndLocation()
- Overrides:
getEndLocationin classAstNode
-
setEndLocation
public final void setEndLocation(TextLocation endLocation)
-
acceptVisitor
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
- Specified by:
acceptVisitorin classAstNode
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classAstNode
-
-