Package ghidra.app.decompiler
Class ClangTokenGroup
- java.lang.Object
-
- ghidra.app.decompiler.ClangTokenGroup
-
- Direct Known Subclasses:
ClangFuncProto
,ClangFunction
,ClangReturnType
,ClangStatement
,ClangVariableDecl
public class ClangTokenGroup extends java.lang.Object implements ClangNode, java.lang.Iterable<ClangNode>
A node in a tree of C code tokens.
-
-
Constructor Summary
Constructors Constructor Description ClangTokenGroup(ClangNode par)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddTokenGroup(java.lang.Object obj)
ClangNode
Child(int i)
void
flatten(java.util.List<ClangNode> list)
ClangFunction
getClangFunction()
Address
getMaxAddress()
Address
getMinAddress()
java.util.Iterator<ClangNode>
iterator()
int
numChildren()
ClangNode
Parent()
void
restoreFromXML(XmlPullParser parser, PcodeFactory pfactory)
void
setHighlight(java.awt.Color val)
java.util.stream.Stream<ClangNode>
stream()
Gets a stream over this group's childrenjava.lang.String
toString()
-
-
-
Constructor Detail
-
ClangTokenGroup
public ClangTokenGroup(ClangNode par)
-
-
Method Detail
-
getMinAddress
public Address getMinAddress()
- Specified by:
getMinAddress
in interfaceClangNode
-
getMaxAddress
public Address getMaxAddress()
- Specified by:
getMaxAddress
in interfaceClangNode
-
AddTokenGroup
public void AddTokenGroup(java.lang.Object obj)
-
numChildren
public int numChildren()
- Specified by:
numChildren
in interfaceClangNode
-
getClangFunction
public ClangFunction getClangFunction()
- Specified by:
getClangFunction
in interfaceClangNode
-
setHighlight
public void setHighlight(java.awt.Color val)
- Specified by:
setHighlight
in interfaceClangNode
-
flatten
public void flatten(java.util.List<ClangNode> list)
-
restoreFromXML
public void restoreFromXML(XmlPullParser parser, PcodeFactory pfactory)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
iterator
public java.util.Iterator<ClangNode> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ClangNode>
-
stream
public java.util.stream.Stream<ClangNode> stream()
Gets a stream over this group's children- Returns:
- a stream of this group's children
-
-