public class Typedef
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Declaration |
definingNode |
private Scopeable |
definingScope
Defines where does this typedef definition occur.
|
private java.lang.String |
tag |
private Type |
type |
Constructor and Description |
---|
Typedef(java.lang.String tag,
Type type,
Declaration definingNode,
Scopeable definingScope) |
Modifier and Type | Method and Description |
---|---|
Declaration |
getDefiningNode() |
Scopeable |
getDefiningScope() |
Type |
getType() |
private static Typedef |
getTypedefEntry(java.lang.String name,
Node node) |
static Typedef |
getTypedefEntry(java.lang.String tag,
Scopeable scope)
Returns the Typedef entry which defines the typedef named "tag",
and is present in either an enclosing struct/union, or in an
enclosing CompoundStatement or TranslationUnit.
|
static Typedef |
getTypedefEntry(TypedefName typedefName,
Scopeable scope) |
java.lang.String |
getTypeName() |
void |
setDefiningScope(Scopeable definingScope) |
private Type type
private java.lang.String tag
private Declaration definingNode
private Scopeable definingScope
public Typedef(java.lang.String tag, Type type, Declaration definingNode, Scopeable definingScope)
public java.lang.String getTypeName()
public Type getType()
public Declaration getDefiningNode()
public static Typedef getTypedefEntry(TypedefName typedefName, Scopeable scope)
public static Typedef getTypedefEntry(java.lang.String tag, Scopeable scope)
name
- scope
- public Scopeable getDefiningScope()
public void setDefiningScope(Scopeable definingScope)