public class Info extends Object
Parser and associated with C++ identifiers.
Info objects are meant to be added by the user to an InfoMap passed as
argument to InfoMapper.map(InfoMap). A class inheriting from the latter
becomes a kind of configuration file entirely written in Java.
For usage examples, one can refer to the source code of the default values defined
in the initializer of InfoMap.defaults.
| Modifier and Type | Field and Description |
|---|---|
(package private) String[] |
annotations
Additional Java annotations that should prefix the identifiers on output.
|
(package private) String |
base
Allows to override the base class of
pointerTypes. |
(package private) boolean |
cast
|
(package private) String[] |
cppNames
A list of C++ identifiers or expressions to which this info is to be bound.
|
(package private) String |
cppText
Replaces the code associated with the declaration of C++ identifiers, before parsing.
|
(package private) String[] |
cppTypes
A list of C++ types that supply information missing from macros, templates, etc.
|
(package private) boolean |
define
Indicates expressions of conditional macro groups to parse, or templates to specialize.
|
(package private) String[] |
javaNames
The Java identifiers to output corresponding to the C++ identifiers of
cppNames. |
(package private) String |
javaText
Outputs the given code, instead of the result parsed from the declaration of C++ identifiers.
|
(package private) String[] |
pointerTypes
A list of (usually)
Pointer Java subclasses to be used to map C++ pointer types. |
(package private) boolean |
skip
Skips entirely all the code associated with the C++ identifiers.
|
(package private) boolean |
translate
Attempts to translate naively the statements of variable-like macros to Java.
|
(package private) String[] |
valueTypes
A list of (usually) primitive Java types to be used to map C++ value types.
|
| Constructor and Description |
|---|
Info() |
Info(Info i) |
Info(String... cppNames) |
| Modifier and Type | Method and Description |
|---|---|
Info |
annotations(String... annotations) |
Info |
base(String base) |
Info |
cast() |
Info |
cast(boolean cast) |
Info |
cppNames(String... cppNames) |
Info |
cppText(String cppText) |
Info |
cppTypes(String... cppTypes) |
Info |
define() |
Info |
define(boolean define) |
Info |
javaNames(String... javaNames) |
Info |
javaText(String javaText) |
Info |
pointerTypes(String... pointerTypes) |
Info |
skip() |
Info |
skip(boolean skip) |
Info |
translate() |
Info |
translate(boolean translate) |
Info |
valueTypes(String... valueTypes) |
String[] cppNames
Info(String...).String[] javaNames
String[] annotations
String[] cppTypes
String[] valueTypes
pointerTypes prefixed with @ByVal are used.String[] pointerTypes
boolean cast
boolean define
boolean translate
boolean skip
String base
pointerTypes. Defaults to Pointer.String cppText
String javaText
Copyright © 2014. All Rights Reserved.