Tabnine Logo
DecoratedTypeMirror.isPrimitive
Code IndexAdd Tabnine to your IDE (free)

How to use
isPrimitive
method
in
net.sf.jelly.apt.decorations.type.DecoratedTypeMirror

Best Java code snippets using net.sf.jelly.apt.decorations.type.DecoratedTypeMirror.isPrimitive (Showing top 13 results out of 315)

origin: org.codehaus.enunciate/enunciate-core

/**
 * The min occurs of this parameter as a child element.
 *
 * @return 1 if primitive.  0 otherwise.
 */
public int getMinOccurs() {
 DecoratedTypeMirror paramType = (DecoratedTypeMirror) getType();
 return paramType.isPrimitive() ? 1 : 0;
}
origin: org.codehaus.enunciate/enunciate-core

/**
 * The min occurs of a web result.
 *
 * @return 1 if primitive.  0 otherwise.
 */
public int getMinOccurs() {
 DecoratedTypeMirror typeMirror = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(this.delegate);
 return typeMirror.isPrimitive() ? 1 : 0;
}
origin: org.codehaus.enunciate/enunciate-full

private FaultBeanChildElement(PropertyDeclaration property) {
 DecoratedTypeMirror propertyType = (DecoratedTypeMirror) property.getPropertyType();
 this.adaperType = AdapterUtil.findAdapterType(property.getGetter());
 int minOccurs = propertyType.isPrimitive() ? 1 : 0;
 String maxOccurs = propertyType.isArray() || propertyType.isCollection() ? "unbounded" : "1";
 this.property = property;
 this.minOccurs = minOccurs;
 this.maxOccurs = maxOccurs;
}
origin: org.codehaus.enunciate/enunciate-gwt

Accessor accessor = (Accessor) unwrapped;
DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(accessor.getAccessorType());
if (decorated.isPrimitive()) {
 return ((PrimitiveType) decorated).getKind() == PrimitiveType.Kind.LONG;
origin: org.codehaus.enunciate/enunciate-csharp

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  PrimitiveType.Kind kind = ((PrimitiveType) decorated).getKind();
  switch (kind) {
   case BOOLEAN:
    return "bool"; //boolean as 'bool'
   case CHAR:
    return "ushort";
   default:
    return kind.toString().toLowerCase();
  }
 }
 else if (decorated.isCollection()) {
  //collections will be converted to arrays.
  return getCollectionTypeConversion((DeclaredType) typeMirror);
 }
 return super.convert(typeMirror);
}
origin: org.codehaus.enunciate/enunciate-php

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  PrimitiveType.Kind kind = ((PrimitiveType) decorated).getKind();
  switch (kind) {
origin: org.codehaus.enunciate/enunciate-gwt

if (decorated.isArray()) {
 DecoratedTypeMirror componentType = (DecoratedTypeMirror) ((ArrayType) decorated).getComponentType();
 if (componentType.isPrimitive()) {
  switch (((PrimitiveType)componentType).getKind()) {
   case BOOLEAN:
else if (decorated.isPrimitive()) {
 if (((PrimitiveType) decorated).getKind() == PrimitiveType.Kind.LONG) {
  return Long.class.getName();
origin: org.codehaus.enunciate/enunciate-amf

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  switch (((PrimitiveType)decorated).getKind()) {
   case BOOLEAN:
  ArrayType arrayType = (ArrayType) decorated;
  DecoratedTypeMirror decoratedComponentType = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(arrayType.getComponentType());
  if (((decoratedComponentType.isPrimitive()) && (((PrimitiveType) decoratedComponentType).getKind() == PrimitiveType.Kind.CHAR))
   || (decoratedComponentType.isInstanceOf(Character.class.getName()))) {
   return "String";
  else if (((decoratedComponentType.isPrimitive()) && (((PrimitiveType) decoratedComponentType).getKind() == PrimitiveType.Kind.BYTE))
   || (decoratedComponentType.isInstanceOf(Byte.class.getName()))) {
   return "flash.utils.ByteArray";
origin: org.codehaus.enunciate/enunciate-full

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  switch (((PrimitiveType)decorated).getKind()) {
   case BOOLEAN:
  ArrayType arrayType = (ArrayType) decorated;
  DecoratedTypeMirror decoratedComponentType = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(arrayType.getComponentType());
  if (((decoratedComponentType.isPrimitive()) && (((PrimitiveType) decoratedComponentType).getKind() == PrimitiveType.Kind.CHAR))
   || (decoratedComponentType.isInstanceOf(Character.class.getName()))) {
   return "String";
  else if (((decoratedComponentType.isPrimitive()) && (((PrimitiveType) decoratedComponentType).getKind() == PrimitiveType.Kind.BYTE))
   || (decoratedComponentType.isInstanceOf(Byte.class.getName()))) {
   return "flash.utils.ByteArray";
origin: org.codehaus.enunciate/enunciate-c

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  PrimitiveType.Kind kind = ((PrimitiveType) decorated).getKind();
  switch (kind) {
origin: org.codehaus.enunciate/enunciate-core

private FaultBeanChildElement(PropertyDeclaration property, WebFault webFault) {
 DecoratedTypeMirror propertyType = (DecoratedTypeMirror) property.getPropertyType();
 this.adaperType = AdapterUtil.findAdapterType(property.getGetter());
 int minOccurs = propertyType.isPrimitive() ? 1 : 0;
 boolean unbounded = propertyType.isCollection() || propertyType.isArray();
 if (propertyType.isArray()) {
  TypeMirror componentType = ((ArrayType) propertyType).getComponentType();
  //special case for byte[]
  if ((componentType instanceof PrimitiveType) && (((PrimitiveType) componentType).getKind() == PrimitiveType.Kind.BYTE)) {
   unbounded = false;
  }
 }
 String maxOccurs = unbounded ? "unbounded" : "1";
 this.property = property;
 this.minOccurs = minOccurs;
 this.maxOccurs = maxOccurs;
 this.webFault = webFault;
}
origin: org.codehaus.enunciate/enunciate-php

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  PrimitiveType.Kind kind = ((PrimitiveType) decorated).getKind();
  switch (kind) {
origin: org.codehaus.enunciate/enunciate-ruby

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if (decorated.isPrimitive()) {
  PrimitiveType.Kind kind = ((PrimitiveType) decorated).getKind();
  switch (kind) {
net.sf.jelly.apt.decorations.typeDecoratedTypeMirrorisPrimitive

Popular methods of DecoratedTypeMirror

  • isInstanceOf
  • isCollection
  • isArray
  • isDeclared
  • isEnum
  • isVoid
  • getDocComment
  • isClass
  • setDocComment
  • <init>
  • equals
  • getDelegate
  • equals,
  • getDelegate,
  • getDocValue

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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