protected static final class ZbnfJavaOutput.DstInstanceAndClass
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Class<?> |
clazz
Doc: see constructors args.
|
(package private) java.lang.Object |
instance |
(package private) ZbnfJavaOutput.DstInstanceAndClass |
parentResult |
(package private) java.lang.String |
semantic |
(package private) boolean |
shouldAdd |
Constructor and Description |
---|
DstInstanceAndClass(ZbnfJavaOutput.DstInstanceAndClass parent,
java.lang.String semantic,
java.lang.Object instance,
java.lang.Class<?> clazz,
boolean shouldAdd)
All elements are final and set one time on creation.
|
final java.lang.Class<?> clazz
final java.lang.Object instance
final boolean shouldAdd
final ZbnfJavaOutput.DstInstanceAndClass parentResult
final java.lang.String semantic
DstInstanceAndClass(ZbnfJavaOutput.DstInstanceAndClass parent, java.lang.String semantic, java.lang.Object instance, java.lang.Class<?> clazz, boolean shouldAdd)
parent
- The parent destination is used on error messages.semantic
- To show for error messagesinstance
- The instance where the data should be stored in.
If this instance implements the GetTypeToUse
then that type is used to search the destination
of the component's children.clazz
- The type of the reference to the instance, not the type of the instance.
That type should be used to find components fields or method.
(Note: The type of the instance may be derived, private or so on.)shouldAdd
- true than the instance is to be add using an add_Semantic(Object)-method
of its parent, because it is got with a new_Semantic()-Method.
false than the instance is referenced anywhere already in the user's data.