public static class CheaderParser.Type
extends java.lang.Object
type::= [@modifier>volatile|const|]
[@forward>struct\W|class\W|union\W|]
[ [unsigned|signed] ##signed and unsigned notification
[ int @name=int32>
| short int @name=int16>
| short @name=int16>
| long long @name=int64>
| long int @name=int32>
| long @name=int32>
| char @name=int8>
| @name=int> ##unsigned or signed allone
]
| [{ <$?environmentClass> ::}]
[ int @name=int32> ##notification without first signed or unsigend
| short int@name=int16> ##special int types assigned to int16 etc.
| short @name=int16>
| long long@name=int64>
| long int@name=int32>
| long@name=int32>
| char @name=int8>
| long double@long_double>
| <$?@name> ##any other type name, also float, double, or a user type
## [ ( { <* |,|)?macro_arg> ? , } ) ] ##MACRO(arg) also admissible.
]
[ \< \> ] ##
]
[] ##such as *, const *, volatile *
[@modifier2>volatile|const|]. ##last one is const or volatile for the variable.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
basename
It is the name without forward suffix (_, _T, _t or _* admissible, * = any char)
or the name witout "_s" for struct type definitions.
|
boolean |
constPointer
Deprecated.
|
boolean |
constPointer2
Deprecated.
|
boolean |
constVar |
java.lang.String |
forward
Will be set if a type is given with a macro
MACRO(argument). |
java.lang.String |
modifier
Deprecated.
|
java.lang.String |
name
If
forward is not null, it is the struct type name. |
boolean |
pointer
Deprecated.
|
(package private) java.util.List<CheaderParser.Pointer> |
pointer_
It is possible that a deeper pointer level is given.
|
boolean |
pointer2
Deprecated.
|
boolean |
signed |
(package private) CheaderParser.StructOrClassDef |
typeClass
Reference to the before parsed type found by name.
|
boolean |
unsigned |
boolean |
volatileVar |
| Constructor and Description |
|---|
Type() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
baseName(java.lang.String maybesuffix,
java.lang.String maybeForwardSuffix)
Returns the base name of the type.
|
boolean |
constPointer() |
int |
pointerDepth()
depth of pointer. 0: no pointer.
|
void |
set_cppRef() |
void |
set_name(java.lang.String val) |
void |
set_pointer() |
void |
set_Pointer() |
java.lang.String |
toString() |
CheaderParser.StructOrClassDef |
typeClass() |
java.lang.String |
typeString() |
public java.lang.String basename
public java.lang.String name
forward is not null, it is the struct type name.public java.lang.String forward
MACRO(argument).
This is usefully for special cases only.public boolean constVar
public boolean volatileVar
public boolean signed
public boolean unsigned
@Deprecated public boolean pointer
@Deprecated public boolean pointer2
@Deprecated public java.lang.String modifier
@Deprecated public boolean constPointer
@Deprecated public boolean constPointer2
java.util.List<CheaderParser.Pointer> pointer_
CheaderParser.StructOrClassDef typeClass
public void set_name(java.lang.String val)
public void set_Pointer()
public void set_pointer()
public void set_cppRef()
public java.lang.String typeString()
public java.lang.String baseName(java.lang.String maybesuffix,
java.lang.String maybeForwardSuffix)
maybesuffix - An expected suffix which is not part of the base namemaybeForwardSuffix - An expected suffix for forward declarationpublic int pointerDepth()
public boolean constPointer()
public CheaderParser.StructOrClassDef typeClass()
public java.lang.String toString()
toString in class java.lang.Object