Codota Logo
JDefinedClass.dotclass
Code IndexAdd Codota 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)

  • Common ways to obtain JDefinedClass
private void myMethod () {
JDefinedClass j =
  • Codota IconJCodeModel codeModel;String fullyqualifiedName;codeModel._class(fullyqualifiedName)
  • Codota IconJClassAlreadyExistsException e;e.getExistingClass()
  • Codota IconJCodeModel cm;String fullyqualifiedName;ClassType t;cm._class(fullyqualifiedName, t)
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now