Tabnine Logo
DeclaredTypeName.setTypeArgs
Code IndexAdd Tabnine to your IDE (free)

How to use
setTypeArgs
method
in
com.yahoo.aptutils.model.DeclaredTypeName

Best Java code snippets using com.yahoo.aptutils.model.DeclaredTypeName.setTypeArgs (Showing top 9 results out of 315)

origin: yahoo/squidb

@Override
public DeclaredTypeName getPropertyType() {
  DeclaredTypeName jsonProperty = JSONTypes.JSON_PROPERTY.clone();
  jsonProperty.setTypeArgs(Collections.singletonList(fieldType));
  return jsonProperty;
}
origin: yahoo/squidb

@Override
public DeclaredTypeName getPropertyType() {
  DeclaredTypeName enumProperty = ENUM_PROPERTY.clone();
  enumProperty.setTypeArgs(Collections.singletonList(enumType));
  return enumProperty;
}
origin: yahoo/squidb

  @Override
  public void afterEmitMethods(JavaFileWriter writer) throws IOException {
    // emit creator for parcelable
    writer.writeComment("--- parcelable helpers");
    List<DeclaredTypeName> genericList = Collections.singletonList(modelSpec.getGeneratedClassName());
    DeclaredTypeName creatorType = TypeConstants.CREATOR.clone();
    DeclaredTypeName modelCreatorType = TypeConstants.MODEL_CREATOR.clone();
    creatorType.setTypeArgs(genericList);
    modelCreatorType.setTypeArgs(genericList);

    writer.writeFieldDeclaration(creatorType,
        "CREATOR", Expressions.callConstructor(modelCreatorType,
            Expressions.classObject(modelSpec.getGeneratedClassName())),
        TypeConstants.PUBLIC_STATIC_FINAL)
        .writeNewline();
  }
}
origin: yahoo/squidb

interfaceClass.setTypeArgs(typeArgs);
interfaces.add(interfaceClass);
origin: yahoo/squidb

squidCursorType.setTypeArgs(Collections.singletonList(modelSpec.getGeneratedClassName()));
params.setArgumentTypes(squidCursorType).setArgumentNames("cursor");
writer.beginConstructorDeclaration(params)
origin: com.yahoo.squidb/squidb-processor

@Override
public DeclaredTypeName getPropertyType() {
  DeclaredTypeName enumProperty = ENUM_PROPERTY.clone();
  enumProperty.setTypeArgs(Collections.singletonList(enumType));
  return enumProperty;
}
origin: com.yahoo.squidb/squidb-processor

  @Override
  public void afterEmitMethods(JavaFileWriter writer) throws IOException {
    // emit creator for parcelable
    writer.writeComment("--- parcelable helpers");
    List<DeclaredTypeName> genericList = Collections.singletonList(modelSpec.getGeneratedClassName());
    DeclaredTypeName creatorType = TypeConstants.CREATOR.clone();
    DeclaredTypeName modelCreatorType = TypeConstants.MODEL_CREATOR.clone();
    creatorType.setTypeArgs(genericList);
    modelCreatorType.setTypeArgs(genericList);

    writer.writeFieldDeclaration(creatorType,
        "CREATOR", Expressions.callConstructor(modelCreatorType,
            Expressions.classObject(modelSpec.getGeneratedClassName())),
        TypeConstants.PUBLIC_STATIC_FINAL)
        .writeNewline();
  }
}
origin: com.yahoo.squidb/squidb-processor

interfaceClass.setTypeArgs(typeArgs);
interfaces.add(interfaceClass);
origin: com.yahoo.squidb/squidb-processor

squidCursorType.setTypeArgs(Collections.singletonList(modelSpec.getGeneratedClassName()));
params.setArgumentTypes(squidCursorType).setArgumentNames("cursor");
writer.beginConstructorDeclaration(params)
com.yahoo.aptutils.modelDeclaredTypeNamesetTypeArgs

Popular methods of DeclaredTypeName

  • clone
  • equals
  • getTypeArgs
  • <init>
  • getPackageName
  • getSimpleName
  • toString
  • accept

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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