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

How to use
isPrimitive
method
in
br.com.objectos.way.code.SimpleTypeInfo

Best Java code snippets using br.com.objectos.way.code.SimpleTypeInfo.isPrimitive (Showing top 3 results out of 315)

origin: br.com.objectos/way-code

public Optional<CodeBlock> writeNullCheck() {
 Optional<CodeBlock> res = Optional.absent();
 if (!simpleTypeInfo().isPrimitive()) {
  CodeBlock nullCheck = CodeBlock.builder()
    .beginControlFlow("if ($L == null)", name())
    .addStatement("throw new $T()", NullPointerException.class)
    .endControlFlow()
    .build();
  res = Optional.of(nullCheck);
 }
 return res;
}
origin: br.com.objectos.way/io-flat-pojo-plugin

void recordBuilderCode(Body body) {
 SimpleTypeInfo returnTypeInfo = property.returnTypeInfo();
 if (returnTypeInfo.isPrimitive()) {
  body.add(".$L(record.$LValue())", property.name(), returnTypeInfo.simpleName());
 } else {
  body.add(".$L(record.<$T> get())", property.name(), returnTypeInfo.typeName());
 }
}
origin: br.com.objectos/way-code

@Override
public MustacheObject toMustache() {
 return Mustaches.toMustacheHelper()
   .add("package", packageInfo().orNull())
   .add("name", getDeclaredName())
   .add("simpleName", simpleName())
   .add("qualifiedName", toString())
   .add("rawName", getRawName())
   .add("varName", varName())
   .add("primitive", isPrimitive())
   .toMustache();
}
br.com.objectos.way.codeSimpleTypeInfoisPrimitive

Popular methods of SimpleTypeInfo

  • typeName
  • equals
  • isInfoOf
  • kind
  • nameInfo
  • newPrimitive
  • packageInfo
  • toArray
  • typeParameterInfoList
  • getTypeParameterInfoStream
  • isSubType
  • newType
  • isSubType,
  • newType,
  • simpleName,
  • typeNameRaw,
  • className,
  • classNameSuffix,
  • fileAt,
  • getDeclaredName,
  • getGetterPrefix

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Sublime Text plugins
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