|
GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java (public API).
|
Classes | |
| class | ParameterDeclaration |
| class | TypeBox |
Public Member Functions | |
| boolean | getDebug () |
| void | setDebug (boolean debug) |
| void | setJavaConfiguration (JavaConfiguration cfg) |
| Set the configuration for this HeaderParser. More... | |
| void | setTypedefDictionary (TypeDictionary dict) |
| Set the dictionary mapping typedef names to types for this HeaderParser. More... | |
| TypeDictionary | getTypedefDictionary () |
| Returns the typedef dictionary this HeaderParser uses. More... | |
| void | setStructDictionary (TypeDictionary dict) |
| Set the dictionary mapping struct names (i.e., the "foo" in "struct foo { ... };") to types for this HeaderParser. More... | |
| TypeDictionary | getStructDictionary () |
| Returns the struct name dictionary this HeaderParser uses. More... | |
| Map | getCanonMap () |
| Get the canonicalization map, which is a regular HashMap mapping Type to Type and which is used for looking up the unique instances of e.g. More... | |
| void | setEnums (List< EnumType > enumTypes) |
| Pre-define the list of EnumTypes for this HeaderParser. More... | |
| List< EnumType > | getEnums () |
| Returns the EnumTypes this HeaderParser processed. More... | |
| void | clearParsedFunctions () |
| Clears the list of functions this HeaderParser has parsed. More... | |
| List< FunctionSymbol > | getParsedFunctions () |
| Returns the list of FunctionSymbols this HeaderParser has parsed. More... | |
| HeaderParser () | |
| final String | declarator (AST _t, TypeBox tb) throws RecognitionException |
| final void | pointerGroup (AST _t, TypeBox tb) throws RecognitionException |
| final List< ParameterDeclaration > | parameterTypeList (AST _t) throws RecognitionException |
| final void | idList (AST _t) throws RecognitionException |
| final void | expr (AST _t) throws RecognitionException |
| final void | typelessDeclaration (AST _t) throws RecognitionException |
| final void | initDeclList (AST _t, TypeBox tb) throws RecognitionException |
| final void | declaration (AST _t) throws RecognitionException |
| final TypeBox | declSpecifiers (AST _t) throws RecognitionException |
| final ParameterDeclaration | parameterDeclaration (AST _t) throws RecognitionException |
| final void | nonemptyAbstractDeclarator (AST _t, TypeBox tb) throws RecognitionException |
| final void | functionDef (AST _t) throws RecognitionException |
| final void | functionDeclSpecifiers (AST _t) throws RecognitionException |
| final void | compoundStatement (AST _t) throws RecognitionException |
| final int | storageClassSpecifier (AST _t) throws RecognitionException |
| final int | typeQualifier (AST _t) throws RecognitionException |
| final Type | typeSpecifier (AST _t, int attributes) throws RecognitionException |
| final int | functionStorageClassSpecifier (AST _t) throws RecognitionException |
| final Type | structSpecifier (AST _t, int cvAttrs) throws RecognitionException |
| final void | attributeDecl (AST _t) throws RecognitionException |
| final Type | unionSpecifier (AST _t, int cvAttrs) throws RecognitionException |
| final Type | enumSpecifier (AST _t, int cvAttrs) throws RecognitionException |
| final Type | typedefName (AST _t, int cvAttrs) throws RecognitionException |
| final void | typeName (AST _t) throws RecognitionException |
| final CompoundType | structOrUnionBody (AST _t, CompoundTypeKind kind, int cvAttrs) throws RecognitionException |
| final boolean | structDeclarationList (AST _t, CompoundType t) throws RecognitionException |
| final boolean | structDeclaration (AST _t, CompoundType containingType) throws RecognitionException |
| final Type | specifierQualifierList (AST _t) throws RecognitionException |
| final boolean | structDeclaratorList (AST _t, CompoundType containingType, Type t) throws RecognitionException |
| final boolean | structDeclarator (AST _t, CompoundType containingType, Type t) throws RecognitionException |
| final void | enumList (AST _t, EnumType enumeration) throws RecognitionException |
| final ConstantDefinition | enumerator (AST _t, EnumType enumeration, ConstantDefinition defaultValue) throws RecognitionException |
| final void | initDecl (AST _t, TypeBox tb) throws RecognitionException |
| final void | initializer (AST _t) throws RecognitionException |
| final int | intConstExpr (AST _t) throws RecognitionException |
| final void | translationUnit (AST _t) throws RecognitionException |
| final void | externalList (AST _t) throws RecognitionException |
| final void | externalDef (AST _t) throws RecognitionException |
| final void | asm_expr (AST _t) throws RecognitionException |
| final void | initializerElementLabel (AST _t) throws RecognitionException |
| final void | lcurlyInitializer (AST _t) throws RecognitionException |
| final void | initializerList (AST _t) throws RecognitionException |
| final void | declarationList (AST _t) throws RecognitionException |
| final void | localLabelDecl (AST _t) throws RecognitionException |
| final void | statementList (AST _t) throws RecognitionException |
| final void | statement (AST _t) throws RecognitionException |
| final void | statementBody (AST _t) throws RecognitionException |
| final void | assignExpr (AST _t) throws RecognitionException |
| final void | conditionalExpr (AST _t) throws RecognitionException |
| final void | logicalOrExpr (AST _t) throws RecognitionException |
| final void | logicalAndExpr (AST _t) throws RecognitionException |
| final void | inclusiveOrExpr (AST _t) throws RecognitionException |
| final void | exclusiveOrExpr (AST _t) throws RecognitionException |
| final void | bitAndExpr (AST _t) throws RecognitionException |
| final void | equalityExpr (AST _t) throws RecognitionException |
| final void | relationalExpr (AST _t) throws RecognitionException |
| final void | shiftExpr (AST _t) throws RecognitionException |
| final void | additiveExpr (AST _t) throws RecognitionException |
| final void | multExpr (AST _t) throws RecognitionException |
| final void | castExpr (AST _t) throws RecognitionException |
| final void | unaryExpr (AST _t) throws RecognitionException |
| final void | postfixExpr (AST _t) throws RecognitionException |
| final void | primaryExpr (AST _t) throws RecognitionException |
| final void | commaExpr (AST _t) throws RecognitionException |
| final void | emptyExpr (AST _t) throws RecognitionException |
| final void | compoundStatementExpr (AST _t) throws RecognitionException |
| final void | rangeExpr (AST _t) throws RecognitionException |
| final void | gnuAsmExpr (AST _t) throws RecognitionException |
| final void | strOptExprPair (AST _t) throws RecognitionException |
| final void | unaryOperator (AST _t) throws RecognitionException |
| final void | argExprList (AST _t) throws RecognitionException |
Static Public Attributes | |
| static final String | ANONYMOUS_ENUM_NAME = "<anonymous>" |
| Name assigned to a anonymous EnumType (e.g., "enum { ... }"). More... | |
| static final String[] | _tokenNames |
| static final BitSet | _tokenSet_0 = new BitSet(mk_tokenSet_0()) |
| static final BitSet | _tokenSet_1 = new BitSet(mk_tokenSet_1()) |
| static final BitSet | _tokenSet_2 = new BitSet(mk_tokenSet_2()) |
| static final BitSet | _tokenSet_3 = new BitSet(mk_tokenSet_3()) |
| static final BitSet | _tokenSet_4 = new BitSet(mk_tokenSet_4()) |
Protected Member Functions | |
| final void | stringConst (AST _t) throws RecognitionException |
| final void | charConst (AST _t) throws RecognitionException |
| final void | intConst (AST _t) throws RecognitionException |
| final void | floatConst (AST _t) throws RecognitionException |
Definition at line 31 of file HeaderParser.java.
| com.jogamp.gluegen.cgram.HeaderParser.HeaderParser | ( | ) |
Definition at line 414 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.additiveExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5314 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.argExprList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 6323 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.asm_expr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 3993 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.assignExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4720 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.attributeDecl | ( | AST | _t | ) | throws RecognitionException |
Definition at line 2607 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.bitAndExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5103 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.castExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5432 of file HeaderParser.java.
|
protected |
| void com.jogamp.gluegen.cgram.HeaderParser.clearParsedFunctions | ( | ) |
Clears the list of functions this HeaderParser has parsed.
Useful when reusing the same HeaderParser for more than one header file.
Definition at line 102 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.commaExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5853 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.compoundStatement | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1875 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.compoundStatementExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5900 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.conditionalExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4898 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.declaration | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1126 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.declarationList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4209 of file HeaderParser.java.
| final String com.jogamp.gluegen.cgram.HeaderParser.declarator | ( | AST | _t, |
| TypeBox | tb | ||
| ) | throws RecognitionException |
Definition at line 418 of file HeaderParser.java.
| final TypeBox com.jogamp.gluegen.cgram.HeaderParser.declSpecifiers | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1193 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.emptyExpr | ( | AST | _t | ) | throws RecognitionException |
| final ConstantDefinition com.jogamp.gluegen.cgram.HeaderParser.enumerator | ( | AST | _t, |
| EnumType | enumeration, | ||
| ConstantDefinition | defaultValue | ||
| ) | throws RecognitionException |
Definition at line 3468 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.enumList | ( | AST | _t, |
| EnumType | enumeration | ||
| ) | throws RecognitionException |
Definition at line 3430 of file HeaderParser.java.
| final Type com.jogamp.gluegen.cgram.HeaderParser.enumSpecifier | ( | AST | _t, |
| int | cvAttrs | ||
| ) | throws RecognitionException |
Definition at line 2704 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.equalityExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5130 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.exclusiveOrExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5076 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.expr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 877 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.externalDef | ( | AST | _t | ) | throws RecognitionException |
Definition at line 3938 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.externalList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 3905 of file HeaderParser.java.
|
protected |
Definition at line 6463 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.functionDeclSpecifiers | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1794 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.functionDef | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1686 of file HeaderParser.java.
| final int com.jogamp.gluegen.cgram.HeaderParser.functionStorageClassSpecifier | ( | AST | _t | ) | throws RecognitionException |
| Map com.jogamp.gluegen.cgram.HeaderParser.getCanonMap | ( | ) |
Get the canonicalization map, which is a regular HashMap mapping Type to Type and which is used for looking up the unique instances of e.g.
pointer-to-structure types that have been typedefed and therefore have names.
Definition at line 80 of file HeaderParser.java.
| boolean com.jogamp.gluegen.cgram.HeaderParser.getDebug | ( | ) |
Definition at line 39 of file HeaderParser.java.
| List< EnumType > com.jogamp.gluegen.cgram.HeaderParser.getEnums | ( | ) |
Returns the EnumTypes this HeaderParser processed.
Definition at line 95 of file HeaderParser.java.
| List< FunctionSymbol > com.jogamp.gluegen.cgram.HeaderParser.getParsedFunctions | ( | ) |
Returns the list of FunctionSymbols this HeaderParser has parsed.
Definition at line 107 of file HeaderParser.java.
| TypeDictionary com.jogamp.gluegen.cgram.HeaderParser.getStructDictionary | ( | ) |
Returns the struct name dictionary this HeaderParser uses.
Definition at line 72 of file HeaderParser.java.
| TypeDictionary com.jogamp.gluegen.cgram.HeaderParser.getTypedefDictionary | ( | ) |
Returns the typedef dictionary this HeaderParser uses.
Definition at line 60 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.gnuAsmExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5958 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.idList | ( | AST | _t | ) | throws RecognitionException |
| final void com.jogamp.gluegen.cgram.HeaderParser.inclusiveOrExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5049 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.initDecl | ( | AST | _t, |
| TypeBox | tb | ||
| ) | throws RecognitionException |
Definition at line 3566 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.initDeclList | ( | AST | _t, |
| TypeBox | tb | ||
| ) | throws RecognitionException |
Definition at line 1091 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.initializer | ( | AST | _t | ) | throws RecognitionException |
Definition at line 3701 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.initializerElementLabel | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4061 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.initializerList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4178 of file HeaderParser.java.
|
protected |
Definition at line 6376 of file HeaderParser.java.
| final int com.jogamp.gluegen.cgram.HeaderParser.intConstExpr | ( | AST | _t | ) | throws RecognitionException |
| final void com.jogamp.gluegen.cgram.HeaderParser.lcurlyInitializer | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4150 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.localLabelDecl | ( | AST | _t | ) | throws RecognitionException |
| final void com.jogamp.gluegen.cgram.HeaderParser.logicalAndExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5022 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.logicalOrExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4995 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.multExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5366 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.nonemptyAbstractDeclarator | ( | AST | _t, |
| TypeBox | tb | ||
| ) | throws RecognitionException |
Definition at line 1370 of file HeaderParser.java.
| final ParameterDeclaration com.jogamp.gluegen.cgram.HeaderParser.parameterDeclaration | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1303 of file HeaderParser.java.
| final List< ParameterDeclaration > com.jogamp.gluegen.cgram.HeaderParser.parameterTypeList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 751 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.pointerGroup | ( | AST | _t, |
| TypeBox | tb | ||
| ) | throws RecognitionException |
Definition at line 677 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.postfixExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5626 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.primaryExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5791 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.rangeExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5928 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.relationalExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5182 of file HeaderParser.java.
| void com.jogamp.gluegen.cgram.HeaderParser.setDebug | ( | boolean | debug | ) |
| void com.jogamp.gluegen.cgram.HeaderParser.setEnums | ( | List< EnumType > | enumTypes | ) |
Pre-define the list of EnumTypes for this HeaderParser.
Must be done before parsing.
Definition at line 86 of file HeaderParser.java.
| void com.jogamp.gluegen.cgram.HeaderParser.setJavaConfiguration | ( | JavaConfiguration | cfg | ) |
Set the configuration for this HeaderParser.
Must be done before parsing.
Definition at line 49 of file HeaderParser.java.
| void com.jogamp.gluegen.cgram.HeaderParser.setStructDictionary | ( | TypeDictionary | dict | ) |
Set the dictionary mapping struct names (i.e., the "foo" in "struct foo { ... };") to types for this HeaderParser.
Must be done before parsing.
Definition at line 67 of file HeaderParser.java.
| void com.jogamp.gluegen.cgram.HeaderParser.setTypedefDictionary | ( | TypeDictionary | dict | ) |
Set the dictionary mapping typedef names to types for this HeaderParser.
Must be done before parsing.
Definition at line 55 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.shiftExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5262 of file HeaderParser.java.
| final Type com.jogamp.gluegen.cgram.HeaderParser.specifierQualifierList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 3198 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.statement | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4319 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.statementBody | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4338 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.statementList | ( | AST | _t | ) | throws RecognitionException |
Definition at line 4286 of file HeaderParser.java.
| final int com.jogamp.gluegen.cgram.HeaderParser.storageClassSpecifier | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1959 of file HeaderParser.java.
|
protected |
| final void com.jogamp.gluegen.cgram.HeaderParser.strOptExprPair | ( | AST | _t | ) | throws RecognitionException |
Definition at line 6190 of file HeaderParser.java.
| final boolean com.jogamp.gluegen.cgram.HeaderParser.structDeclaration | ( | AST | _t, |
| CompoundType | containingType | ||
| ) | throws RecognitionException |
Definition at line 3151 of file HeaderParser.java.
| final boolean com.jogamp.gluegen.cgram.HeaderParser.structDeclarationList | ( | AST | _t, |
| CompoundType | t | ||
| ) | throws RecognitionException |
Definition at line 3107 of file HeaderParser.java.
| final boolean com.jogamp.gluegen.cgram.HeaderParser.structDeclarator | ( | AST | _t, |
| CompoundType | containingType, | ||
| Type | t | ||
| ) | throws RecognitionException |
Definition at line 3332 of file HeaderParser.java.
| final boolean com.jogamp.gluegen.cgram.HeaderParser.structDeclaratorList | ( | AST | _t, |
| CompoundType | containingType, | ||
| Type | t | ||
| ) | throws RecognitionException |
Definition at line 3288 of file HeaderParser.java.
| final CompoundType com.jogamp.gluegen.cgram.HeaderParser.structOrUnionBody | ( | AST | _t, |
| CompoundTypeKind | kind, | ||
| int | cvAttrs | ||
| ) | throws RecognitionException |
Definition at line 2897 of file HeaderParser.java.
| final Type com.jogamp.gluegen.cgram.HeaderParser.structSpecifier | ( | AST | _t, |
| int | cvAttrs | ||
| ) | throws RecognitionException |
Definition at line 2577 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.translationUnit | ( | AST | _t | ) | throws RecognitionException |
Definition at line 3875 of file HeaderParser.java.
| final Type com.jogamp.gluegen.cgram.HeaderParser.typedefName | ( | AST | _t, |
| int | cvAttrs | ||
| ) | throws RecognitionException |
Definition at line 2814 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.typelessDeclaration | ( | AST | _t | ) | throws RecognitionException |
Definition at line 1060 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.typeName | ( | AST | _t | ) | throws RecognitionException |
Definition at line 2856 of file HeaderParser.java.
| final int com.jogamp.gluegen.cgram.HeaderParser.typeQualifier | ( | AST | _t | ) | throws RecognitionException |
| final Type com.jogamp.gluegen.cgram.HeaderParser.typeSpecifier | ( | AST | _t, |
| int | attributes | ||
| ) | throws RecognitionException |
Definition at line 2091 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.unaryExpr | ( | AST | _t | ) | throws RecognitionException |
Definition at line 5462 of file HeaderParser.java.
| final void com.jogamp.gluegen.cgram.HeaderParser.unaryOperator | ( | AST | _t | ) | throws RecognitionException |
| final Type com.jogamp.gluegen.cgram.HeaderParser.unionSpecifier | ( | AST | _t, |
| int | cvAttrs | ||
| ) | throws RecognitionException |
Definition at line 2674 of file HeaderParser.java.
|
static |
Definition at line 6509 of file HeaderParser.java.
|
static |
Definition at line 6683 of file HeaderParser.java.
|
static |
Definition at line 6688 of file HeaderParser.java.
|
static |
Definition at line 6693 of file HeaderParser.java.
|
static |
Definition at line 6698 of file HeaderParser.java.
|
static |
Definition at line 6703 of file HeaderParser.java.
|
static |
Name assigned to a anonymous EnumType (e.g., "enum { ... }").
Definition at line 35 of file HeaderParser.java.