Codota Logo
TypeVariable.setType
Code IndexAdd Codota to your IDE (free)

How to use
setType
method
in
com.ibm.wala.analysis.typeInference.TypeVariable

Best Java code snippets using com.ibm.wala.analysis.typeInference.TypeVariable.setType (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: wala/WALA

/**
 * Note that we need evaluate this operator at most once
 */
@Override
public byte evaluate(TypeVariable lhs) {
 if (lhs.type.equals(type)) {
  return NOT_CHANGED_AND_FIXED;
 } else {
  lhs.setType(type);
  return CHANGED_AND_FIXED;
 }
}
origin: com.ibm.wala/com.ibm.wala.core

/**
 * Note that we need evaluate this operator at most once
 */
@Override
public byte evaluate(TypeVariable lhs) {
 if (lhs.type.equals(type)) {
  return NOT_CHANGED_AND_FIXED;
 } else {
  lhs.setType(type);
  return CHANGED_AND_FIXED;
 }
}
origin: com.ibm.wala/com.ibm.wala.core

/**
 * TODO: work on efficiency shortcuts for this.
 */
@Override
public byte evaluate(TypeVariable lhs, TypeVariable[] rhsOperands) {
 TypeAbstraction lhsType = lhs.getType();
 TypeVariable rhs = rhsOperands[0];
 TypeAbstraction rhsType = rhs.getType();
 if (lhsType.equals(rhsType)) {
  return NOT_CHANGED;
 } else {
  lhs.setType(rhsType);
  return CHANGED;
 }
}
origin: wala/WALA

/**
 * TODO: work on efficiency shortcuts for this.
 */
@Override
public byte evaluate(TypeVariable lhs, TypeVariable[] rhsOperands) {
 TypeAbstraction lhsType = lhs.getType();
 TypeVariable rhs = rhsOperands[0];
 TypeAbstraction rhsType = rhs.getType();
 if (lhsType.equals(rhsType)) {
  return NOT_CHANGED;
 } else {
  lhs.setType(rhsType);
  return CHANGED;
 }
}
origin: wala/WALA

@Override
public byte evaluate(TypeVariable lhs, TypeVariable[] rhs) {
 TypeAbstraction lhsType = lhs.getType();
 TypeAbstraction meet = TypeAbstraction.TOP;
 for (TypeVariable r : rhs) {
  if (r != null  && r.getType() != null) {
   meet = meet.meet(r.getType());
  }
 }
 if (lhsType.equals(meet)) {
  return NOT_CHANGED;
 } else {
  lhs.setType(meet);
  return CHANGED;
 }
}
origin: com.ibm.wala/com.ibm.wala.core

@Override
public byte evaluate(TypeVariable lhs, TypeVariable[] rhs) {
 TypeAbstraction lhsType = lhs.getType();
 TypeAbstraction meet = TypeAbstraction.TOP;
 for (TypeVariable r : rhs) {
  if (r != null  && r.getType() != null) {
   meet = meet.meet(r.getType());
  }
 }
 if (lhsType.equals(meet)) {
  return NOT_CHANGED;
 } else {
  lhs.setType(meet);
  return CHANGED;
 }
}
origin: wala/WALA

 v.setType(new ConeType(klass));
} else {
 v.setType(BOTTOM);
v.setType(language.getPrimitive(t));
if (st.isConstant(i)) {
 TypeVariable v = getVariable(i);
 v.setType(getConstantType(i));
IClass klass = cha.lookupClass(t);
if (klass == null) {
 v.setType(BOTTOM);
} else {
 v.setType(new PointType(klass));
 klass = cha.lookupClass(t);
 if (klass != null) {
  v.setType(v.getType().meet(new PointType(klass)));
   IClass tc = cha.lookupClass(tx);
   if (tc != null) {
    v.setType(v.getType().meet(new ConeType(tc)));
origin: com.ibm.wala/com.ibm.wala.core

 v.setType(new ConeType(klass));
} else {
 v.setType(BOTTOM);
v.setType(language.getPrimitive(t));
if (st.isConstant(i)) {
 TypeVariable v = getVariable(i);
 v.setType(getConstantType(i));
IClass klass = cha.lookupClass(t);
if (klass == null) {
 v.setType(BOTTOM);
} else {
 v.setType(new PointType(klass));
 klass = cha.lookupClass(t);
 if (klass != null) {
  v.setType(v.getType().meet(new PointType(klass)));
   IClass tc = cha.lookupClass(tx);
   if (tc != null) {
    v.setType(v.getType().meet(new ConeType(tc)));
origin: com.ibm.wala/com.ibm.wala.core

 return NOT_CHANGED;
} else {
 lhs.setType(meet);
 return CHANGED;
origin: wala/WALA

 return NOT_CHANGED;
} else {
 lhs.setType(meet);
 return CHANGED;
origin: com.ibm.wala/com.ibm.wala.cast.java

 return NOT_CHANGED;
} else {
 L.setType(meet);
 return CHANGED;
origin: wala/WALA

 return NOT_CHANGED;
} else {
 L.setType(meet);
 return CHANGED;
origin: wala/WALA

 lhs.setType(PrimitiveType.getPrimitive(elementType));
 return CHANGED;
 IClass klass = cha.lookupClass(elementType);
 assert klass != null;
 lhs.setType(new ConeType(klass));
 return CHANGED;
IClass klass = cha.lookupClass(elementType);
if (klass != null) {
 lhs.setType(new ConeType(klass));
} else {
 lhs.setType(TypeAbstraction.TOP);
origin: com.ibm.wala/com.ibm.wala.core

 lhs.setType(PrimitiveType.getPrimitive(elementType));
 return CHANGED;
 IClass klass = cha.lookupClass(elementType);
 assert klass != null;
 lhs.setType(new ConeType(klass));
 return CHANGED;
IClass klass = cha.lookupClass(elementType);
if (klass != null) {
 lhs.setType(new ConeType(klass));
} else {
 lhs.setType(TypeAbstraction.TOP);
com.ibm.wala.analysis.typeInferenceTypeVariablesetType

Popular methods of TypeVariable

  • getType
  • <init>

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JLabel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now