Codota Logo
JDefinedClass._interface
Code IndexAdd Codota to your IDE (free)

How to use
_interface
method
in
com.sun.codemodel.JDefinedClass

Best Java code snippets using com.sun.codemodel.JDefinedClass._interface (Showing top 6 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: javaee/jaxb-v2

/**
 * Adds a public interface to this package.
 */
public JDefinedClass _interface(String name)
  throws JClassAlreadyExistsException {
  return _interface(JMod.PUBLIC, name);
}
origin: org.glassfish.metro/webservices-tools

/**
 * Adds a public interface to this package.
 */
public JDefinedClass _interface(String name)
  throws JClassAlreadyExistsException {
  return _interface(JMod.PUBLIC, name);
}
origin: com.unquietcode.tools.jcodemodel/codemodel

/**
 * Adds a public interface to this package.
 */
public JDefinedClass _interface(String name)
  throws JClassAlreadyExistsException {
  return _interface(JMod.PUBLIC, name);
}
origin: com.sun.codemodel/codemodel

/**
 * Adds a public interface to this package.
 */
public JDefinedClass _interface(String name)
  throws JClassAlreadyExistsException {
  return _interface(JMod.PUBLIC, name);
}
origin: sun-jaxb/jaxb-xjc

/**
 * Adds a public interface to this package.
 */
public JDefinedClass _interface(String name)
  throws JClassAlreadyExistsException {
  return _interface(JMod.PUBLIC, name);
}
origin: snowdrop/istio-java-api

@Override
public void propertyField(JFieldVar field, JDefinedClass clazz, String propertyName, JsonNode propertyNode) {
  super.propertyField(field, clazz, propertyName, propertyNode);
  if (propertyNode.hasNonNull(IS_INTERFACE_FIELD)) {
    field.annotate(JsonUnwrapped.class);
    // todo: fix me, this won't work if a type has several fields using interfaces
    String interfaceFQN = propertyNode.get(JAVA_TYPE_FIELD).asText();
    // create interface if we haven't done it yet
    try {
      final JDefinedClass fieldInterface = clazz._interface(interfaceFQN.substring(interfaceFQN.lastIndexOf('.') + 1));
      fieldInterface._extends(Serializable.class);
    } catch (JClassAlreadyExistsException e) {
      throw new RuntimeException(e);
    }
    annotateIfNotDone(clazz, ClassWithInterfaceFieldsDeserializer.class);
  }
}
com.sun.codemodelJDefinedClass_interface

Javadoc

Add an interface to this package.

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,
  • dotclass,
  • enumConstant,
  • staticInvoke,
  • staticRef,
  • init

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
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