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

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

Best Java code snippets using com.sun.codemodel.JDefinedClass.hide (Showing top 20 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: uk.org.retep.tools/jaxb

private void hide( final JPackage pkg )
{
  final Iterator<JDefinedClass> it = pkg.classes();
  while( it.hasNext() )
  {
    it.next().hide();
  }
}
origin: org.glassfish.metro/webservices-tools

  JDefinedClass getClazz(ClassType t) {
    if (clazz != null) return clazz;
    try {
      JCodeModel codeModel = Ring.get(JCodeModel.class);
      clazz = codeModel._class(name, t);
      clazz.hide();
      return clazz;
    } catch (JClassAlreadyExistsException e) {
      return e.getExistingClass();
    }
  }
}
origin: sun-jaxb/jaxb-xjc

  JDefinedClass getClazz(ClassType t) {
    if (clazz != null) return clazz;
    try {
      JCodeModel codeModel = Ring.get(JCodeModel.class);
      clazz = codeModel._class(name, t);
      clazz.hide();
      return clazz;
    } catch (JClassAlreadyExistsException e) {
      return e.getExistingClass();
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

  JDefinedClass getClazz(ClassType t) {
    if (clazz != null) return clazz;
    try {
      JCodeModel codeModel = Ring.get(JCodeModel.class);
      clazz = codeModel._class(name, t);
      clazz.hide();
      return clazz;
    } catch (JClassAlreadyExistsException e) {
      return e.getExistingClass();
    }
  }
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

  JDefinedClass getClazz(ClassType t) {
    if (clazz != null) return clazz;
    try {
      JCodeModel codeModel = Ring.get(JCodeModel.class);
      clazz = codeModel._class(name, t);
      clazz.hide();
      return clazz;
    } catch (JClassAlreadyExistsException e) {
      return e.getExistingClass();
    }
  }
}
origin: apache/servicemix-bundles

  JDefinedClass getClazz(ClassType t) {
    if (clazz != null) return clazz;
    try {
      JCodeModel codeModel = Ring.get(JCodeModel.class);
      clazz = codeModel._class(name, t);
      clazz.hide();
      return clazz;
    } catch (JClassAlreadyExistsException e) {
      return e.getExistingClass();
    }
  }
}
origin: apache/servicemix-bundles

/** Gets the xjc:superInterface customization if it's turned on. */
public JClass getSuperInterface() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface");
  if (sc == null) return null;
  String name = DOMUtil.getAttribute(sc,"name");
  if (name == null) return null;
  JDefinedClass c;
  try {
    c = codeModel._class(name, ClassType.INTERFACE);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.glassfish.metro/webservices-tools

/** Gets the xjc:superClass customization if it's turned on. */
public JClass getSuperClass() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass");
  if (sc == null) return null;
  JDefinedClass c;
  try {
    String v = DOMUtil.getAttribute(sc,"name");
    if(v==null)     return null;
    c = codeModel._class(v);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: sun-jaxb/jaxb-xjc

/** Gets the xjc:superClass customization if it's turned on. */
public JClass getSuperClass() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass");
  if (sc == null) return null;
  JDefinedClass c;
  try {
    String v = DOMUtil.getAttribute(sc,"name");
    if(v==null)     return null;
    c = codeModel._class(v);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

/** Gets the xjc:superInterface customization if it's turned on. */
public JClass getSuperInterface() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface");
  if (sc == null) return null;
  String name = DOMUtil.getAttribute(sc,"name");
  if (name == null) return null;
  JDefinedClass c;
  try {
    c = codeModel._class(name, ClassType.INTERFACE);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

/** Gets the xjc:superClass customization if it's turned on. */
public JClass getSuperClass() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass");
  if (sc == null) return null;
  JDefinedClass c;
  try {
    String v = DOMUtil.getAttribute(sc,"name");
    if(v==null)     return null;
    c = codeModel._class(v);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.glassfish.metro/webservices-tools

/** Gets the xjc:superInterface customization if it's turned on. */
public JClass getSuperInterface() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface");
  if (sc == null) return null;
  String name = DOMUtil.getAttribute(sc,"name");
  if (name == null) return null;
  JDefinedClass c;
  try {
    c = codeModel._class(name, ClassType.INTERFACE);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

/** Gets the xjc:superInterface customization if it's turned on. */
public JClass getSuperInterface() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface");
  if (sc == null) return null;
  String name = DOMUtil.getAttribute(sc,"name");
  if (name == null) return null;
  JDefinedClass c;
  try {
    c = codeModel._class(name, ClassType.INTERFACE);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: sun-jaxb/jaxb-xjc

/** Gets the xjc:superInterface customization if it's turned on. */
public JClass getSuperInterface() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superInterface");
  if (sc == null) return null;
  String name = DOMUtil.getAttribute(sc,"name");
  if (name == null) return null;
  JDefinedClass c;
  try {
    c = codeModel._class(name, ClassType.INTERFACE);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

/** Gets the xjc:superClass customization if it's turned on. */
public JClass getSuperClass() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass");
  if (sc == null) return null;
  JDefinedClass c;
  try {
    String v = DOMUtil.getAttribute(sc,"name");
    if(v==null)     return null;
    c = codeModel._class(v);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: apache/servicemix-bundles

/** Gets the xjc:superClass customization if it's turned on. */
public JClass getSuperClass() {
  Element sc = DOMUtil.getElement(dom,XJC_NS,"superClass");
  if (sc == null) return null;
  JDefinedClass c;
  try {
    String v = DOMUtil.getAttribute(sc,"name");
    if(v==null)     return null;
    c = codeModel._class(v);
    c.hide();
  } catch (JClassAlreadyExistsException e) {
    c = e.getExistingClass();
  }
  return c;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

  public TypeUse getTypeUse(XSSimpleType owner) {
    if(typeUse!=null)
      return typeUse;
    JCodeModel cm = getCodeModel();
    JDefinedClass a;
    try {
      a = cm._class(adapter);
      a.hide();   // we assume this is given by the user
      a._extends(cm.ref(XmlAdapter.class).narrow(String.class).narrow(
          cm.ref(type)));
    } catch (JClassAlreadyExistsException e) {
      a = e.getExistingClass();
    }
    // TODO: it's not correct to say that it adapts from String,
    // but OTOH I don't think we can compute that.
    typeUse = TypeUseFactory.adapt(
        CBuiltinLeafInfo.STRING,
        new CAdapter(a));
    return typeUse;
  }
}
origin: org.glassfish.metro/webservices-tools

  public TypeUse getTypeUse(XSSimpleType owner) {
    if(typeUse!=null)
      return typeUse;
    JCodeModel cm = getCodeModel();
    JDefinedClass a;
    try {
      a = cm._class(adapter);
      a.hide();   // we assume this is given by the user
      a._extends(cm.ref(XmlAdapter.class).narrow(String.class).narrow(
          cm.ref(type)));
    } catch (JClassAlreadyExistsException e) {
      a = e.getExistingClass();
    }
    // TODO: it's not correct to say that it adapts from String,
    // but OTOH I don't think we can compute that.
    typeUse = TypeUseFactory.adapt(
        CBuiltinLeafInfo.STRING,
        new CAdapter(a));
    return typeUse;
  }
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

  public TypeUse getTypeUse(XSSimpleType owner) {
    if(typeUse!=null)
      return typeUse;
    JCodeModel cm = getCodeModel();
    JDefinedClass a;
    try {
      a = cm._class(adapter);
      a.hide();   // we assume this is given by the user
      a._extends(cm.ref(XmlAdapter.class).narrow(String.class).narrow(
          cm.ref(type)));
    } catch (JClassAlreadyExistsException e) {
      a = e.getExistingClass();
    }
    // TODO: it's not correct to say that it adapts from String,
    // but OTOH I don't think we can compute that.
    typeUse = TypeUseFactory.adapt(
        CBuiltinLeafInfo.STRING,
        new CAdapter(a));
    return typeUse;
  }
}
origin: sun-jaxb/jaxb-xjc

  public TypeUse getTypeUse(XSSimpleType owner) {
    if(typeUse!=null)
      return typeUse;
    JCodeModel cm = getCodeModel();
    JDefinedClass a;
    try {
      a = cm._class(adapter);
      a.hide();   // we assume this is given by the user
      a._extends(cm.ref(XmlAdapter.class).narrow(String.class).narrow(
          cm.ref(type)));
    } catch (JClassAlreadyExistsException e) {
      a = e.getExistingClass();
    }
    // TODO: it's not correct to say that it adapts from String,
    // but OTOH I don't think we can compute that.
    typeUse = TypeUseFactory.adapt(
        CBuiltinLeafInfo.STRING,
        new CAdapter(a));
    return typeUse;
  }
}
com.sun.codemodelJDefinedClasshide

Javadoc

Mark this file as hidden, so that this file won't be generated.

This feature could be used to generate code that refers to class X, without actually generating X.java.

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

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Notification (javax.management)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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