Package ghidra.app.util.cparser.C
Class Declaration
- java.lang.Object
-
- ghidra.app.util.cparser.C.Declaration
-
public class Declaration extends java.lang.Object
Container for information about a Declaration that is accumulated during parsing.
-
-
Constructor Summary
Constructors Constructor Description Declaration()
Declaration(Declaration dec)
Declaration(Declaration subDecl, DataType dt)
Declaration(Declaration dec, java.lang.String name)
Declaration(DataType dt)
Declaration(DataType dt, java.lang.String name)
Declaration(DataType dt, java.lang.String name, java.lang.String comment)
Declaration(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBitFieldSize()
java.lang.String
getComment()
DataType
getDataType()
java.lang.String
getName()
int
getQualifier()
void
setComment(java.lang.String string)
void
setDataType(DataType type)
void
setName(java.lang.String string)
void
setQualifier(int qualifier)
-
-
-
Constructor Detail
-
Declaration
public Declaration()
-
Declaration
public Declaration(Declaration dec)
-
Declaration
public Declaration(Declaration dec, java.lang.String name) throws ParseException
- Throws:
ParseException
-
Declaration
public Declaration(java.lang.String name)
-
Declaration
public Declaration(DataType dt)
-
Declaration
public Declaration(Declaration subDecl, DataType dt)
-
Declaration
public Declaration(DataType dt, java.lang.String name)
-
Declaration
public Declaration(DataType dt, java.lang.String name, java.lang.String comment)
-
-
Method Detail
-
getComment
public java.lang.String getComment()
-
getQualifier
public int getQualifier()
-
getDataType
public DataType getDataType()
-
getName
public java.lang.String getName()
-
setComment
public void setComment(java.lang.String string)
-
setQualifier
public void setQualifier(int qualifier)
-
setDataType
public void setDataType(DataType type)
-
setName
public void setName(java.lang.String string)
-
getBitFieldSize
public int getBitFieldSize()
- Returns:
- the currently set bitfield size
-
-