| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ArrayList | |
| private final String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | CompoundType(final String name, final SizeThunk size, final int cvAttributes, final String structName, final ASTLocusTag astLocus)
|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAliasedName(final String
the new alias to be added, maybe origName)nullImplements com. origName to the list of aliases
if not equal current-name.
|
| public void | |
| public CompoundType | asCompound()
Casts this to a CompoundType or returns null if not a CompoundType.
|
| public static CompoundType | create(final String
struct name of this CompoundType, i.e. the "foo" in the
construct structName, final SizeThunk size, final CompoundTypeKind kind, final int cvAttributes, final ASTLocusTag astLocus)struct foo { int a, ... }; or struct foo; even for anonymous structs.
|
| protected boolean | equalSemanticsImpl(final Type arg)
Implements abstract com. |
| protected boolean | |
| public Set | getAliasedNames()
Implements com. |
| public String | getAliasedString()
Implements com. toString() wrapped w/ the current-name
and all aliases.
|
| public String | getCName(final boolean includeCVAttrs)
Overrides com. |
| public Field | |
| pack-priv ArrayList | |
| public int | |
| public String | getOrigName()
Implements com. |
| public String | getStructName()
Returns the struct name of this CompoundType, i.e. the "foo" in the construct "struct foo { ... |
| public String | |
| public boolean | hasAliases()
Implements com. true if this symbol has aliases, i.e. either being renamed
or aliases-added.
|
| protected int | |
| protected int | hashCodeSemanticsImpl()
Implements abstract com. |
| public abstract boolean | |
| public abstract boolean | |
| public void | rename(final String
the new newName)current-name, maybe nullImplements com. newName if not equal current-name.
|
| public void | setBodyParsed()
Indicates to this CompoundType that its body has been parsed and
that no more |
| pack-priv void | |
| public String | toString()
Overrides com. |
| public void | visit(final TypeVisitor arg)
Overrides com. Type and all of its component types; for
example, the return type and argument types of a FunctionType.
|
| bodyParsed | back to summary |
|---|---|
| private boolean bodyParsed | |
| fields | back to summary |
|---|---|
| private ArrayList<Field> fields | |
| structName | back to summary |
|---|---|
| private final String structName | |
| visiting | back to summary |
|---|---|
| private boolean visiting | |
| CompoundType | back to summary |
|---|---|
| pack-priv CompoundType(final String name, final SizeThunk size, final int cvAttributes, final String structName, final ASTLocusTag astLocus) | |
| CompoundType | back to summary |
|---|---|
| pack-priv CompoundType(final CompoundType o, final int cvAttributes, final ASTLocusTag astLocus) | |
| addAliasedName | back to summary |
|---|---|
| public void addAliasedName(final String origName) Implements com. Doc from com. Add the given
Operation will be ignored if | |
| addField | back to summary |
|---|---|
| public void addField(final Field f) Adds a field to this type. | |
| asCompound | back to summary |
|---|---|
| public CompoundType asCompound() Overrides com. Doc from com. Casts this to a CompoundType or returns null if not a CompoundType.
| |
| create | back to summary |
|---|---|
public static CompoundType create(final String structName, final SizeThunk size, final CompoundTypeKind kind, final int cvAttributes, final ASTLocusTag astLocus)
| |
| equalSemanticsImpl | back to summary |
|---|---|
| protected boolean equalSemanticsImpl(final Type arg) Implements abstract com.
| |
| equalsImpl | back to summary |
|---|---|
| protected boolean equalsImpl(final Type arg) Implements abstract com.
| |
| getAliasedNames | back to summary |
|---|---|
| public Set Implements com. Doc from com. Return all aliases for this symbol, i.e. original names, for this symbol.
Inclusive
Exclusive
May return
| |
| getAliasedString | back to summary |
|---|---|
| public String getAliasedString() Implements com. Doc from com. Return this object's
| |
| getCName | back to summary |
|---|---|
| public String getCName(final boolean includeCVAttrs) Overrides com. Doc from com. Returns the name of this type, optionally including const/volatile attributes. The returned string is suitable for use as a type specifier for native C.
| |
| getField | back to summary |
|---|---|
| public Field getField(final int i) Returns the ith field of this type. | |
| getFields | back to summary |
|---|---|
| pack-priv ArrayList | |
| getNumFields | back to summary |
|---|---|
| public int getNumFields() Returns the number of fields in this type. | |
| getOrigName | back to summary |
|---|---|
| public String getOrigName() Implements com. Doc from com. Return the original-name as set at creation.
| |
| getStructName | back to summary |
|---|---|
| public String getStructName() Returns the struct name of this CompoundType, i.e. the "foo" in the construct "struct foo { ... };". | |
| getStructString | back to summary |
|---|---|
| public String getStructString() | |
| hasAliases | back to summary |
|---|---|
| public boolean hasAliases() Implements com. Doc from com. Returns
Otherwise
| |
| hashCodeImpl | back to summary |
|---|---|
| protected int hashCodeImpl() Implements abstract com.
| |
| hashCodeSemanticsImpl | back to summary |
|---|---|
| protected int hashCodeSemanticsImpl() Implements abstract com.
| |
| isStruct | back to summary |
|---|---|
| public abstract boolean isStruct() Indicates whether this type was declared as a struct. | |
| isUnion | back to summary |
|---|---|
| public abstract boolean isUnion() Indicates whether this type was declared as a union. | |
| rename | back to summary |
|---|---|
| public void rename(final String newName) Implements com. Doc from com. Rename this symbol with the given
Before renaming the
Operation will be ignored if
| |
| setBodyParsed | back to summary |
|---|---|
| public void setBodyParsed() throws IllegalStateException Indicates to this CompoundType that its body has been parsed and
that no more
| |
| setFields | back to summary |
|---|---|
| pack-priv void setFields(final ArrayList<Field> fields) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from com. Returns a string representation of this type. The returned string is suitable for use as a type specifier for native C. It does contain an expanded description of structs/unions, hence may not be suitable for type declarations.
| |
| visit | back to summary |
|---|---|
| public void visit(final TypeVisitor arg) Overrides com. Doc from com. Traverse this
| |