Tabnine Logo
JvmGenericType.setInterface
Code IndexAdd Tabnine to your IDE (free)

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

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

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.xtext/org.eclipse.xtext.xbase

/**
 * Creates a public interface declaration, associated to the given sourceElement. It sets the given name, which might be
 * fully qualified using the standard Java notation.
 * 
 * @param sourceElement
 *            the sourceElement the resulting element is associated with.
 * @param name
 *            the qualified name of the resulting class.
 * @param initializer
 *            the initializer to apply on the created interface element. If <code>null</code>, the interface won't be initialized.
 * 
 * @return a {@link JvmGenericType} representing a Java class of the given name, <code>null</code> 
 *            if sourceElement or name are <code>null</code>.
 */
/* @Nullable */ 
public JvmGenericType toInterface(/* @Nullable */ EObject sourceElement, /* @Nullable */ String name, /* @Nullable */ Procedure1<? super JvmGenericType> initializer) {
  final JvmGenericType result = createJvmGenericType(sourceElement, name);
  if (result == null)
    return null;
  result.setInterface(true);
  result.setAbstract(true);
  associate(sourceElement, result);
  return initializeSafely(result, initializer);
}
origin: org.eclipse.xtend/org.eclipse.xtend.core

XtendInterface xtendInterface = (XtendInterface) declaration;
final JvmGenericType javaType = typesFactory.createJvmGenericType();
javaType.setInterface(true);
copyTypeParameters(xtendInterface.getTypeParameters(), javaType);
if (!preIndexingPhase) {
origin: org.eclipse.xtext.common/types

result.setInterface(clazz.isInterface());
result.setStrictFloatingPoint(Modifier.isStrict(clazz.getModifiers()));
setTypeModifiers(clazz, result);
origin: org.eclipse.xtext/org.eclipse.xtext.common.types

result.setInterface(clazz.isInterface());
result.setStrictFloatingPoint(Modifier.isStrict(clazz.getModifiers()));
setTypeModifiers(clazz, result);
origin: org.eclipse.xtext/org.eclipse.xtext.java

JvmGenericType _createJvmGenericType = TypesFactory.eINSTANCE.createJvmGenericType();
final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
 it.setInterface(true);
};
_switchResult = ObjectExtensions.<JvmGenericType>operator_doubleArrow(_createJvmGenericType, _function);
origin: org.eclipse.xtext/org.eclipse.xtext.common.types

result = generic;
generic.setInterface((access & ACC_INTERFACE) != 0);
generic.setStrictFloatingPoint((access & ACC_STRICT) != 0);
origin: io.sarl.lang/io.sarl.lang

innerType.setInterface(false);
innerType.setAbstract(false);
innerType.setVisibility(JvmVisibility.PUBLIC);
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setInterface(true);
inferredJvmType.setAbstract(true);
setVisibility(inferredJvmType, source);
org.eclipse.xtext.common.typesJvmGenericTypesetInterface

Javadoc

Sets the value of the ' org.eclipse.xtext.common.types.JvmGenericType#isInterface' attribute.

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
  • setPackageName
  • setSimpleName
  • setVisibility
  • getAllFeatures
  • getSimpleName
  • isAbstract
  • getSimpleName,
  • isAbstract,
  • setFinal,
  • setStatic,
  • setStrictFloatingPoint,
  • getDeclaredFields,
  • getDeclaredOperations,
  • getIdentifier,
  • isFinal

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • String (java.lang)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JList (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
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