Tabnine Logo
TypeVariableImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
TypeVariableImpl
in
libcore.reflect

Best Java code snippets using libcore.reflect.TypeVariableImpl (Showing top 20 results out of 315)

origin: robovm/robovm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: robovm/robovm

void resolve() {
  if (formalVar != null) {
    return;
  }
  GenericDeclaration curLayer = declOfVarUser;
  TypeVariable var;
  while ((var = findFormalVar(curLayer, name)) == null) {
    curLayer = nextLayer(curLayer);
    if (curLayer == null) {
      throw new AssertionError("illegal type variable reference");
    }
  }
  formalVar = (TypeVariableImpl<D>) var;
  this.genericDeclaration = formalVar.genericDeclaration;
  this.bounds = formalVar.bounds;
}
origin: robovm/robovm

@Override
public int hashCode() {
  return 31 * getName().hashCode() + getGenericDeclaration().hashCode();
}
origin: robovm/robovm

public D getGenericDeclaration() {
  resolve();
  return genericDeclaration;
}
origin: robovm/robovm

public Type[] getBounds() {
  resolve();
  return bounds.getResolvedTypes().clone();
}
origin: robovm/robovm

@Override
public boolean equals(Object o) {
  if(!(o instanceof TypeVariable)) {
    return false;
  }
  TypeVariable<?> that = (TypeVariable<?>) o;
  return getName().equals(that.getName()) &&
      getGenericDeclaration().equals(that.getGenericDeclaration());
}
origin: MobiVM/robovm

void resolve() {
  if (formalVar != null) {
    return;
  }
  GenericDeclaration curLayer = declOfVarUser;
  TypeVariable var;
  while ((var = findFormalVar(curLayer, name)) == null) {
    curLayer = nextLayer(curLayer);
    if (curLayer == null) {
      throw new AssertionError("illegal type variable reference");
    }
  }
  formalVar = (TypeVariableImpl<D>) var;
  this.genericDeclaration = formalVar.genericDeclaration;
  this.bounds = formalVar.bounds;
}
origin: robovm/robovm

TypeVariableImpl<GenericDeclaration> parseFormalTypeParameter() {
  // FormalTypeParameter ::= Ident ClassBound {InterfaceBound}.
  scanIdentifier();
  String name = identifier.intern(); // FIXME: is this o.k.?
  ListOfTypes bounds = new ListOfTypes(8);
  // ClassBound ::= ":" [FieldTypeSignature].
  expect(':');
  if (symbol == 'L' || symbol == '[' || symbol == 'T') {
    bounds.add(parseFieldTypeSignature());
  }
  while (symbol == ':') {
    // InterfaceBound ::= ":" FieldTypeSignature.
    scanSymbol();
    bounds.add(parseFieldTypeSignature());
  }
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, name, bounds);
}
origin: MobiVM/robovm

public D getGenericDeclaration() {
  resolve();
  return genericDeclaration;
}
origin: MobiVM/robovm

@Override
public int hashCode() {
  return 31 * getName().hashCode() + getGenericDeclaration().hashCode();
}
origin: com.bugvm/bugvm-rt

void resolve() {
  if (formalVar != null) {
    return;
  }
  GenericDeclaration curLayer = declOfVarUser;
  TypeVariable var;
  while ((var = findFormalVar(curLayer, name)) == null) {
    curLayer = nextLayer(curLayer);
    if (curLayer == null) {
      throw new AssertionError("illegal type variable reference");
    }
  }
  formalVar = (TypeVariableImpl<D>) var;
  this.genericDeclaration = formalVar.genericDeclaration;
  this.bounds = formalVar.bounds;
}
origin: MobiVM/robovm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: ibinti/bugvm

public D getGenericDeclaration() {
  resolve();
  return genericDeclaration;
}
origin: com.mobidevelop.robovm/robovm-rt

@Override
public int hashCode() {
  return 31 * getName().hashCode() + getGenericDeclaration().hashCode();
}
origin: ibinti/bugvm

void resolve() {
  if (formalVar != null) {
    return;
  }
  GenericDeclaration curLayer = declOfVarUser;
  TypeVariable var;
  while ((var = findFormalVar(curLayer, name)) == null) {
    curLayer = nextLayer(curLayer);
    if (curLayer == null) {
      throw new AssertionError("illegal type variable reference");
    }
  }
  formalVar = (TypeVariableImpl<D>) var;
  this.genericDeclaration = formalVar.genericDeclaration;
  this.bounds = formalVar.bounds;
}
origin: com.mobidevelop.robovm/robovm-rt

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
origin: com.mobidevelop.robovm/robovm-rt

public D getGenericDeclaration() {
  resolve();
  return genericDeclaration;
}
origin: com.bugvm/bugvm-rt

@Override
public int hashCode() {
  return 31 * getName().hashCode() + getGenericDeclaration().hashCode();
}
origin: com.mobidevelop.robovm/robovm-rt

void resolve() {
  if (formalVar != null) {
    return;
  }
  GenericDeclaration curLayer = declOfVarUser;
  TypeVariable var;
  while ((var = findFormalVar(curLayer, name)) == null) {
    curLayer = nextLayer(curLayer);
    if (curLayer == null) {
      throw new AssertionError("illegal type variable reference");
    }
  }
  formalVar = (TypeVariableImpl<D>) var;
  this.genericDeclaration = formalVar.genericDeclaration;
  this.bounds = formalVar.bounds;
}
origin: ibinti/bugvm

TypeVariableImpl<GenericDeclaration> parseTypeVariableSignature() {
  // TypeVariableSignature ::= "T" Ident ";".
  expect('T');
  scanIdentifier();
  expect(';');
  // Reference to type variable:
  // Note: we don't know the declaring GenericDeclaration yet.
  return new TypeVariableImpl<GenericDeclaration>(genericDecl, identifier);
}
libcore.reflectTypeVariableImpl

Most used methods

  • <init>
  • findFormalVar
  • getGenericDeclaration
  • getName
  • nextLayer
  • resolve

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JFrame (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
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