congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JDefinedClass._interface
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JComboBox (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now