Uses of Class
org.codehaus.modello.plugin.java.javasource.JSourceCode
Packages that use JSourceCode
Package
Description
-
Uses of JSourceCode in org.codehaus.modello.plugin.dom4j
Methods in org.codehaus.modello.plugin.dom4j with parameters of type JSourceCodeModifier and TypeMethodDescriptionprivate void
Dom4jReaderGenerator.processField
(ModelField field, XmlFieldMetadata xmlFieldMetadata, boolean addElse, JSourceCode sc, String objectName, JClass jClass) Generate code to process a field represented as an XML element.private void
Dom4jWriterGenerator.processField
(ModelField field, XmlFieldMetadata xmlFieldMetadata, String uncapClassName, JSourceCode sc, ModelClass modelClass, JClass jClass) private void
Dom4jReaderGenerator.writePrimitiveField
(ModelField field, String type, String objectName, String setterName, JSourceCode sc, JClass jClass, String parentElementName, String childElementName) -
Uses of JSourceCode in org.codehaus.modello.plugin.java
Methods in org.codehaus.modello.plugin.java with parameters of type JSourceCodeModifier and TypeMethodDescriptionprivate void
JavaModelloGenerator.createAssociation
(JClass jClass, ModelAssociation modelAssociation, JSourceCode jConstructorSource) private void
JavaModelloGenerator.createClassCastAssertion
(JSourceCode sc, ModelAssociation modelAssociation, String crudModifier) private void
JavaModelloGenerator.createInstanceAndSetProperties
(ModelClass modelClass, JConstructor constructor, JSourceCode sc) private void
JavaModelloGenerator.createSetBuilderAssociationToInstance
(Set<String> ctorArgs, ModelAssociation modelAssociation, JSourceCode sc) private boolean
JavaModelloGenerator.createSetBuilderFieldToInstance
(Set<String> ctorArgs, ModelField modelField, JSourceCode sc) -
Uses of JSourceCode in org.codehaus.modello.plugin.java.javasource
Fields in org.codehaus.modello.plugin.java.javasource declared as JSourceCodeModifier and TypeFieldDescriptionprivate JSourceCode
JClass._staticInitializer
The source code for static initializationprivate JSourceCode
JMethod.source
The source code for this methodprivate JSourceCode
JConstructor.sourceCode
Methods in org.codehaus.modello.plugin.java.javasource that return JSourceCodeModifier and TypeMethodDescriptionJConstructor.getSourceCode()
JMethod.getSourceCode()
Returns the JSourceCode for the method body.JClass.getStaticInitializationCode()
Returns the JSourceCode for the static initializer of this JClassMethods in org.codehaus.modello.plugin.java.javasource with parameters of type JSourceCodeModifier and TypeMethodDescriptionvoid
JSourceCode.copyInto
(JSourceCode jsc) Copies the contents of this JSourceCode into the given JSourceCodevoid
JConstructor.setSourceCode
(JSourceCode sourceCode) void
JMethod.setSourceCode
(JSourceCode source) Sets the given JSourceCode as the source code (method body) for this JMethod. -
Uses of JSourceCode in org.codehaus.modello.plugin.stax
Methods in org.codehaus.modello.plugin.stax with parameters of type JSourceCodeModifier and TypeMethodDescriptionprivate static void
StaxReaderGenerator.addCodeToAddReferences
(ModelAssociation association, JClass jClass, JSourceCode sc, ModelField referenceIdentifierField, String referredFromClass) private void
StaxReaderGenerator.processField
(ModelField field, XmlFieldMetadata xmlFieldMetadata, boolean addElse, JSourceCode sc, String objectName, boolean rootElement, JClass jClass) Generate code to process a field represented as an XML element.private void
StaxReaderGenerator.writeAttributes
(ModelClass modelClass, String uncapClassName, JSourceCode sc) Add code to parse fields of a model class that are XML attributes.private void
StaxWriterGenerator.writeElementAttribute
(JSourceCode sc, ModelField referenceIdentifierField, String value) private static void
StaxWriterGenerator.writeIdMapCheck
(JSourceCode sc, String value, String attributeName) private void
StaxReaderGenerator.writeModelVersionCheck
(JSourceCode sc) private static void
StaxReaderGenerator.writeModelVersionHack
(JSourceCode sc) private void
StaxReaderGenerator.writePrimitiveField
(ModelField field, String type, String objectName, String setterName, JSourceCode sc) Write code to set a primitive field with a value got from the parser, with appropriate default value, trimming and required check logic. -
Uses of JSourceCode in org.codehaus.modello.plugin.xpp3
Methods in org.codehaus.modello.plugin.xpp3 with parameters of type JSourceCodeModifier and TypeMethodDescriptionprivate void
Xpp3ReaderGenerator.processField
(ModelField field, XmlFieldMetadata xmlFieldMetadata, boolean addElse, JSourceCode sc, String objectName, JClass jClass) Generate code to process a field represented as an XML element.private ModelField
Xpp3ReaderGenerator.writeClassAttributesParser
(List<ModelField> modelFields, String objectName, boolean rootElement, JSourceCode sc, JClass jClass) protected void
Xpp3WriterGenerator.writeLocationTracking
(JSourceCode sc, String name, String key) private void
Xpp3ReaderGenerator.writeNewLocation
(String trackerVariable, JSourceCode sc) private void
Xpp3ReaderGenerator.writeNewSetLocation
(String key, String objectName, String trackerVariable, JSourceCode sc) private void
Xpp3ReaderGenerator.writeNewSetLocation
(ModelField field, String objectName, String trackerVariable, JSourceCode sc) private void
Xpp3ReaderGenerator.writePrimitiveField
(ModelField field, String type, String objectName, String locatorName, String locationKey, String setterName, JSourceCode sc) private void
Xpp3ReaderGenerator.writeSetLocation
(String key, String objectName, String trackerVariable, JSourceCode sc) -
Uses of JSourceCode in org.codehaus.modello.plugins.xml
Methods in org.codehaus.modello.plugins.xml with parameters of type JSourceCodeModifier and TypeMethodDescriptionprotected void
AbstractXmlJavaGenerator.writeDateParsingHelper
(JSourceCode sc, String exception)