Codota Logo
JvmGenericType.setVisibility
Code IndexAdd Codota to your IDE (free)

How to use
setVisibility
method
in
org.eclipse.xtext.common.types.JvmGenericType

Best Java code snippets using org.eclipse.xtext.common.types.JvmGenericType.setVisibility (Showing top 13 results out of 315)

  • Common ways to obtain JvmGenericType
private void myMethod () {
JvmGenericType j =
  • Codota IconTypesFactory eINSTANCE;eINSTANCE.createJvmGenericType()
  • Smart code suggestions by Codota
}
origin: org.eclipse.xtend/org.eclipse.xtend.core

@Override
public void registerInterface(final String qualifiedName) throws IllegalArgumentException {
 final JvmGenericType newType = TypesFactory.eINSTANCE.createJvmGenericType();
 newType.setVisibility(JvmVisibility.PUBLIC);
 newType.setInterface(true);
 this.setNameAndAccept(newType, qualifiedName);
}

origin: org.eclipse.xtend/org.eclipse.xtend.core

@Override
public void registerClass(final String qualifiedName) throws IllegalArgumentException {
 final JvmGenericType newType = TypesFactory.eINSTANCE.createJvmGenericType();
 newType.setVisibility(JvmVisibility.PUBLIC);
 EList<JvmTypeReference> _superTypes = newType.getSuperTypes();
 JvmTypeReference _typeForName = this.compilationUnit.getTypeReferences().getTypeForName(Object.class, this.compilationUnit.getXtendFile());
 _superTypes.add(_typeForName);
 this.setNameAndAccept(newType, qualifiedName);
}

origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

 @Override
 public void apply(final JvmGenericType it) {
  it.setVisibility(JvmVisibility.PRIVATE);
  it.setStatic(true);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = PatternQuerySpecificationClassInferrer.this.builder.typeRef(BaseGeneratedEMFPQuery.class);
  PatternQuerySpecificationClassInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
  PatternQuerySpecificationClassInferrer.this.inferPQueryMembers(it, pattern, specBuilder);
 }
};
origin: org.eclipse.xtext/org.eclipse.xtext.xbase

protected JvmGenericType createJvmGenericType(/* @Nullable */ EObject sourceElement, /* @Nullable */ String name) {
  if (sourceElement == null || name == null)
    return null;
  Pair<String, String> fullName = splitQualifiedName(name);
  final JvmGenericType result = typesFactory.createJvmGenericType();
  result.setSimpleName(fullName.getSecond());
  if (fullName.getFirst() != null)
    result.setPackageName(fullName.getFirst());
  result.setVisibility(JvmVisibility.PUBLIC);
  return result;
}
origin: org.eclipse.xtend/org.eclipse.xtend.core

inferredType.setAnonymous(!hasAdditionalMembers(anonymousClass));
inferredType.setFinal(true);
inferredType.setVisibility(JvmVisibility.DEFAULT);
inferredType.getSuperTypes().add(jvmTypesBuilder.inferredType(anonymousClass));
container.getLocalClasses().add(inferredType);
origin: io.sarl.lang/io.sarl.lang

innerType.setInterface(false);
innerType.setAbstract(false);
innerType.setVisibility(JvmVisibility.PUBLIC);
innerType.setStatic(true);
innerType.setStrictFloatingPoint(false);
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

@Override
public void apply(final JvmGenericType it) {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 EList<JvmMember> _members = it.getMembers();
origin: org.eclipse.xtend/org.eclipse.xtend.core

protected void initialize(XtendInterface source, JvmGenericType inferredJvmType) {
  inferredJvmType.setVisibility(source.getVisibility());
  inferredJvmType.setStatic(source.isStatic() && !isTopLevel(source));
  inferredJvmType.setAbstract(true);
  inferredJvmType.setStrictFloatingPoint(source.isStrictFloatingPoint());
  translateAnnotationsTo(source.getAnnotations(), inferredJvmType);
  for (JvmTypeReference intf : source.getExtends()) {
    inferredJvmType.getSuperTypes().add(jvmTypesBuilder.cloneWithProxies(intf));
  }
  fixTypeParameters(inferredJvmType);
  for (XtendMember member : source.getMembers()) {
    if (member instanceof XtendField
        || (member instanceof XtendFunction && ((XtendFunction) member).getName() != null)) {
      transform(member, inferredJvmType, false);
    }
  }
  jvmTypesBuilder.copyDocumentationTo(source, inferredJvmType);
  nameClashResolver.resolveNameClashes(inferredJvmType);
}

origin: org.eclipse.xtend/org.eclipse.xtend.core

protected void initialize(XtendClass source, JvmGenericType inferredJvmType) {
  inferredJvmType.setVisibility(source.getVisibility());
  boolean isStatic = source.isStatic() && !isTopLevel(source);
  if (!isStatic) {
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

@Override
public void apply(final JvmGenericType it) {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 it.setFinal(true);
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

it.setVisibility(JvmVisibility.PRIVATE);
it.setStatic(true);
it.setFinal(true);
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

JvmField _field_3 = this._eMFJvmTypesBuilder.toField(pattern, "embeddedParameters", this.builder.typeRef(List.class, this.builder.typeRef(PParameter.class)), _function_7);
this._eMFJvmTypesBuilder.<JvmField>operator_add(_members_4, _field_3);
it.setVisibility(JvmVisibility.PRIVATE);
EList<JvmTypeReference> _superTypes = it.getSuperTypes();
JvmTypeReference _typeRef = this.builder.typeRef(BaseGeneratedEMFPQuery.class);
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 StringConcatenation _builder = new StringConcatenation();
EList<JvmMember> _members_1 = querySpecificationClass.getMembers();
final Procedure1<JvmGenericType> _function_1 = (JvmGenericType it) -> {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 EList<JvmTypeReference> _superTypes = it.getSuperTypes();
org.eclipse.xtext.common.typesJvmGenericTypesetVisibility

Popular methods of JvmGenericType

  • getMembers
  • isInterface
    Returns the value of the 'Interface' attribute. If the meaning of the 'Interface' attribute isn't cl
  • getSuperTypes
  • getTypeParameters
  • getDeclaredConstructors
  • setAbstract
  • setInterface
    Sets the value of the ' org.eclipse.xtext.common.types.JvmGenericType#isInterface' attribute.
  • setPackageName
  • setSimpleName
  • getAllFeatures
  • getSimpleName
  • isAbstract
  • getSimpleName,
  • isAbstract,
  • setFinal,
  • setStatic,
  • setStrictFloatingPoint,
  • getDeclaredFields,
  • getDeclaredOperations,
  • getIdentifier,
  • isFinal

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • String (java.lang)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Runner (org.openjdk.jmh.runner)
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