| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | bindQueue
Classes that need to be bound. |
| pack-priv final Map | classes
Patterns that are mapped to Java concepts. |
| pack-priv final Map | |
| pack-priv final Set | defs
All named patterns in this schema. |
| pack-priv final DPattern | grammar
Schema to compile. |
| pack-priv final Model | |
| pack-priv final Options | |
| pack-priv final JPackage | pkg
The package to which we generate the code into. |
| pack-priv final TypeUseBinder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static Model | |
| private void | |
| private void | |
| private void | |
| private void | promoteTypePatternsToClasses()
Looks for named patterns that are not bound to classes so far, but that can be bound to classes. |
| private void |
| bindQueue | back to summary |
|---|---|
| pack-priv final Map<CClassInfo, DPattern> bindQueue Classes that need to be bound. The value is the content model to be bound. | |
| classes | back to summary |
|---|---|
| pack-priv final Map<DPattern, CTypeInfo[]> classes Patterns that are mapped to Java concepts. The value is an array because we map elements with finite names to multiple classes. Todo depending on the type of the key, the type of the values can be further restricted. Make this into its own class to represent those constraints better. | |
| datatypes | back to summary |
|---|---|
| pack-priv final Map<String, DatatypeLib> datatypes | |
| defs | back to summary |
|---|---|
| pack-priv final Set<DDefine> defs All named patterns in this schema. | |
| grammar | back to summary |
|---|---|
| pack-priv final DPattern grammar Schema to compile. | |
| model | back to summary |
|---|---|
| pack-priv final Model model | |
| opts | back to summary |
|---|---|
| pack-priv final Options opts | |
| pkg | back to summary |
|---|---|
| pack-priv final JPackage pkg The package to which we generate the code into. | |
| typeUseBinder | back to summary |
|---|---|
| pack-priv final TypeUseBinder typeUseBinder | |
| RELAXNGCompiler | back to summary |
|---|---|
| public RELAXNGCompiler(DPattern grammar, JCodeModel codeModel, Options opts) | |
| bindContentModel | back to summary |
|---|---|
| private void bindContentModel(CClassInfo clazz, DPattern pattern) | |
| build | back to summary |
|---|---|
| public static Model build(DPattern grammar, JCodeModel codeModel, Options opts) | |
| compile | back to summary |
|---|---|
| private void compile() | |
| mapToClass | back to summary |
|---|---|
| private void mapToClass(DElementPattern p) | |
| promoteElementDefsToClasses | back to summary |
|---|---|
| private void promoteElementDefsToClasses() | |
| promoteTypePatternsToClasses | back to summary |
|---|---|
| private void promoteTypePatternsToClasses() Looks for named patterns that are not bound to classes so far, but that can be bound to classes. | |
| promoteTypeSafeEnums | back to summary |
|---|---|
| private void promoteTypeSafeEnums() | |