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

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

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

origin: org.eclipse.xtext/org.eclipse.xtext.xbase

protected int internalGetPrimitiveKindFromWrapper(JvmGenericType type) {
  String name = type.getIdentifier();
  switch (name.length()) {
    case 17:
origin: org.eclipse.xtext/org.eclipse.xtext.xbase

private Primitive getPrimitiveKind(JvmGenericType type) {
  if (type.eIsProxy())
    return null;
  String name = type.getIdentifier();
  switch (name.length()) {
    case 17:
origin: io.sarl.lang/io.sarl.lang

private boolean isAppendComparisonFunctionsEnable(GenerationContext context, JvmGenericType target) {
  if (context.getGeneratorConfig2().isGenerateEqualityTestFunctions()) {
    JvmGenericType current = target;
    final Set<String> encounteredTypes = new TreeSet<>();
    do {
      encounteredTypes.add(current.getIdentifier());
      if (this.annotationFinder.findAnnotation(current, NoEqualityTestFunctionsGeneration.class) != null) {
        return false;
      }
      final JvmTypeReference superType = current.getExtendedClass();
      current = null;
      if (superType != null) {
        final JvmType type = superType.getType();
        if (type instanceof JvmGenericType) {
          current = (JvmGenericType) type;
          if (encounteredTypes.contains(current.getIdentifier())) {
            current = null;
          }
        }
      }
    } while (current != null);
    return true;
  }
  return false;
}
origin: org.eclipse.xtend/org.eclipse.xtend.core

public JvmParameterizedTypeReference createTypeRef(final JvmType type, final JvmTypeReference... typeArgs) {
 if ((type == null)) {
  throw new NullPointerException("type");
 }
 final JvmParameterizedTypeReference reference = TypesFactory.eINSTANCE.createJvmParameterizedTypeReference();
 reference.setType(type);
 for (final JvmTypeReference typeArg : typeArgs) {
  reference.getArguments().add(EcoreUtil2.<JvmTypeReference>cloneIfContained(typeArg));
 }
 if ((type instanceof JvmGenericType)) {
  final EList<JvmTypeParameter> list = ((JvmGenericType)type).getTypeParameters();
  if (((!reference.getArguments().isEmpty()) && (list.size() != reference.getArguments().size()))) {
   String _identifier = ((JvmGenericType)type).getIdentifier();
   String _plus = ("The type " + _identifier);
   String _plus_1 = (_plus + " expects ");
   int _size = list.size();
   String _plus_2 = (_plus_1 + Integer.valueOf(_size));
   String _plus_3 = (_plus_2 + " type arguments, but was ");
   int _size_1 = reference.getArguments().size();
   String _plus_4 = (_plus_3 + Integer.valueOf(_size_1));
   String _plus_5 = (_plus_4 + ". Either pass zero arguments (raw type) or the correct number.");
   throw new IllegalArgumentException(_plus_5);
  }
 }
 return reference;
}

origin: io.sarl.lang/io.sarl.lang

/** Generate the implemented types for the given SARL statement.
 *
 * @param context the context of the generation.
 * @param owner the JVM element to change.
 * @param defaultJvmType the default JVM type.
 * @param defaultSarlType the default SARL type.
 * @param implementedtypes the implemented types.
 */
protected void appendConstrainedImplements(
    GenerationContext context,
    JvmGenericType owner, Class<?> defaultJvmType,
    Class<? extends XtendTypeDeclaration> defaultSarlType,
    List<? extends JvmParameterizedTypeReference> implementedtypes) {
  boolean explicitType = false;
  for (final JvmParameterizedTypeReference superType : implementedtypes) {
    if (!Objects.equal(owner.getIdentifier(), superType.getIdentifier())
        && superType.getType() instanceof JvmGenericType
        /*&& this.inheritanceHelper.isProxyOrSubTypeOf(superType, defaultJvmType, defaultSarlType, true)*/) {
      owner.getSuperTypes().add(this.typeBuilder.cloneWithProxies(superType));
      context.incrementSerial(superType.getIdentifier().hashCode());
      explicitType = true;
    }
  }
  if (!explicitType) {
    final JvmTypeReference type = this._typeReferenceBuilder.typeRef(defaultJvmType);
    owner.getSuperTypes().add(type);
    context.incrementSerial(type.getIdentifier().hashCode());
  }
}
origin: io.sarl.lang/io.sarl.lang

    actionContainer.getIdentifier(),
    ((InferredValuedParameter) parameterSpec).getCallingArgument()));
arguments.add(argumentValue.toString());
origin: io.sarl.lang/io.sarl.lang

  List<? extends JvmParameterizedTypeReference> supertypes) {
boolean explicitType = false;
final String ownerId = owner.getIdentifier();
for (final JvmParameterizedTypeReference superType : supertypes) {
  String superTypeId;
origin: org.eclipse.xtend/org.eclipse.xtend.core

_matched=true;
JvmAnnotationValue _switchResult_1 = null;
String _identifier = ((JvmGenericType)type).getIdentifier();
boolean _matched_1 = false;
String _name = String.class.getName();
org.eclipse.xtext.common.typesJvmGenericTypegetIdentifier

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

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
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