Tabnine Logo
IType.getTypeRoot
Code IndexAdd Tabnine to your IDE (free)

How to use
getTypeRoot
method
in
org.eclipse.jdt.core.IType

Best Java code snippets using org.eclipse.jdt.core.IType.getTypeRoot (Showing top 5 results out of 315)

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

public static String getResourceBundleName(ITypeBinding accessorClassBinding) {
  IJavaElement je= accessorClassBinding.getJavaElement();
  if (!(je instanceof IType))
    return null;
  ITypeRoot typeRoot= ((IType) je).getTypeRoot();
  CompilationUnit astRoot= SharedASTProviderCore.getAST(typeRoot, SharedASTProviderCore.WAIT_YES, null);
  return getResourceBundleName(astRoot);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static String getResourceBundleName(ITypeBinding accessorClassBinding) {
  IJavaElement je= accessorClassBinding.getJavaElement();
  if (!(je instanceof IType))
    return null;
  ITypeRoot typeRoot= ((IType) je).getTypeRoot();
  CompilationUnit astRoot= SharedASTProvider.getAST(typeRoot, SharedASTProvider.WAIT_YES, null);
  return getResourceBundleName(astRoot);
}
origin: eclipse/eclipse.jdt.ls

ISourceRange typeSourceRange= type.getSourceRange();
if (declaringType.exists() && SourceRange.isAvailable(typeSourceRange)) {
  IJavaElement realParent= declaringType.getTypeRoot().getElementAt(typeSourceRange.getOffset() - 1);
  if (realParent != null) {
    parent= realParent;
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

ISourceRange typeSourceRange= type.getSourceRange();
if (declaringType.exists() && SourceRange.isAvailable(typeSourceRange)) {
  IJavaElement realParent= declaringType.getTypeRoot().getElementAt(typeSourceRange.getOffset() - 1);
  if (realParent != null) {
    parent= realParent;
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

ISourceRange typeSourceRange= type.getSourceRange();
if (declaringType.exists() && SourceRange.isAvailable(typeSourceRange)) {
  IJavaElement realParent= declaringType.getTypeRoot().getElementAt(typeSourceRange.getOffset() - 1);
  if (realParent != null) {
    parent= realParent;
org.eclipse.jdt.coreITypegetTypeRoot

Popular methods of IType

  • getFullyQualifiedName
    Returns the fully qualified name of this type, including qualification for any containing types and
  • getElementName
    Returns the simple name of this type, unqualified by package or enclosing type. This is a handle-onl
  • getMethods
    Returns the methods and constructors declared by this type. For binary types, this may include the s
  • getFlags
  • getPackageFragment
    Returns the package fragment in which this element is defined. This is a handle-only method.
  • getCompilationUnit
  • newSupertypeHierarchy
    Creates and returns a type hierarchy for this type containing this type and all of its supertypes, c
  • exists
  • getJavaProject
  • isInterface
    Returns whether this type represents an interface. Note that an interface can also be an annotation
  • getDeclaringType
  • getMethod
    Returns the method with the specified name and parameter types in this type (for example, "foo", {"I
  • getDeclaringType,
  • getMethod,
  • getParent,
  • isClass,
  • getSourceRange,
  • newTypeHierarchy,
  • isAnonymous,
  • isBinary,
  • getResource,
  • getTypeParameters

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Permission (java.security)
    Legacy security code; do not use.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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