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

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

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

origin: org.codehaus.enunciate/enunciate-amf

@Override
public String convert(TypeMirror typeMirror) throws TemplateModelException {
 DecoratedTypeMirror decorated = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(typeMirror);
 if ((typeMirror instanceof ArrayType) && (((ArrayType) typeMirror).getComponentType() instanceof PrimitiveType)) {
  //special case for primitive arrays.
  return super.convert(((ArrayType) typeMirror).getComponentType()) + "[]";
 }
 else if (decorated.isEnum()) {
  return String.class.getName();
 }
 else if (decorated.isDeclared()) {
  DeclaredType declaredType = ((DeclaredType) decorated);
  String fqn = declaredType.getDeclaration().getQualifiedName();
  if (classConversions.containsKey(fqn)) {
   return classConversions.get(fqn);
  }
 }
 return super.convert(typeMirror);
}
origin: org.codehaus.enunciate/enunciate-php

else if (decorated.isEnum()) {
 return "string";
origin: org.codehaus.enunciate/enunciate-amf

 return "Object";
else if (decorated.isEnum()) {
 return "String";
origin: org.codehaus.enunciate/enunciate-full

 return "Object";
else if (decorated.isEnum()) {
 return "String";
origin: org.codehaus.enunciate/enunciate-php

else if (decorated.isEnum()) {
 return "String";
origin: org.codehaus.enunciate/enunciate-ruby

else if (decorated.isEnum()) {
 return "String";
net.sf.jelly.apt.decorations.typeDecoratedTypeMirrorisEnum

Popular methods of DecoratedTypeMirror

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

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • From CI to AI: The AI layer in your organization
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