Tabnine Logo
IField.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
com.ibm.wala.classLoader.IField

Best Java code snippets using com.ibm.wala.classLoader.IField.getName (Showing top 8 results out of 315)

origin: wala/WALA

protected List<IField> findDeclaredField(Atom name) {
 
 List<IField> result = new ArrayList<>(1);
 
 if (instanceFields != null) {
  for (IField instanceField : instanceFields) {
   if (instanceField.getName() == name) {
    result.add(instanceField);
   }
  }
 }
 if (staticFields != null) {
  for (IField staticField : staticFields) {
   if (staticField.getName() == name) {
    result.add(staticField);
   }
  }
 }
 return result;
}
origin: com.ibm.wala/com.ibm.wala.core

protected List<IField> findDeclaredField(Atom name) {
 
 List<IField> result = new ArrayList<>(1);
 
 if (instanceFields != null) {
  for (IField instanceField : instanceFields) {
   if (instanceField.getName() == name) {
    result.add(instanceField);
   }
  }
 }
 if (staticFields != null) {
  for (IField staticField : staticFields) {
   if (staticField.getName() == name) {
    result.add(staticField);
   }
  }
 }
 return result;
}
origin: wala/WALA

@Override
public String descString() {
  return field.getDeclaringClass().toString() + '.' + field.getName().toString();
}

origin: wala/WALA

@Override
public String descString() {
  return field.getDeclaringClass().toString() + '.' + field.getName().toString();
}

origin: wala/WALA

  Collection<IField> lookupFields(IClassLoader cl) {
    Collection<IField> matching = new LinkedList<>();
    IClass c = cl.lookupClass(TypeName.findOrCreate(className));
    if(c == null) return matching;
    Atom atom = Atom.findOrCreateUnicodeAtom(memberName);
    Collection<IField> allFields = c.getAllFields();
    for(IField f: allFields) {
      if(f.getName().equals(atom)) {
        matching.add(f);
      }
    }
    return matching;
  }
}
origin: wala/WALA

@Override
public PointerKey getPointerKeyForInstanceField(InstanceKey I, IField field) {
 if (field == null) {
  throw new IllegalArgumentException("field is null");
 }
 
 
 IField resolveAgain = I.getConcreteType().getField(field.getName(), field.getFieldTypeReference().getName());
 if (resolveAgain != null) {
  field = resolveAgain;
 }
 
 return new InstanceFieldKey(I, field);
}
origin: com.ibm.wala/com.ibm.wala.core

@Override
public PointerKey getPointerKeyForInstanceField(InstanceKey I, IField field) {
 if (field == null) {
  throw new IllegalArgumentException("field is null");
 }
 
 
 IField resolveAgain = I.getConcreteType().getField(field.getName(), field.getFieldTypeReference().getName());
 if (resolveAgain != null) {
  field = resolveAgain;
 }
 
 return new InstanceFieldKey(I, field);
}
origin: wala/WALA

Assert.assertTrue(cls.getName() + " has field " + fld.getName(), instanceFields.contains(Pair.make(
  cls.getName().toString(), fld.getName().toString())));
Assert.assertTrue(cls.getName() + " has static field " + fld.getName(), staticFields.contains(Pair.make(cls.getName()
  .toString(), fld.getName().toString())));
com.ibm.wala.classLoaderIFieldgetName

Popular methods of IField

  • getFieldTypeReference
  • getReference
  • isStatic
  • getDeclaringClass
  • isFinal
    Is this field final?
  • getAnnotations
  • isVolatile
    Is this member volatile?

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
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