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

How to use
SootFieldRef
in
soot

Best Java code snippets using soot.SootFieldRef (Showing top 20 results out of 315)

origin: Sable/soot

@Override
public void caseStaticGetInst(StaticGetInst i) {
 SootFieldRef field = i.getFieldRef();
 mv.visitFieldInsn(Opcodes.GETSTATIC, slashify(field.declaringClass().getName()), field.name(),
   toTypeDesc(field.type()));
}
origin: Sable/soot

public SootField getField() {
 return fieldRef.resolve();
}
origin: Sable/soot

final String getParameters() {
 return " " + fieldRef.getSignature();
}
origin: Sable/soot

public void fieldRef(SootFieldRef f) {
 handleIndent();
 if (baf || f.resolve().isStatic()) {
  output.append(f.declaringClass().getName());
  literal(".");
 }
 output.append(f.name());
}
origin: Sable/soot

final FieldRef fieldRef = (FieldRef) value;
SootFieldRef sootFieldRef = fieldRef.getFieldRef();
if (sootFieldRef.declaringClass().isLibraryClass()) {
 continue;
final String oldName = sootFieldRef.name();
final String fullyQualifiedName = sootFieldRef.declaringClass().getName() + '.' + oldName;
if (skipFields.contains(fullyQualifiedName)) {
 continue;
sootFieldRef = Scene.v().makeFieldRef(sootFieldRef.declaringClass(), newName, sootFieldRef.type(),
  sootFieldRef.isStatic());
fieldRef.setFieldRef(sootFieldRef);
try {
 sootFieldRef.resolve();
} catch (Exception exception) {
 logger.error("Cannot rename field \"" + oldName + "\" to \"" + newName + "\" due to error.", exception);
 logger.info("Fields of {}: {}", sootFieldRef.declaringClass().getName(),
   sootFieldRef.declaringClass().getFields());
 throw new RuntimeException(exception);
origin: Sable/soot

public Type getType() {
 return fieldRef.type();
}
origin: Sable/soot

public DStaticFieldRef(SootFieldRef fieldRef, String myClassName) {
 super(fieldRef);
 supressDeclaringClass = myClassName.equals(fieldRef.declaringClass().getName());
}
origin: Sable/soot

SootFieldRef s = sfr.getFieldRef();
if (pag.getOpts().empties_as_allocs()) {
 if (s.declaringClass().getName().equals("java.util.Collections")) {
  if (s.name().equals("EMPTY_SET")) {
   src = pag.makeAllocNode(rtHashSet, rtHashSet, method);
  } else if (s.name().equals("EMPTY_MAP")) {
   src = pag.makeAllocNode(rtHashMap, rtHashMap, method);
  } else if (s.name().equals("EMPTY_LIST")) {
   src = pag.makeAllocNode(rtLinkedList, rtLinkedList, method);
 } else if (s.declaringClass().getName().equals("java.util.Hashtable")) {
  if (s.name().equals("emptyIterator")) {
   src = pag.makeAllocNode(rtHashtableEmptyIterator, rtHashtableEmptyIterator, method);
  } else if (s.name().equals("emptyEnumerator")) {
   src = pag.makeAllocNode(rtHashtableEmptyEnumerator, rtHashtableEmptyEnumerator, method);
origin: Sable/soot

public BFieldGetInst(SootFieldRef fieldRef) {
 if (fieldRef.isStatic()) {
  throw new RuntimeException("wrong static-ness");
 }
 this.fieldRef = fieldRef;
}
origin: Sable/soot

public void fieldRef(SootFieldRef f) {
 handleIndent();
 output.append(f.name());
}
origin: ibinti/bugvm

public void fieldRef( SootFieldRef f ) { 
  handleIndent();
  if( baf || f.resolve().isStatic() ){
    output.append( f.declaringClass().getName() );
    literal(".");
  }
  output.append(f.name());
}
public void identityRef( IdentityRef r ) {
origin: Sable/soot

public Type getType() {
 return fieldRef.type();
}
origin: Sable/soot

public void toString(UnitPrinter up) {
 if (!supressDeclaringClass) {
  up.type(fieldRef.declaringClass().getType());
  up.literal(".");
 }
 up.fieldRef(fieldRef);
}
origin: Sable/soot

public BStaticPutInst(SootFieldRef fieldRef) {
 if (!fieldRef.isStatic()) {
  throw new RuntimeException("wrong static-ness");
 }
 this.fieldRef = fieldRef;
}
origin: Sable/soot

public String toString() {
 if (thisLocals.contains(getBase())) {
  return fieldRef.name();
 }
 return super.toString();
}
origin: Sable/soot

public void outASigFieldRef(ASigFieldRef node) {
 SootFieldRef field = (SootFieldRef) mProductions.removeLast();
 field = Scene.v().makeFieldRef(field.declaringClass(), field.name(), field.type(), true);
 mProductions.addLast(Jimple.v().newStaticFieldRef(field));
}
origin: Sable/soot

public SootField getField() {
 return fieldRef.resolve();
}
origin: com.bugvm/bugvm-soot

public void fieldRef( SootFieldRef f ) { 
  handleIndent();
  if( baf || f.resolve().isStatic() ){
    output.append( f.declaringClass().getName() );
    literal(".");
  }
  output.append(f.name());
}
public void identityRef( IdentityRef r ) {
origin: Sable/soot

public int getInMachineCount() {
 return AbstractJasminClass.sizeOfType(fieldRef.type());
}
origin: Sable/soot

private void handleInstanceFieldRef(InstanceFieldRef ifr, Stmt stmt) {
 ifr.setBase(this.uv.visit(ifr.getBase(), ifr.getFieldRef().declaringClass().getType(), stmt));
}
sootSootFieldRef

Javadoc

Representation of a reference to a field as it appears in a class file. Note that the field directly referred to may not actually exist; the actual target of the reference is determined according to the resolution procedure in the Java Virtual Machine Specification, 2nd ed, section 5.4.3.2.

Most used methods

  • declaringClass
  • resolve
  • type
  • getSignature
  • isStatic
  • name

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now