Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package soot.jimple.toolkits.infoflow;
 
 import soot.*;
 import soot.util.*;
 import java.util.*;
 
 // Wraps any object as a Value
 
 public class AbstractDataSource implements Value
	public AbstractDataSource(Object sourcename)
	{
		this. = sourcename;
	}
    public List getUseBoxes()
    {
        return .;
    }

    
Clones the object. Not implemented here.
    public Object clone() 
    {
        return new AbstractDataSource();
    }

    
Returns true if this object is structurally equivalent to c. AbstractDataSources are equal and equivalent if their sourcename is the same
    public boolean equivTo(Object c)
    {
    	if( instanceof Value)
    		return (c instanceof AbstractDataSource && ((Value).equivTo( ((AbstractDataSource)c). ));
        return (c instanceof AbstractDataSource && ((AbstractDataSource)c)..equals());
    }
    
    public boolean equals(Object c)
    {
        return (c instanceof AbstractDataSource && ((AbstractDataSource)c)..equals());
    }

    
Returns a hash code consistent with structural equality for this object.
    public int equivHashCode()
    {
    	if( instanceof Value)
    		return ((Value).equivHashCode();
        return .hashCode();
    }
    
    public void toStringUnitPrinter up ) {}
    
    public Type getType()
    {
    	return NullType.v();
    }
    
    public void apply(Switch sw)
    {
    	throw new RuntimeException("Not Implemented");
    }
    
    public String toString()
    {
    	return "sourceof<" + .toString() + ">";
    }
New to GrepCode? Check out our FAQ X