Package ghidra.app.decompiler
Class ClangLine
- java.lang.Object
-
- ghidra.app.decompiler.ClangLine
-
public class ClangLine extends java.lang.Object
A line of C code. This is an independent grouping of C tokens from the statement, vardecl retype groups
-
-
Constructor Summary
Constructors Constructor Description ClangLine(int lineNumber, int indent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToken(ClangToken tok)
java.util.ArrayList<ClangToken>
getAllTokens()
int
getIndent()
java.lang.String
getIndentString()
int
getLineNumber()
int
getNumTokens()
ClangToken
getToken(int i)
int
indexOfToken(ClangToken token)
java.lang.String
toDebugString(java.util.List<ClangToken> calloutTokens)
java.lang.String
toDebugString(java.util.List<ClangToken> calloutTokens, java.lang.String start, java.lang.String end)
java.lang.String
toString()
-
-
-
Method Detail
-
getIndentString
public java.lang.String getIndentString()
-
getIndent
public int getIndent()
-
addToken
public void addToken(ClangToken tok)
-
getAllTokens
public java.util.ArrayList<ClangToken> getAllTokens()
-
getNumTokens
public int getNumTokens()
-
getLineNumber
public int getLineNumber()
-
getToken
public ClangToken getToken(int i)
-
indexOfToken
public int indexOfToken(ClangToken token)
-
toDebugString
public java.lang.String toDebugString(java.util.List<ClangToken> calloutTokens)
-
toDebugString
public java.lang.String toDebugString(java.util.List<ClangToken> calloutTokens, java.lang.String start, java.lang.String end)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-