Tabnine Logo
JDefinedClass.dotclass
Code IndexAdd Tabnine to your IDE (free)

How to use
dotclass
method
in
com.sun.codemodel.JDefinedClass

Best Java code snippets using com.sun.codemodel.JDefinedClass.dotclass (Showing top 20 results out of 315)

origin: joelittlejohn/jsonschema2pojo

.invoke("append").arg(jclass.dotclass().invoke("getName"))
.invoke("append").arg(JExpr.lit('@'))
.invoke("append").arg(
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

    inv.arg(cc.implRef.dotclass());
  for( PackageOutlineImpl po : packageContexts.values() )
    inv.arg(po.objectFactory().dotclass());
  break;
default:
origin: org.glassfish.metro/webservices-tools

inv.arg(po.objectFactory().dotclass());
origin: sun-jaxb/jaxb-xjc

    inv.arg(cc.implRef.dotclass());
  for( PackageOutlineImpl po : packageContexts.values() )
    inv.arg(po.objectFactory().dotclass());
  break;
default:
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

inv.arg(po.objectFactory().dotclass());
origin: com.cloudbees/groovy-cps-dgm-builder

$output.method(JMod.PRIVATE|JMod.STATIC, $MethodLocation, "loc").tap( m -> {
  JVar $methodName = m.param(String.class, "methodName");
  m.body()._return(JExpr._new($MethodLocation).arg($output.dotclass()).arg($methodName));
});
origin: apache/servicemix-bundles

inv.arg(po.objectFactory().dotclass());
origin: com.envoisolutions.sxc/sxc-jaxb

  public void addRootElement(QName name, Class type) {
    if (!type.isEnum()) {
      JAXBObjectBuilder objectBuilder = builderContext.getJAXBObjectBuilder(type);
      if (objectBuilder != null) {
        constructor.body().invoke(rootElements, "put")
            .arg(newQName(name))
            .arg(objectBuilder.getJAXBObjectClass().dotclass());
      } else {
        JAXBObject jaxbObject = StandardJAXBObjects.jaxbObjectByClass.get(type);
        if (jaxbObject != null) {
          constructor.body().invoke(rootElements, "put")
              .arg(newQName(name))
              .arg(builderContext.dotclass(jaxbObject.getClass()));
        }

      }
    } else {
      JAXBEnumBuilder enumBuilder = builderContext.getJAXBEnumBuilder(type);
      if (enumBuilder != null) {
        constructor.body().invoke(rootElements, "put")
            .arg(newQName(name))
            .arg(enumBuilder.getJAXBEnumClass().dotclass());
      }
    }
  }
}
origin: org.metatype.sxc/sxc-jaxb

  public void addRootElement(QName name, Class type) {
    if (!type.isEnum()) {
      JAXBObjectBuilder objectBuilder = builderContext.getJAXBObjectBuilder(type);
      if (objectBuilder != null) {
        constructor.body().invoke(rootElements, "put")
            .arg(newQName(name))
            .arg(objectBuilder.getJAXBObjectClass().dotclass());
      } else {
        JAXBObject jaxbObject = StandardJAXBObjects.jaxbObjectByClass.get(type);
        if (jaxbObject != null) {
          constructor.body().invoke(rootElements, "put")
              .arg(newQName(name))
              .arg(builderContext.dotclass(jaxbObject.getClass()));
        }

      }
    } else {
      JAXBEnumBuilder enumBuilder = builderContext.getJAXBEnumBuilder(type);
      if (enumBuilder != null) {
        constructor.body().invoke(rootElements, "put")
            .arg(newQName(name))
            .arg(enumBuilder.getJAXBEnumClass().dotclass());
      }
    }
  }
}
origin: com.cloudbees/groovy-cps-dgm-builder

    .arg($output.dotclass())
    .arg(overloadResolved);
} else {
origin: com.cloudbees/groovy-cps-dgm-builder

})),
JOp.not($Caller.staticInvoke("isAsynchronous")
    .arg($output.dotclass())
    .arg(methodName)
    .args(params))
origin: stackoverflow.com

JCodeModel model = new JCodeModel();
 JClass mapper = model.directClass("com.blah.util.Mapper");
 JClass factory = model.directClass("com.blah.util.MapperSingleton");
 JDefinedClass dc = model._class("com.example.Something");
 JDefinedClass person = model._class("com.example.PERSON");
 JMethod method = dc.method(JMod.PUBLIC, person, "mapVOToPERSON");
 JBlock block = method.body();
 JVar lhs = block.decl(mapper, "mapper", factory.staticInvoke("getMapperInstance"));
 JInvocation map = lhs.invoke("map");
 map.arg(JExpr._this()); 
 map.arg(person.dotclass());
 method.body()._return(map);
 model.build(destinationDirectory);
origin: com.github.jaxb-xew-plugin/jaxb-xew-plugin

.arg(declaredType.erasure() == declaredType ? declaredType.dotclass()
      : JExpr.cast(codeModel.ref(Class.class), declaredType.dotclass()))
.arg(targetClass.dotclass()).arg(method.param(info.type, "value")));
origin: dmak/jaxb-xew-plugin

.arg(declaredType.erasure() == declaredType ? declaredType.dotclass()
      : JExpr.cast(codeModel.ref(Class.class), declaredType.dotclass()))
.arg(targetClass.dotclass()).arg(method.param(info.type, "value")));
origin: johncarl81/transfuse

getMethod.annotate(Override.class);
JInvocation getMethodInvocation = definedClass.dotclass().invoke(CLASS_GET_METHOD).arg(method.getName());
getMethod.body()._return(getMethodInvocation);
getMethod._throws(NoSuchMethodException.class);
origin: fusesource/fuse-extra

        .invoke("put")
        .arg(ref("NUMERIC_ID"))
        .arg(cls().dotclass())
);
        .invoke("put")
        .arg(ref("SYMBOLIC_ID"))
        .arg(cls().dotclass())
);
origin: mklemm/jaxb2-rich-contract-plugin

final JFieldVar staticField = metaClass.field(JMod.PUBLIC | JMod.STATIC | JMod.FINAL | JMod.TRANSIENT, metaFieldType, metaFieldName, JExpr._new(anonymousMetaFieldType)
    .arg(propertyName)
    .arg(fieldOutline.parent().implClass.dotclass())
    .arg(dotClass(typeArg == null ? pluginContext.codeModel.ref(Object.class) : typeArg))
    .arg(JExpr.lit(propertyOutline.isCollection()))
origin: org.jsonschema2pojo/jsonschema2pojo-core

.invoke("append").arg(jclass.dotclass().invoke("getName"))
.invoke("append").arg(JExpr.lit('@'))
.invoke("append").arg(
origin: com.googlecode.androidannotations/androidannotations

JBlock constructorBody = constructor.body();
constructorBody.assign(contextField, constructorContextParam);
constructorBody.assign(holder.intentField, _new(intentClass).arg(constructorContextParam).arg(holder.generatedClass.dotclass()));
origin: fusesource/fuse-extra

        .invoke("put")
        .arg(ref(staticCodeFieldName))
        .arg(cls().dotclass())
);
com.sun.codemodelJDefinedClassdotclass

Popular methods of JDefinedClass

  • method
  • _extends
  • field
  • _implements
  • name
    JClass name accessor. For example, for java.util.List, this method returns "List""
  • constructor
    Adds a constructor to this class.
  • fields
    Returns all the fields declred in this class. The returned Map is a read-only live view.
  • annotate
    Adding ability to annotate a class
  • fullName
    Gets the fully qualified name of this class.
  • methods
  • owner
  • javadoc
    Creates, if necessary, and returns the class javadoc for this JDefinedClass
  • owner,
  • javadoc,
  • _class,
  • getMethod,
  • _package,
  • enumConstant,
  • staticInvoke,
  • staticRef,
  • init

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now