Tabnine Logo
TypeEnvironment.createStandardType
Code IndexAdd Tabnine to your IDE (free)

How to use
createStandardType
method
in
org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TypeEnvironment

Best Java code snippets using org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TypeEnvironment.createStandardType (Showing top 13 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

StandardType createBoxed(PrimitiveType type, IJavaProject focus) {
  String fullyQualifiedName= BOXED_PRIMITIVE_NAMES[type.getId()];
  return createStandardType(fullyQualifiedName, focus);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

StandardType createBoxed(PrimitiveType type, IJavaProject focus) {
  String fullyQualifiedName= BOXED_PRIMITIVE_NAMES[type.getId()];
  return createStandardType(fullyQualifiedName, focus);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

void initializeJavaLangObject(ITypeBinding object) {
  if (OBJECT_TYPE != null)
    return;
  TType objectType= createStandardType(object);
  Assert.isTrue(objectType.isJavaLangObject());
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public void initializeJavaLangObject(IJavaProject project) {
  if (OBJECT_TYPE != null)
    return;
  
  TType objectType= createStandardType("java.lang.Object", project); //$NON-NLS-1$
  Assert.isTrue(objectType.isJavaLangObject());
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

void initializeJavaLangObject(ITypeBinding object) {
  if (OBJECT_TYPE != null)
    return;
  TType objectType= createStandardType(object);
  Assert.isTrue(objectType.isJavaLangObject());
}
origin: org.eclipse/org.eclipse.jdt.ui

void initializeJavaLangObject(ITypeBinding object) {
  if (OBJECT_TYPE != null)
    return;
  
  TType objectType= createStandardType(object);
  Assert.isTrue(objectType.isJavaLangObject());
}

origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

public void initializeJavaLangObject(IJavaProject project) {
  if (OBJECT_TYPE != null)
    return;
  
  TType objectType= createStandardType("java.lang.Object", project); //$NON-NLS-1$
  Assert.isTrue(objectType.isJavaLangObject());
}

origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

private StandardType createStandardType(String fullyQualifiedName, IJavaProject focus) {
  try {
    IType javaElementType= focus.findType(fullyQualifiedName);
    StandardType result= fStandardTypes.get(javaElementType);
    if (result != null)
      return result;
    ASTParser parser= ASTParser.newParser(IASTSharedValues.SHARED_AST_LEVEL);
    parser.setProject(focus);
    IBinding[] bindings= parser.createBindings(new IJavaElement[] {javaElementType} , null);
    return createStandardType((ITypeBinding)bindings[0]);
  } catch (JavaModelException e) {
    // fall through
  }
  return null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private StandardType createStandardType(String fullyQualifiedName, IJavaProject focus) {
  try {
    IType javaElementType= focus.findType(fullyQualifiedName);
    StandardType result= fStandardTypes.get(javaElementType);
    if (result != null)
      return result;
    ASTParser parser= ASTParser.newParser(ASTProvider.SHARED_AST_LEVEL);
    parser.setProject(focus);
    IBinding[] bindings= parser.createBindings(new IJavaElement[] {javaElementType} , null);
    return createStandardType((ITypeBinding)bindings[0]);
  } catch (JavaModelException e) {
    // fall through
  }
  return null;
}
origin: org.eclipse/org.eclipse.jdt.ui

StandardType createBoxed(PrimitiveType type, IJavaProject focus) {
  String fullyQualifiedName= BOXED_PRIMITIVE_NAMES[type.getId()];
  try {
    IType javaElementType= focus.findType(fullyQualifiedName);
    StandardType result= (StandardType)fStandardTypes.get(javaElementType);
    if (result != null)
      return result;
    ASTParser parser= ASTParser.newParser(AST.JLS3);
    parser.setProject(focus);
    IBinding[] bindings= parser.createBindings(new IJavaElement[] {javaElementType} , null);
    return createStandardType((ITypeBinding)bindings[0]);
  } catch (JavaModelException e) {
    // fall through
  }
  return null;
}

origin: org.eclipse/org.eclipse.jdt.ui

public TType create(ITypeBinding binding) {
  if (binding.isPrimitive()) {
    return createPrimitiveType(binding);
  } else if (binding.isArray()) {
    return createArrayType(binding);
  } else if (binding.isRawType()) {
    return createRawType(binding);
  } else if (binding.isGenericType()) {
    return createGenericType(binding);
  } else if (binding.isParameterizedType()) {
    return createParameterizedType(binding);
  } else if (binding.isTypeVariable()) {
    return createTypeVariable(binding);
  } else if (binding.isWildcardType()) {
    if (binding.getBound() == null) {
      return createUnboundWildcardType(binding);
    } else if (binding.isUpperbound()) {
      return createExtendsWildCardType(binding);
    } else {
      return createSuperWildCardType(binding);
    }
  } else if (binding.isCapture()) {
    return createCaptureType(binding);
  }
  if ("null".equals(binding.getName())) //$NON-NLS-1$
    return NULL;
  return createStandardType(binding);
}

origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

return createStandardType(binding);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

return createStandardType(binding);
org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesTypeEnvironmentcreateStandardType

Popular methods of TypeEnvironment

  • <init>
  • create
  • createArrayType
  • getJavaLangObject
    Returns the TType for java.lang.Object. Warning: currently returns null unless this type environment
  • initializeJavaLangObject
  • cacheSubType
  • cacheSubTypes
  • createBoxed
  • createCaptureType
  • createExtendsWildCardType
  • createGenericType
  • createParameterizedType
  • createGenericType,
  • createParameterizedType,
  • createPrimitiveType,
  • createRawType,
  • createSuperWildCardType,
  • createTypeVariable,
  • createUnBoxed,
  • createUnboundWildcardType,
  • getArrayTypesMap

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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