Tabnine Logo
JDefinedClass.hide
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • Menu (java.awt)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm 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