package soot.JastAddJ; import java.util.HashSet; import java.util.LinkedHashSet; import java.io.File; import java.util.*; import beaver.*; import java.util.ArrayList; import java.util.zip.*; import java.io.*; import java.io.FileNotFoundException; import java.util.Collection; import soot.*; import soot.util.*; import soot.jimple.*; import soot.coffi.ClassFile; import soot.coffi.method_info; import soot.coffi.CONSTANT_Utf8_info; import soot.tagkit.SourceFileTag; import soot.coffi.CoffiMethodSource; /** * @ast node * @declaredat java.ast:99 */ public class IdUse extends ASTNode<ASTNode> implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public IdUse clone() throws CloneNotSupportedException { IdUse node = (IdUse)super.clone(); node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public IdUse copy() { try { IdUse node = (IdUse)clone(); if(children != null) node.children = (ASTNode[])children.clone(); return node; } catch (CloneNotSupportedException e) { } System.err.println("Error: Could not clone node of type " + getClass().getName() + "!"); return null; } /** * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public IdUse fullCopy() { IdUse res = (IdUse)copy(); for(int i = 0; i < getNumChildNoTransform(); i++) { ASTNode node = getChildNoTransform(i); if(node != null) node = node.fullCopy(); res.setChild(node, i); } return res; } /** * @ast method * @declaredat java.ast:1 */ public IdUse() { super(); is$Final(true); } /** * @ast method * @declaredat java.ast:8 */ public IdUse(String p0) { setID(p0); is$Final(true); } /** * @ast method * @declaredat java.ast:12 */ public IdUse(beaver.Symbol p0) { setID(p0); is$Final(true); } /** * @apilevel low-level * @ast method * @declaredat java.ast:19 */ protected int numChildren() { return 0; } /** * @apilevel internal * @ast method * @declaredat java.ast:25 */ public boolean mayHaveRewrite() { return false; } /** * Setter for lexeme ID * @apilevel high-level * @ast method * @declaredat java.ast:5 */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * @declaredat java.ast:8 */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * @declaredat java.ast:9 */ public int IDstart; /** * @ast method * @declaredat java.ast:10 */ public int IDend; /** * @ast method * @declaredat java.ast:11 */ public void setID(beaver.Symbol symbol) { if(symbol.value != null && !(symbol.value instanceof String)) throw new UnsupportedOperationException("setID is only valid for String lexemes"); tokenString_ID = (String)symbol.value; IDstart = symbol.getStart(); IDend = symbol.getEnd(); } /** * Getter for lexeme ID * @apilevel high-level * @ast method * @declaredat java.ast:22 */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }