repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/SuperConstructorAccess.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production SuperConstructorAccess : {@link ConstructorAccess}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:22 */ public class SuperConstructorAccess extends ConstructorAccess implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); decls_computed = false; decls_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public SuperConstructorAccess clone() throws CloneNotSupportedException { SuperConstructorAccess node = (SuperConstructorAccess)super.clone(); node.decls_computed = false; node.decls_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public SuperConstructorAccess copy() { try { SuperConstructorAccess node = (SuperConstructorAccess) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public SuperConstructorAccess fullCopy() { SuperConstructorAccess tree = (SuperConstructorAccess) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:63 */ public void nameCheck() { super.nameCheck(); // 8.8.5.1 TypeDecl c = hostType(); TypeDecl s = c.isClassDecl() && ((ClassDecl)c).hasSuperclass() ? ((ClassDecl)c).superclass() : unknownType(); if(isQualified()) { if(!s.isInnerType() || s.inStaticContext()) error("the super type " + s.typeName() + " of " + c.typeName() + " is not an inner class"); else if(!qualifier().type().instanceOf(s.enclosingType())) error("The type of this primary expression, " + qualifier().type().typeName() + " is not enclosing the super type, " + s.typeName() + ", of " + c.typeName()); } if(!isQualified() && s.isInnerType()) { if(!c.isInnerType()) { error("no enclosing instance for " + s.typeName() + " when accessed in " + this); } } if(s.isInnerType() && hostType().instanceOf(s.enclosingType())) error("cannot reference this before supertype constructor has been called"); } /** * @ast method * @aspect Transformations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Transformations.jrag:149 */ public void transformation() { // this$val addEnclosingVariables(); // touch accessorIndex to force creation of private constructorAccessor if(decl().isPrivate() && decl().hostType() != hostType()) { decl().createAccessor(); } super.transformation(); } /** * @ast method * @aspect EmitJimpleRefinements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/SootJastAddJ/EmitJimpleRefinements.jrag:239 */ public void collectTypesToSignatures(Collection<Type> set) { super.collectTypesToSignatures(set); addDependencyIfNeeded(set, decl().erasedConstructor().hostType()); } /** * @ast method * */ public SuperConstructorAccess() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[1]; setChild(new List(), 0); } /** * @ast method * */ public SuperConstructorAccess(String p0, List<Expr> p1) { setID(p0); setChild(p1, 0); } /** * @ast method * */ public SuperConstructorAccess(beaver.Symbol p0, List<Expr> p1) { setID(p0); setChild(p1, 0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 1; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the Arg list. * @param list The new list node to be used as the Arg list. * @apilevel high-level * @ast method * */ public void setArgList(List<Expr> list) { setChild(list, 0); } /** * Retrieves the number of children in the Arg list. * @return Number of children in the Arg list. * @apilevel high-level * @ast method * */ public int getNumArg() { return getArgList().getNumChild(); } /** * Retrieves the number of children in the Arg list. * Calling this method will not trigger rewrites.. * @return Number of children in the Arg list. * @apilevel low-level * @ast method * */ public int getNumArgNoTransform() { return getArgListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the Arg list.. * @param i Index of the element to return. * @return The element at position {@code i} in the Arg list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Expr getArg(int i) { return (Expr)getArgList().getChild(i); } /** * Append an element to the Arg list. * @param node The element to append to the Arg list. * @apilevel high-level * @ast method * */ public void addArg(Expr node) { List<Expr> list = (parent == null || state == null) ? getArgListNoTransform() : getArgList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addArgNoTransform(Expr node) { List<Expr> list = getArgListNoTransform(); list.addChild(node); } /** * Replaces the Arg list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setArg(Expr node, int i) { List<Expr> list = getArgList(); list.setChild(node, i); } /** * Retrieves the Arg list. * @return The node representing the Arg list. * @apilevel high-level * @ast method * */ public List<Expr> getArgs() { return getArgList(); } /** * Retrieves the Arg list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Arg list. * @apilevel low-level * @ast method * */ public List<Expr> getArgsNoTransform() { return getArgListNoTransform(); } /** * Retrieves the Arg list. * @return The node representing the Arg list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Expr> getArgList() { List<Expr> list = (List<Expr>)getChild(0); list.getNumChild(); return list; } /** * Retrieves the Arg list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Arg list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Expr> getArgListNoTransform() { return (List<Expr>)getChildNoTransform(0); } /** * @ast method * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:255 */ public soot.Value eval(Body b) { ConstructorDecl c = decl().erasedConstructor(); // this Local base = b.emitThis(hostType()); int index = 0; ArrayList list = new ArrayList(); if(c.needsEnclosing()) { if(hasPrevExpr() && !prevExpr().isTypeAccess()) { list.add(asImmediate(b, prevExpr().eval(b))); } else { if(hostType().needsSuperEnclosing()) { soot.Type type = ((ClassDecl)hostType()).superclass().enclosingType().getSootType(); if(hostType().needsEnclosing()) list.add(asImmediate(b, b.newParameterRef(type, 1, this))); else list.add(asImmediate(b, b.newParameterRef(type, 0, this))); } else { list.add(emitThis(b, superConstructorQualifier(c.hostType().enclosingType()))); } } } // args for(int i = 0; i < getNumArg(); i++) list.add(asImmediate(b, getArg(i).type().emitCastTo(b, getArg(i), c.getParameter(i).type()))); // MethodInvocationConversion if(decl().isPrivate() && decl().hostType() != hostType()) { list.add(asImmediate(b, soot.jimple.NullConstant.v())); b.add( b.newInvokeStmt( b.newSpecialInvokeExpr(base, decl().erasedConstructor().createAccessor().sootRef(), list, this), this ) ); return base; } else { return b.newSpecialInvokeExpr(base, c.sootRef(), list, this); } } /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:235 */ public boolean isDAafter(Variable v) { ASTNode$State state = state(); try { return isDAbefore(v); } finally { } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:694 */ public boolean isDUafter(Variable v) { ASTNode$State state = state(); try { return isDUbefore(v); } finally { } } /** * @apilevel internal */ protected boolean decls_computed = false; /** * @apilevel internal */ protected SimpleSet decls_value; /** * @attribute syn * @aspect MethodSignature15 * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/MethodSignature.jrag:77 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet decls() { if(decls_computed) { return decls_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); decls_value = decls_compute(); if(isFinal && num == state().boundariesCrossed) decls_computed = true; return decls_value; } /** * @apilevel internal */ private SimpleSet decls_compute() { Collection c = hasPrevExpr() && !prevExpr().isTypeAccess() ? hostType().lookupSuperConstructor() : lookupSuperConstructor(); return chooseConstructor(c, getArgList()); } /** * @attribute syn * @aspect Names * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:20 */ public String name() { ASTNode$State state = state(); try { return "super"; } finally { } } /** * @attribute syn * @aspect AccessTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ResolveAmbiguousNames.jrag:49 */ public boolean isSuperConstructorAccess() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect SyntacticClassification * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:56 */ public NameType predNameType() { ASTNode$State state = state(); try { return NameType.EXPRESSION_NAME; } finally { } } /** * @attribute inh * @aspect ConstructScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupConstructor.jrag:19 */ @SuppressWarnings({"unchecked", "cast"}) public Collection lookupSuperConstructor() { ASTNode$State state = state(); Collection lookupSuperConstructor_value = getParent().Define_Collection_lookupSuperConstructor(this, null); return lookupSuperConstructor_value; } /** * @attribute inh * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:503 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl enclosingInstance() { ASTNode$State state = state(); TypeDecl enclosingInstance_value = getParent().Define_TypeDecl_enclosingInstance(this, null); return enclosingInstance_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:89 * @apilevel internal */ public boolean Define_boolean_hasPackage(ASTNode caller, ASTNode child, String packageName) { if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return unqualifiedScope().hasPackage(packageName); } else { return super.Define_boolean_hasPackage(caller, child, packageName); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:134 * @apilevel internal */ public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name) { if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return unqualifiedScope().lookupVariable(name); } else { return super.Define_SimpleSet_lookupVariable(caller, child, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:131 * @apilevel internal */ public boolean Define_boolean_inExplicitConstructorInvocation(ASTNode caller, ASTNode child) { if(caller == getArgListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return true; } else { return super.Define_boolean_inExplicitConstructorInvocation(caller, child); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
15,978
28.105647
122
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/SwitchStmt.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production SwitchStmt : {@link BranchTargetStmt} ::= <span class="component">{@link Expr}</span> <span class="component">{@link Block}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:202 */ public class SwitchStmt extends BranchTargetStmt implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); targetOf_ContinueStmt_values = null; targetOf_BreakStmt_values = null; isDAafter_Variable_values = null; isDUafter_Variable_values = null; canCompleteNormally_computed = false; defaultCase_computed = false; defaultCase_value = null; end_label_computed = false; end_label_value = null; typeInt_computed = false; typeInt_value = null; typeLong_computed = false; typeLong_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public SwitchStmt clone() throws CloneNotSupportedException { SwitchStmt node = (SwitchStmt)super.clone(); node.targetOf_ContinueStmt_values = null; node.targetOf_BreakStmt_values = null; node.isDAafter_Variable_values = null; node.isDUafter_Variable_values = null; node.canCompleteNormally_computed = false; node.defaultCase_computed = false; node.defaultCase_value = null; node.end_label_computed = false; node.end_label_value = null; node.typeInt_computed = false; node.typeInt_value = null; node.typeLong_computed = false; node.typeLong_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public SwitchStmt copy() { try { SwitchStmt node = (SwitchStmt) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public SwitchStmt fullCopy() { SwitchStmt tree = (SwitchStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:554 */ public void toString(StringBuffer s) { s.append(indent()); s.append("switch ("); getExpr().toString(s); s.append(")"); getBlock().toString(s); } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:50 */ public void jimplify2(Body b) { soot.jimple.Stmt cond_label = newLabel(); soot.jimple.Stmt switch_label = newLabel(); b.setLine(this); b.add(b.newGotoStmt(cond_label, this)); getBlock().jimplify2(b); if(canCompleteNormally()) { b.setLine(this); b.add(b.newGotoStmt(end_label(), this)); } b.addLabel(cond_label); soot.Value expr = asImmediate(b, getExpr().eval(b)); TreeMap map = new TreeMap(); for(int i= 0; i < getBlock().getNumStmt(); i++) { if(getBlock().getStmt(i) instanceof ConstCase) { ConstCase ca = (ConstCase)getBlock().getStmt(i); map.put(new Integer(ca.getValue().constant().intValue()), ca); } } long low = map.isEmpty() ? 0 : ((Integer)map.firstKey()).intValue(); long high = map.isEmpty() ? 0 : ((Integer)map.lastKey()).intValue(); long tableSwitchSize = 8L + (high - low + 1L) * 4L; long lookupSwitchSize = 4L + map.size() * 8L; b.addLabel(switch_label); soot.jimple.Stmt defaultStmt = defaultCase() != null ? defaultCase().label() : end_label(); if(tableSwitchSize < lookupSwitchSize) { ArrayList targets = new ArrayList(); for(long i = low; i <= high; i++) { ConstCase ca = (ConstCase)map.get(new Integer((int)i)); if(ca != null) targets.add(ca.label()); else targets.add(defaultStmt); } b.setLine(this); b.add(b.newTableSwitchStmt(expr, (int)low, (int)high, targets, defaultStmt, this)); } else { ArrayList targets = new ArrayList(); ArrayList values = new ArrayList(); for(Iterator iter = map.values().iterator(); iter.hasNext(); ) { ConstCase ca = (ConstCase)iter.next(); targets.add(ca.label()); values.add(IntType.emitConstant(ca.getValue().constant().intValue())); } b.setLine(this); b.add(b.newLookupSwitchStmt(expr, values, targets, defaultStmt, this)); } b.addLabel(end_label()); } /** * @ast method * @aspect EnumsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/EnumsCodegen.jrag:17 */ public void transformation() { if(getExpr().type().isEnumDecl()) { TypeDecl type = getExpr().type(); hostType().createEnumArray(type); hostType().createEnumMethod(type); setExpr( hostType().createEnumMethod(type).createBoundAccess(new List()).qualifiesAccess( new ArrayAccess( getExpr().qualifiesAccess(new MethodAccess("ordinal", new List())) )) ); } super.transformation(); } /** * @ast method * */ public SwitchStmt() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public SwitchStmt(Expr p0, Block p1) { setChild(p0, 0); setChild(p1, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Expr child. * @param node The new node to replace the Expr child. * @apilevel high-level * @ast method * */ public void setExpr(Expr node) { setChild(node, 0); } /** * Retrieves the Expr child. * @return The current node used as the Expr child. * @apilevel high-level * @ast method * */ public Expr getExpr() { return (Expr)getChild(0); } /** * Retrieves the Expr child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Expr child. * @apilevel low-level * @ast method * */ public Expr getExprNoTransform() { return (Expr)getChildNoTransform(0); } /** * Replaces the Block child. * @param node The new node to replace the Block child. * @apilevel high-level * @ast method * */ public void setBlock(Block node) { setChild(node, 1); } /** * Retrieves the Block child. * @return The current node used as the Block child. * @apilevel high-level * @ast method * */ public Block getBlock() { return (Block)getChild(1); } /** * Retrieves the Block child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Block child. * @apilevel low-level * @ast method * */ public Block getBlockNoTransform() { return (Block)getChildNoTransform(1); } /** * @ast method * @aspect Enums * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Enums.jrag:491 */ public void refined_Enums_SwitchStmt_typeCheck() { TypeDecl type = getExpr().type(); if((!type.isIntegralType() || type.isLong()) && !type.isEnumDecl()) error("Switch expression must be of char, byte, short, int, or enum type"); } /** * <p>Overrides the type checking of the switch statement's expression. * * <p>In JSR 334 a switch statement may use an expression of type String. * @ast method * @aspect StringsInSwitch * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/StringsInSwitch.jrag:25 */ public void typeCheck() { TypeDecl type = getExpr().type(); if ((!type.isIntegralType() || type.isLong()) && !type.isEnumDecl() && !type.isString()) error("Switch expression must be of type " + "char, byte, short, int, enum, or string"); } protected java.util.Map targetOf_ContinueStmt_values; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:72 */ @SuppressWarnings({"unchecked", "cast"}) public boolean targetOf(ContinueStmt stmt) { Object _parameters = stmt; if(targetOf_ContinueStmt_values == null) targetOf_ContinueStmt_values = new java.util.HashMap(4); if(targetOf_ContinueStmt_values.containsKey(_parameters)) { return ((Boolean)targetOf_ContinueStmt_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean targetOf_ContinueStmt_value = targetOf_compute(stmt); if(isFinal && num == state().boundariesCrossed) targetOf_ContinueStmt_values.put(_parameters, Boolean.valueOf(targetOf_ContinueStmt_value)); return targetOf_ContinueStmt_value; } /** * @apilevel internal */ private boolean targetOf_compute(ContinueStmt stmt) { return false; } protected java.util.Map targetOf_BreakStmt_values; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:76 */ @SuppressWarnings({"unchecked", "cast"}) public boolean targetOf(BreakStmt stmt) { Object _parameters = stmt; if(targetOf_BreakStmt_values == null) targetOf_BreakStmt_values = new java.util.HashMap(4); if(targetOf_BreakStmt_values.containsKey(_parameters)) { return ((Boolean)targetOf_BreakStmt_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean targetOf_BreakStmt_value = targetOf_compute(stmt); if(isFinal && num == state().boundariesCrossed) targetOf_BreakStmt_values.put(_parameters, Boolean.valueOf(targetOf_BreakStmt_value)); return targetOf_BreakStmt_value; } /** * @apilevel internal */ private boolean targetOf_compute(BreakStmt stmt) { return !stmt.hasLabel(); } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:531 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { if(!(!noDefaultLabel() || getExpr().isDAafter(v))) { return false; } if(!(!switchLabelEndsBlock() || getExpr().isDAafter(v))) { return false; } if(!assignedAfterLastStmt(v)) { return false; } for(Iterator iter = targetBreaks().iterator(); iter.hasNext(); ) { BreakStmt stmt = (BreakStmt)iter.next(); if(!stmt.isDAafterReachedFinallyBlocks(v)) return false; } return true; } /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:549 */ public boolean assignedAfterLastStmt(Variable v) { ASTNode$State state = state(); try { return getBlock().isDAafter(v); } finally { } } protected java.util.Map isDUafter_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1000 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v; if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); return isDUafter_Variable_value; } /** * @apilevel internal */ private boolean isDUafter_compute(Variable v) { if(!(!noDefaultLabel() || getExpr().isDUafter(v))) return false; if(!(!switchLabelEndsBlock() || getExpr().isDUafter(v))) return false; if(!unassignedAfterLastStmt(v)) return false; for(Iterator iter = targetBreaks().iterator(); iter.hasNext(); ) { BreakStmt stmt = (BreakStmt)iter.next(); if(!stmt.isDUafterReachedFinallyBlocks(v)) return false; } return true; } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1015 */ public boolean unassignedAfterLastStmt(Variable v) { ASTNode$State state = state(); try { return getBlock().isDUafter(v); } finally { } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1018 */ public boolean switchLabelEndsBlock() { ASTNode$State state = state(); try { return getBlock().getNumStmt() > 0 && getBlock().getStmt(getBlock().getNumStmt()-1) instanceof ConstCase; } finally { } } /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:60 */ public boolean lastStmtCanCompleteNormally() { ASTNode$State state = state(); try { return getBlock().canCompleteNormally(); } finally { } } /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:62 */ public boolean noStmts() { ASTNode$State state = state(); try { for(int i = 0; i < getBlock().getNumStmt(); i++) if(!(getBlock().getStmt(i) instanceof Case)) return false; return true; } finally { } } /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:69 */ public boolean noStmtsAfterLastLabel() { ASTNode$State state = state(); try { return getBlock().getNumStmt() > 0 && getBlock().getStmt(getBlock().getNumStmt()-1) instanceof Case; } finally { } } /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:72 */ public boolean noDefaultLabel() { ASTNode$State state = state(); try { for(int i = 0; i < getBlock().getNumStmt(); i++) if(getBlock().getStmt(i) instanceof DefaultCase) return false; return true; } finally { } } /** * @apilevel internal */ protected boolean canCompleteNormally_computed = false; /** * @apilevel internal */ protected boolean canCompleteNormally_value; /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:79 */ @SuppressWarnings({"unchecked", "cast"}) public boolean canCompleteNormally() { if(canCompleteNormally_computed) { return canCompleteNormally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); canCompleteNormally_value = canCompleteNormally_compute(); if(isFinal && num == state().boundariesCrossed) canCompleteNormally_computed = true; return canCompleteNormally_value; } /** * @apilevel internal */ private boolean canCompleteNormally_compute() { return lastStmtCanCompleteNormally() || noStmts() || noStmtsAfterLastLabel() || noDefaultLabel() || reachableBreak(); } /** * @apilevel internal */ protected boolean defaultCase_computed = false; /** * @apilevel internal */ protected DefaultCase defaultCase_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:40 */ @SuppressWarnings({"unchecked", "cast"}) public DefaultCase defaultCase() { if(defaultCase_computed) { return defaultCase_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); defaultCase_value = defaultCase_compute(); if(isFinal && num == state().boundariesCrossed) defaultCase_computed = true; return defaultCase_value; } /** * @apilevel internal */ private DefaultCase defaultCase_compute() { for(int i= 0; i < getBlock().getNumStmt(); i++) { if(getBlock().getStmt(i) instanceof DefaultCase) return (DefaultCase)getBlock().getStmt(i); } return null; } /** * @apilevel internal */ protected boolean end_label_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt end_label_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:48 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt end_label() { if(end_label_computed) { return end_label_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); end_label_value = end_label_compute(); if(isFinal && num == state().boundariesCrossed) end_label_computed = true; return end_label_value; } /** * @apilevel internal */ private soot.jimple.Stmt end_label_compute() { return newLabel(); } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:200 */ public soot.jimple.Stmt break_label() { ASTNode$State state = state(); try { return end_label(); } finally { } } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { return getBlock().modifiedInScope(var); } finally { } } /** * @apilevel internal */ protected boolean typeInt_computed = false; /** * @apilevel internal */ protected TypeDecl typeInt_value; /** * @attribute inh * @aspect SpecialClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:61 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeInt() { if(typeInt_computed) { return typeInt_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeInt_value = getParent().Define_TypeDecl_typeInt(this, null); if(isFinal && num == state().boundariesCrossed) typeInt_computed = true; return typeInt_value; } /** * @apilevel internal */ protected boolean typeLong_computed = false; /** * @apilevel internal */ protected TypeDecl typeLong_value; /** * @attribute inh * @aspect SpecialClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:63 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeLong() { if(typeLong_computed) { return typeLong_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeLong_value = getParent().Define_TypeDecl_typeLong(this, null); if(isFinal && num == state().boundariesCrossed) typeLong_computed = true; return typeLong_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:568 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getBlockNoTransform()) { return getExpr().isDAafter(v); } else if(caller == getExprNoTransform()){ if(((ASTNode)v).isDescendantTo(this)) return false; boolean result = isDAbefore(v); return result; } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1023 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getBlockNoTransform()) { return getExpr().isDUafter(v); } else if(caller == getExprNoTransform()) { return isDUbefore(v); } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:377 * @apilevel internal */ public boolean Define_boolean_insideSwitch(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return true; } else { return getParent().Define_boolean_insideSwitch(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:418 * @apilevel internal */ public Case Define_Case_bind(ASTNode caller, ASTNode child, Case c) { if(caller == getBlockNoTransform()){ Block b = getBlock(); for(int i = 0; i < b.getNumStmt(); i++) if(b.getStmt(i) instanceof Case && ((Case)b.getStmt(i)).constValue(c)) return (Case)b.getStmt(i); return null; } else { return getParent().Define_Case_bind(this, caller, c); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:359 * @apilevel internal */ public TypeDecl Define_TypeDecl_switchType(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return getExpr().type(); } else { return getParent().Define_TypeDecl_switchType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:82 * @apilevel internal */ public boolean Define_boolean_reachable(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:158 * @apilevel internal */ public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reportUnreachable(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
25,519
30.584158
171
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/SynchronizedStmt.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production SynchronizedStmt : {@link Stmt} ::= <span class="component">{@link Expr}</span> <span class="component">{@link Block}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:217 */ public class SynchronizedStmt extends Stmt implements Cloneable, FinallyHost { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); isDAafter_Variable_values = null; isDUafter_Variable_values = null; canCompleteNormally_computed = false; monitor_Body_values = null; exceptionRanges_computed = false; exceptionRanges_value = null; label_begin_computed = false; label_begin_value = null; label_end_computed = false; label_end_value = null; label_finally_computed = false; label_finally_value = null; label_finally_block_computed = false; label_finally_block_value = null; label_exception_handler_computed = false; label_exception_handler_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public SynchronizedStmt clone() throws CloneNotSupportedException { SynchronizedStmt node = (SynchronizedStmt)super.clone(); node.isDAafter_Variable_values = null; node.isDUafter_Variable_values = null; node.canCompleteNormally_computed = false; node.monitor_Body_values = null; node.exceptionRanges_computed = false; node.exceptionRanges_value = null; node.label_begin_computed = false; node.label_begin_value = null; node.label_end_computed = false; node.label_end_value = null; node.label_finally_computed = false; node.label_finally_value = null; node.label_finally_block_computed = false; node.label_finally_block_value = null; node.label_exception_handler_computed = false; node.label_exception_handler_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public SynchronizedStmt copy() { try { SynchronizedStmt node = (SynchronizedStmt) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public SynchronizedStmt fullCopy() { SynchronizedStmt tree = (SynchronizedStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:206 */ public void collectFinally(Stmt branchStmt, ArrayList list) { list.add(this); super.collectFinally(branchStmt, list); } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:699 */ public void toString(StringBuffer s) { s.append(indent()); s.append("synchronized("); getExpr().toString(s); s.append(") "); getBlock().toString(s); } /** * @ast method * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:362 */ public void typeCheck() { TypeDecl type = getExpr().type(); if(!type.isReferenceType() || type.isNull()) error("*** The type of the expression must be a reference"); } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:334 */ public void emitFinallyCode(Body b) { b.setLine(this); b.add(b.newExitMonitorStmt(monitor(b), this)); } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:500 */ public void jimplify2(Body b) { b.setLine(this); b.add(b.newEnterMonitorStmt(monitor(b), this)); b.addLabel(label_begin()); exceptionRanges().add(label_begin()); getBlock().jimplify2(b); if(getBlock().canCompleteNormally()) { emitFinallyCode(b); b.add(b.newGotoStmt(label_end(), this)); } b.addLabel(label_exception_handler()); // emitExceptionHandler Local l = b.newTemp(typeThrowable().getSootType()); b.add(b.newIdentityStmt(l, b.newCaughtExceptionRef(this), this)); emitFinallyCode(b); b.addLabel(label_end()); soot.jimple.Stmt throwStmt = b.newThrowStmt(l, this); throwStmt.addTag(new soot.tagkit.ThrowCreatedByCompilerTag()); b.add(throwStmt); // createExceptionTable for(Iterator iter = exceptionRanges().iterator(); iter.hasNext(); ) { soot.jimple.Stmt stmtBegin = (soot.jimple.Stmt)iter.next(); soot.jimple.Stmt stmtEnd; if(iter.hasNext()) stmtEnd = (soot.jimple.Stmt)iter.next(); else stmtEnd = label_end(); if(stmtBegin != stmtEnd) b.addTrap(typeThrowable(), stmtBegin, stmtEnd, label_exception_handler()); } } /** * @ast method * */ public SynchronizedStmt() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public SynchronizedStmt(Expr p0, Block p1) { setChild(p0, 0); setChild(p1, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Expr child. * @param node The new node to replace the Expr child. * @apilevel high-level * @ast method * */ public void setExpr(Expr node) { setChild(node, 0); } /** * Retrieves the Expr child. * @return The current node used as the Expr child. * @apilevel high-level * @ast method * */ public Expr getExpr() { return (Expr)getChild(0); } /** * Retrieves the Expr child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Expr child. * @apilevel low-level * @ast method * */ public Expr getExprNoTransform() { return (Expr)getChildNoTransform(0); } /** * Replaces the Block child. * @param node The new node to replace the Block child. * @apilevel high-level * @ast method * */ public void setBlock(Block node) { setChild(node, 1); } /** * Retrieves the Block child. * @return The current node used as the Block child. * @apilevel high-level * @ast method * */ public Block getBlock() { return (Block)getChild(1); } /** * Retrieves the Block child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Block child. * @apilevel low-level * @ast method * */ public Block getBlockNoTransform() { return (Block)getChildNoTransform(1); } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:655 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { return getBlock().isDAafter(v); } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:915 */ public boolean isDUafterFinally(Variable v) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:918 */ public boolean isDAafterFinally(Variable v) { ASTNode$State state = state(); try { return false; } finally { } } protected java.util.Map isDUafter_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1178 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v; if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); return isDUafter_Variable_value; } /** * @apilevel internal */ private boolean isDUafter_compute(Variable v) { return getBlock().isDUafter(v); } /** * @apilevel internal */ protected boolean canCompleteNormally_computed = false; /** * @apilevel internal */ protected boolean canCompleteNormally_value; /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:110 */ @SuppressWarnings({"unchecked", "cast"}) public boolean canCompleteNormally() { if(canCompleteNormally_computed) { return canCompleteNormally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); canCompleteNormally_value = canCompleteNormally_compute(); if(isFinal && num == state().boundariesCrossed) canCompleteNormally_computed = true; return canCompleteNormally_value; } /** * @apilevel internal */ private boolean canCompleteNormally_compute() { return getBlock().canCompleteNormally(); } protected java.util.Map monitor_Body_values; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:330 */ @SuppressWarnings({"unchecked", "cast"}) public soot.Local monitor(Body b) { Object _parameters = b; if(monitor_Body_values == null) monitor_Body_values = new java.util.HashMap(4); if(monitor_Body_values.containsKey(_parameters)) { return (soot.Local)monitor_Body_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); soot.Local monitor_Body_value = monitor_compute(b); if(isFinal && num == state().boundariesCrossed) monitor_Body_values.put(_parameters, monitor_Body_value); return monitor_Body_value; } /** * @apilevel internal */ private soot.Local monitor_compute(Body b) { return b.newTemp(getExpr().eval(b)); } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:355 */ public boolean needsFinallyTrap() { ASTNode$State state = state(); try { return enclosedByExceptionHandler(); } finally { } } /** * @apilevel internal */ protected boolean exceptionRanges_computed = false; /** * @apilevel internal */ protected ArrayList exceptionRanges_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:467 */ @SuppressWarnings({"unchecked", "cast"}) public ArrayList exceptionRanges() { if(exceptionRanges_computed) { return exceptionRanges_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); exceptionRanges_value = exceptionRanges_compute(); if(isFinal && num == state().boundariesCrossed) exceptionRanges_computed = true; return exceptionRanges_value; } /** * @apilevel internal */ private ArrayList exceptionRanges_compute() { return new ArrayList(); } /** * @apilevel internal */ protected boolean label_begin_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_begin_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:494 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_begin() { if(label_begin_computed) { return label_begin_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_begin_value = label_begin_compute(); if(isFinal && num == state().boundariesCrossed) label_begin_computed = true; return label_begin_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_begin_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_end_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_end_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:495 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_end() { if(label_end_computed) { return label_end_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_end_value = label_end_compute(); if(isFinal && num == state().boundariesCrossed) label_end_computed = true; return label_end_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_end_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_finally_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_finally_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:496 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_finally() { if(label_finally_computed) { return label_finally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_finally_value = label_finally_compute(); if(isFinal && num == state().boundariesCrossed) label_finally_computed = true; return label_finally_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_finally_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_finally_block_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_finally_block_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:497 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_finally_block() { if(label_finally_block_computed) { return label_finally_block_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_finally_block_value = label_finally_block_compute(); if(isFinal && num == state().boundariesCrossed) label_finally_block_computed = true; return label_finally_block_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_finally_block_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_exception_handler_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_exception_handler_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:498 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_exception_handler() { if(label_exception_handler_computed) { return label_exception_handler_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_exception_handler_value = label_exception_handler_compute(); if(isFinal && num == state().boundariesCrossed) label_exception_handler_computed = true; return label_exception_handler_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_exception_handler_compute() { return newLabel(); } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { return getBlock().modifiedInScope(var); } finally { } } /** * @attribute inh * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:356 */ @SuppressWarnings({"unchecked", "cast"}) public boolean enclosedByExceptionHandler() { ASTNode$State state = state(); boolean enclosedByExceptionHandler_value = getParent().Define_boolean_enclosedByExceptionHandler(this, null); return enclosedByExceptionHandler_value; } /** * @attribute inh * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:480 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeThrowable() { ASTNode$State state = state(); TypeDecl typeThrowable_value = getParent().Define_TypeDecl_typeThrowable(this, null); return typeThrowable_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:657 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getBlockNoTransform()) { return getExpr().isDAafter(v); } else if(caller == getExprNoTransform()) { return isDAbefore(v); } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1180 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getBlockNoTransform()) { return getExpr().isDUafter(v); } else if(caller == getExprNoTransform()) { return isDUbefore(v); } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:111 * @apilevel internal */ public boolean Define_boolean_reachable(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:157 * @apilevel internal */ public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reportUnreachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:354 * @apilevel internal */ public boolean Define_boolean_enclosedByExceptionHandler(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return true; } else { return getParent().Define_boolean_enclosedByExceptionHandler(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:463 * @apilevel internal */ public ArrayList Define_ArrayList_exceptionRanges(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return exceptionRanges(); } else { return getParent().Define_ArrayList_exceptionRanges(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
22,732
30.4426
140
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/ThisAccess.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production ThisAccess : {@link Access} ::= <span class="component">&lt;ID:String&gt;</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:27 */ public class ThisAccess extends Access implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); decl_computed = false; decl_value = null; type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public ThisAccess clone() throws CloneNotSupportedException { ThisAccess node = (ThisAccess)super.clone(); node.decl_computed = false; node.decl_value = null; node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public ThisAccess copy() { try { ThisAccess node = (ThisAccess) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public ThisAccess fullCopy() { ThisAccess tree = (ThisAccess) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:502 */ public void toString(StringBuffer s) { s.append("this"); } /** * @ast method * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:103 */ public void nameCheck() { // 8.8.5.1 if(inExplicitConstructorInvocation() && hostType() == type()) error("this may not be accessed in an explicit constructor invocation"); else if(isQualified()) { // 15.8.4 if(inStaticContext()) error("qualified this may not occur in static context"); else if(!hostType().isInnerTypeOf(decl()) && hostType() != decl()) error("qualified this must name an enclosing type: " + getParent()); } // 8.4.3.2 else if(!isQualified() && inStaticContext()) error("this may not be accessed in static context: " + enclosingStmt()); } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:420 */ public soot.Value eval(Body b) { return emitThis(b, decl()); } /** * @ast method * */ public ThisAccess() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { } /** * @ast method * */ public ThisAccess(String p0) { setID(p0); } /** * @ast method * */ public ThisAccess(beaver.Symbol p0) { setID(p0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 0; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * */ public int IDstart; /** * @ast method * */ public int IDend; /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * @ast method * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:250 */ private TypeDecl refined_TypeScopePropagation_ThisAccess_decl() { return isQualified() ? qualifier().type() : hostType(); } /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:248 */ public SimpleSet decls() { ASTNode$State state = state(); try { return SimpleSet.emptySet; } finally { } } /** * @apilevel internal */ protected boolean decl_computed = false; /** * @apilevel internal */ protected TypeDecl decl_value; /** * @attribute syn * @aspect GenericsTypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:320 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl decl() { if(decl_computed) { return decl_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); decl_value = decl_compute(); if(isFinal && num == state().boundariesCrossed) decl_computed = true; return decl_value; } /** * @apilevel internal */ private TypeDecl decl_compute() { TypeDecl typeDecl = refined_TypeScopePropagation_ThisAccess_decl(); if(typeDecl instanceof ParTypeDecl) typeDecl = ((ParTypeDecl)typeDecl).genericDecl(); return typeDecl; } /** * @attribute syn * @aspect AccessTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ResolveAmbiguousNames.jrag:31 */ public boolean isThisAccess() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect SyntacticClassification * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:56 */ public NameType predNameType() { ASTNode$State state = state(); try { return NameType.TYPE_NAME; } finally { } } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:287 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return decl(); } /** * @attribute inh * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:125 */ @SuppressWarnings({"unchecked", "cast"}) public boolean inExplicitConstructorInvocation() { ASTNode$State state = state(); boolean inExplicitConstructorInvocation_value = getParent().Define_boolean_inExplicitConstructorInvocation(this, null); return inExplicitConstructorInvocation_value; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
9,190
24.963277
123
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/ThrowStmt.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production ThrowStmt : {@link Stmt} ::= <span class="component">{@link Expr}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:215 */ public class ThrowStmt extends Stmt implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); isDAafter_Variable_values = null; isDUafter_Variable_values = null; canCompleteNormally_computed = false; typeNullPointerException_computed = false; typeNullPointerException_value = null; handlesException_TypeDecl_values = null; typeThrowable_computed = false; typeThrowable_value = null; typeNull_computed = false; typeNull_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public ThrowStmt clone() throws CloneNotSupportedException { ThrowStmt node = (ThrowStmt)super.clone(); node.isDAafter_Variable_values = null; node.isDUafter_Variable_values = null; node.canCompleteNormally_computed = false; node.typeNullPointerException_computed = false; node.typeNullPointerException_value = null; node.handlesException_TypeDecl_values = null; node.typeThrowable_computed = false; node.typeThrowable_value = null; node.typeNull_computed = false; node.typeNull_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public ThrowStmt copy() { try { ThrowStmt node = (ThrowStmt) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public ThrowStmt fullCopy() { ThrowStmt tree = (ThrowStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect AnonymousClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AnonymousClasses.jrag:207 */ protected void collectExceptions(Collection c, ASTNode target) { super.collectExceptions(c, target); TypeDecl exceptionType = getExpr().type(); if(exceptionType == typeNull()) exceptionType = typeNullPointerException(); c.add(exceptionType); } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:692 */ public void toString(StringBuffer s) { s.append(indent()); s.append("throw "); getExpr().toString(s); s.append(";"); } /** * @ast method * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:373 */ public void typeCheck() { if(!getExpr().type().instanceOf(typeThrowable())) error("*** The thrown expression must extend Throwable"); } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:312 */ public void jimplify2(Body b) { b.setLine(this); b.add(b.newThrowStmt( asImmediate(b, getExpr().eval(b)), this )); } /** * @ast method * */ public ThrowStmt() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[1]; } /** * @ast method * */ public ThrowStmt(Expr p0) { setChild(p0, 0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 1; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Expr child. * @param node The new node to replace the Expr child. * @apilevel high-level * @ast method * */ public void setExpr(Expr node) { setChild(node, 0); } /** * Retrieves the Expr child. * @return The current node used as the Expr child. * @apilevel high-level * @ast method * */ public Expr getExpr() { return (Expr)getChild(0); } /** * Retrieves the Expr child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Expr child. * @apilevel low-level * @ast method * */ public Expr getExprNoTransform() { return (Expr)getChildNoTransform(0); } /** * @ast method * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:163 */ public void exceptionHandling() { Collection<TypeDecl> exceptionTypes = getExpr().throwTypes(); for (TypeDecl exceptionType : exceptionTypes) { if (exceptionType == typeNull()) exceptionType = typeNullPointerException(); // 8.4.4 if (!handlesException(exceptionType)) error(""+this+" throws uncaught exception "+ exceptionType.fullName()); } } /** * @ast method * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:176 */ protected boolean reachedException(TypeDecl catchType) { Collection<TypeDecl> exceptionTypes = getExpr().throwTypes(); boolean reached = false; for (TypeDecl exceptionType : exceptionTypes) { if(exceptionType == typeNull()) exceptionType = typeNullPointerException(); if(catchType.mayCatch(exceptionType)) { reached = true; break; } if (super.reachedException(catchType)) { reached = true; break; } } return reached; } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:650 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { return true; } protected java.util.Map isDUafter_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1173 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v; if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); return isDUafter_Variable_value; } /** * @apilevel internal */ private boolean isDUafter_compute(Variable v) { return true; } /** * @apilevel internal */ protected boolean canCompleteNormally_computed = false; /** * @apilevel internal */ protected boolean canCompleteNormally_value; /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:108 */ @SuppressWarnings({"unchecked", "cast"}) public boolean canCompleteNormally() { if(canCompleteNormally_computed) { return canCompleteNormally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); canCompleteNormally_value = canCompleteNormally_compute(); if(isFinal && num == state().boundariesCrossed) canCompleteNormally_computed = true; return canCompleteNormally_value; } /** * @apilevel internal */ private boolean canCompleteNormally_compute() { return false; } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { return false; } finally { } } /** * @apilevel internal */ protected boolean typeNullPointerException_computed = false; /** * @apilevel internal */ protected TypeDecl typeNullPointerException_value; /** * @attribute inh * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:20 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeNullPointerException() { if(typeNullPointerException_computed) { return typeNullPointerException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeNullPointerException_value = getParent().Define_TypeDecl_typeNullPointerException(this, null); if(isFinal && num == state().boundariesCrossed) typeNullPointerException_computed = true; return typeNullPointerException_value; } protected java.util.Map handlesException_TypeDecl_values; /** * @attribute inh * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:45 */ @SuppressWarnings({"unchecked", "cast"}) public boolean handlesException(TypeDecl exceptionType) { Object _parameters = exceptionType; if(handlesException_TypeDecl_values == null) handlesException_TypeDecl_values = new java.util.HashMap(4); if(handlesException_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)handlesException_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean handlesException_TypeDecl_value = getParent().Define_boolean_handlesException(this, null, exceptionType); if(isFinal && num == state().boundariesCrossed) handlesException_TypeDecl_values.put(_parameters, Boolean.valueOf(handlesException_TypeDecl_value)); return handlesException_TypeDecl_value; } /** * @apilevel internal */ protected boolean typeThrowable_computed = false; /** * @apilevel internal */ protected TypeDecl typeThrowable_value; /** * @attribute inh * @aspect SpecialClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:67 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeThrowable() { if(typeThrowable_computed) { return typeThrowable_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeThrowable_value = getParent().Define_TypeDecl_typeThrowable(this, null); if(isFinal && num == state().boundariesCrossed) typeThrowable_computed = true; return typeThrowable_value; } /** * @apilevel internal */ protected boolean typeNull_computed = false; /** * @apilevel internal */ protected TypeDecl typeNull_value; /** * @attribute inh * @aspect SpecialClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:70 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeNull() { if(typeNull_computed) { return typeNull_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeNull_value = getParent().Define_TypeDecl_typeNull(this, null); if(isFinal && num == state().boundariesCrossed) typeNull_computed = true; return typeNull_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:653 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getExprNoTransform()) { return isDAbefore(v); } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1176 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getExprNoTransform()) { return isDUbefore(v); } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
14,753
30.061053
154
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TryStmt.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production TryStmt : {@link Stmt} ::= <span class="component">{@link Block}</span> <span class="component">{@link CatchClause}*</span> <span class="component">[Finally:{@link Block}]</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:219 */ public class TryStmt extends Stmt implements Cloneable, FinallyHost { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); branches_computed = false; branches_value = null; branchesFromFinally_computed = false; branchesFromFinally_value = null; targetBranches_computed = false; targetBranches_value = null; escapedBranches_computed = false; escapedBranches_value = null; isDAafter_Variable_values = null; isDUbefore_Variable_values = null; isDUafter_Variable_values = null; catchableException_TypeDecl_values = null; canCompleteNormally_computed = false; label_begin_computed = false; label_begin_value = null; label_block_end_computed = false; label_block_end_value = null; label_end_computed = false; label_end_value = null; label_finally_computed = false; label_finally_value = null; label_finally_block_computed = false; label_finally_block_value = null; label_exception_handler_computed = false; label_exception_handler_value = null; label_catch_end_computed = false; label_catch_end_value = null; exceptionRanges_computed = false; exceptionRanges_value = null; handlesException_TypeDecl_values = null; typeError_computed = false; typeError_value = null; typeRuntimeException_computed = false; typeRuntimeException_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TryStmt clone() throws CloneNotSupportedException { TryStmt node = (TryStmt)super.clone(); node.branches_computed = false; node.branches_value = null; node.branchesFromFinally_computed = false; node.branchesFromFinally_value = null; node.targetBranches_computed = false; node.targetBranches_value = null; node.escapedBranches_computed = false; node.escapedBranches_value = null; node.isDAafter_Variable_values = null; node.isDUbefore_Variable_values = null; node.isDUafter_Variable_values = null; node.catchableException_TypeDecl_values = null; node.canCompleteNormally_computed = false; node.label_begin_computed = false; node.label_begin_value = null; node.label_block_end_computed = false; node.label_block_end_value = null; node.label_end_computed = false; node.label_end_value = null; node.label_finally_computed = false; node.label_finally_value = null; node.label_finally_block_computed = false; node.label_finally_block_value = null; node.label_exception_handler_computed = false; node.label_exception_handler_value = null; node.label_catch_end_computed = false; node.label_catch_end_value = null; node.exceptionRanges_computed = false; node.exceptionRanges_value = null; node.handlesException_TypeDecl_values = null; node.typeError_computed = false; node.typeError_value = null; node.typeRuntimeException_computed = false; node.typeRuntimeException_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TryStmt copy() { try { TryStmt node = (TryStmt) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public TryStmt fullCopy() { TryStmt tree = (TryStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:60 */ public void collectBranches(Collection c) { c.addAll(escapedBranches()); } /** * @ast method * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:161 */ public Stmt branchTarget(Stmt branchStmt) { if(targetBranches().contains(branchStmt)) return this; return super.branchTarget(branchStmt); } /** * @ast method * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:199 */ public void collectFinally(Stmt branchStmt, ArrayList list) { if(hasFinally() && !branchesFromFinally().contains(branchStmt)) list.add(this); if(targetBranches().contains(branchStmt)) return; super.collectFinally(branchStmt, list); } /** * @ast method * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:231 */ protected boolean reachedException(TypeDecl type) { boolean found = false; // found is true if the exception type is caught by a catch clause for(int i = 0; i < getNumCatchClause() && !found; i++) if(getCatchClause(i).handles(type)) found = true; // if an exception is thrown in the block and the exception is not caught and // either there is no finally block or the finally block can complete normally if(!found && (!hasFinally() || getFinally().canCompleteNormally()) ) if(getBlock().reachedException(type)) return true; // even if the exception is caught by the catch clauses they may // throw new exceptions for(int i = 0; i < getNumCatchClause(); i++) if(getCatchClause(i).reachedException(type)) return true; return hasFinally() && getFinally().reachedException(type); } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:707 */ public void toString(StringBuffer s) { s.append(indent()); s.append("try "); getBlock().toString(s); for(int i = 0; i < getNumCatchClause(); i++) { s.append(indent()); getCatchClause(i).toString(s); } if(hasFinally()) { s.append(indent()); s.append("finally "); getFinally().toString(s); } } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:322 */ public void emitFinallyCode(Body b) { if(hasFinally()) { // Clear cached attributes to force re-evaluation of local variables getFinally().flushCaches(); getFinally().jimplify2(b); } } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:358 */ public void jimplify2(Body b) { ArrayList ranges = exceptionRanges(); b.addLabel(label_begin()); ranges.add(label_begin()); getBlock().jimplify2(b); soot.jimple.Stmt label_block_end = null; soot.jimple.Stmt label_end = null; if(getBlock().canCompleteNormally()) { if(hasFinally() && getNumCatchClause() != 0) { label_block_end = label_block_end(); b.addLabel(label_block_end); } emitFinallyCode(b); b.setLine(this); if((!hasFinally() || getFinally().canCompleteNormally()) && (getNumCatchClause() != 0 || hasFinally()/*needsFinallyTrap()*/)) b.add(b.newGotoStmt(label_end = label_end(), this)); } if(getNumCatchClause() != 0) { if(label_block_end == null) label_block_end = ((BasicCatch)getCatchClause(0)).label(); ranges.add(label_block_end); ranges.add(label_block_end); for(int i = 0; i < getNumCatchClause(); i++) { //beginExceptionRange(b, ranges); getCatchClause(i).jimplify2(b); if(getCatchClause(i).getBlock().canCompleteNormally()) { b.setLine(getCatchClause(i)); endExceptionRange(b, ranges); emitFinallyCode(b); if(!hasFinally() || getFinally().canCompleteNormally()) b.add(b.newGotoStmt(label_end = label_end(), this)); beginExceptionRange(b, ranges); } b.setLine(getCatchClause(i)); //endExceptionRange(b, ranges); } } if(hasFinally() /*&& needsFinallyTrap()*/) { b.addLabel(label_exception_handler()); emitExceptionHandler(b); b.setLine(getFinally()); //if(getFinally().canCompleteNormally()) // b.add(b.newGotoStmt(label_end(), this)); } if(label_end != null) b.addLabel(label_end); // createExceptionTable for(int i = 0; i < getNumCatchClause(); i++) { for(Iterator iter = ranges.iterator(); iter.hasNext(); ) { soot.jimple.Stmt stmtBegin = (soot.jimple.Stmt)iter.next(); soot.jimple.Stmt stmtEnd = (soot.jimple.Stmt)iter.next(); if(stmtBegin != stmtEnd) { soot.jimple.Stmt lbl = ((BasicCatch)getCatchClause(i)).label(); b.addTrap( ((BasicCatch)getCatchClause(i)).getParameter().type(), stmtBegin, stmtEnd, lbl ); addFallThroughLabelTag(b, lbl, label_end); } if(stmtEnd == label_block_end) break; } } if(hasFinally() /*&& needsFinallyTrap()*/) { for(Iterator iter = ranges.iterator(); iter.hasNext(); ) { soot.jimple.Stmt stmtBegin = (soot.jimple.Stmt)iter.next(); soot.jimple.Stmt stmtEnd; if(iter.hasNext()) stmtEnd = (soot.jimple.Stmt)iter.next(); else stmtEnd = label_exception_handler(); if(stmtBegin != stmtEnd) { soot.jimple.Stmt lbl = label_exception_handler(); b.addTrap(typeThrowable(), stmtBegin, stmtEnd, lbl); addFallThroughLabelTag(b, lbl, label_end); } } /* b.addTrap( typeThrowable(), label_begin(), label_exception_handler(), label_exception_handler() ); */ } } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:448 */ protected void addFallThroughLabelTag(Body b, soot.jimple.Stmt handler, soot.jimple.Stmt fallThrough) { soot.Body body = b.body; soot.tagkit.TryCatchTag tag = (soot.tagkit.TryCatchTag) body.getTag(soot.tagkit.TryCatchTag.NAME); if(tag == null) { tag = new soot.tagkit.TryCatchTag(); body.addTag(tag); } tag.register(handler, fallThrough); } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:482 */ public void emitExceptionHandler(Body b) { Local l = b.newTemp(typeThrowable().getSootType()); b.setLine(this); b.add(b.newIdentityStmt(l, b.newCaughtExceptionRef(this), this)); emitFinallyCode(b); //if(hasFinally() && getFinally().canCompleteNormally()) { soot.jimple.Stmt throwStmt = b.newThrowStmt(l, this); throwStmt.addTag(new soot.tagkit.ThrowCreatedByCompilerTag()); b.add(throwStmt); //} } /** * @ast method * */ public TryStmt() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[3]; setChild(new List(), 1); setChild(new Opt(), 2); } /** * @ast method * */ public TryStmt(Block p0, List<CatchClause> p1, Opt<Block> p2) { setChild(p0, 0); setChild(p1, 1); setChild(p2, 2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 3; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Block child. * @param node The new node to replace the Block child. * @apilevel high-level * @ast method * */ public void setBlock(Block node) { setChild(node, 0); } /** * Retrieves the Block child. * @return The current node used as the Block child. * @apilevel high-level * @ast method * */ public Block getBlock() { return (Block)getChild(0); } /** * Retrieves the Block child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Block child. * @apilevel low-level * @ast method * */ public Block getBlockNoTransform() { return (Block)getChildNoTransform(0); } /** * Replaces the CatchClause list. * @param list The new list node to be used as the CatchClause list. * @apilevel high-level * @ast method * */ public void setCatchClauseList(List<CatchClause> list) { setChild(list, 1); } /** * Retrieves the number of children in the CatchClause list. * @return Number of children in the CatchClause list. * @apilevel high-level * @ast method * */ public int getNumCatchClause() { return getCatchClauseList().getNumChild(); } /** * Retrieves the number of children in the CatchClause list. * Calling this method will not trigger rewrites.. * @return Number of children in the CatchClause list. * @apilevel low-level * @ast method * */ public int getNumCatchClauseNoTransform() { return getCatchClauseListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the CatchClause list.. * @param i Index of the element to return. * @return The element at position {@code i} in the CatchClause list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public CatchClause getCatchClause(int i) { return (CatchClause)getCatchClauseList().getChild(i); } /** * Append an element to the CatchClause list. * @param node The element to append to the CatchClause list. * @apilevel high-level * @ast method * */ public void addCatchClause(CatchClause node) { List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addCatchClauseNoTransform(CatchClause node) { List<CatchClause> list = getCatchClauseListNoTransform(); list.addChild(node); } /** * Replaces the CatchClause list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setCatchClause(CatchClause node, int i) { List<CatchClause> list = getCatchClauseList(); list.setChild(node, i); } /** * Retrieves the CatchClause list. * @return The node representing the CatchClause list. * @apilevel high-level * @ast method * */ public List<CatchClause> getCatchClauses() { return getCatchClauseList(); } /** * Retrieves the CatchClause list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the CatchClause list. * @apilevel low-level * @ast method * */ public List<CatchClause> getCatchClausesNoTransform() { return getCatchClauseListNoTransform(); } /** * Retrieves the CatchClause list. * @return The node representing the CatchClause list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<CatchClause> getCatchClauseList() { List<CatchClause> list = (List<CatchClause>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the CatchClause list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the CatchClause list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<CatchClause> getCatchClauseListNoTransform() { return (List<CatchClause>)getChildNoTransform(1); } /** * Replaces the optional node for the Finally child. This is the {@code Opt} node containing the child Finally, not the actual child! * @param opt The new node to be used as the optional node for the Finally child. * @apilevel low-level * @ast method * */ public void setFinallyOpt(Opt<Block> opt) { setChild(opt, 2); } /** * Check whether the optional Finally child exists. * @return {@code true} if the optional Finally child exists, {@code false} if it does not. * @apilevel high-level * @ast method * */ public boolean hasFinally() { return getFinallyOpt().getNumChild() != 0; } /** * Retrieves the (optional) Finally child. * @return The Finally child, if it exists. Returns {@code null} otherwise. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Block getFinally() { return (Block)getFinallyOpt().getChild(0); } /** * Replaces the (optional) Finally child. * @param node The new node to be used as the Finally child. * @apilevel high-level * @ast method * */ public void setFinally(Block node) { getFinallyOpt().setChild(node, 0); } /** * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Block> getFinallyOpt() { return (Opt<Block>)getChild(2); } /** * Retrieves the optional node for child Finally. This is the {@code Opt} node containing the child Finally, not the actual child! * <p><em>This method does not invoke AST transformations.</em></p> * @return The optional node for child Finally. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Block> getFinallyOptNoTransform() { return (Opt<Block>)getChildNoTransform(2); } /** * @apilevel internal */ protected boolean branches_computed = false; /** * @apilevel internal */ protected Collection branches_value; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:115 */ @SuppressWarnings({"unchecked", "cast"}) public Collection branches() { if(branches_computed) { return branches_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); branches_value = branches_compute(); if(isFinal && num == state().boundariesCrossed) branches_computed = true; return branches_value; } /** * @apilevel internal */ private Collection branches_compute() { HashSet set = new HashSet(); getBlock().collectBranches(set); for(int i = 0; i < getNumCatchClause(); i++) getCatchClause(i).collectBranches(set); return set; } /** * @apilevel internal */ protected boolean branchesFromFinally_computed = false; /** * @apilevel internal */ protected Collection branchesFromFinally_value; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:123 */ @SuppressWarnings({"unchecked", "cast"}) public Collection branchesFromFinally() { if(branchesFromFinally_computed) { return branchesFromFinally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); branchesFromFinally_value = branchesFromFinally_compute(); if(isFinal && num == state().boundariesCrossed) branchesFromFinally_computed = true; return branchesFromFinally_value; } /** * @apilevel internal */ private Collection branchesFromFinally_compute() { HashSet set = new HashSet(); if(hasFinally()) getFinally().collectBranches(set); return set; } /** * @apilevel internal */ protected boolean targetBranches_computed = false; /** * @apilevel internal */ protected Collection targetBranches_value; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:131 */ @SuppressWarnings({"unchecked", "cast"}) public Collection targetBranches() { if(targetBranches_computed) { return targetBranches_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); targetBranches_value = targetBranches_compute(); if(isFinal && num == state().boundariesCrossed) targetBranches_computed = true; return targetBranches_value; } /** * @apilevel internal */ private Collection targetBranches_compute() { HashSet set = new HashSet(); if(hasFinally() && !getFinally().canCompleteNormally()) set.addAll(branches()); return set; } /** * @apilevel internal */ protected boolean escapedBranches_computed = false; /** * @apilevel internal */ protected Collection escapedBranches_value; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:139 */ @SuppressWarnings({"unchecked", "cast"}) public Collection escapedBranches() { if(escapedBranches_computed) { return escapedBranches_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); escapedBranches_value = escapedBranches_compute(); if(isFinal && num == state().boundariesCrossed) escapedBranches_computed = true; return escapedBranches_value; } /** * @apilevel internal */ private Collection escapedBranches_compute() { HashSet set = new HashSet(); if(hasFinally()) set.addAll(branchesFromFinally()); if(!hasFinally() || getFinally().canCompleteNormally()) set.addAll(branches()); return set; } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:666 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { // 16.2.15 4th bullet if(!hasFinally()) { if(!getBlock().isDAafter(v)) return false; for(int i = 0; i < getNumCatchClause(); i++) if(!getCatchClause(i).getBlock().isDAafter(v)) return false; return true; } else { // 16.2.15 5th bullet if(getFinally().isDAafter(v)) return true; if(!getBlock().isDAafter(v)) return false; for(int i = 0; i < getNumCatchClause(); i++) if(!getCatchClause(i).getBlock().isDAafter(v)) return false; return true; } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:914 */ public boolean isDUafterFinally(Variable v) { ASTNode$State state = state(); try { return getFinally().isDUafter(v); } finally { } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:917 */ public boolean isDAafterFinally(Variable v) { ASTNode$State state = state(); try { return getFinally().isDAafter(v); } finally { } } protected java.util.Map isDUbefore_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1185 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUbefore(Variable v) { Object _parameters = v; if(isDUbefore_Variable_values == null) isDUbefore_Variable_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(isDUbefore_Variable_values.containsKey(_parameters)) { Object _o = isDUbefore_Variable_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); isDUbefore_Variable_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_isDUbefore_Variable_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_isDUbefore_Variable_value = isDUbefore_compute(v); if (new_isDUbefore_Variable_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_isDUbefore_Variable_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { isDUbefore_Variable_values.put(_parameters, new_isDUbefore_Variable_value); } else { isDUbefore_Variable_values.remove(_parameters); state.RESET_CYCLE = true; isDUbefore_compute(v); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_isDUbefore_Variable_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_isDUbefore_Variable_value = isDUbefore_compute(v); if (state.RESET_CYCLE) { isDUbefore_Variable_values.remove(_parameters); } else if (new_isDUbefore_Variable_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_isDUbefore_Variable_value; } return new_isDUbefore_Variable_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean isDUbefore_compute(Variable v) { return super.isDUbefore(v); } protected java.util.Map isDUafter_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1221 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v; if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); return isDUafter_Variable_value; } /** * @apilevel internal */ private boolean isDUafter_compute(Variable v) { // 16.2.14 4th bullet if(!hasFinally()) { if(!getBlock().isDUafter(v)) return false; for(int i = 0; i < getNumCatchClause(); i++) if(!getCatchClause(i).getBlock().isDUafter(v)) return false; return true; } else return getFinally().isDUafter(v); } protected java.util.Map catchableException_TypeDecl_values; /** * The block of the try statement can throw an exception of * a type assignable to the given type. * @attribute syn * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:221 */ @SuppressWarnings({"unchecked", "cast"}) public boolean catchableException(TypeDecl type) { Object _parameters = type; if(catchableException_TypeDecl_values == null) catchableException_TypeDecl_values = new java.util.HashMap(4); if(catchableException_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)catchableException_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean catchableException_TypeDecl_value = catchableException_compute(type); if(isFinal && num == state().boundariesCrossed) catchableException_TypeDecl_values.put(_parameters, Boolean.valueOf(catchableException_TypeDecl_value)); return catchableException_TypeDecl_value; } /** * @apilevel internal */ private boolean catchableException_compute(TypeDecl type) { return getBlock().reachedException(type); } /** * @apilevel internal */ protected boolean canCompleteNormally_computed = false; /** * @apilevel internal */ protected boolean canCompleteNormally_value; /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:113 */ @SuppressWarnings({"unchecked", "cast"}) public boolean canCompleteNormally() { if(canCompleteNormally_computed) { return canCompleteNormally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); canCompleteNormally_value = canCompleteNormally_compute(); if(isFinal && num == state().boundariesCrossed) canCompleteNormally_computed = true; return canCompleteNormally_value; } /** * @apilevel internal */ private boolean canCompleteNormally_compute() { boolean anyCatchClauseCompleteNormally = false; for(int i = 0; i < getNumCatchClause() && !anyCatchClauseCompleteNormally; i++) anyCatchClauseCompleteNormally = getCatchClause(i).getBlock().canCompleteNormally(); return (getBlock().canCompleteNormally() || anyCatchClauseCompleteNormally) && (!hasFinally() || getFinally().canCompleteNormally()); } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:200 */ public soot.jimple.Stmt break_label() { ASTNode$State state = state(); try { return label_finally(); } finally { } } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:225 */ public soot.jimple.Stmt continue_label() { ASTNode$State state = state(); try { return label_finally(); } finally { } } /** * @apilevel internal */ protected boolean label_begin_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_begin_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:339 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_begin() { if(label_begin_computed) { return label_begin_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_begin_value = label_begin_compute(); if(isFinal && num == state().boundariesCrossed) label_begin_computed = true; return label_begin_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_begin_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_block_end_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_block_end_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:340 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_block_end() { if(label_block_end_computed) { return label_block_end_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_block_end_value = label_block_end_compute(); if(isFinal && num == state().boundariesCrossed) label_block_end_computed = true; return label_block_end_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_block_end_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_end_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_end_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:341 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_end() { if(label_end_computed) { return label_end_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_end_value = label_end_compute(); if(isFinal && num == state().boundariesCrossed) label_end_computed = true; return label_end_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_end_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_finally_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_finally_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:342 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_finally() { if(label_finally_computed) { return label_finally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_finally_value = label_finally_compute(); if(isFinal && num == state().boundariesCrossed) label_finally_computed = true; return label_finally_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_finally_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_finally_block_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_finally_block_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:343 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_finally_block() { if(label_finally_block_computed) { return label_finally_block_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_finally_block_value = label_finally_block_compute(); if(isFinal && num == state().boundariesCrossed) label_finally_block_computed = true; return label_finally_block_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_finally_block_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_exception_handler_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_exception_handler_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:344 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_exception_handler() { if(label_exception_handler_computed) { return label_exception_handler_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_exception_handler_value = label_exception_handler_compute(); if(isFinal && num == state().boundariesCrossed) label_exception_handler_computed = true; return label_exception_handler_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_exception_handler_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean label_catch_end_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt label_catch_end_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:345 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt label_catch_end() { if(label_catch_end_computed) { return label_catch_end_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); label_catch_end_value = label_catch_end_compute(); if(isFinal && num == state().boundariesCrossed) label_catch_end_computed = true; return label_catch_end_value; } /** * @apilevel internal */ private soot.jimple.Stmt label_catch_end_compute() { return newLabel(); } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:347 */ public boolean needsFinallyTrap() { ASTNode$State state = state(); try { return getNumCatchClause() != 0 || enclosedByExceptionHandler(); } finally { } } /** * @apilevel internal */ protected boolean exceptionRanges_computed = false; /** * @apilevel internal */ protected ArrayList exceptionRanges_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:466 */ @SuppressWarnings({"unchecked", "cast"}) public ArrayList exceptionRanges() { if(exceptionRanges_computed) { return exceptionRanges_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); exceptionRanges_value = exceptionRanges_compute(); if(isFinal && num == state().boundariesCrossed) exceptionRanges_computed = true; return exceptionRanges_value; } /** * @apilevel internal */ private ArrayList exceptionRanges_compute() { return new ArrayList(); } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { if (getBlock().modifiedInScope(var)) return true; for (CatchClause cc : getCatchClauseList()) if (cc.modifiedInScope(var)) return true; return hasFinally() && getFinally().modifiedInScope(var); } finally { } } protected java.util.Map handlesException_TypeDecl_values; /** * @attribute inh * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:49 */ @SuppressWarnings({"unchecked", "cast"}) public boolean handlesException(TypeDecl exceptionType) { Object _parameters = exceptionType; if(handlesException_TypeDecl_values == null) handlesException_TypeDecl_values = new java.util.HashMap(4); if(handlesException_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)handlesException_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean handlesException_TypeDecl_value = getParent().Define_boolean_handlesException(this, null, exceptionType); if(isFinal && num == state().boundariesCrossed) handlesException_TypeDecl_values.put(_parameters, Boolean.valueOf(handlesException_TypeDecl_value)); return handlesException_TypeDecl_value; } /** * @apilevel internal */ protected boolean typeError_computed = false; /** * @apilevel internal */ protected TypeDecl typeError_value; /** * @attribute inh * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:138 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeError() { if(typeError_computed) { return typeError_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeError_value = getParent().Define_TypeDecl_typeError(this, null); if(isFinal && num == state().boundariesCrossed) typeError_computed = true; return typeError_value; } /** * @apilevel internal */ protected boolean typeRuntimeException_computed = false; /** * @apilevel internal */ protected TypeDecl typeRuntimeException_value; /** * @attribute inh * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:139 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeRuntimeException() { if(typeRuntimeException_computed) { return typeRuntimeException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeRuntimeException_value = getParent().Define_TypeDecl_typeRuntimeException(this, null); if(isFinal && num == state().boundariesCrossed) typeRuntimeException_computed = true; return typeRuntimeException_value; } /** * @attribute inh * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:348 */ @SuppressWarnings({"unchecked", "cast"}) public boolean enclosedByExceptionHandler() { ASTNode$State state = state(); boolean enclosedByExceptionHandler_value = getParent().Define_boolean_enclosedByExceptionHandler(this, null); return enclosedByExceptionHandler_value; } /** * @attribute inh * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:479 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeThrowable() { ASTNode$State state = state(); TypeDecl typeThrowable_value = getParent().Define_TypeDecl_typeThrowable(this, null); return typeThrowable_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:665 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getFinallyOptNoTransform()) { return isDAbefore(v); } else if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return getBlock().isDAbefore(v); } else if(caller == getBlockNoTransform()) { return isDAbefore(v); } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1212 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getFinallyOptNoTransform()){ if(!getBlock().isDUeverywhere(v)) return false; for(int i = 0; i < getNumCatchClause(); i++) if(!getCatchClause(i).getBlock().unassignedEverywhere(v, this)) return false; return true; } else if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { if(!getBlock().isDUafter(v)) return false; if(!getBlock().isDUeverywhere(v)) return false; return true; } } else if(caller == getBlockNoTransform()) { return isDUbefore(v); } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:202 * @apilevel internal */ public boolean Define_boolean_handlesException(ASTNode caller, ASTNode child, TypeDecl exceptionType) { if(caller == getBlockNoTransform()){ for(int i = 0; i < getNumCatchClause(); i++) if(getCatchClause(i).handles(exceptionType)) return true; if(hasFinally() && !getFinally().canCompleteNormally()) return true; return handlesException(exceptionType); } else if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { if(hasFinally() && !getFinally().canCompleteNormally()) return true; return handlesException(exceptionType); } } else { return getParent().Define_boolean_handlesException(this, caller, exceptionType); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:121 * @apilevel internal */ public boolean Define_boolean_reachable(ASTNode caller, ASTNode child) { if(caller == getFinallyOptNoTransform()) { return reachable(); } else if(caller == getBlockNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:128 * @apilevel internal */ public boolean Define_boolean_reachableCatchClause(ASTNode caller, ASTNode child, TypeDecl exceptionType) { if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { for(int i = 0; i < childIndex; i++) if(getCatchClause(i).handles(exceptionType)) return false; if(catchableException(exceptionType)) return true; if(exceptionType.mayCatch(typeError()) || exceptionType.mayCatch(typeRuntimeException())) return true; return false; } } else { return getParent().Define_boolean_reachableCatchClause(this, caller, exceptionType); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:156 * @apilevel internal */ public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child) { if(caller == getFinallyOptNoTransform()) { return reachable(); } else if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return reachable(); } else if(caller == getBlockNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reportUnreachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:353 * @apilevel internal */ public boolean Define_boolean_enclosedByExceptionHandler(ASTNode caller, ASTNode child) { if(caller == getBlockNoTransform()) { return true; } else { return getParent().Define_boolean_enclosedByExceptionHandler(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:462 * @apilevel internal */ public ArrayList Define_ArrayList_exceptionRanges(ASTNode caller, ASTNode child) { if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return exceptionRanges(); } else if(caller == getBlockNoTransform()) { return exceptionRanges(); } else { return getParent().Define_ArrayList_exceptionRanges(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:138 * @apilevel internal */ public Collection<TypeDecl> Define_Collection_TypeDecl__caughtExceptions(ASTNode caller, ASTNode child) { if(caller == getCatchClauseListNoTransform()) { int index = caller.getIndexOfChild(child); { Collection<TypeDecl> excp = new HashSet<TypeDecl>(); getBlock().collectExceptions(excp, this); Collection<TypeDecl> caught = new LinkedList<TypeDecl>(); Iterator<TypeDecl> iter = excp.iterator(); while (iter.hasNext()) { TypeDecl exception = iter.next(); // this catch clause handles the exception if (!getCatchClause(index).handles(exception)) continue; // no previous catch clause handles the exception boolean already = false; for (int i = 0; i < index; ++i) { if (getCatchClause(i).handles(exception)) { already = true; break; } } if (!already) { caught.add(exception); } } return caught; } } else { return getParent().Define_Collection_TypeDecl__caughtExceptions(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
51,299
31.84251
194
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TryWithResources.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * The JSR 334 try with resources statement. * @production TryWithResources : {@link TryStmt} ::= <span class="component">Resource:{@link ResourceDeclaration}*</span> <span class="component">{@link Block}</span> <span class="component">{@link CatchClause}*</span> <span class="component">[Finally:{@link Block}]</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.ast:4 */ public class TryWithResources extends TryStmt implements Cloneable, VariableScope { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); localLookup_String_values = null; localVariableDeclaration_String_values = null; isDAafter_Variable_values = null; catchableException_TypeDecl_values = null; handlesException_TypeDecl_values = null; typeError_computed = false; typeError_value = null; typeRuntimeException_computed = false; typeRuntimeException_value = null; lookupVariable_String_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TryWithResources clone() throws CloneNotSupportedException { TryWithResources node = (TryWithResources)super.clone(); node.localLookup_String_values = null; node.localVariableDeclaration_String_values = null; node.isDAafter_Variable_values = null; node.catchableException_TypeDecl_values = null; node.handlesException_TypeDecl_values = null; node.typeError_computed = false; node.typeError_value = null; node.typeRuntimeException_computed = false; node.typeRuntimeException_value = null; node.lookupVariable_String_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TryWithResources copy() { try { TryWithResources node = (TryWithResources) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public TryWithResources fullCopy() { TryWithResources tree = (TryWithResources) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * Exception error checks. * @ast method * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:40 */ public void exceptionHandling() { // Check exception handling of exceptions on auto closing of resource for (ResourceDeclaration resource : getResourceList()) { MethodDecl close = lookupClose(resource); if (close == null) continue; for (Access exception : close.getExceptionList()) { TypeDecl exceptionType = exception.type(); if (!twrHandlesException(exceptionType)) error("automatic closing of resource "+resource.name()+ " may raise the uncaught exception "+exceptionType.fullName()+"; "+ "it must be caught or declared as being thrown"); } } } /** * Returns true if the try-with-resources statement can throw * an exception of type (or a subtype of) catchType. * @ast method * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:181 */ protected boolean reachedException(TypeDecl catchType) { boolean found = false; // found is true if the exception type is caught by a catch clause for(int i = 0; i < getNumCatchClause() && !found; i++) if(getCatchClause(i).handles(catchType)) found = true; // if an exception is thrown in the block and the exception is not caught and // either there is no finally block or the finally block can complete normally if(!found && (!hasFinally() || getFinally().canCompleteNormally()) ) if(catchableException(catchType)) return true; // even if the exception is caught by the catch clauses they may // throw new exceptions for(int i = 0; i < getNumCatchClause(); i++) if(getCatchClause(i).reachedException(catchType)) return true; return hasFinally() && getFinally().reachedException(catchType); } /** * Pretty printing of try-with-resources * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:244 */ public void toString(StringBuffer sb) { sb.append(indent() + "try ("); for (ResourceDeclaration resource : getResourceList()) { sb.append(resource.toString()); } sb.append(") "); getBlock().toString(sb); for (CatchClause cc : getCatchClauseList()) { sb.append(" "); cc.toString(sb); } if (hasFinally()) { sb.append(" finally "); getFinally().toString(sb); } } /** * @ast method * */ public TryWithResources() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[4]; setChild(new List(), 0); setChild(new List(), 2); setChild(new Opt(), 3); } /** * @ast method * */ public TryWithResources(List<ResourceDeclaration> p0, Block p1, List<CatchClause> p2, Opt<Block> p3) { setChild(p0, 0); setChild(p1, 1); setChild(p2, 2); setChild(p3, 3); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 4; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Resource list. * @param list The new list node to be used as the Resource list. * @apilevel high-level * @ast method * */ public void setResourceList(List<ResourceDeclaration> list) { setChild(list, 0); } /** * Retrieves the number of children in the Resource list. * @return Number of children in the Resource list. * @apilevel high-level * @ast method * */ public int getNumResource() { return getResourceList().getNumChild(); } /** * Retrieves the number of children in the Resource list. * Calling this method will not trigger rewrites.. * @return Number of children in the Resource list. * @apilevel low-level * @ast method * */ public int getNumResourceNoTransform() { return getResourceListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the Resource list.. * @param i Index of the element to return. * @return The element at position {@code i} in the Resource list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public ResourceDeclaration getResource(int i) { return (ResourceDeclaration)getResourceList().getChild(i); } /** * Append an element to the Resource list. * @param node The element to append to the Resource list. * @apilevel high-level * @ast method * */ public void addResource(ResourceDeclaration node) { List<ResourceDeclaration> list = (parent == null || state == null) ? getResourceListNoTransform() : getResourceList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addResourceNoTransform(ResourceDeclaration node) { List<ResourceDeclaration> list = getResourceListNoTransform(); list.addChild(node); } /** * Replaces the Resource list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setResource(ResourceDeclaration node, int i) { List<ResourceDeclaration> list = getResourceList(); list.setChild(node, i); } /** * Retrieves the Resource list. * @return The node representing the Resource list. * @apilevel high-level * @ast method * */ public List<ResourceDeclaration> getResources() { return getResourceList(); } /** * Retrieves the Resource list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Resource list. * @apilevel low-level * @ast method * */ public List<ResourceDeclaration> getResourcesNoTransform() { return getResourceListNoTransform(); } /** * Retrieves the Resource list. * @return The node representing the Resource list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<ResourceDeclaration> getResourceList() { List<ResourceDeclaration> list = (List<ResourceDeclaration>)getChild(0); list.getNumChild(); return list; } /** * Retrieves the Resource list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Resource list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<ResourceDeclaration> getResourceListNoTransform() { return (List<ResourceDeclaration>)getChildNoTransform(0); } /** * Replaces the Block child. * @param node The new node to replace the Block child. * @apilevel high-level * @ast method * */ public void setBlock(Block node) { setChild(node, 1); } /** * Retrieves the Block child. * @return The current node used as the Block child. * @apilevel high-level * @ast method * */ public Block getBlock() { return (Block)getChild(1); } /** * Retrieves the Block child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Block child. * @apilevel low-level * @ast method * */ public Block getBlockNoTransform() { return (Block)getChildNoTransform(1); } /** * Replaces the CatchClause list. * @param list The new list node to be used as the CatchClause list. * @apilevel high-level * @ast method * */ public void setCatchClauseList(List<CatchClause> list) { setChild(list, 2); } /** * Retrieves the number of children in the CatchClause list. * @return Number of children in the CatchClause list. * @apilevel high-level * @ast method * */ public int getNumCatchClause() { return getCatchClauseList().getNumChild(); } /** * Retrieves the number of children in the CatchClause list. * Calling this method will not trigger rewrites.. * @return Number of children in the CatchClause list. * @apilevel low-level * @ast method * */ public int getNumCatchClauseNoTransform() { return getCatchClauseListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the CatchClause list.. * @param i Index of the element to return. * @return The element at position {@code i} in the CatchClause list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public CatchClause getCatchClause(int i) { return (CatchClause)getCatchClauseList().getChild(i); } /** * Append an element to the CatchClause list. * @param node The element to append to the CatchClause list. * @apilevel high-level * @ast method * */ public void addCatchClause(CatchClause node) { List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addCatchClauseNoTransform(CatchClause node) { List<CatchClause> list = getCatchClauseListNoTransform(); list.addChild(node); } /** * Replaces the CatchClause list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setCatchClause(CatchClause node, int i) { List<CatchClause> list = getCatchClauseList(); list.setChild(node, i); } /** * Retrieves the CatchClause list. * @return The node representing the CatchClause list. * @apilevel high-level * @ast method * */ public List<CatchClause> getCatchClauses() { return getCatchClauseList(); } /** * Retrieves the CatchClause list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the CatchClause list. * @apilevel low-level * @ast method * */ public List<CatchClause> getCatchClausesNoTransform() { return getCatchClauseListNoTransform(); } /** * Retrieves the CatchClause list. * @return The node representing the CatchClause list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<CatchClause> getCatchClauseList() { List<CatchClause> list = (List<CatchClause>)getChild(2); list.getNumChild(); return list; } /** * Retrieves the CatchClause list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the CatchClause list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<CatchClause> getCatchClauseListNoTransform() { return (List<CatchClause>)getChildNoTransform(2); } /** * Replaces the optional node for the Finally child. This is the {@code Opt} node containing the child Finally, not the actual child! * @param opt The new node to be used as the optional node for the Finally child. * @apilevel low-level * @ast method * */ public void setFinallyOpt(Opt<Block> opt) { setChild(opt, 3); } /** * Check whether the optional Finally child exists. * @return {@code true} if the optional Finally child exists, {@code false} if it does not. * @apilevel high-level * @ast method * */ public boolean hasFinally() { return getFinallyOpt().getNumChild() != 0; } /** * Retrieves the (optional) Finally child. * @return The Finally child, if it exists. Returns {@code null} otherwise. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Block getFinally() { return (Block)getFinallyOpt().getChild(0); } /** * Replaces the (optional) Finally child. * @param node The new node to be used as the Finally child. * @apilevel high-level * @ast method * */ public void setFinally(Block node) { getFinallyOpt().setChild(node, 0); } /** * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Block> getFinallyOpt() { return (Opt<Block>)getChild(3); } /** * Retrieves the optional node for child Finally. This is the {@code Opt} node containing the child Finally, not the actual child! * <p><em>This method does not invoke AST transformations.</em></p> * @return The optional node for child Finally. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Block> getFinallyOptNoTransform() { return (Opt<Block>)getChildNoTransform(3); } /** * This attribute computes whether or not the TWR statement * has a catch clause which handles the exception. * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:60 */ public boolean catchHandlesException(TypeDecl exceptionType) { ASTNode$State state = state(); try { for (int i = 0; i < getNumCatchClause(); i++) if (getCatchClause(i).handles(exceptionType)) return true; return false; } finally { } } /** * Returns true if exceptions of type exceptionType are handled * in the try-with-resources statement or any containing statement * within the directly enclosing method or initializer block. * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:72 */ public boolean twrHandlesException(TypeDecl exceptionType) { ASTNode$State state = state(); try { if (catchHandlesException(exceptionType)) return true; if (hasFinally() && !getFinally().canCompleteNormally()) return true; return handlesException(exceptionType); } finally { } } /** * Lookup the close method declaration for the resource which is being used. * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:95 */ public MethodDecl lookupClose(ResourceDeclaration resource) { ASTNode$State state = state(); try { TypeDecl resourceType = resource.getTypeAccess().type(); for (MethodDecl method : (Collection<MethodDecl>) resourceType.memberMethods("close")) { if (method.getNumParameter() == 0) { return method; } } return null; /* We can't throw a runtime exception here. If there is no close method it * likely means that the resource type is not a subtype of java.lang.AutoCloseable * and type checking will report this error. */ //throw new RuntimeException("close() not found for resource type "+resourceType.fullName()); } finally { } } protected java.util.Map localLookup_String_values; /** * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:128 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet localLookup(String name) { Object _parameters = name; if(localLookup_String_values == null) localLookup_String_values = new java.util.HashMap(4); if(localLookup_String_values.containsKey(_parameters)) { return (SimpleSet)localLookup_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet localLookup_String_value = localLookup_compute(name); if(isFinal && num == state().boundariesCrossed) localLookup_String_values.put(_parameters, localLookup_String_value); return localLookup_String_value; } /** * @apilevel internal */ private SimpleSet localLookup_compute(String name) { VariableDeclaration v = localVariableDeclaration(name); if (v != null) return v; return lookupVariable(name); } protected java.util.Map localVariableDeclaration_String_values; /** * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:133 */ @SuppressWarnings({"unchecked", "cast"}) public VariableDeclaration localVariableDeclaration(String name) { Object _parameters = name; if(localVariableDeclaration_String_values == null) localVariableDeclaration_String_values = new java.util.HashMap(4); if(localVariableDeclaration_String_values.containsKey(_parameters)) { return (VariableDeclaration)localVariableDeclaration_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); VariableDeclaration localVariableDeclaration_String_value = localVariableDeclaration_compute(name); if(isFinal && num == state().boundariesCrossed) localVariableDeclaration_String_values.put(_parameters, localVariableDeclaration_String_value); return localVariableDeclaration_String_value; } /** * @apilevel internal */ private VariableDeclaration localVariableDeclaration_compute(String name) { for (ResourceDeclaration resource : getResourceList()) if (resource.declaresVariable(name)) return resource; return null; } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:167 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { return getBlock().isDAafter(v); } /** * True if the automatic closing of resources in this try-with-resources statement * may throw an exception of type catchType. * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:204 */ public boolean resourceClosingException(TypeDecl catchType) { ASTNode$State state = state(); try { for (ResourceDeclaration resource : getResourceList()) { MethodDecl close = lookupClose(resource); if (close == null) continue; for (Access exception : close.getExceptionList()) { TypeDecl exceptionType = exception.type(); if (catchType.mayCatch(exception.type())) return true; } } return false; } finally { } } /** * True if the resource initialization of this try-with-resources statement * may throw an exception of type catchType. * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:221 */ public boolean resourceInitializationException(TypeDecl catchType) { ASTNode$State state = state(); try { for (ResourceDeclaration resource : getResourceList()) { if (resource.reachedException(catchType)) return true; } return false; } finally { } } protected java.util.Map catchableException_TypeDecl_values; /** * @see AST.TryStmt#catchableException(TypeDecl) TryStmt.catchableException(TypeDecl) * @attribute syn * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:232 */ @SuppressWarnings({"unchecked", "cast"}) public boolean catchableException(TypeDecl type) { Object _parameters = type; if(catchableException_TypeDecl_values == null) catchableException_TypeDecl_values = new java.util.HashMap(4); if(catchableException_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)catchableException_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean catchableException_TypeDecl_value = catchableException_compute(type); if(isFinal && num == state().boundariesCrossed) catchableException_TypeDecl_values.put(_parameters, Boolean.valueOf(catchableException_TypeDecl_value)); return catchableException_TypeDecl_value; } /** * @apilevel internal */ private boolean catchableException_compute(TypeDecl type) { return getBlock().reachedException(type) || resourceClosingException(type) || resourceInitializationException(type); } protected java.util.Map handlesException_TypeDecl_values; /** * Inherit the handlesException attribute from methoddecl. * @attribute inh * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:83 */ @SuppressWarnings({"unchecked", "cast"}) public boolean handlesException(TypeDecl exceptionType) { Object _parameters = exceptionType; if(handlesException_TypeDecl_values == null) handlesException_TypeDecl_values = new java.util.HashMap(4); if(handlesException_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)handlesException_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean handlesException_TypeDecl_value = getParent().Define_boolean_handlesException(this, null, exceptionType); if(isFinal && num == state().boundariesCrossed) handlesException_TypeDecl_values.put(_parameters, Boolean.valueOf(handlesException_TypeDecl_value)); return handlesException_TypeDecl_value; } /** * @apilevel internal */ protected boolean typeError_computed = false; /** * @apilevel internal */ protected TypeDecl typeError_value; /** * @attribute inh * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:110 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeError() { if(typeError_computed) { return typeError_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeError_value = getParent().Define_TypeDecl_typeError(this, null); if(isFinal && num == state().boundariesCrossed) typeError_computed = true; return typeError_value; } /** * @apilevel internal */ protected boolean typeRuntimeException_computed = false; /** * @apilevel internal */ protected TypeDecl typeRuntimeException_value; /** * @attribute inh * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:111 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeRuntimeException() { if(typeRuntimeException_computed) { return typeRuntimeException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeRuntimeException_value = getParent().Define_TypeDecl_typeRuntimeException(this, null); if(isFinal && num == state().boundariesCrossed) typeRuntimeException_computed = true; return typeRuntimeException_value; } protected java.util.Map lookupVariable_String_values; /** * @attribute inh * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:141 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet lookupVariable(String name) { Object _parameters = name; if(lookupVariable_String_values == null) lookupVariable_String_values = new java.util.HashMap(4); if(lookupVariable_String_values.containsKey(_parameters)) { return (SimpleSet)lookupVariable_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet lookupVariable_String_value = getParent().Define_SimpleSet_lookupVariable(this, null, name); if(isFinal && num == state().boundariesCrossed) lookupVariable_String_values.put(_parameters, lookupVariable_String_value); return lookupVariable_String_value; } /** * @attribute inh * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:145 */ @SuppressWarnings({"unchecked", "cast"}) public boolean resourcePreviouslyDeclared(String name) { ASTNode$State state = state(); boolean resourcePreviouslyDeclared_String_value = getParent().Define_boolean_resourcePreviouslyDeclared(this, null, name); return resourcePreviouslyDeclared_String_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:88 * @apilevel internal */ public boolean Define_boolean_handlesException(ASTNode caller, ASTNode child, TypeDecl exceptionType) { if(caller == getBlockNoTransform()) { return twrHandlesException(exceptionType); } else if(caller == getResourceListNoTransform()) { int i = caller.getIndexOfChild(child); return twrHandlesException(exceptionType); } else { return super.Define_boolean_handlesException(caller, child, exceptionType); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:113 * @apilevel internal */ public boolean Define_boolean_reachableCatchClause(ASTNode caller, ASTNode child, TypeDecl exceptionType) { if(caller == getCatchClauseListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { for (int i = 0; i < childIndex; i++) if (getCatchClause(i).handles(exceptionType)) return false; if (catchableException(exceptionType)) return true; if (exceptionType.mayCatch(typeError()) || exceptionType.mayCatch(typeRuntimeException())) return true; return false; } } else { return super.Define_boolean_reachableCatchClause(caller, child, exceptionType); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:127 * @apilevel internal */ public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name) { if(caller == getBlockNoTransform()) { return localLookup(name); } else { return getParent().Define_SimpleSet_lookupVariable(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:142 * @apilevel internal */ public VariableScope Define_VariableScope_outerScope(ASTNode caller, ASTNode child) { if(caller == getResourceListNoTransform()) { int i = caller.getIndexOfChild(child); return this; } else { return getParent().Define_VariableScope_outerScope(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:146 * @apilevel internal */ public boolean Define_boolean_resourcePreviouslyDeclared(ASTNode caller, ASTNode child, String name) { if(caller == getResourceListNoTransform()) { int index = caller.getIndexOfChild(child); { for (int i = 0; i < index; ++i) { if (getResource(i).name().equals(name)) return true; } return false; } } else { return getParent().Define_boolean_resourcePreviouslyDeclared(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:173 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getBlockNoTransform()) { return getNumResource() == 0 ? isDAbefore(v) : getResource(getNumResource() - 1).isDAafter(v); } else if(caller == getResourceListNoTransform()) { int index = caller.getIndexOfChild(child); return index == 0 ? isDAbefore(v) : getResource(index - 1).isDAafter(v); } else { return super.Define_boolean_isDAbefore(caller, child, v); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
32,844
32.721766
275
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TypeAccess.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production TypeAccess : {@link Access} ::= <span class="component">&lt;Package:String&gt;</span> <span class="component">&lt;ID:String&gt;</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:23 */ public class TypeAccess extends Access implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); decls_computed = false; decls_value = null; decl_computed = false; decl_value = null; type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TypeAccess clone() throws CloneNotSupportedException { TypeAccess node = (TypeAccess)super.clone(); node.decls_computed = false; node.decls_value = null; node.decl_computed = false; node.decl_value = null; node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TypeAccess copy() { try { TypeAccess node = (TypeAccess) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public TypeAccess fullCopy() { TypeAccess tree = (TypeAccess) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect AccessControl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AccessControl.jrag:128 */ public void accessControl() { super.accessControl(); TypeDecl hostType = hostType(); if(hostType != null && !hostType.isUnknown() && !type().accessibleFrom(hostType)) { error("" + this + " in " + hostType().fullName() + " can not access type " + type().fullName()); } else if((hostType == null || hostType.isUnknown()) && !type().accessibleFromPackage(hostPackage())) { error("" + this + " can not access type " + type().fullName()); } } /** * @ast method * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:160 */ public void nameCheck() { if(isQualified() && !qualifier().isTypeAccess() && !qualifier().isPackageAccess()) error("can not access the type named " + decl().typeName() + " in this context"); if(decls().isEmpty()) error("no visible type named " + typeName()); if(decls().size() > 1) { StringBuffer s = new StringBuffer(); s.append("several types named " + name() + ":"); for(Iterator iter = decls().iterator(); iter.hasNext(); ) { TypeDecl t = (TypeDecl)iter.next(); s.append(" " + t.typeName()); } error(s.toString()); } } /** * @ast method * @aspect NodeConstructors * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NodeConstructors.jrag:23 */ public TypeAccess(String name, int start, int end) { this(name); this.start = this.IDstart = start; this.end = this.IDend = end; } /** * @ast method * @aspect NodeConstructors * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NodeConstructors.jrag:44 */ public TypeAccess(String typeName) { this("", typeName); } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:483 */ public void toString(StringBuffer s) { if(decl().isReferenceType()) s.append(nameWithPackage()); else s.append(decl().name()); } /** * @ast method * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:328 */ public void checkModifiers() { if(decl().isDeprecated() && !withinDeprecatedAnnotation() && (hostType() == null || hostType().topLevelType() != decl().topLevelType()) && !withinSuppressWarnings("deprecation")) warning(decl().typeName() + " has been deprecated"); } /** * @ast method * @aspect GenericsTypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:298 */ public boolean isRaw() { /* if(hasNextAccess()) return false; */ ASTNode parent = getParent(); while(parent instanceof AbstractDot) parent = parent.getParent(); if(parent instanceof ParTypeAccess) return false; if(parent instanceof ImportDecl) return false; /* Access a = this; while(a.isTypeAccess() && hasNextAccess()) a = a.nextAccess(); if(a.isThisAccess() || a.isSuperAccess()) return false; */ return true; } /** * @ast method * @aspect GenericsTypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:438 */ public void typeCheck() { TypeDecl type = type(); if(type.isRawType() && type.isNestedType() && type.enclosingType().isParameterizedType() && !type.enclosingType().isRawType()) error("Can not access a member type of a paramterized type as a raw type"); } /** * @ast method * @aspect Transformations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Transformations.jrag:44 */ public void transformation() { super.transformation(); if(type().elementType().isNestedType() && hostType() != null) hostType().addUsedNestedType(type().elementType()); } /** * @ast method * */ public TypeAccess() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { } /** * @ast method * */ public TypeAccess(String p0, String p1) { setPackage(p0); setID(p1); } /** * @ast method * */ public TypeAccess(beaver.Symbol p0, beaver.Symbol p1) { setPackage(p0); setID(p1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 0; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the lexeme Package. * @param value The new value for the lexeme Package. * @apilevel high-level * @ast method * */ public void setPackage(String value) { tokenString_Package = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_Package; /** * @ast method * */ public int Packagestart; /** * @ast method * */ public int Packageend; /** * JastAdd-internal setter for lexeme Package using the Beaver parser. * @apilevel internal * @ast method * */ public void setPackage(beaver.Symbol symbol) { if(symbol.value != null && !(symbol.value instanceof String)) throw new UnsupportedOperationException("setPackage is only valid for String lexemes"); tokenString_Package = (String)symbol.value; Packagestart = symbol.getStart(); Packageend = symbol.getEnd(); } /** * Retrieves the value for the lexeme Package. * @return The value for the lexeme Package. * @apilevel high-level * @ast method * */ public String getPackage() { return tokenString_Package != null ? tokenString_Package : ""; } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * */ public int IDstart; /** * @ast method * */ public int IDend; /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * @ast method * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:238 */ private TypeDecl refined_TypeScopePropagation_TypeAccess_decl() { SimpleSet decls = decls(); if(decls.size() == 1) { return (TypeDecl)decls.iterator().next(); } return unknownType(); } /** * @apilevel internal */ protected boolean decls_computed = false; /** * @apilevel internal */ protected SimpleSet decls_value; /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:223 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet decls() { if(decls_computed) { return decls_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); decls_value = decls_compute(); if(isFinal && num == state().boundariesCrossed) decls_computed = true; return decls_value; } /** * @apilevel internal */ private SimpleSet decls_compute() { if(packageName().equals("")) return lookupType(name()); else { TypeDecl typeDecl = lookupType(packageName(), name()); if(typeDecl != null) return SimpleSet.emptySet.add(typeDecl); return SimpleSet.emptySet; } } /** * @apilevel internal */ protected boolean decl_computed = false; /** * @apilevel internal */ protected TypeDecl decl_value; /** * @attribute syn * @aspect GenericsTypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:290 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl decl() { if(decl_computed) { return decl_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); decl_value = decl_compute(); if(isFinal && num == state().boundariesCrossed) decl_computed = true; return decl_value; } /** * @apilevel internal */ private TypeDecl decl_compute() { TypeDecl decl = refined_TypeScopePropagation_TypeAccess_decl(); if(decl instanceof GenericTypeDecl && isRaw()) return ((GenericTypeDecl)decl).lookupParTypeDecl(new ArrayList()); return decl; } /** * @attribute syn * @aspect VariableScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:148 */ public SimpleSet qualifiedLookupVariable(String name) { ASTNode$State state = state(); try { if(type().accessibleFrom(hostType())) { SimpleSet c = type().memberFields(name); c = keepAccessibleFields(c); if(type().isClassDecl() && c.size() == 1) c = removeInstanceVariables(c); return c; } return SimpleSet.emptySet; } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:800 */ public String dumpString() { ASTNode$State state = state(); try { return getClass().getName() + " [" + getPackage() + ", " + getID() + "]"; } finally { } } /** * @attribute syn * @aspect Names * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:21 */ public String name() { ASTNode$State state = state(); try { return getID(); } finally { } } /** * @attribute syn * @aspect Names * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:25 */ public String packageName() { ASTNode$State state = state(); try { return getPackage(); } finally { } } /** * @attribute syn * @aspect Names * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:49 */ public String nameWithPackage() { ASTNode$State state = state(); try { return getPackage().equals("") ? name() : (getPackage() + "." + name()); } finally { } } /** * @attribute syn * @aspect Names * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:62 */ public String typeName() { ASTNode$State state = state(); try { return isQualified() ? (qualifier().typeName() + "." + name()) : nameWithPackage(); } finally { } } /** * @attribute syn * @aspect AccessTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ResolveAmbiguousNames.jrag:13 */ public boolean isTypeAccess() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect SyntacticClassification * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:56 */ public NameType predNameType() { ASTNode$State state = state(); try { return NameType.PACKAGE_OR_TYPE_NAME; } finally { } } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:279 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return decl(); } /** * @attribute syn * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:150 */ public boolean staticContextQualifier() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1056 */ public boolean usesTypeVariable() { ASTNode$State state = state(); try { return decl().usesTypeVariable() || super.usesTypeVariable(); } finally { } } /** * Builds a copy of this Access node where all occurrences * of type variables in the original type parameter list have been replaced * by the substitution type parameters. * * @return the substituted Access node * @attribute syn * @aspect TypeInference * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TypeInference.jrag:406 */ public Access substituted(Collection<TypeVariable> original, List<TypeVariable> substitution) { ASTNode$State state = state(); try { TypeDecl decl = decl(); int i = 0; for (TypeVariable typeVar : original) { if (typeVar == decl) return new TypeAccess(substitution.getChild(i).getID()); i += 1; } return super.substituted(original, substitution); } finally { } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
17,541
26.196899
150
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TypeDecl.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import soot.Local; import soot.RefType; import soot.Scene; import soot.SootClass; import soot.SootField; import soot.SootMethod; import soot.SootMethodRef; import soot.SootResolver; import soot.Type; import soot.jimple.Jimple; import soot.jimple.JimpleBody; /** * @production TypeDecl : {@link ASTNode} ::= * <span class="component">{@link Modifiers}</span> * <span class="component">&lt;ID:String&gt;</span> * <span class="component">{@link BodyDecl}*</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:41 */ public abstract class TypeDecl extends ASTNode<ASTNode> implements Cloneable, SimpleSet, Iterator, VariableScope { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); accessibleFromPackage_String_values = null; accessibleFromExtend_TypeDecl_values = null; accessibleFrom_TypeDecl_values = null; dimension_computed = false; elementType_computed = false; elementType_value = null; arrayType_computed = false; arrayType_value = null; isException_computed = false; isCheckedException_computed = false; isUncheckedException_computed = false; mayCatch_TypeDecl_values = null; constructors_computed = false; constructors_value = null; unqualifiedLookupMethod_String_values = null; methodsNameMap_computed = false; methodsNameMap_value = null; localMethodsSignatureMap_computed = false; localMethodsSignatureMap_value = null; methodsSignatureMap_computed = false; methodsSignatureMap_value = null; ancestorMethods_String_values = null; localTypeDecls_String_values = null; memberTypes_String_values = null; localFields_String_values = null; localFieldsMap_computed = false; localFieldsMap_value = null; memberFieldsMap_computed = false; memberFieldsMap_value = null; memberFields_String_values = null; hasAbstract_computed = false; unimplementedMethods_computed = false; unimplementedMethods_value = null; isPublic_computed = false; isStatic_computed = false; fullName_computed = false; fullName_value = null; typeName_computed = false; typeName_value = null; narrowingConversionTo_TypeDecl_values = null; methodInvocationConversionTo_TypeDecl_values = null; castingConversionTo_TypeDecl_values = null; isString_computed = false; isObject_computed = false; instanceOf_TypeDecl_values = null; isCircular_visited = -1; isCircular_computed = false; isCircular_initialized = false; boxed_computed = false; boxed_value = null; unboxed_computed = false; unboxed_value = null; isIterable_computed = false; involvesTypeParameters_visited = -1; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; erasure_computed = false; erasure_value = null; implementedInterfaces_computed = false; implementedInterfaces_value = null; usesTypeVariable_visited = -1; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; sourceTypeDecl_computed = false; sourceTypeDecl_value = null; containedIn_TypeDecl_values = null; sameStructure_TypeDecl_values = null; subtype_TypeDecl_values = null; enclosingVariables_computed = false; enclosingVariables_value = null; uniqueIndex_computed = false; jvmName_computed = false; jvmName_value = null; getSootClassDecl_computed = false; getSootClassDecl_value = null; getSootType_computed = false; getSootType_value = null; sootClass_computed = false; sootClass_value = null; needsClinit_computed = false; innerClassesAttributeEntries_computed = false; innerClassesAttributeEntries_value = null; getSootField_String_TypeDecl_values = null; createEnumMethod_TypeDecl_values = null; createEnumIndex_EnumConstant_values = null; createEnumArray_TypeDecl_values = null; componentType_computed = false; componentType_value = null; isDAbefore_Variable_values = null; isDUbefore_Variable_values = null; typeException_computed = false; typeException_value = null; typeRuntimeException_computed = false; typeRuntimeException_value = null; typeError_computed = false; typeError_value = null; lookupMethod_String_values = null; typeObject_computed = false; typeObject_value = null; lookupType_String_values = null; lookupVariable_String_values = null; packageName_computed = false; packageName_value = null; isAnonymous_computed = false; unknownType_computed = false; unknownType_value = null; inExplicitConstructorInvocation_computed = false; inStaticContext_computed = false; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl clone() throws CloneNotSupportedException { TypeDecl node = (TypeDecl) super.clone(); node.accessibleFromPackage_String_values = null; node.accessibleFromExtend_TypeDecl_values = null; node.accessibleFrom_TypeDecl_values = null; node.dimension_computed = false; node.elementType_computed = false; node.elementType_value = null; node.arrayType_computed = false; node.arrayType_value = null; node.isException_computed = false; node.isCheckedException_computed = false; node.isUncheckedException_computed = false; node.mayCatch_TypeDecl_values = null; node.constructors_computed = false; node.constructors_value = null; node.unqualifiedLookupMethod_String_values = null; node.methodsNameMap_computed = false; node.methodsNameMap_value = null; node.localMethodsSignatureMap_computed = false; node.localMethodsSignatureMap_value = null; node.methodsSignatureMap_computed = false; node.methodsSignatureMap_value = null; node.ancestorMethods_String_values = null; node.localTypeDecls_String_values = null; node.memberTypes_String_values = null; node.localFields_String_values = null; node.localFieldsMap_computed = false; node.localFieldsMap_value = null; node.memberFieldsMap_computed = false; node.memberFieldsMap_value = null; node.memberFields_String_values = null; node.hasAbstract_computed = false; node.unimplementedMethods_computed = false; node.unimplementedMethods_value = null; node.isPublic_computed = false; node.isStatic_computed = false; node.fullName_computed = false; node.fullName_value = null; node.typeName_computed = false; node.typeName_value = null; node.narrowingConversionTo_TypeDecl_values = null; node.methodInvocationConversionTo_TypeDecl_values = null; node.castingConversionTo_TypeDecl_values = null; node.isString_computed = false; node.isObject_computed = false; node.instanceOf_TypeDecl_values = null; node.isCircular_visited = -1; node.isCircular_computed = false; node.isCircular_initialized = false; node.boxed_computed = false; node.boxed_value = null; node.unboxed_computed = false; node.unboxed_value = null; node.isIterable_computed = false; node.involvesTypeParameters_visited = -1; node.involvesTypeParameters_computed = false; node.involvesTypeParameters_initialized = false; node.erasure_computed = false; node.erasure_value = null; node.implementedInterfaces_computed = false; node.implementedInterfaces_value = null; node.usesTypeVariable_visited = -1; node.usesTypeVariable_computed = false; node.usesTypeVariable_initialized = false; node.sourceTypeDecl_computed = false; node.sourceTypeDecl_value = null; node.containedIn_TypeDecl_values = null; node.sameStructure_TypeDecl_values = null; node.subtype_TypeDecl_values = null; node.enclosingVariables_computed = false; node.enclosingVariables_value = null; node.uniqueIndex_computed = false; node.jvmName_computed = false; node.jvmName_value = null; node.getSootClassDecl_computed = false; node.getSootClassDecl_value = null; node.getSootType_computed = false; node.getSootType_value = null; node.sootClass_computed = false; node.sootClass_value = null; node.needsClinit_computed = false; node.innerClassesAttributeEntries_computed = false; node.innerClassesAttributeEntries_value = null; node.getSootField_String_TypeDecl_values = null; node.createEnumMethod_TypeDecl_values = null; node.createEnumIndex_EnumConstant_values = null; node.createEnumArray_TypeDecl_values = null; node.componentType_computed = false; node.componentType_value = null; node.isDAbefore_Variable_values = null; node.isDUbefore_Variable_values = null; node.typeException_computed = false; node.typeException_value = null; node.typeRuntimeException_computed = false; node.typeRuntimeException_value = null; node.typeError_computed = false; node.typeError_value = null; node.lookupMethod_String_values = null; node.typeObject_computed = false; node.typeObject_value = null; node.lookupType_String_values = null; node.lookupVariable_String_values = null; node.packageName_computed = false; node.packageName_value = null; node.isAnonymous_computed = false; node.unknownType_computed = false; node.unknownType_value = null; node.inExplicitConstructorInvocation_computed = false; node.inStaticContext_computed = false; node.in$Circle(false); node.is$Final(false); return node; } /** * @ast method * @aspect AnonymousClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AnonymousClasses.jrag:28 */ public int anonymousIndex = 0; /** * @ast method * @aspect AnonymousClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AnonymousClasses.jrag:45 */ public int nextAnonymousIndex() { if (isNestedType()) return enclosingType().nextAnonymousIndex(); return anonymousIndex++; } /** * @ast method * @aspect BoundNames * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BoundNames.jrag:24 */ public MethodDecl addMemberMethod(MethodDecl m) { addBodyDecl(m); return (MethodDecl) getBodyDecl(getNumBodyDecl() - 1); /* * HashMap map = methodsNameMap(); ArrayList list = * (ArrayList)map.get(m.name()); if(list == null) { list = new * ArrayList(4); map.put(m.name(), list); } list.add(m); * if(!memberMethods(m.name()).contains(m)) throw new * Error("The method " + m.signature() + " added to " + typeName() + * " can not be found using lookupMemberMethod"); */ } /** * @ast method * @aspect BoundNames * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BoundNames.jrag:40 */ public ConstructorDecl addConstructor(ConstructorDecl c) { addBodyDecl(c); return (ConstructorDecl) getBodyDecl(getNumBodyDecl() - 1); } /** * @ast method * @aspect BoundNames * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BoundNames.jrag:45 */ public ClassDecl addMemberClass(ClassDecl c) { addBodyDecl(new MemberClassDecl(c)); return ((MemberClassDecl) getBodyDecl(getNumBodyDecl() - 1)).getClassDecl(); } /** * @ast method * @aspect BoundNames * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BoundNames.jrag:52 */ public FieldDeclaration addMemberField(FieldDeclaration f) { addBodyDecl(f); return (FieldDeclaration) getBodyDecl(getNumBodyDecl() - 1); // if(!memberFields(f.name()).contains(f)) // throw new Error("The field " + f.name() + " added to " + typeName() + // " can not be found using lookupMemberField"); } /** * @ast method * @aspect BoundNames * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BoundNames.jrag:90 */ public TypeAccess createBoundAccess() { return new BoundTypeAccess("", name(), this); } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:136 */ public SimpleSet add(Object o) { return new SimpleSetImpl().add(this).add(o); } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:140 */ public boolean isSingleton() { return true; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:141 */ public boolean isSingleton(Object o) { return contains(o); } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:144 */ private TypeDecl iterElem; /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:145 */ public Iterator iterator() { iterElem = this; return this; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:146 */ public boolean hasNext() { return iterElem != null; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:147 */ public Object next() { Object o = iterElem; iterElem = null; return o; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:148 */ public void remove() { throw new UnsupportedOperationException(); } /** * @ast method * @aspect DeclareBeforeUse * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DeclareBeforeUse.jrag:41 */ public boolean declaredBeforeUse(Variable decl, ASTNode use) { int indexDecl = ((ASTNode) decl).varChildIndex(this); int indexUse = use.varChildIndex(this); return indexDecl < indexUse; } /** * @ast method * @aspect DeclareBeforeUse * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DeclareBeforeUse.jrag:46 */ public boolean declaredBeforeUse(Variable decl, int indexUse) { int indexDecl = ((ASTNode) decl).varChildIndex(this); return indexDecl < indexUse; } /** * @ast method * @aspect ConstructorLookup * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupConstructor.jrag:88 */ public ConstructorDecl lookupConstructor(ConstructorDecl signature) { for (Iterator iter = constructors().iterator(); iter.hasNext();) { ConstructorDecl decl = (ConstructorDecl) iter.next(); if (decl.sameSignature(signature)) { return decl; } } return null; } /** * @return true if the method access may access the method * @ast method * @aspect MethodDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:189 */ public boolean mayAccess(MethodAccess access, MethodDecl method) { if (instanceOf(method.hostType()) && access.qualifier().type().instanceOf(this)) return true; if (isNestedType()) return enclosingType().mayAccess(access, method); else return false; } /** * @ast method * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:231 */ public Iterator localMethodsIterator() { return new Iterator() { private Iterator outer = localMethodsSignatureMap().values().iterator(); private Iterator inner = null; public boolean hasNext() { if ((inner == null || !inner.hasNext()) && outer.hasNext()) inner = ((SimpleSet) outer.next()).iterator(); return inner == null ? false : inner.hasNext(); } public Object next() { return inner.next(); } public void remove() { throw new UnsupportedOperationException(); } }; // return localMethodsSignatureMap().values().iterator(); } /** * @ast method * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:299 */ public Iterator methodsIterator() { return new Iterator() { private Iterator outer = methodsSignatureMap().values().iterator(); private Iterator inner = null; public boolean hasNext() { if ((inner == null || !inner.hasNext()) && outer.hasNext()) inner = ((SimpleSet) outer.next()).iterator(); return inner != null ? inner.hasNext() : false; } public Object next() { return inner.next(); } public void remove() { throw new UnsupportedOperationException(); } }; } /** * @ast method * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:364 */ protected boolean allMethodsAbstract(SimpleSet set) { if (set == null) return true; for (Iterator iter = set.iterator(); iter.hasNext();) { MethodDecl m = (MethodDecl) iter.next(); if (!m.isAbstract()) return false; } return true; } /** * @return true if the expression may access the field * @ast method * @aspect VariableScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:213 */ public boolean mayAccess(Expr expr, FieldDeclaration field) { if (instanceOf(field.hostType())) { if (!field.isInstanceVariable() || expr.isSuperAccess() || expr.type().instanceOf(this)) return true; } if (isNestedType()) { return enclosingType().mayAccess(expr, field); } else { return false; } } /** * @ast method * @aspect Fields * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:315 */ public Iterator fieldsIterator() { return new Iterator() { private Iterator outer = memberFieldsMap().values().iterator(); private Iterator inner = null; public boolean hasNext() { if ((inner == null || !inner.hasNext()) && outer.hasNext()) inner = ((SimpleSet) outer.next()).iterator(); return inner != null ? inner.hasNext() : false; } public Object next() { return inner.next(); } public void remove() { throw new UnsupportedOperationException(); } }; } /** * @ast method * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:68 */ public void checkModifiers() { super.checkModifiers(); // 8.1.1 if (isPublic() && !isTopLevelType() && !isMemberType()) error("public pertains only to top level types and member types"); // 8.1.1 if ((isProtected() || isPrivate()) && !(isMemberType() && enclosingType().isClassDecl())) error("protected and private may only be used on member types within a directly enclosing class declaration"); // 8.1.1 if (isStatic() && !isMemberType()) error("static pertains only to member types"); // 8.4.3.1 // 8.1.1.1 if (!isAbstract() && hasAbstract()) { StringBuffer s = new StringBuffer(); s.append("" + name() + " is not declared abstract but contains abstract members: \n"); for (Iterator iter = unimplementedMethods().iterator(); iter.hasNext();) { MethodDecl m = (MethodDecl) iter.next(); s.append(" " + m.signature() + " in " + m.hostType().typeName() + "\n"); } error(s.toString()); } } /** * @ast method * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:251 */ public void nameCheck() { if (isTopLevelType() && lookupType(packageName(), name()) != this) error("duplicate type " + name() + " in package " + packageName()); if (!isTopLevelType() && !isAnonymous() && !isLocalClass() && extractSingleType(enclosingType().memberTypes(name())) != this) error("duplicate member type " + name() + " in type " + enclosingType().typeName()); // 14.3 if (isLocalClass()) { TypeDecl typeDecl = extractSingleType(lookupType(name())); if (typeDecl != null && typeDecl != this && typeDecl.isLocalClass() && enclosingBlock() == typeDecl.enclosingBlock()) error("local class named " + name() + " may not be redeclared as a local class in the same block"); } if (!packageName().equals("") && hasPackage(fullName())) error("type name conflicts with a package using the same name: " + name()); // 8.1 & 9.1 if (hasEnclosingTypeDecl(name())) { error("type may not have the same simple name as an enclosing type declaration"); } } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:62 */ protected void ppBodyDecls(StringBuffer s) { s.append(" {"); for (int i = 0; i < getNumBodyDecl(); i++) { getBodyDecl(i).toString(s); } s.append(indent() + "}"); } /** * @ast method * @aspect CreateQualifiedAccesses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:96 */ public Access createQualifiedAccess() { if (isLocalClass() || isAnonymous()) { return new TypeAccess(name()); } else if (!isTopLevelType()) { return enclosingType().createQualifiedAccess().qualifiesAccess(new TypeAccess(name())); } else { return new TypeAccess(packageName(), name()); } } /** * @ast method * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:234 */ public FieldDeclaration findSingleVariable(String name) { return (FieldDeclaration) memberFields(name).iterator().next(); } /** * @ast method * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:157 */ public void refined_TypeHierarchyCheck_TypeDecl_typeCheck() { // 8.4.6.4 & 9.4.1 for (Iterator iter1 = localMethodsIterator(); iter1.hasNext();) { MethodDecl m = (MethodDecl) iter1.next(); ASTNode target = m.hostType() == this ? (ASTNode) m : (ASTNode) this; // for(Iterator i2 = overrides(m).iterator(); i2.hasNext(); ) { for (Iterator i2 = ancestorMethods(m.signature()).iterator(); i2.hasNext();) { MethodDecl decl = (MethodDecl) i2.next(); if (m.overrides(decl)) { // 8.4.6.1 if (!m.isStatic() && decl.isStatic()) target.error("an instance method may not override a static method"); // regardless of overriding // 8.4.6.3 if (!m.mayOverrideReturn(decl)) target.error("the return type of method " + m.signature() + " in " + m.hostType().typeName() + " does not match the return type of method " + decl.signature() + " in " + decl.hostType().typeName() + " and may thus not be overriden"); // regardless of overriding // 8.4.4 for (int i = 0; i < m.getNumException(); i++) { Access e = m.getException(i); boolean found = false; for (int j = 0; !found && j < decl.getNumException(); j++) { if (e.type().instanceOf(decl.getException(j).type())) found = true; } if (!found && e.type().isUncheckedException()) target.error(m.signature() + " in " + m.hostType().typeName() + " may not throw more checked exceptions than overridden method " + decl.signature() + " in " + decl.hostType().typeName()); } // 8.4.6.3 if (decl.isPublic() && !m.isPublic()) target.error("overriding access modifier error"); // 8.4.6.3 if (decl.isProtected() && !(m.isPublic() || m.isProtected())) target.error("overriding access modifier error"); // 8.4.6.3 if ((!decl.isPrivate() && !decl.isProtected() && !decl.isPublic()) && m.isPrivate()) target.error("overriding access modifier error"); // regardless of overriding if (decl.isFinal()) target.error("method " + m.signature() + " in " + hostType().typeName() + " can not override final method " + decl.signature() + " in " + decl.hostType().typeName()); } if (m.hides(decl)) { // 8.4.6.2 if (m.isStatic() && !decl.isStatic()) target.error("a static method may not hide an instance method"); // 8.4.6.3 if (!m.mayOverrideReturn(decl)) target.error("can not hide a method with a different return type"); // 8.4.4 for (int i = 0; i < m.getNumException(); i++) { Access e = m.getException(i); boolean found = false; for (int j = 0; !found && j < decl.getNumException(); j++) { if (e.type().instanceOf(decl.getException(j).type())) found = true; } if (!found) target.error("may not throw more checked exceptions than hidden method"); } // 8.4.6.3 if (decl.isPublic() && !m.isPublic()) target.error("hiding access modifier error: public method " + decl.signature() + " in " + decl.hostType().typeName() + " is hidden by non public method " + m.signature() + " in " + m.hostType().typeName()); // 8.4.6.3 if (decl.isProtected() && !(m.isPublic() || m.isProtected())) target.error("hiding access modifier error: protected method " + decl.signature() + " in " + decl.hostType().typeName() + " is hidden by non (public|protected) method " + m.signature() + " in " + m.hostType().typeName()); // 8.4.6.3 if ((!decl.isPrivate() && !decl.isProtected() && !decl.isPublic()) && m.isPrivate()) target.error("hiding access modifier error: default method " + decl.signature() + " in " + decl.hostType().typeName() + " is hidden by private method " + m.signature() + " in " + m.hostType().typeName()); if (decl.isFinal()) target.error("method " + m.signature() + " in " + hostType().typeName() + " can not hide final method " + decl.signature() + " in " + decl.hostType().typeName()); } } } } /** * @ast method * @aspect Generics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:184 */ public TypeDecl makeGeneric(Signatures.ClassSignature s) { return this; } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:835 */ public TypeDecl substitute(TypeVariable typeVariable) { if (isTopLevelType()) return typeVariable; return enclosingType().substitute(typeVariable); } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:873 */ public Access substitute(Parameterization parTypeDecl) { if (parTypeDecl instanceof ParTypeDecl && ((ParTypeDecl) parTypeDecl).genericDecl() == this) return ((TypeDecl) parTypeDecl).createBoundAccess(); if (isTopLevelType()) return createBoundAccess(); return enclosingType().substitute(parTypeDecl).qualifiesAccess(new TypeAccess(name())); } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:913 */ public Access substituteReturnType(Parameterization parTypeDecl) { return substitute(parTypeDecl); } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:957 */ public Access substituteParameterType(Parameterization parTypeDecl) { return substitute(parTypeDecl); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:12 */ public boolean hasField(String name) { if (!memberFields(name).isEmpty()) return true; for (int i = 0; i < getNumBodyDecl(); i++) { if (getBodyDecl(i) instanceof FieldDeclaration) { FieldDeclaration decl = (FieldDeclaration) getBodyDecl(i); if (decl.name().equals(name)) return true; } } return false; } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:36 */ public boolean hasMethod(String id) { if (!memberMethods(id).isEmpty()) return true; for (int i = 0; i < getNumBodyDecl(); i++) { if (getBodyDecl(i) instanceof MethodDecl) { MethodDecl decl = (MethodDecl) getBodyDecl(i); if (decl.name().equals(id)) return true; } } return false; } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:124 */ // The set of TypeDecls that has this TypeDecl as their directly enclosing // TypeDecl. // I.e., NestedTypes, InnerTypes, AnonymousClasses, LocalClasses. private Collection nestedTypes; /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:125 */ public Collection nestedTypes() { return nestedTypes != null ? nestedTypes : new HashSet(); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:128 */ public void addNestedType(TypeDecl typeDecl) { if (nestedTypes == null) nestedTypes = new HashSet(); if (typeDecl != this) nestedTypes.add(typeDecl); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:135 */ // The set of nested TypeDecls that are accessed in this TypeDecl private Collection usedNestedTypes; /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:136 */ public Collection usedNestedTypes() { return usedNestedTypes != null ? usedNestedTypes : new HashSet(); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:139 */ public void addUsedNestedType(TypeDecl typeDecl) { if (usedNestedTypes == null) usedNestedTypes = new HashSet(); usedNestedTypes.add(typeDecl); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:170 */ public int accessorCounter = 0; /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:172 */ private HashMap accessorMap = null; /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:173 */ public ASTNode getAccessor(ASTNode source, String name) { ArrayList key = new ArrayList(2); key.add(source); key.add(name); if (accessorMap == null || !accessorMap.containsKey(key)) return null; return (ASTNode) accessorMap.get(key); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:181 */ public void addAccessor(ASTNode source, String name, ASTNode accessor) { ArrayList key = new ArrayList(2); key.add(source); key.add(name); if (accessorMap == null) accessorMap = new HashMap(); accessorMap.put(key, accessor); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:189 */ public ASTNode getAccessorSource(ASTNode accessor) { Iterator i = accessorMap.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry) i.next(); if (entry.getValue() == accessor) return (ASTNode) ((ArrayList) entry.getKey()).get(0); } return null; } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:442 */ // add val$name as fields to the class private boolean addEnclosingVariables = true; /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:443 */ public void addEnclosingVariables() { if (!addEnclosingVariables) return; addEnclosingVariables = false; for (Iterator iter = enclosingVariables().iterator(); iter.hasNext();) { Variable v = (Variable) iter.next(); Modifiers m = new Modifiers(); m.addModifier(new Modifier("public")); m.addModifier(new Modifier("synthetic")); m.addModifier(new Modifier("final")); addMemberField(new FieldDeclaration(m, v.type().createQualifiedAccess(), "val$" + v.name(), new Opt())); } } /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:11 */ int uniqueIndexCounter = 1; /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:65 */ // lazily build a static field for assertionsDisabled private FieldDeclaration createAssertionsDisabled = null; /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:66 */ public FieldDeclaration createAssertionsDisabled() { if (createAssertionsDisabled != null) return createAssertionsDisabled; // static final boolean $assertionsDisabled = // !TypeName.class.desiredAssertionStatus(); createAssertionsDisabled = new FieldDeclaration( new Modifiers( new List().add(new Modifier("public")).add(new Modifier("static")).add(new Modifier("final"))), new PrimitiveTypeAccess("boolean"), "$assertionsDisabled", new Opt(new LogNotExpr(topLevelType().createQualifiedAccess().qualifiesAccess( new ClassAccess().qualifiesAccess(new MethodAccess("desiredAssertionStatus", new List())))))); getBodyDeclList().insertChild(createAssertionsDisabled, 0); // explicit read to trigger possible rewrites createAssertionsDisabled = (FieldDeclaration) getBodyDeclList().getChild(0); // transform the generated initalization, e.g., the ClassAccess // construct createAssertionsDisabled.transformation(); return createAssertionsDisabled; } /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:119 */ // lazily build a static field for each typename used in a .class expression private HashMap createStaticClassField = null; /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:120 */ public FieldDeclaration createStaticClassField(String name) { if (createStaticClassField == null) createStaticClassField = new HashMap(); if (createStaticClassField.containsKey(name)) return (FieldDeclaration) createStaticClassField.get(name); // static synthetic Class class$java$lang$String; FieldDeclaration f = new FieldDeclaration( new Modifiers(new List().add(new Modifier("public")).add(new Modifier("static"))), lookupType("java.lang", "Class").createQualifiedAccess(), name, new Opt()) { public boolean isConstant() { return true; } }; createStaticClassField.put(name, f); return addMemberField(f); } /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:141 */ // lazily build a static class$ method in this type declaration private MethodDecl createStaticClassMethod = null; /** * @ast method * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:142 */ public MethodDecl createStaticClassMethod() { if (createStaticClassMethod != null) return createStaticClassMethod; // static synthetic Class class$(String name) { // try { // return java.lang.Class.forName(name); // } catch(java.lang.ClassNotFoundException e) { // throw new java.lang.NoClassDefFoundError(e.getMessage()); // } // } createStaticClassMethod = new MethodDecl( new Modifiers(new List().add(new Modifier("public")).add(new Modifier("static"))), lookupType("java.lang", "Class").createQualifiedAccess(), "class$", new List().add(new ParameterDeclaration(new Modifiers(new List()), lookupType("java.lang", "String").createQualifiedAccess(), "name")), new List(), new Opt(new Block( new List().add(new TryStmt( new Block(new List().add( new ReturnStmt(new Opt(lookupType("java.lang", "Class").createQualifiedAccess() .qualifiesAccess(new MethodAccess("forName", new List().add(new VarAccess("name")))))))), new List().add(new BasicCatch( new ParameterDeclaration( new Modifiers(new List()), lookupType("java.lang", "ClassNotFoundException") .createQualifiedAccess(), "e"), new Block(new List().add(new ThrowStmt(new ClassInstanceExpr( lookupType("java.lang", "NoClassDefFoundError").createQualifiedAccess(), new List().add(new VarAccess("e") .qualifiesAccess(new MethodAccess("getMessage", new List()))), new Opt())))))), new Opt()))))) { public boolean isConstant() { return true; } }; return addMemberMethod(createStaticClassMethod); } /** * @ast method * @aspect Transformations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Transformations.jrag:27 */ public void transformation() { addEnclosingVariables(); super.transformation(); if (isNestedType()) enclosingType().addNestedType(this); } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:143 */ public SootMethod clinit = null; /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:145 */ public void jimplify1phase2() { if (needsClinit() && !getSootClassDecl().declaresMethod("<clinit>", new ArrayList())) { clinit = Scene.v().makeSootMethod("<clinit>", new ArrayList(), soot.VoidType.v(), soot.Modifier.STATIC, new ArrayList()); getSootClassDecl().addMethod(clinit); } for (Iterator iter = nestedTypes().iterator(); iter.hasNext();) { TypeDecl typeDecl = (TypeDecl) iter.next(); typeDecl.jimplify1phase2(); } for (int i = 0; i < getNumBodyDecl(); i++) if (getBodyDecl(i).generate()) getBodyDecl(i).jimplify1phase2(); addAttributes(); } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:434 */ public soot.Value emitCastTo(Body b, soot.Value v, TypeDecl type, ASTNode location) { if (this == type) return v; if (isReferenceType() && type.isReferenceType() && instanceOf(type)) return v; if ((isLong() || this instanceof FloatingPointType) && type.isIntegralType()) { v = b.newCastExpr(asImmediate(b, v), typeInt().getSootType(), location); return typeInt().emitCastTo(b, v, type, location); } return b.newCastExpr(asImmediate(b, v), type.getSootType(), location); } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:903 */ public void jimplify2clinit() { SootMethod m = clinit; JimpleBody body = Jimple.v().newBody(m); m.setActiveBody(body); Body b = new Body(this, body, this); for (int i = 0; i < getNumBodyDecl(); i++) { BodyDecl bodyDecl = getBodyDecl(i); if (bodyDecl instanceof FieldDeclaration && bodyDecl.generate()) { FieldDeclaration f = (FieldDeclaration) bodyDecl; if (f.isStatic() && f.hasInit()) { Local l = asLocal(b, f.getInit().type().emitCastTo(b, f.getInit(), f.type()), // AssignConversion f.type().getSootType()); b.setLine(f); b.add(b.newAssignStmt(b.newStaticFieldRef(f.sootRef(), f), l, f)); } } else if (bodyDecl instanceof StaticInitializer && bodyDecl.generate()) { bodyDecl.jimplify2(b); } } b.add(b.newReturnVoidStmt(null)); } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:932 */ public void jimplify2() { super.jimplify2(); if (clinit != null) jimplify2clinit(); for (Iterator iter = nestedTypes().iterator(); iter.hasNext();) { TypeDecl typeDecl = (TypeDecl) iter.next(); typeDecl.jimplify2(); } // add inner class attribute ArrayList tags = new ArrayList(); for (Iterator iter = innerClassesAttributeEntries().iterator(); iter.hasNext();) { TypeDecl type = (TypeDecl) iter.next(); tags.add(new soot.tagkit.InnerClassTag(type.jvmName().replace('.', '/'), type.isMemberType() ? type.enclosingType().jvmName().replace('.', '/') : null, type.isAnonymous() ? null : type.name(), type.sootTypeModifiers())); } if (!tags.isEmpty()) getSootClassDecl().addTag(new soot.tagkit.InnerClassAttribute(tags)); addAttributes(); getSootClassDecl().setResolvingLevel(SootClass.BODIES); } /** * @ast method * @aspect AnnotationsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/AnnotationsCodegen.jrag:20 */ public void addAttributes() { super.addAttributes(); ArrayList c = new ArrayList(); getModifiers().addRuntimeVisibleAnnotationsAttribute(c); getModifiers().addRuntimeInvisibleAnnotationsAttribute(c); getModifiers().addSourceOnlyAnnotations(c); for (Iterator iter = c.iterator(); iter.hasNext();) { soot.tagkit.Tag tag = (soot.tagkit.Tag) iter.next(); getSootClassDecl().addTag(tag); } } /** * @ast method * @aspect AutoBoxingCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/AutoBoxingCodegen.jrag:57 */ protected soot.Value emitBoxingOperation(Body b, soot.Value v, ASTNode location) { // Box the value on the stack into this Reference type ArrayList parameters = new ArrayList(); parameters.add(unboxed().getSootType()); SootMethodRef ref = Scene.v().makeMethodRef(getSootClassDecl(), "valueOf", parameters, getSootType(), true); ArrayList args = new ArrayList(); args.add(asLocal(b, v)); return b.newStaticInvokeExpr(ref, args, location); } /** * @ast method * @aspect AutoBoxingCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/AutoBoxingCodegen.jrag:83 */ protected soot.Value emitUnboxingOperation(Body b, soot.Value v, ASTNode location) { // Unbox the value on the stack from this Reference type SootMethodRef ref = Scene.v().makeMethodRef(getSootClassDecl(), unboxed().name() + "Value", new ArrayList(), unboxed().getSootType(), false); return b.newVirtualInvokeExpr(asLocal(b, v), ref, new ArrayList(), location); } /** * @ast method * @aspect EnumsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/EnumsCodegen.jrag:85 */ // compute index of enum constants private HashMap createEnumIndexMap = null; /** * @ast method * */ public TypeDecl() { super(); } /** * Initializes the child array to the correct size. Initializes List and Opt * nta children. * * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; setChild(new List(), 1); } /** * @ast method * */ public TypeDecl(Modifiers p0, String p1, List<BodyDecl> p2) { setChild(p0, 0); setID(p1); setChild(p2, 1); } /** * @ast method * */ public TypeDecl(Modifiers p0, beaver.Symbol p1, List<BodyDecl> p2) { setChild(p0, 0); setID(p1); setChild(p2, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * * @param node * The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers) getChild(0); } /** * Retrieves the Modifiers child. * <p> * <em>This method does not invoke AST transformations.</em> * </p> * * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers) getChildNoTransform(0); } /** * Replaces the lexeme ID. * * @param value * The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * */ public int IDstart; /** * @ast method * */ public int IDend; /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * * @param list * The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. Calling this * method will not trigger rewrites.. * * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * * @param i * Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({ "unchecked", "cast" }) public BodyDecl getBodyDecl(int i) { return (BodyDecl) getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * * @param node * The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node * {@code node}. * * @param node * The new node to replace the old list element. * @param i * The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p> * <em>This method does not invoke AST transformations.</em> * </p> * * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({ "unchecked", "cast" }) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>) getChild(1); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p> * <em>This method does not invoke AST transformations.</em> * </p> * * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({ "unchecked", "cast" }) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>) getChildNoTransform(1); } /** * @ast method * @aspect GenericsTypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:359 */ public void typeCheck() { refined_TypeHierarchyCheck_TypeDecl_typeCheck(); ArrayList list = new ArrayList(); list.addAll(implementedInterfaces()); for (int i = 0; i < list.size(); i++) { InterfaceDecl decl = (InterfaceDecl) list.get(i); if (decl instanceof ParInterfaceDecl) { ParInterfaceDecl p = (ParInterfaceDecl) decl; for (Iterator i2 = list.listIterator(i); i2.hasNext();) { InterfaceDecl decl2 = (InterfaceDecl) i2.next(); if (decl2 instanceof ParInterfaceDecl) { ParInterfaceDecl q = (ParInterfaceDecl) decl2; if (p != q && p.genericDecl() == q.genericDecl() && !p.sameArgument(q)) error(p.genericDecl().name() + " cannot be inherited with different arguments: " + p.typeName() + " and " + q.typeName()); } } } } } /** * @ast method * @aspect AutoBoxingCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/AutoBoxingCodegen.jrag:42 */ public soot.Value emitCastTo(Body b, Expr expr, TypeDecl type) { if (type instanceof LUBType || type instanceof GLBType || type instanceof AbstractWildcardType) type = typeObject(); else if (expr.isConstant() && isPrimitive() && type.isReferenceType()) return boxed().emitBoxingOperation(b, emitConstant(cast(expr.constant())), expr); else if (expr.isConstant() && !expr.type().isEnumDecl()) { if (type.isPrimitive()) return emitConstant(type.cast(expr.constant())); else return emitConstant(expr.constant()); } return emitCastTo(b, expr.eval(b), type, expr); } /** * @ast method * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:59 */ private boolean refined_TypeConversion_TypeDecl_assignConversionTo_TypeDecl_Expr(TypeDecl type, Expr expr) { // System.out.println("@@@ " + fullName() + " assign conversion to " + // type.fullName() + ", expr: " + expr); boolean sourceIsConstant = expr != null ? expr.isConstant() : false; // System.out.println("@@@ sourceIsConstant: " + sourceIsConstant); if (identityConversionTo(type) || wideningConversionTo(type)) return true; // System.out.println("@@@ narrowing conversion needed"); // System.out.println("@@@ value: " + expr.value()); if (sourceIsConstant && (isInt() || isChar() || isShort() || isByte()) && (type.isByte() || type.isShort() || type.isChar()) && narrowingConversionTo(type) && expr.representableIn(type)) return true; // System.out.println("@@@ false"); return false; } /** * @ast method * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:76 */ private boolean refined_TypeConversion_TypeDecl_methodInvocationConversionTo_TypeDecl(TypeDecl type) { return identityConversionTo(type) || wideningConversionTo(type); } /** * @ast method * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:81 */ private boolean refined_TypeConversion_TypeDecl_castingConversionTo_TypeDecl(TypeDecl type) { return identityConversionTo(type) || wideningConversionTo(type) || narrowingConversionTo(type); } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:32 */ private SootClass refined_EmitJimple_TypeDecl_getSootClassDecl() { if (compilationUnit().fromSource()) { return sootClass(); } else { if (options().verbose()) System.out.println("Loading .class file " + jvmName()); SootClass sc = Scene.v().loadClass(jvmName(), SootClass.SIGNATURES); sc.setLibraryClass(); return sc; } } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:46 */ private Type refined_EmitJimple_TypeDecl_getSootType() { return getSootClassDecl().getType(); } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:65 */ private SootClass refined_EmitJimple_TypeDecl_sootClass() { return null; } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:160 */ public Constant cast(Constant c) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation cast" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:174 */ public Constant plus(Constant c) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation plus" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:183 */ public Constant minus(Constant c) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation minus" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:192 */ public Constant bitNot(Constant c) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation bitNot" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:199 */ public Constant mul(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation mul" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:208 */ public Constant div(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation div" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:217 */ public Constant mod(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation mod" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:226 */ public Constant add(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation add" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:236 */ public Constant sub(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation sub" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:245 */ public Constant lshift(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation lshift" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:252 */ public Constant rshift(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation rshift" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:259 */ public Constant urshift(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation urshift" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:266 */ public Constant andBitwise(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation andBitwise" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:274 */ public Constant xorBitwise(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation xorBitwise" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:282 */ public Constant orBitwise(Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation orBitwise" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:290 */ public Constant questionColon(Constant cond, Constant c1, Constant c2) { ASTNode$State state = state(); try { throw new UnsupportedOperationException( "ConstantExpression operation questionColon" + " not supported for type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:394 */ public boolean eqIsTrue(Expr left, Expr right) { ASTNode$State state = state(); try { System.err.println("Evaluation eqIsTrue for unknown type: " + getClass().getName()); return false; } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:405 */ public boolean ltIsTrue(Expr left, Expr right) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:411 */ public boolean leIsTrue(Expr left, Expr right) { ASTNode$State state = state(); try { return false; } finally { } } protected java.util.Map accessibleFromPackage_String_values; /** * @attribute syn * @aspect AccessControl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AccessControl.jrag:15 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean accessibleFromPackage(String packageName) { Object _parameters = packageName; if (accessibleFromPackage_String_values == null) accessibleFromPackage_String_values = new java.util.HashMap(4); if (accessibleFromPackage_String_values.containsKey(_parameters)) { return ((Boolean) accessibleFromPackage_String_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean accessibleFromPackage_String_value = accessibleFromPackage_compute(packageName); if (isFinal && num == state().boundariesCrossed) accessibleFromPackage_String_values.put(_parameters, Boolean.valueOf(accessibleFromPackage_String_value)); return accessibleFromPackage_String_value; } /** * @apilevel internal */ private boolean accessibleFromPackage_compute(String packageName) { return !isPrivate() && (isPublic() || hostPackage().equals(packageName)); } protected java.util.Map accessibleFromExtend_TypeDecl_values; /** * @attribute syn * @aspect AccessControl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AccessControl.jrag:18 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean accessibleFromExtend(TypeDecl type) { Object _parameters = type; if (accessibleFromExtend_TypeDecl_values == null) accessibleFromExtend_TypeDecl_values = new java.util.HashMap(4); if (accessibleFromExtend_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) accessibleFromExtend_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean accessibleFromExtend_TypeDecl_value = accessibleFromExtend_compute(type); if (isFinal && num == state().boundariesCrossed) accessibleFromExtend_TypeDecl_values.put(_parameters, Boolean.valueOf(accessibleFromExtend_TypeDecl_value)); return accessibleFromExtend_TypeDecl_value; } /** * @apilevel internal */ private boolean accessibleFromExtend_compute(TypeDecl type) { if (type == this) return true; if (isInnerType()) { if (!enclosingType().accessibleFrom(type)) { return false; } } if (isPublic()) return true; else if (isProtected()) { // isProtected implies a nested type if (hostPackage().equals(type.hostPackage())) { return true; } if (type.isNestedType() && type.enclosingType().withinBodyThatSubclasses(enclosingType()) != null) return true; return false; } else if (isPrivate()) { return topLevelType() == type.topLevelType(); } else return hostPackage().equals(type.hostPackage()); } protected java.util.Map accessibleFrom_TypeDecl_values; /** * @attribute syn * @aspect AccessControl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/AccessControl.jrag:44 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean accessibleFrom(TypeDecl type) { Object _parameters = type; if (accessibleFrom_TypeDecl_values == null) accessibleFrom_TypeDecl_values = new java.util.HashMap(4); if (accessibleFrom_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) accessibleFrom_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean accessibleFrom_TypeDecl_value = accessibleFrom_compute(type); if (isFinal && num == state().boundariesCrossed) accessibleFrom_TypeDecl_values.put(_parameters, Boolean.valueOf(accessibleFrom_TypeDecl_value)); return accessibleFrom_TypeDecl_value; } /** * @apilevel internal */ private boolean accessibleFrom_compute(TypeDecl type) { if (type == this) return true; if (isInnerType()) { if (!enclosingType().accessibleFrom(type)) { return false; } } if (isPublic()) { return true; } else if (isProtected()) { if (hostPackage().equals(type.hostPackage())) { return true; } if (isMemberType()) { TypeDecl typeDecl = type; while (typeDecl != null && !typeDecl.instanceOf(enclosingType())) typeDecl = typeDecl.enclosingType(); if (typeDecl != null) { return true; } } return false; } else if (isPrivate()) { return topLevelType() == type.topLevelType(); } else { return hostPackage().equals(type.hostPackage()); } } /** * @apilevel internal */ protected boolean dimension_computed = false; /** * @apilevel internal */ protected int dimension_value; /** * @attribute syn * @aspect Arrays * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Arrays.jrag:11 */ @SuppressWarnings({ "unchecked", "cast" }) public int dimension() { if (dimension_computed) { return dimension_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); dimension_value = dimension_compute(); if (isFinal && num == state().boundariesCrossed) dimension_computed = true; return dimension_value; } /** * @apilevel internal */ private int dimension_compute() { return 0; } /** * @apilevel internal */ protected boolean elementType_computed = false; /** * @apilevel internal */ protected TypeDecl elementType_value; /** * @attribute syn * @aspect Arrays * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Arrays.jrag:15 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl elementType() { if (elementType_computed) { return elementType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); elementType_value = elementType_compute(); if (isFinal && num == state().boundariesCrossed) elementType_computed = true; return elementType_value; } /** * @apilevel internal */ private TypeDecl elementType_compute() { return this; } /** * @apilevel internal */ protected boolean arrayType_computed = false; /** * @apilevel internal */ protected TypeDecl arrayType_value; /** * @attribute syn * @aspect GenericsArrays * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsArrays.jrag:11 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl arrayType() { if (arrayType_computed) { return arrayType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); arrayType_value = arrayType_compute(); arrayType_value.setParent(this); arrayType_value.is$Final = true; if (true) arrayType_computed = true; return arrayType_value; } /** * @apilevel internal */ private TypeDecl arrayType_compute() { String name = name() + "[]"; List body = new List(); body.add(new FieldDeclaration(new Modifiers(new List().add(new Modifier("public")).add(new Modifier("final"))), new PrimitiveTypeAccess("int"), "length", new Opt() // [Init:Expr] )); MethodDecl clone = null; TypeDecl typeObject = typeObject(); for (int i = 0; clone == null && i < typeObject.getNumBodyDecl(); i++) { if (typeObject.getBodyDecl(i) instanceof MethodDecl) { MethodDecl m = (MethodDecl) typeObject.getBodyDecl(i); if (m.name().equals("clone")) clone = m; } } if (clone != null) { body.add( // we create a substituted method that substitutes the clone // method in object // this has the following two consequences: the return value // will be cast to the // expected return type rather than object, and the invoked // method will be the // method in object rather in the array new MethodDeclSubstituted(new Modifiers(new List().add(new Modifier("public"))), new ArrayTypeAccess(createQualifiedAccess()), "clone", new List(), new List(), new Opt(new Block()), (MethodDecl) typeObject().memberMethods("clone").iterator().next())); } TypeDecl typeDecl = new ArrayDecl(new Modifiers(new List().add(new Modifier("public"))), name, new Opt(typeObject().createQualifiedAccess()), // [SuperClassAccess] new List().add(typeCloneable().createQualifiedAccess()).add(typeSerializable().createQualifiedAccess()), // Implements* body // BodyDecl* ); return typeDecl; } /** * @attribute syn * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:134 */ public int size() { ASTNode$State state = state(); try { return 1; } finally { } } /** * @attribute syn * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:135 */ public boolean isEmpty() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:139 */ public boolean contains(Object o) { ASTNode$State state = state(); try { return this == o; } finally { } } /** * @apilevel internal */ protected boolean isException_computed = false; /** * @apilevel internal */ protected boolean isException_value; /** * @attribute syn * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:24 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isException() { if (isException_computed) { return isException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isException_value = isException_compute(); if (isFinal && num == state().boundariesCrossed) isException_computed = true; return isException_value; } /** * @apilevel internal */ private boolean isException_compute() { return instanceOf(typeException()); } /** * @apilevel internal */ protected boolean isCheckedException_computed = false; /** * @apilevel internal */ protected boolean isCheckedException_value; /** * Unfortunately the concept of checked vs. unchecked exceptions has been * inverted in JastAddJ compared to the Java specification. This is a * slightly unfortunate design flaw which we cannot change at this time. * * @attribute syn * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:32 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isCheckedException() { if (isCheckedException_computed) { return isCheckedException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isCheckedException_value = isCheckedException_compute(); if (isFinal && num == state().boundariesCrossed) isCheckedException_computed = true; return isCheckedException_value; } /** * @apilevel internal */ private boolean isCheckedException_compute() { return isException() && (instanceOf(typeRuntimeException()) || instanceOf(typeError())); } /** * @apilevel internal */ protected boolean isUncheckedException_computed = false; /** * @apilevel internal */ protected boolean isUncheckedException_value; /** * Unfortunately the concept of checked vs. unchecked exceptions has been * inverted in JastAddJ compared to the Java specification. This is a * slightly unfortunate design flaw which we cannot change at this time. * * @attribute syn * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:41 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isUncheckedException() { if (isUncheckedException_computed) { return isUncheckedException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isUncheckedException_value = isUncheckedException_compute(); if (isFinal && num == state().boundariesCrossed) isUncheckedException_computed = true; return isUncheckedException_value; } /** * @apilevel internal */ private boolean isUncheckedException_compute() { return isException() && !isCheckedException(); } protected java.util.Map mayCatch_TypeDecl_values; /** * @attribute syn * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:250 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean mayCatch(TypeDecl thrownType) { Object _parameters = thrownType; if (mayCatch_TypeDecl_values == null) mayCatch_TypeDecl_values = new java.util.HashMap(4); if (mayCatch_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) mayCatch_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean mayCatch_TypeDecl_value = mayCatch_compute(thrownType); if (isFinal && num == state().boundariesCrossed) mayCatch_TypeDecl_values.put(_parameters, Boolean.valueOf(mayCatch_TypeDecl_value)); return mayCatch_TypeDecl_value; } /** * @apilevel internal */ private boolean mayCatch_compute(TypeDecl thrownType) { return thrownType.instanceOf(this) || this.instanceOf(thrownType); } /** * @attribute syn * @aspect ConstructScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupConstructor.jrag:21 */ public Collection lookupSuperConstructor() { ASTNode$State state = state(); try { return Collections.EMPTY_LIST; } finally { } } /** * @apilevel internal */ protected boolean constructors_computed = false; /** * @apilevel internal */ protected Collection constructors_value; /** * @attribute syn * @aspect ConstructorLookup * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupConstructor.jrag:98 */ @SuppressWarnings({ "unchecked", "cast" }) public Collection constructors() { if (constructors_computed) { return constructors_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); constructors_value = constructors_compute(); if (isFinal && num == state().boundariesCrossed) constructors_computed = true; return constructors_value; } /** * @apilevel internal */ private Collection constructors_compute() { Collection c = new ArrayList(); for (int i = 0; i < getNumBodyDecl(); i++) { if (getBodyDecl(i) instanceof ConstructorDecl) { c.add(getBodyDecl(i)); } } return c; } protected java.util.Map unqualifiedLookupMethod_String_values; /** * @attribute syn * @aspect LookupMethod * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:36 */ @SuppressWarnings({ "unchecked", "cast" }) public Collection unqualifiedLookupMethod(String name) { Object _parameters = name; if (unqualifiedLookupMethod_String_values == null) unqualifiedLookupMethod_String_values = new java.util.HashMap(4); if (unqualifiedLookupMethod_String_values.containsKey(_parameters)) { return (Collection) unqualifiedLookupMethod_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); Collection unqualifiedLookupMethod_String_value = unqualifiedLookupMethod_compute(name); if (isFinal && num == state().boundariesCrossed) unqualifiedLookupMethod_String_values.put(_parameters, unqualifiedLookupMethod_String_value); return unqualifiedLookupMethod_String_value; } /** * @apilevel internal */ private Collection unqualifiedLookupMethod_compute(String name) { Collection c = memberMethods(name); if (!c.isEmpty()) return c; if (isInnerType()) return lookupMethod(name); return removeInstanceMethods(lookupMethod(name)); } /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:210 */ public Collection memberMethods(String name) { ASTNode$State state = state(); try { Collection c = (Collection) methodsNameMap().get(name); if (c != null) return c; return Collections.EMPTY_LIST; } finally { } } /** * @apilevel internal */ protected boolean methodsNameMap_computed = false; /** * @apilevel internal */ protected HashMap methodsNameMap_value; /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:216 */ @SuppressWarnings({ "unchecked", "cast" }) public HashMap methodsNameMap() { if (methodsNameMap_computed) { return methodsNameMap_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); methodsNameMap_value = methodsNameMap_compute(); if (isFinal && num == state().boundariesCrossed) methodsNameMap_computed = true; return methodsNameMap_value; } /** * @apilevel internal */ private HashMap methodsNameMap_compute() { HashMap map = new HashMap(); for (Iterator iter = methodsIterator(); iter.hasNext();) { MethodDecl m = (MethodDecl) iter.next(); ArrayList list = (ArrayList) map.get(m.name()); if (list == null) { list = new ArrayList(4); map.put(m.name(), list); } list.add(m); } return map; } /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:247 */ public SimpleSet localMethodsSignature(String signature) { ASTNode$State state = state(); try { SimpleSet set = (SimpleSet) localMethodsSignatureMap().get(signature); if (set != null) return set; return SimpleSet.emptySet; } finally { } } /** * @apilevel internal */ protected boolean localMethodsSignatureMap_computed = false; /** * @apilevel internal */ protected HashMap localMethodsSignatureMap_value; /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:253 */ @SuppressWarnings({ "unchecked", "cast" }) public HashMap localMethodsSignatureMap() { if (localMethodsSignatureMap_computed) { return localMethodsSignatureMap_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); localMethodsSignatureMap_value = localMethodsSignatureMap_compute(); if (isFinal && num == state().boundariesCrossed) localMethodsSignatureMap_computed = true; return localMethodsSignatureMap_value; } /** * @apilevel internal */ private HashMap localMethodsSignatureMap_compute() { HashMap map = new HashMap(getNumBodyDecl()); for (int i = 0; i < getNumBodyDecl(); i++) { if (getBodyDecl(i) instanceof MethodDecl) { MethodDecl decl = (MethodDecl) getBodyDecl(i); map.put(decl.signature(), decl); } } return map; } /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:315 */ public SimpleSet methodsSignature(String signature) { ASTNode$State state = state(); try { SimpleSet set = (SimpleSet) methodsSignatureMap().get(signature); if (set != null) return set; return SimpleSet.emptySet; } finally { } } /** * @apilevel internal */ protected boolean methodsSignatureMap_computed = false; /** * @apilevel internal */ protected HashMap methodsSignatureMap_value; /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:321 */ @SuppressWarnings({ "unchecked", "cast" }) public HashMap methodsSignatureMap() { if (methodsSignatureMap_computed) { return methodsSignatureMap_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); methodsSignatureMap_value = methodsSignatureMap_compute(); if (isFinal && num == state().boundariesCrossed) methodsSignatureMap_computed = true; return methodsSignatureMap_value; } /** * @apilevel internal */ private HashMap methodsSignatureMap_compute() { return localMethodsSignatureMap(); } protected java.util.Map ancestorMethods_String_values; /** * @attribute syn * @aspect AncestorMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:378 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet ancestorMethods(String signature) { Object _parameters = signature; if (ancestorMethods_String_values == null) ancestorMethods_String_values = new java.util.HashMap(4); if (ancestorMethods_String_values.containsKey(_parameters)) { return (SimpleSet) ancestorMethods_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet ancestorMethods_String_value = ancestorMethods_compute(signature); if (isFinal && num == state().boundariesCrossed) ancestorMethods_String_values.put(_parameters, ancestorMethods_String_value); return ancestorMethods_String_value; } /** * @apilevel internal */ private SimpleSet ancestorMethods_compute(String signature) { return SimpleSet.emptySet; } /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:478 */ public boolean hasType(String name) { ASTNode$State state = state(); try { return !memberTypes(name).isEmpty(); } finally { } } protected java.util.Map localTypeDecls_String_values; /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:489 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet localTypeDecls(String name) { Object _parameters = name; if (localTypeDecls_String_values == null) localTypeDecls_String_values = new java.util.HashMap(4); if (localTypeDecls_String_values.containsKey(_parameters)) { return (SimpleSet) localTypeDecls_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet localTypeDecls_String_value = localTypeDecls_compute(name); if (isFinal && num == state().boundariesCrossed) localTypeDecls_String_values.put(_parameters, localTypeDecls_String_value); return localTypeDecls_String_value; } /** * @apilevel internal */ private SimpleSet localTypeDecls_compute(String name) { SimpleSet set = SimpleSet.emptySet; for (int i = 0; i < getNumBodyDecl(); i++) if (getBodyDecl(i).declaresType(name)) set = set.add(getBodyDecl(i).type(name)); return set; } protected java.util.Map memberTypes_String_values; /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:497 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet memberTypes(String name) { Object _parameters = name; if (memberTypes_String_values == null) memberTypes_String_values = new java.util.HashMap(4); if (memberTypes_String_values.containsKey(_parameters)) { return (SimpleSet) memberTypes_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet memberTypes_String_value = memberTypes_compute(name); if (isFinal && num == state().boundariesCrossed) memberTypes_String_values.put(_parameters, memberTypes_String_value); return memberTypes_String_value; } /** * @apilevel internal */ private SimpleSet memberTypes_compute(String name) { return SimpleSet.emptySet; } protected java.util.Map localFields_String_values; /** * @attribute syn * @aspect Fields * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:266 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet localFields(String name) { Object _parameters = name; if (localFields_String_values == null) localFields_String_values = new java.util.HashMap(4); if (localFields_String_values.containsKey(_parameters)) { return (SimpleSet) localFields_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet localFields_String_value = localFields_compute(name); if (isFinal && num == state().boundariesCrossed) localFields_String_values.put(_parameters, localFields_String_value); return localFields_String_value; } /** * @apilevel internal */ private SimpleSet localFields_compute(String name) { return localFieldsMap().containsKey(name) ? (SimpleSet) localFieldsMap().get(name) : SimpleSet.emptySet; } /** * @apilevel internal */ protected boolean localFieldsMap_computed = false; /** * @apilevel internal */ protected HashMap localFieldsMap_value; /** * @attribute syn * @aspect Fields * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:269 */ @SuppressWarnings({ "unchecked", "cast" }) public HashMap localFieldsMap() { if (localFieldsMap_computed) { return localFieldsMap_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); localFieldsMap_value = localFieldsMap_compute(); if (isFinal && num == state().boundariesCrossed) localFieldsMap_computed = true; return localFieldsMap_value; } /** * @apilevel internal */ private HashMap localFieldsMap_compute() { HashMap map = new HashMap(); for (int i = 0; i < getNumBodyDecl(); i++) { if (getBodyDecl(i) instanceof FieldDeclaration) { FieldDeclaration decl = (FieldDeclaration) getBodyDecl(i); SimpleSet fields = (SimpleSet) map.get(decl.name()); if (fields == null) fields = SimpleSet.emptySet; fields = fields.add(decl); map.put(decl.name(), fields); } } return map; } /** * @apilevel internal */ protected boolean memberFieldsMap_computed = false; /** * @apilevel internal */ protected HashMap memberFieldsMap_value; /** * @attribute syn * @aspect Fields * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:282 */ @SuppressWarnings({ "unchecked", "cast" }) public HashMap memberFieldsMap() { if (memberFieldsMap_computed) { return memberFieldsMap_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); memberFieldsMap_value = memberFieldsMap_compute(); if (isFinal && num == state().boundariesCrossed) memberFieldsMap_computed = true; return memberFieldsMap_value; } /** * @apilevel internal */ private HashMap memberFieldsMap_compute() { return localFieldsMap(); } protected java.util.Map memberFields_String_values; /** * @attribute syn * @aspect Fields * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:331 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet memberFields(String name) { Object _parameters = name; if (memberFields_String_values == null) memberFields_String_values = new java.util.HashMap(4); if (memberFields_String_values.containsKey(_parameters)) { return (SimpleSet) memberFields_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet memberFields_String_value = memberFields_compute(name); if (isFinal && num == state().boundariesCrossed) memberFields_String_values.put(_parameters, memberFields_String_value); return memberFields_String_value; } /** * @apilevel internal */ private SimpleSet memberFields_compute(String name) { return localFields(name); } /** * @apilevel internal */ protected boolean hasAbstract_computed = false; /** * @apilevel internal */ protected boolean hasAbstract_value; /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:14 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean hasAbstract() { if (hasAbstract_computed) { return hasAbstract_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); hasAbstract_value = hasAbstract_compute(); if (isFinal && num == state().boundariesCrossed) hasAbstract_computed = true; return hasAbstract_value; } /** * @apilevel internal */ private boolean hasAbstract_compute() { return false; } /** * @apilevel internal */ protected boolean unimplementedMethods_computed = false; /** * @apilevel internal */ protected Collection unimplementedMethods_value; /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:16 */ @SuppressWarnings({ "unchecked", "cast" }) public Collection unimplementedMethods() { if (unimplementedMethods_computed) { return unimplementedMethods_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); unimplementedMethods_value = unimplementedMethods_compute(); if (isFinal && num == state().boundariesCrossed) unimplementedMethods_computed = true; return unimplementedMethods_value; } /** * @apilevel internal */ private Collection unimplementedMethods_compute() { return Collections.EMPTY_LIST; } /** * @apilevel internal */ protected boolean isPublic_computed = false; /** * @apilevel internal */ protected boolean isPublic_value; /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:200 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isPublic() { if (isPublic_computed) { return isPublic_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isPublic_value = isPublic_compute(); if (isFinal && num == state().boundariesCrossed) isPublic_computed = true; return isPublic_value; } /** * @apilevel internal */ private boolean isPublic_compute() { return getModifiers().isPublic() || isMemberType() && enclosingType().isInterfaceDecl(); } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:202 */ public boolean isPrivate() { ASTNode$State state = state(); try { return getModifiers().isPrivate(); } finally { } } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:203 */ public boolean isProtected() { ASTNode$State state = state(); try { return getModifiers().isProtected(); } finally { } } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:204 */ public boolean isAbstract() { ASTNode$State state = state(); try { return getModifiers().isAbstract(); } finally { } } /** * @apilevel internal */ protected boolean isStatic_computed = false; /** * @apilevel internal */ protected boolean isStatic_value; /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:206 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isStatic() { if (isStatic_computed) { return isStatic_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isStatic_value = isStatic_compute(); if (isFinal && num == state().boundariesCrossed) isStatic_computed = true; return isStatic_value; } /** * @apilevel internal */ private boolean isStatic_compute() { return getModifiers().isStatic() || isMemberType() && enclosingType().isInterfaceDecl(); } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:209 */ public boolean isFinal() { ASTNode$State state = state(); try { return getModifiers().isFinal(); } finally { } } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:210 */ public boolean isStrictfp() { ASTNode$State state = state(); try { return getModifiers().isStrictfp(); } finally { } } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:212 */ public boolean isSynthetic() { ASTNode$State state = state(); try { return getModifiers().isSynthetic(); } finally { } } /** * @attribute syn * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:274 */ public boolean hasEnclosingTypeDecl(String name) { ASTNode$State state = state(); try { TypeDecl enclosingType = enclosingType(); if (enclosingType != null) { return enclosingType.name().equals(name) || enclosingType.hasEnclosingTypeDecl(name); } return false; } finally { } } /** * @attribute syn * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:427 */ public boolean assignableToInt() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:758 */ public boolean addsIndentationLevel() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:800 */ public String dumpString() { ASTNode$State state = state(); try { return getClass().getName() + " [" + getID() + "]"; } finally { } } /** * @attribute syn * @aspect TypeName * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:68 */ public String name() { ASTNode$State state = state(); try { return getID(); } finally { } } /** * @apilevel internal */ protected boolean fullName_computed = false; /** * @apilevel internal */ protected String fullName_value; /** * @attribute syn * @aspect TypeName * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:70 */ @SuppressWarnings({ "unchecked", "cast" }) public String fullName() { if (fullName_computed) { return fullName_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); fullName_value = fullName_compute(); if (isFinal && num == state().boundariesCrossed) fullName_computed = true; return fullName_value; } /** * @apilevel internal */ private String fullName_compute() { if (isNestedType()) return enclosingType().fullName() + "." + name(); String packageName = packageName(); if (packageName.equals("")) return name(); return packageName + "." + name(); } /** * @apilevel internal */ protected boolean typeName_computed = false; /** * @apilevel internal */ protected String typeName_value; /** * @attribute syn * @aspect TypeName * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:79 */ @SuppressWarnings({ "unchecked", "cast" }) public String typeName() { if (typeName_computed) { return typeName_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeName_value = typeName_compute(); if (isFinal && num == state().boundariesCrossed) typeName_computed = true; return typeName_value; } /** * @apilevel internal */ private String typeName_compute() { if (isNestedType()) return enclosingType().typeName() + "." + name(); String packageName = packageName(); if (packageName.equals("") || packageName.equals(PRIMITIVE_PACKAGE_NAME)) return name(); return packageName + "." + name(); } /** * @attribute syn * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:15 */ public boolean identityConversionTo(TypeDecl type) { ASTNode$State state = state(); try { return this == type; } finally { } } /** * @attribute syn * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:17 */ public boolean wideningConversionTo(TypeDecl type) { ASTNode$State state = state(); try { return instanceOf(type); } finally { } } protected java.util.Map narrowingConversionTo_TypeDecl_values; /** * @attribute syn * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:18 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean narrowingConversionTo(TypeDecl type) { Object _parameters = type; if (narrowingConversionTo_TypeDecl_values == null) narrowingConversionTo_TypeDecl_values = new java.util.HashMap(4); if (narrowingConversionTo_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) narrowingConversionTo_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean narrowingConversionTo_TypeDecl_value = narrowingConversionTo_compute(type); if (isFinal && num == state().boundariesCrossed) narrowingConversionTo_TypeDecl_values.put(_parameters, Boolean.valueOf(narrowingConversionTo_TypeDecl_value)); return narrowingConversionTo_TypeDecl_value; } /** * @apilevel internal */ private boolean narrowingConversionTo_compute(TypeDecl type) { return instanceOf(type); } /** * @attribute syn * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:55 */ public boolean stringConversion() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:59 */ public boolean assignConversionTo(TypeDecl type, Expr expr) { ASTNode$State state = state(); try { if (refined_TypeConversion_TypeDecl_assignConversionTo_TypeDecl_Expr(type, expr)) return true; boolean canBoxThis = this instanceof PrimitiveType; boolean canBoxType = type instanceof PrimitiveType; boolean canUnboxThis = !unboxed().isUnknown(); boolean canUnboxType = !type.unboxed().isUnknown(); TypeDecl t = !canUnboxThis && canUnboxType ? type.unboxed() : type; boolean sourceIsConstant = expr != null ? expr.isConstant() : false; if (sourceIsConstant && (isInt() || isChar() || isShort() || isByte()) && (t.isByte() || t.isShort() || t.isChar()) && narrowingConversionTo(t) && expr.representableIn(t)) return true; if (canBoxThis && !canBoxType && boxed().wideningConversionTo(type)) return true; else if (canUnboxThis && !canUnboxType && unboxed().wideningConversionTo(type)) return true; return false; } finally { } } protected java.util.Map methodInvocationConversionTo_TypeDecl_values; /** * @attribute syn * @aspect AutoBoxing * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/AutoBoxing.jrag:99 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean methodInvocationConversionTo(TypeDecl type) { Object _parameters = type; if (methodInvocationConversionTo_TypeDecl_values == null) methodInvocationConversionTo_TypeDecl_values = new java.util.HashMap(4); if (methodInvocationConversionTo_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) methodInvocationConversionTo_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean methodInvocationConversionTo_TypeDecl_value = methodInvocationConversionTo_compute(type); if (isFinal && num == state().boundariesCrossed) methodInvocationConversionTo_TypeDecl_values.put(_parameters, Boolean.valueOf(methodInvocationConversionTo_TypeDecl_value)); return methodInvocationConversionTo_TypeDecl_value; } /** * @apilevel internal */ private boolean methodInvocationConversionTo_compute(TypeDecl type) { if (refined_TypeConversion_TypeDecl_methodInvocationConversionTo_TypeDecl(type)) return true; boolean canBoxThis = this instanceof PrimitiveType; boolean canBoxType = type instanceof PrimitiveType; boolean canUnboxThis = !unboxed().isUnknown(); boolean canUnboxType = !type.unboxed().isUnknown(); if (canBoxThis && !canBoxType) return boxed().wideningConversionTo(type); else if (canUnboxThis && !canUnboxType) return unboxed().wideningConversionTo(type); return false; } protected java.util.Map castingConversionTo_TypeDecl_values; /** * @attribute syn * @aspect AutoBoxing * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/AutoBoxing.jrag:114 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean castingConversionTo(TypeDecl type) { Object _parameters = type; if (castingConversionTo_TypeDecl_values == null) castingConversionTo_TypeDecl_values = new java.util.HashMap(4); if (castingConversionTo_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) castingConversionTo_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean castingConversionTo_TypeDecl_value = castingConversionTo_compute(type); if (isFinal && num == state().boundariesCrossed) castingConversionTo_TypeDecl_values.put(_parameters, Boolean.valueOf(castingConversionTo_TypeDecl_value)); return castingConversionTo_TypeDecl_value; } /** * @apilevel internal */ private boolean castingConversionTo_compute(TypeDecl type) { if (refined_TypeConversion_TypeDecl_castingConversionTo_TypeDecl(type)) return true; boolean canBoxThis = this instanceof PrimitiveType; boolean canBoxType = type instanceof PrimitiveType; boolean canUnboxThis = !unboxed().isUnknown(); boolean canUnboxType = !type.unboxed().isUnknown(); if (canBoxThis && !canBoxType) return boxed().wideningConversionTo(type); else if (canUnboxThis && !canUnboxType) return unboxed().wideningConversionTo(type); return false; /* * else if(boxingConversionTo(type)) return true; else * if(unboxingConversionTo(type)) return true; return false; */ } /** * @attribute syn * @aspect NumericPromotion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:146 */ public TypeDecl unaryNumericPromotion() { ASTNode$State state = state(); try { return this; } finally { } } /** * @attribute syn * @aspect NumericPromotion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:154 */ public TypeDecl binaryNumericPromotion(TypeDecl type) { ASTNode$State state = state(); try { return unknownType(); } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:165 */ public boolean isReferenceType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:168 */ public boolean isPrimitiveType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:173 */ public boolean isNumericType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:177 */ public boolean isIntegralType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:181 */ public boolean isBoolean() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:185 */ public boolean isByte() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:187 */ public boolean isChar() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:189 */ public boolean isShort() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:191 */ public boolean isInt() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:195 */ public boolean isFloat() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:197 */ public boolean isLong() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:199 */ public boolean isDouble() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:202 */ public boolean isVoid() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:205 */ public boolean isNull() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:209 */ public boolean isClassDecl() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:211 */ public boolean isInterfaceDecl() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:213 */ public boolean isArrayDecl() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:221 */ public boolean isPrimitive() { ASTNode$State state = state(); try { return false; } finally { } } /** * @apilevel internal */ protected boolean isString_computed = false; /** * @apilevel internal */ protected boolean isString_value; /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:224 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isString() { if (isString_computed) { return isString_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isString_value = isString_compute(); if (isFinal && num == state().boundariesCrossed) isString_computed = true; return isString_value; } /** * @apilevel internal */ private boolean isString_compute() { return false; } /** * @apilevel internal */ protected boolean isObject_computed = false; /** * @apilevel internal */ protected boolean isObject_value; /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:227 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isObject() { if (isObject_computed) { return isObject_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isObject_value = isObject_compute(); if (isFinal && num == state().boundariesCrossed) isObject_computed = true; return isObject_value; } /** * @apilevel internal */ private boolean isObject_compute() { return false; } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:230 */ public boolean isUnknown() { ASTNode$State state = state(); try { return false; } finally { } } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:386 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if (instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if (instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean) instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if (isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:423 */ public boolean isSupertypeOfClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return type == this; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:440 */ public boolean isSupertypeOfInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return type == this; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:453 */ public boolean isSupertypeOfArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return this == type; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:475 */ public boolean isSupertypeOfPrimitiveType(PrimitiveType type) { ASTNode$State state = state(); try { return type == this; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:482 */ public boolean isSupertypeOfNullType(NullType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:486 */ public boolean isSupertypeOfVoidType(VoidType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:497 */ public TypeDecl topLevelType() { ASTNode$State state = state(); try { if (isTopLevelType()) return this; return enclosingType().topLevelType(); } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:523 */ public boolean isTopLevelType() { ASTNode$State state = state(); try { return !isNestedType(); } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:534 */ public boolean isInnerClass() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:536 */ public boolean isInnerType() { ASTNode$State state = state(); try { return (isLocalClass() || isAnonymous() || (isMemberType() && !isStatic())) && !inStaticContext(); } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:538 */ public boolean isInnerTypeOf(TypeDecl typeDecl) { ASTNode$State state = state(); try { return typeDecl == this || (isInnerType() && enclosingType().isInnerTypeOf(typeDecl)); } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:545 */ public TypeDecl withinBodyThatSubclasses(TypeDecl type) { ASTNode$State state = state(); try { if (instanceOf(type)) return this; if (!isTopLevelType()) return enclosingType().withinBodyThatSubclasses(type); return null; } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:553 */ public boolean encloses(TypeDecl type) { ASTNode$State state = state(); try { return type.enclosedBy(this); } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:555 */ public boolean enclosedBy(TypeDecl type) { ASTNode$State state = state(); try { if (this == type) return true; if (isTopLevelType()) return false; return enclosingType().enclosedBy(type); } finally { } } /** * @attribute syn * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:569 */ public TypeDecl hostType() { ASTNode$State state = state(); try { return this; } finally { } } /** * @apilevel internal */ protected int isCircular_visited = -1; /** * @apilevel internal */ protected boolean isCircular_computed = false; /** * @apilevel internal */ protected boolean isCircular_initialized = false; /** * @apilevel internal */ protected boolean isCircular_value; /** * @attribute syn * @aspect Circularity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:676 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isCircular() { if (isCircular_computed) { return isCircular_value; } ASTNode$State state = state(); if (!isCircular_initialized) { isCircular_initialized = true; isCircular_value = true; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { isCircular_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_isCircular_value = isCircular_compute(); if (new_isCircular_value != isCircular_value) state.CHANGE = true; isCircular_value = new_isCircular_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if (isFinal && num == state().boundariesCrossed) { isCircular_computed = true; } else { state.RESET_CYCLE = true; isCircular_compute(); state.RESET_CYCLE = false; isCircular_computed = false; isCircular_initialized = false; } state.IN_CIRCLE = false; return isCircular_value; } if (isCircular_visited != state.CIRCLE_INDEX) { isCircular_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { isCircular_computed = false; isCircular_initialized = false; isCircular_visited = -1; return isCircular_value; } boolean new_isCircular_value = isCircular_compute(); if (new_isCircular_value != isCircular_value) state.CHANGE = true; isCircular_value = new_isCircular_value; return isCircular_value; } return isCircular_value; } /** * @apilevel internal */ private boolean isCircular_compute() { return false; } /* * It is a compile-time error if the return type of a method declared in an * annotation type is any type other than one of the following: one of the * primitive types, String, Class and any invocation of Class, an enum type * (\ufffd8.9), an annotation type, or an array (\ufffd10) of one of the * preceding types.* @attribute syn * * @aspect Annotations * * @declaredat * /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/ * Annotations.jrag:121 */ public boolean isValidAnnotationMethodReturnType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:225 */ public Annotation annotation(TypeDecl typeDecl) { ASTNode$State state = state(); try { return getModifiers().annotation(typeDecl); } finally { } } /** * @attribute syn * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:282 */ public boolean hasAnnotationSuppressWarnings(String s) { ASTNode$State state = state(); try { return getModifiers().hasAnnotationSuppressWarnings(s); } finally { } } /** * @attribute syn * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:321 */ public boolean isDeprecated() { ASTNode$State state = state(); try { return getModifiers().hasDeprecatedAnnotation(); } finally { } } /* * An element type T is commensurate with an element value V if and only if * one of the following conditions is true: T is an array type E[] and * either: o V is an ElementValueArrayInitializer and each * ElementValueInitializer (analogous to a variable initializer in an array * initializer) in V is commensurate with E. Or o V is an ElementValue that * is commensurate with T. The type of V is assignment compatible * (\ufffd5.2) with T and, furthermore: o If T is a primitive type or * String, V is a constant expression (\ufffd15.28). o V is not null. o if T * is Class, or an invocation of Class, and V is a class literal * (\ufffd15.8.2). o If T is an enum type, and V is an enum constant. * * @attribute syn * * @aspect Annotations * * @declaredat * /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/ * Annotations.jrag:474 */ public boolean commensurateWith(ElementValue value) { ASTNode$State state = state(); try { return value.commensurateWithTypeDecl(this); } finally { } } /** * @attribute syn * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:545 */ public boolean isAnnotationDecl() { ASTNode$State state = state(); try { return false; } finally { } } /* * NumericTypes, BooleanTypes TypeChecking (ensure that an expression of a * certain type is valid in a particular context) TypeComputation (compute * the type of an expression) CodeGeneration (output code including implicit * type conversions and promotions) * * NumericTypes: binaryNumericPromotion, unaryNumericPromotion, * assignmentConversion, methodInvocationConversion, castingConversion * numeric operations that do not use these kinds of conversions and * promotions explicitly need to be refined BooleanTypes: * assignmentConversion, methodInvocationConversion, castingConversion * * @attribute syn * * @aspect AutoBoxing * * @declaredat * /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/ * AutoBoxing.jrag:31 */ public boolean boxingConversionTo(TypeDecl typeDecl) { ASTNode$State state = state(); try { return false; } finally { } } /** * @apilevel internal */ protected boolean boxed_computed = false; /** * @apilevel internal */ protected TypeDecl boxed_value; /** * @attribute syn * @aspect AutoBoxing * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/AutoBoxing.jrag:35 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl boxed() { if (boxed_computed) { return boxed_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boxed_value = boxed_compute(); if (isFinal && num == state().boundariesCrossed) boxed_computed = true; return boxed_value; } /** * @apilevel internal */ private TypeDecl boxed_compute() { return unknownType(); } /** * @attribute syn * @aspect AutoBoxing * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/AutoBoxing.jrag:47 */ public boolean unboxingConversionTo(TypeDecl typeDecl) { ASTNode$State state = state(); try { return false; } finally { } } /** * @apilevel internal */ protected boolean unboxed_computed = false; /** * @apilevel internal */ protected TypeDecl unboxed_value; /** * @attribute syn * @aspect AutoBoxing * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/AutoBoxing.jrag:51 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl unboxed() { if (unboxed_computed) { return unboxed_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); unboxed_value = unboxed_compute(); if (isFinal && num == state().boundariesCrossed) unboxed_computed = true; return unboxed_value; } /** * @apilevel internal */ private TypeDecl unboxed_compute() { return unknownType(); } /** * @apilevel internal */ protected boolean isIterable_computed = false; /** * @apilevel internal */ protected boolean isIterable_value; /** * True if type is java.lang.Iterable or subtype As long as we use the 1.4 * API we check for java.util.Collection instead. * * @attribute syn * @aspect EnhancedFor * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/EnhancedFor.jrag:35 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isIterable() { if (isIterable_computed) { return isIterable_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isIterable_value = isIterable_compute(); if (isFinal && num == state().boundariesCrossed) isIterable_computed = true; return isIterable_value; } /** * @apilevel internal */ private boolean isIterable_compute() { return instanceOf(lookupType("java.lang", "Iterable")); } /* * 1) It is a compile-time error to attempt to explicitly instantiate an * enum type (\ufffd\ufffd\ufffd15.9.1). * * @attribute syn * * @aspect Enums * * @declaredat * /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/ * Enums.jrag:16 */ public boolean isEnumDecl() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericMethodsInference * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericMethodsInference.jrag:13 */ public boolean isUnboxedPrimitive() { ASTNode$State state = state(); try { return this instanceof PrimitiveType && isPrimitive(); } finally { } } /** * @apilevel internal */ protected int involvesTypeParameters_visited = -1; /** * @apilevel internal */ protected boolean involvesTypeParameters_computed = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_initialized = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_value; /** * @attribute syn * @aspect GenericMethodsInference * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericMethodsInference.jrag:15 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean involvesTypeParameters() { if (involvesTypeParameters_computed) { return involvesTypeParameters_value; } ASTNode$State state = state(); if (!involvesTypeParameters_initialized) { involvesTypeParameters_initialized = true; involvesTypeParameters_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { involvesTypeParameters_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value != involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if (isFinal && num == state().boundariesCrossed) { involvesTypeParameters_computed = true; } else { state.RESET_CYCLE = true; involvesTypeParameters_compute(); state.RESET_CYCLE = false; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; } state.IN_CIRCLE = false; return involvesTypeParameters_value; } if (involvesTypeParameters_visited != state.CIRCLE_INDEX) { involvesTypeParameters_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; involvesTypeParameters_visited = -1; return involvesTypeParameters_value; } boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value != involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; return involvesTypeParameters_value; } return involvesTypeParameters_value; } /** * @apilevel internal */ private boolean involvesTypeParameters_compute() { return false; } /** * @attribute syn * @aspect Generics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:179 */ public boolean isGenericType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Generics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:253 */ public boolean isParameterizedType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Generics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:256 */ public boolean isRawType() { ASTNode$State state = state(); try { return isNestedType() && enclosingType().isRawType(); } finally { } } /** * @apilevel internal */ protected boolean erasure_computed = false; /** * @apilevel internal */ protected TypeDecl erasure_value; /** * @attribute syn * @aspect GenericsErasure * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:343 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl erasure() { if (erasure_computed) { return erasure_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); erasure_value = erasure_compute(); if (isFinal && num == state().boundariesCrossed) erasure_computed = true; return erasure_value; } /** * @apilevel internal */ private TypeDecl erasure_compute() { if (isAnonymous() || isLocalClass()) return this; if (!isNestedType()) return this; return extractSingleType(enclosingType().erasure().memberTypes(name())); } /** * @apilevel internal */ protected boolean implementedInterfaces_computed = false; /** * @apilevel internal */ protected HashSet implementedInterfaces_value; /** * @attribute syn * @aspect GenericsTypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:399 */ @SuppressWarnings({ "unchecked", "cast" }) public HashSet implementedInterfaces() { if (implementedInterfaces_computed) { return implementedInterfaces_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); implementedInterfaces_value = implementedInterfaces_compute(); if (isFinal && num == state().boundariesCrossed) implementedInterfaces_computed = true; return implementedInterfaces_value; } /** * @apilevel internal */ private HashSet implementedInterfaces_compute() { return new HashSet(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:571 */ public boolean sameSignature(Access a) { ASTNode$State state = state(); try { if (a instanceof ParTypeAccess) return false; if (a instanceof AbstractWildcard) return false; return this == a.type(); } finally { } } /** * @apilevel internal */ protected int usesTypeVariable_visited = -1; /** * @apilevel internal */ protected boolean usesTypeVariable_computed = false; /** * @apilevel internal */ protected boolean usesTypeVariable_initialized = false; /** * @apilevel internal */ protected boolean usesTypeVariable_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1068 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean usesTypeVariable() { if (usesTypeVariable_computed) { return usesTypeVariable_value; } ASTNode$State state = state(); if (!usesTypeVariable_initialized) { usesTypeVariable_initialized = true; usesTypeVariable_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { usesTypeVariable_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value != usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if (isFinal && num == state().boundariesCrossed) { usesTypeVariable_computed = true; } else { state.RESET_CYCLE = true; usesTypeVariable_compute(); state.RESET_CYCLE = false; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; } state.IN_CIRCLE = false; return usesTypeVariable_value; } if (usesTypeVariable_visited != state.CIRCLE_INDEX) { usesTypeVariable_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { usesTypeVariable_computed = false; usesTypeVariable_initialized = false; usesTypeVariable_visited = -1; return usesTypeVariable_value; } boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value != usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; return usesTypeVariable_value; } return usesTypeVariable_value; } /** * @apilevel internal */ private boolean usesTypeVariable_compute() { return isNestedType() && enclosingType().usesTypeVariable(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1306 */ public TypeDecl original() { ASTNode$State state = state(); try { return this; } finally { } } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1398 */ public TypeDecl asWildcardExtends() { ASTNode$State state = state(); try { return lookupWildcardExtends(this); } finally { } } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1411 */ public TypeDecl asWildcardSuper() { ASTNode$State state = state(); try { return lookupWildcardSuper(this); } finally { } } /** * @apilevel internal */ protected boolean sourceTypeDecl_computed = false; /** * @apilevel internal */ protected TypeDecl sourceTypeDecl_value; /** * @attribute syn * @aspect SourceDeclarations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1504 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl sourceTypeDecl() { if (sourceTypeDecl_computed) { return sourceTypeDecl_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); sourceTypeDecl_value = sourceTypeDecl_compute(); if (isFinal && num == state().boundariesCrossed) sourceTypeDecl_computed = true; return sourceTypeDecl_value; } /** * @apilevel internal */ private TypeDecl sourceTypeDecl_compute() { return this; } /** * @attribute syn * @aspect GenericsParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsParTypeDecl.jrag:73 */ public boolean isTypeVariable() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:14 */ public boolean supertypeGenericClassDecl(GenericClassDecl type) { ASTNode$State state = state(); try { return supertypeClassDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:20 */ public boolean supertypeGenericInterfaceDecl(GenericInterfaceDecl type) { ASTNode$State state = state(); try { return this == type || supertypeInterfaceDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:26 */ public boolean supertypeRawClassDecl(RawClassDecl type) { ASTNode$State state = state(); try { return supertypeParClassDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:30 */ public boolean supertypeRawInterfaceDecl(RawInterfaceDecl type) { ASTNode$State state = state(); try { return supertypeParInterfaceDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:46 */ public boolean supertypeWildcard(WildcardType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:57 */ public boolean supertypeWildcardExtends(WildcardExtendsType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:66 */ public boolean supertypeWildcardSuper(WildcardSuperType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:102 */ public boolean isWildcard() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:125 */ public boolean supertypeParClassDecl(ParClassDecl type) { ASTNode$State state = state(); try { return supertypeClassDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:129 */ public boolean supertypeParInterfaceDecl(ParInterfaceDecl type) { ASTNode$State state = state(); try { return supertypeInterfaceDecl(type); } finally { } } protected java.util.Map containedIn_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:141 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean containedIn(TypeDecl type) { Object _parameters = type; if (containedIn_TypeDecl_values == null) containedIn_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if (containedIn_TypeDecl_values.containsKey(_parameters)) { Object _o = containedIn_TypeDecl_values.get(_parameters); if (!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean) _o).booleanValue(); } else _value = (ASTNode$State.CircularValue) _o; } else { _value = new ASTNode$State.CircularValue(); containedIn_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_containedIn_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_containedIn_TypeDecl_value = containedIn_compute(type); if (new_containedIn_TypeDecl_value != ((Boolean) _value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_containedIn_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if (isFinal && num == state().boundariesCrossed) { containedIn_TypeDecl_values.put(_parameters, new_containedIn_TypeDecl_value); } else { containedIn_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; containedIn_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_containedIn_TypeDecl_value; } if (!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_containedIn_TypeDecl_value = containedIn_compute(type); if (state.RESET_CYCLE) { containedIn_TypeDecl_values.remove(_parameters); } else if (new_containedIn_TypeDecl_value != ((Boolean) _value.value).booleanValue()) { state.CHANGE = true; _value.value = new_containedIn_TypeDecl_value; } return new_containedIn_TypeDecl_value; } return ((Boolean) _value.value).booleanValue(); } /** * @apilevel internal */ private boolean containedIn_compute(TypeDecl type) { if (type == this || type instanceof WildcardType) return true; else if (type instanceof WildcardExtendsType) return this.subtype(((WildcardExtendsType) type).extendsType()); else if (type instanceof WildcardSuperType) return ((WildcardSuperType) type).superType().subtype(this); else if (type instanceof TypeVariable) return subtype(type); return sameStructure(type); // return false; } protected java.util.Map sameStructure_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:178 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean sameStructure(TypeDecl t) { Object _parameters = t; if (sameStructure_TypeDecl_values == null) sameStructure_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if (sameStructure_TypeDecl_values.containsKey(_parameters)) { Object _o = sameStructure_TypeDecl_values.get(_parameters); if (!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean) _o).booleanValue(); } else _value = (ASTNode$State.CircularValue) _o; } else { _value = new ASTNode$State.CircularValue(); sameStructure_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_sameStructure_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (new_sameStructure_TypeDecl_value != ((Boolean) _value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_sameStructure_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if (isFinal && num == state().boundariesCrossed) { sameStructure_TypeDecl_values.put(_parameters, new_sameStructure_TypeDecl_value); } else { sameStructure_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; sameStructure_compute(t); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_sameStructure_TypeDecl_value; } if (!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (state.RESET_CYCLE) { sameStructure_TypeDecl_values.remove(_parameters); } else if (new_sameStructure_TypeDecl_value != ((Boolean) _value.value).booleanValue()) { state.CHANGE = true; _value.value = new_sameStructure_TypeDecl_value; } return new_sameStructure_TypeDecl_value; } return ((Boolean) _value.value).booleanValue(); } /** * @apilevel internal */ private boolean sameStructure_compute(TypeDecl t) { return t == this; } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:291 */ public boolean supertypeTypeVariable(TypeVariable type) { ASTNode$State state = state(); try { if (type == this) return true; for (int i = 0; i < type.getNumTypeBound(); i++) if (type.getTypeBound(i).type().subtype(this)) return true; return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:347 */ public boolean supertypeLUBType(LUBType type) { ASTNode$State state = state(); try { for (int i = 0; i < type.getNumTypeBound(); i++) if (!type.getTypeBound(i).type().subtype(this)) return false; return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:366 */ public boolean supertypeGLBType(GLBType type) { ASTNode$State state = state(); try { // T1 && .. && Tn <: this, if exists 0 < i <= n Ti <: this for (int i = 0; i < type.getNumTypeBound(); i++) if (type.getTypeBound(i).type().subtype(this)) return true; return false; } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:405 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean subtype(TypeDecl type) { Object _parameters = type; if (subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if (subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if (!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean) _o).booleanValue(); } else _value = (ASTNode$State.CircularValue) _o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value != ((Boolean) _value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if (isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if (!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value != ((Boolean) _value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean) _value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return type == this; } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:421 */ public boolean supertypeClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return type == this; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:437 */ public boolean supertypeInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return type == this; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:450 */ public boolean supertypeArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return this == type; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:472 */ public boolean supertypePrimitiveType(PrimitiveType type) { ASTNode$State state = state(); try { return type == this; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:479 */ public boolean supertypeNullType(NullType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:483 */ public boolean supertypeVoidType(VoidType type) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:493 */ public boolean supertypeClassDeclSubstituted(ClassDeclSubstituted type) { ASTNode$State state = state(); try { return type.original() == this || supertypeClassDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:503 */ public boolean supertypeInterfaceDeclSubstituted(InterfaceDeclSubstituted type) { ASTNode$State state = state(); try { return type.original() == this || supertypeInterfaceDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:513 */ public boolean supertypeGenericClassDeclSubstituted(GenericClassDeclSubstituted type) { ASTNode$State state = state(); try { return type.original() == this || supertypeGenericClassDecl(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:523 */ public boolean supertypeGenericInterfaceDeclSubstituted(GenericInterfaceDeclSubstituted type) { ASTNode$State state = state(); try { return type.original() == this || supertypeGenericInterfaceDecl(type); } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:82 */ public TypeDecl stringPromotion() { ASTNode$State state = state(); try { return this; } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:94 */ public MethodDecl methodWithArgs(String name, TypeDecl[] args) { ASTNode$State state = state(); try { for (Iterator iter = memberMethods(name).iterator(); iter.hasNext();) { MethodDecl m = (MethodDecl) iter.next(); if (m.getNumParameter() == args.length) { for (int i = 0; i < args.length; i++) if (m.getParameter(i).type() == args[i]) return m; } } return null; } finally { } } /** * @apilevel internal */ protected boolean enclosingVariables_computed = false; /** * @apilevel internal */ protected Collection enclosingVariables_value; /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:145 */ @SuppressWarnings({ "unchecked", "cast" }) public Collection enclosingVariables() { if (enclosingVariables_computed) { return enclosingVariables_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); enclosingVariables_value = enclosingVariables_compute(); if (isFinal && num == state().boundariesCrossed) enclosingVariables_computed = true; return enclosingVariables_value; } /** * @apilevel internal */ private Collection enclosingVariables_compute() { HashSet set = new HashSet(); for (TypeDecl e = this; e != null; e = e.enclosingType()) if (e.isLocalClass() || e.isAnonymous()) collectEnclosingVariables(set, e.enclosingType()); if (isClassDecl()) { ClassDecl classDecl = (ClassDecl) this; if (classDecl.isNestedType() && classDecl.hasSuperclass()) set.addAll(classDecl.superclass().enclosingVariables()); } return set; } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:394 */ public boolean isAnonymousInNonStaticContext() { ASTNode$State state = state(); try { return isAnonymous() && !((ClassInstanceExpr) getParent().getParent()).unqualifiedScope().inStaticContext() && (!inExplicitConstructorInvocation() || enclosingBodyDecl().hostType().isInnerType()); } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:400 */ public boolean needsEnclosing() { ASTNode$State state = state(); try { if (isAnonymous()) return isAnonymousInNonStaticContext(); else if (isLocalClass()) return !inStaticContext(); else if (isInnerType()) return true; return false; } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:410 */ public boolean needsSuperEnclosing() { ASTNode$State state = state(); try { if (!isAnonymous()) return false; TypeDecl superClass = ((ClassDecl) this).superclass(); if (superClass.isLocalClass()) return !superClass.inStaticContext(); else if (superClass.isInnerType()) return true; if (needsEnclosing() && enclosing() == superEnclosing()) return false; return false; } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:422 */ public TypeDecl enclosing() { ASTNode$State state = state(); try { if (!needsEnclosing()) return null; TypeDecl typeDecl = enclosingType(); if (isAnonymous() && inExplicitConstructorInvocation()) typeDecl = typeDecl.enclosingType(); return typeDecl; } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:430 */ public TypeDecl superEnclosing() { ASTNode$State state = state(); try { return null; } finally { } } /** * @apilevel internal */ protected boolean uniqueIndex_computed = false; /** * @apilevel internal */ protected int uniqueIndex_value; /** * @attribute syn * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:12 */ @SuppressWarnings({ "unchecked", "cast" }) public int uniqueIndex() { if (uniqueIndex_computed) { return uniqueIndex_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); uniqueIndex_value = uniqueIndex_compute(); if (isFinal && num == state().boundariesCrossed) uniqueIndex_computed = true; return uniqueIndex_value; } /** * @apilevel internal */ private int uniqueIndex_compute() { return topLevelType().uniqueIndexCounter++; } /** * @apilevel internal */ protected boolean jvmName_computed = false; /** * @apilevel internal */ protected String jvmName_value; /** * @attribute syn * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:15 */ @SuppressWarnings({ "unchecked", "cast" }) public String jvmName() { if (jvmName_computed) { return jvmName_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); jvmName_value = jvmName_compute(); if (isFinal && num == state().boundariesCrossed) jvmName_computed = true; return jvmName_value; } /** * @apilevel internal */ private String jvmName_compute() { throw new Error("Jvm name only supported for reference types and not " + getClass().getName()); } /** * @attribute syn * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:44 */ public String primitiveClassName() { ASTNode$State state = state(); try { throw new Error("primitiveClassName not supported for " + name() + " of type " + getClass().getName()); } finally { } } /** * @attribute syn * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:57 */ public String referenceClassFieldName() { ASTNode$State state = state(); try { throw new Error("referenceClassFieldName not supported for " + name() + " of type " + getClass().getName()); } finally { } } /** * @apilevel internal */ protected boolean getSootClassDecl_computed = false; /** * @apilevel internal */ protected SootClass getSootClassDecl_value; /** * @attribute syn * @aspect EmitJimpleRefinements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/SootJastAddJ/EmitJimpleRefinements.jrag:63 */ @SuppressWarnings({ "unchecked", "cast" }) public SootClass getSootClassDecl() { if (getSootClassDecl_computed) { return getSootClassDecl_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); getSootClassDecl_value = getSootClassDecl_compute(); if (isFinal && num == state().boundariesCrossed) getSootClassDecl_computed = true; return getSootClassDecl_value; } /** * @apilevel internal */ private SootClass getSootClassDecl_compute() { if (erasure() != this) return erasure().getSootClassDecl(); if (compilationUnit().fromSource()) { return sootClass(); } else { if (options().verbose()) System.out.println("Loading .class file " + jvmName()); return SootResolver.v().makeClassRef(jvmName()); /* * * RefType type = (RefType) Scene.v().getRefType(jvmName()); * SootClass toReturn = null; if( type != null ) toReturn = * type.getSootClass(); if(toReturn != null) { return toReturn; } * SootClass c = new SootClass(jvmName()); c.setPhantom(true); * Scene.v().addClass(c); return c; */ // return Scene.v().getSootClass(jvmName()); /* * SootClass sc = Scene.v().loadClass(jvmName(), * SootClass.SIGNATURES); sc.setLibraryClass(); return sc; */ } } /** * @apilevel internal */ protected boolean getSootType_computed = false; /** * @apilevel internal */ protected Type getSootType_value; /** * @attribute syn * @aspect EmitJimpleRefinements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/SootJastAddJ/EmitJimpleRefinements.jrag:20 */ @SuppressWarnings({ "unchecked", "cast" }) public Type getSootType() { if (getSootType_computed) { return getSootType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); getSootType_value = getSootType_compute(); if (isFinal && num == state().boundariesCrossed) getSootType_computed = true; return getSootType_value; } /** * @apilevel internal */ private Type getSootType_compute() { return RefType.v(erasure().jvmName()); } /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:58 */ public soot.RefType sootRef() { ASTNode$State state = state(); try { return (soot.RefType) getSootType(); } finally { } } /** * @apilevel internal */ protected boolean sootClass_computed = false; /** * @apilevel internal */ protected SootClass sootClass_value; /** * @attribute syn * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:413 */ @SuppressWarnings({ "unchecked", "cast" }) public SootClass sootClass() { if (sootClass_computed) { return sootClass_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); sootClass_value = sootClass_compute(); if (isFinal && num == state().boundariesCrossed) sootClass_computed = true; return sootClass_value; } /** * @apilevel internal */ private SootClass sootClass_compute() { return erasure() != this ? erasure().sootClass() : refined_EmitJimple_TypeDecl_sootClass(); } /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:85 */ public String sourceNameWithoutPath() { ASTNode$State state = state(); try { String s = sourceFile(); return s != null ? s.substring(s.lastIndexOf(java.io.File.separatorChar) + 1) : "Unknown"; } finally { } } /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:90 */ public int sootTypeModifiers() { ASTNode$State state = state(); try { int result = 0; if (isNestedType()) { result |= soot.Modifier.PUBLIC; } else { if (isPublic()) result |= soot.Modifier.PUBLIC; if (isProtected()) result |= soot.Modifier.PROTECTED; if (isPrivate()) result |= soot.Modifier.PRIVATE; } if (isFinal()) result |= soot.Modifier.FINAL; if (isStatic()) result |= soot.Modifier.STATIC; if (isAbstract()) result |= soot.Modifier.ABSTRACT; return result; } finally { } } /** * @apilevel internal */ protected boolean needsClinit_computed = false; /** * @apilevel internal */ protected boolean needsClinit_value; /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:887 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean needsClinit() { if (needsClinit_computed) { return needsClinit_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); needsClinit_value = needsClinit_compute(); if (isFinal && num == state().boundariesCrossed) needsClinit_computed = true; return needsClinit_value; } /** * @apilevel internal */ private boolean needsClinit_compute() { for (int i = 0; i < getNumBodyDecl(); i++) { BodyDecl b = getBodyDecl(i); if (b instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration) b; if (f.isStatic() && f.hasInit() && f.generate()) { return true; } } else if (b instanceof StaticInitializer && b.generate()) { return true; } } return false; } /** * @apilevel internal */ protected boolean innerClassesAttributeEntries_computed = false; /** * @apilevel internal */ protected Collection innerClassesAttributeEntries_value; /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:962 */ @SuppressWarnings({ "unchecked", "cast" }) public Collection innerClassesAttributeEntries() { if (innerClassesAttributeEntries_computed) { return innerClassesAttributeEntries_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); innerClassesAttributeEntries_value = innerClassesAttributeEntries_compute(); if (isFinal && num == state().boundariesCrossed) innerClassesAttributeEntries_computed = true; return innerClassesAttributeEntries_value; } /** * @apilevel internal */ private Collection innerClassesAttributeEntries_compute() { HashSet list = new HashSet(); if (isNestedType()) list.add(this); for (Iterator iter = nestedTypes().iterator(); iter.hasNext();) list.add(iter.next()); for (Iterator iter = usedNestedTypes().iterator(); iter.hasNext();) list.add(iter.next()); return list; } protected java.util.Map getSootField_String_TypeDecl_values; /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:996 */ @SuppressWarnings({ "unchecked", "cast" }) public SootField getSootField(String name, TypeDecl type) { java.util.List _parameters = new java.util.ArrayList(2); _parameters.add(name); _parameters.add(type); if (getSootField_String_TypeDecl_values == null) getSootField_String_TypeDecl_values = new java.util.HashMap(4); if (getSootField_String_TypeDecl_values.containsKey(_parameters)) { return (SootField) getSootField_String_TypeDecl_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SootField getSootField_String_TypeDecl_value = getSootField_compute(name, type); if (isFinal && num == state().boundariesCrossed) getSootField_String_TypeDecl_values.put(_parameters, getSootField_String_TypeDecl_value); return getSootField_String_TypeDecl_value; } /** * @apilevel internal */ private SootField getSootField_compute(String name, TypeDecl type) { SootField f = Scene.v().makeSootField(name, type.getSootType(), 0); getSootClassDecl().addField(f); return f; } /** * @attribute syn * @aspect LocalNum * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/LocalNum.jrag:52 */ public int variableSize() { ASTNode$State state = state(); try { return 1; } finally { } } /** * @attribute syn * @aspect AnnotationsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/AnnotationsCodegen.jrag:322 */ public String typeDescriptor() { ASTNode$State state = state(); try { return jvmName(); } finally { } } protected java.util.Map createEnumMethod_TypeDecl_values; /** * @attribute syn * @aspect EnumsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/EnumsCodegen.jrag:42 */ @SuppressWarnings({ "unchecked", "cast" }) public MethodDecl createEnumMethod(TypeDecl enumDecl) { Object _parameters = enumDecl; if (createEnumMethod_TypeDecl_values == null) createEnumMethod_TypeDecl_values = new java.util.HashMap(4); if (createEnumMethod_TypeDecl_values.containsKey(_parameters)) { return (MethodDecl) createEnumMethod_TypeDecl_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); MethodDecl createEnumMethod_TypeDecl_value = createEnumMethod_compute(enumDecl); if (isFinal && num == state().boundariesCrossed) createEnumMethod_TypeDecl_values.put(_parameters, createEnumMethod_TypeDecl_value); return createEnumMethod_TypeDecl_value; } /** * @apilevel internal */ private MethodDecl createEnumMethod_compute(TypeDecl enumDecl) { MethodDecl m = new MethodDecl( new Modifiers( new List().add(new Modifier("static")).add(new Modifier("final")).add(new Modifier("private"))), typeInt().arrayType() .createQualifiedAccess(), "$SwitchMap$" + enumDecl.fullName().replace('.', '$'), new List(), new List(), new Opt( new Block( new List() .add(new IfStmt(new EQExpr( createEnumArray(enumDecl).createBoundFieldAccess(), new NullLiteral("null")), AssignExpr.asStmt(createEnumArray(enumDecl) .createBoundFieldAccess(), new ArrayCreationExpr( new ArrayTypeWithSizeAccess( typeInt().createQualifiedAccess(), enumDecl.createQualifiedAccess() .qualifiesAccess(new MethodAccess( "values", new List())) .qualifiesAccess( new VarAccess("length"))), new Opt())), new Opt())) .add(new ReturnStmt(createEnumArray(enumDecl).createBoundFieldAccess()))))); // add method declaration as a body declaration getBodyDeclList().insertChild(m, 1); // trigger possible rewrites return (MethodDecl) getBodyDeclList().getChild(1); } protected java.util.Map createEnumIndex_EnumConstant_values; /** * @attribute syn * @aspect EnumsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/EnumsCodegen.jrag:86 */ @SuppressWarnings({ "unchecked", "cast" }) public int createEnumIndex(EnumConstant e) { Object _parameters = e; if (createEnumIndex_EnumConstant_values == null) createEnumIndex_EnumConstant_values = new java.util.HashMap(4); if (createEnumIndex_EnumConstant_values.containsKey(_parameters)) { return ((Integer) createEnumIndex_EnumConstant_values.get(_parameters)).intValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); int createEnumIndex_EnumConstant_value = createEnumIndex_compute(e); if (isFinal && num == state().boundariesCrossed) createEnumIndex_EnumConstant_values.put(_parameters, Integer.valueOf(createEnumIndex_EnumConstant_value)); return createEnumIndex_EnumConstant_value; } /** * @apilevel internal */ private int createEnumIndex_compute(EnumConstant e) { if (createEnumIndexMap == null) createEnumIndexMap = new HashMap(); if (!createEnumIndexMap.containsKey(e.hostType())) createEnumIndexMap.put(e.hostType(), new Integer(0)); Integer i = (Integer) createEnumIndexMap.get(e.hostType()); i = new Integer(i.intValue() + 1); createEnumIndexMap.put(e.hostType(), i); MethodDecl m = createEnumMethod(e.hostType()); List list = m.getBlock().getStmtList(); list.insertChild(new TryStmt( new Block(new List().add(AssignExpr.asStmt( createEnumArray(e.hostType()).createBoundFieldAccess() .qualifiesAccess(new ArrayAccess(e.createBoundFieldAccess() .qualifiesAccess(new MethodAccess("ordinal", new List())))), new IntegerLiteral(i.toString())))), new List() .add(new BasicCatch( new ParameterDeclaration( lookupType("java.lang", "NoSuchFieldError").createQualifiedAccess(), "e"), new Block(new List()))), new Opt()), list.getNumChild() - 1); return i.intValue(); } protected java.util.Map createEnumArray_TypeDecl_values; /** * @attribute syn * @aspect EnumsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/EnumsCodegen.jrag:129 */ @SuppressWarnings({ "unchecked", "cast" }) public FieldDeclaration createEnumArray(TypeDecl enumDecl) { Object _parameters = enumDecl; if (createEnumArray_TypeDecl_values == null) createEnumArray_TypeDecl_values = new java.util.HashMap(4); if (createEnumArray_TypeDecl_values.containsKey(_parameters)) { return (FieldDeclaration) createEnumArray_TypeDecl_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); FieldDeclaration createEnumArray_TypeDecl_value = createEnumArray_compute(enumDecl); if (isFinal && num == state().boundariesCrossed) createEnumArray_TypeDecl_values.put(_parameters, createEnumArray_TypeDecl_value); return createEnumArray_TypeDecl_value; } /** * @apilevel internal */ private FieldDeclaration createEnumArray_compute(TypeDecl enumDecl) { FieldDeclaration f = new FieldDeclaration( new Modifiers( new List().add(new Modifier("static")).add(new Modifier("final")).add(new Modifier("private"))), typeInt().arrayType().createQualifiedAccess(), "$SwitchMap$" + enumDecl.fullName().replace('.', '$'), new Opt()); // add field declaration as a body declaration getBodyDeclList().insertChild(f, 0); // trigger possible rewrites return (FieldDeclaration) getBodyDeclList().getChild(0); } /** * @attribute syn * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:333 */ public SimpleSet bridgeCandidates(String signature) { ASTNode$State state = state(); try { return SimpleSet.emptySet; } finally { } } /** * @return true if the modifier list includes the SafeVarargs annotation * @attribute syn * @aspect SafeVarargs * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/SafeVarargs.jrag:14 */ public boolean hasAnnotationSafeVarargs() { ASTNode$State state = state(); try { return getModifiers().hasAnnotationSafeVarargs(); } finally { } } /** * A type is reifiable if it either refers to a non-parameterized type, is a * raw type, is a parameterized type with only unbound wildcard parameters * or is an array type with a reifiable type parameter. * * @see "JLSv3 &sect;4.7" * @attribute syn * @aspect SafeVarargs * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/SafeVarargs.jrag:106 */ public boolean isReifiable() { ASTNode$State state = state(); try { return true; } finally { } } /** * An unchecked conversion occurs when converting from a raw type G to a * generic type G<T1, ..., Tn>. * * @attribute syn * @aspect UncheckedConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/UncheckedConversion.jrag:50 */ public boolean isUncheckedConversionTo(TypeDecl dest) { ASTNode$State state = state(); try { return (!dest.isRawType()) && this.isRawType(); } finally { } } /** * @apilevel internal */ protected boolean componentType_computed = false; /** * @apilevel internal */ protected TypeDecl componentType_value; /** * @attribute inh * @aspect Arrays * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Arrays.jrag:21 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl componentType() { if (componentType_computed) { return componentType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); componentType_value = getParent().Define_TypeDecl_componentType(this, null); if (isFinal && num == state().boundariesCrossed) componentType_computed = true; return componentType_value; } /** * @attribute inh * @aspect Arrays * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Arrays.jrag:50 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeCloneable() { ASTNode$State state = state(); TypeDecl typeCloneable_value = getParent().Define_TypeDecl_typeCloneable(this, null); return typeCloneable_value; } /** * @attribute inh * @aspect Arrays * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Arrays.jrag:51 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeSerializable() { ASTNode$State state = state(); TypeDecl typeSerializable_value = getParent().Define_TypeDecl_typeSerializable(this, null); return typeSerializable_value; } /** * @attribute inh * @aspect ClassPath * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ClassPath.jrag:31 */ @SuppressWarnings({ "unchecked", "cast" }) public CompilationUnit compilationUnit() { ASTNode$State state = state(); CompilationUnit compilationUnit_value = getParent().Define_CompilationUnit_compilationUnit(this, null); return compilationUnit_value; } protected java.util.Map isDAbefore_Variable_values; /** * @attribute inh * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:240 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isDAbefore(Variable v) { Object _parameters = v; if (isDAbefore_Variable_values == null) isDAbefore_Variable_values = new java.util.HashMap(4); if (isDAbefore_Variable_values.containsKey(_parameters)) { return ((Boolean) isDAbefore_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAbefore_Variable_value = getParent().Define_boolean_isDAbefore(this, null, v); if (isFinal && num == state().boundariesCrossed) isDAbefore_Variable_values.put(_parameters, Boolean.valueOf(isDAbefore_Variable_value)); return isDAbefore_Variable_value; } protected java.util.Map isDUbefore_Variable_values; /** * @attribute inh * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:705 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isDUbefore(Variable v) { Object _parameters = v; if (isDUbefore_Variable_values == null) isDUbefore_Variable_values = new java.util.HashMap(4); if (isDUbefore_Variable_values.containsKey(_parameters)) { return ((Boolean) isDUbefore_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUbefore_Variable_value = getParent().Define_boolean_isDUbefore(this, null, v); if (isFinal && num == state().boundariesCrossed) isDUbefore_Variable_values.put(_parameters, Boolean.valueOf(isDUbefore_Variable_value)); return isDUbefore_Variable_value; } /** * @apilevel internal */ protected boolean typeException_computed = false; /** * @apilevel internal */ protected TypeDecl typeException_value; /** * @attribute inh * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:14 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeException() { if (typeException_computed) { return typeException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeException_value = getParent().Define_TypeDecl_typeException(this, null); if (isFinal && num == state().boundariesCrossed) typeException_computed = true; return typeException_value; } /** * @apilevel internal */ protected boolean typeRuntimeException_computed = false; /** * @apilevel internal */ protected TypeDecl typeRuntimeException_value; /** * @attribute inh * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:16 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeRuntimeException() { if (typeRuntimeException_computed) { return typeRuntimeException_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeRuntimeException_value = getParent().Define_TypeDecl_typeRuntimeException(this, null); if (isFinal && num == state().boundariesCrossed) typeRuntimeException_computed = true; return typeRuntimeException_value; } /** * @apilevel internal */ protected boolean typeError_computed = false; /** * @apilevel internal */ protected TypeDecl typeError_value; /** * @attribute inh * @aspect ExceptionHandling * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ExceptionHandling.jrag:18 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeError() { if (typeError_computed) { return typeError_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeError_value = getParent().Define_TypeDecl_typeError(this, null); if (isFinal && num == state().boundariesCrossed) typeError_computed = true; return typeError_value; } protected java.util.Map lookupMethod_String_values; /** * @attribute inh * @aspect LookupMethod * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:26 */ @SuppressWarnings({ "unchecked", "cast" }) public Collection lookupMethod(String name) { Object _parameters = name; if (lookupMethod_String_values == null) lookupMethod_String_values = new java.util.HashMap(4); if (lookupMethod_String_values.containsKey(_parameters)) { return (Collection) lookupMethod_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); Collection lookupMethod_String_value = getParent().Define_Collection_lookupMethod(this, null, name); if (isFinal && num == state().boundariesCrossed) lookupMethod_String_values.put(_parameters, lookupMethod_String_value); return lookupMethod_String_value; } /** * @attribute inh * @aspect SpecialClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:62 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeInt() { ASTNode$State state = state(); TypeDecl typeInt_value = getParent().Define_TypeDecl_typeInt(this, null); return typeInt_value; } /** * @apilevel internal */ protected boolean typeObject_computed = false; /** * @apilevel internal */ protected TypeDecl typeObject_value; /** * @attribute inh * @aspect SpecialClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:65 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeObject() { if (typeObject_computed) { return typeObject_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeObject_value = getParent().Define_TypeDecl_typeObject(this, null); if (isFinal && num == state().boundariesCrossed) typeObject_computed = true; return typeObject_value; } /** * @attribute inh * @aspect LookupFullyQualifiedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:98 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl lookupType(String packageName, String typeName) { ASTNode$State state = state(); TypeDecl lookupType_String_String_value = getParent().Define_TypeDecl_lookupType(this, null, packageName, typeName); return lookupType_String_String_value; } protected java.util.Map lookupType_String_values; /** * @attribute inh * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:260 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet lookupType(String name) { Object _parameters = name; if (lookupType_String_values == null) lookupType_String_values = new java.util.HashMap(4); if (lookupType_String_values.containsKey(_parameters)) { return (SimpleSet) lookupType_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet lookupType_String_value = getParent().Define_SimpleSet_lookupType(this, null, name); if (isFinal && num == state().boundariesCrossed) lookupType_String_values.put(_parameters, lookupType_String_value); return lookupType_String_value; } protected java.util.Map lookupVariable_String_values; /** * @attribute inh * @aspect VariableScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:14 */ @SuppressWarnings({ "unchecked", "cast" }) public SimpleSet lookupVariable(String name) { Object _parameters = name; if (lookupVariable_String_values == null) lookupVariable_String_values = new java.util.HashMap(4); if (lookupVariable_String_values.containsKey(_parameters)) { return (SimpleSet) lookupVariable_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet lookupVariable_String_value = getParent().Define_SimpleSet_lookupVariable(this, null, name); if (isFinal && num == state().boundariesCrossed) lookupVariable_String_values.put(_parameters, lookupVariable_String_value); return lookupVariable_String_value; } /** * @attribute inh * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:242 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean hasPackage(String packageName) { ASTNode$State state = state(); boolean hasPackage_String_value = getParent().Define_boolean_hasPackage(this, null, packageName); return hasPackage_String_value; } /** * @attribute inh * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:245 */ @SuppressWarnings({ "unchecked", "cast" }) public ASTNode enclosingBlock() { ASTNode$State state = state(); ASTNode enclosingBlock_value = getParent().Define_ASTNode_enclosingBlock(this, null); return enclosingBlock_value; } /** * @apilevel internal */ protected boolean packageName_computed = false; /** * @apilevel internal */ protected String packageName_value; /** * @attribute inh * @aspect TypeName * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:89 */ @SuppressWarnings({ "unchecked", "cast" }) public String packageName() { if (packageName_computed) { return packageName_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); packageName_value = getParent().Define_String_packageName(this, null); if (isFinal && num == state().boundariesCrossed) packageName_computed = true; return packageName_value; } /** * @apilevel internal */ protected boolean isAnonymous_computed = false; /** * @apilevel internal */ protected boolean isAnonymous_value; /** * @attribute inh * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:216 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isAnonymous() { if (isAnonymous_computed) { return isAnonymous_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isAnonymous_value = getParent().Define_boolean_isAnonymous(this, null); if (isFinal && num == state().boundariesCrossed) isAnonymous_computed = true; return isAnonymous_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:496 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl enclosingType() { ASTNode$State state = state(); TypeDecl enclosingType_value = getParent().Define_TypeDecl_enclosingType(this, null); return enclosingType_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:512 */ @SuppressWarnings({ "unchecked", "cast" }) public BodyDecl enclosingBodyDecl() { ASTNode$State state = state(); BodyDecl enclosingBodyDecl_value = getParent().Define_BodyDecl_enclosingBodyDecl(this, null); return enclosingBodyDecl_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:518 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isNestedType() { ASTNode$State state = state(); boolean isNestedType_value = getParent().Define_boolean_isNestedType(this, null); return isNestedType_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:526 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isMemberType() { ASTNode$State state = state(); boolean isMemberType_value = getParent().Define_boolean_isMemberType(this, null); return isMemberType_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:540 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean isLocalClass() { ASTNode$State state = state(); boolean isLocalClass_value = getParent().Define_boolean_isLocalClass(this, null); return isLocalClass_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:565 */ @SuppressWarnings({ "unchecked", "cast" }) public String hostPackage() { ASTNode$State state = state(); String hostPackage_value = getParent().Define_String_hostPackage(this, null); return hostPackage_value; } /** * @apilevel internal */ protected boolean unknownType_computed = false; /** * @apilevel internal */ protected TypeDecl unknownType_value; /** * @attribute inh * @aspect Circularity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:675 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl unknownType() { if (unknownType_computed) { return unknownType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); unknownType_value = getParent().Define_TypeDecl_unknownType(this, null); if (isFinal && num == state().boundariesCrossed) unknownType_computed = true; return unknownType_value; } /** * @attribute inh * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:402 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeVoid() { ASTNode$State state = state(); TypeDecl typeVoid_value = getParent().Define_TypeDecl_typeVoid(this, null); return typeVoid_value; } /** * @attribute inh * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:505 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl enclosingInstance() { ASTNode$State state = state(); TypeDecl enclosingInstance_value = getParent().Define_TypeDecl_enclosingInstance(this, null); return enclosingInstance_value; } /** * @apilevel internal */ protected boolean inExplicitConstructorInvocation_computed = false; /** * @apilevel internal */ protected boolean inExplicitConstructorInvocation_value; /** * @attribute inh * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:127 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean inExplicitConstructorInvocation() { if (inExplicitConstructorInvocation_computed) { return inExplicitConstructorInvocation_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); inExplicitConstructorInvocation_value = getParent().Define_boolean_inExplicitConstructorInvocation(this, null); if (isFinal && num == state().boundariesCrossed) inExplicitConstructorInvocation_computed = true; return inExplicitConstructorInvocation_value; } /** * @apilevel internal */ protected boolean inStaticContext_computed = false; /** * @apilevel internal */ protected boolean inStaticContext_value; /** * @attribute inh * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:135 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean inStaticContext() { if (inStaticContext_computed) { return inStaticContext_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); inStaticContext_value = getParent().Define_boolean_inStaticContext(this, null); if (isFinal && num == state().boundariesCrossed) inStaticContext_computed = true; return inStaticContext_value; } /** * @attribute inh * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:280 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean withinSuppressWarnings(String s) { ASTNode$State state = state(); boolean withinSuppressWarnings_String_value = getParent().Define_boolean_withinSuppressWarnings(this, null, s); return withinSuppressWarnings_String_value; } /** * @attribute inh * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:379 */ @SuppressWarnings({ "unchecked", "cast" }) public boolean withinDeprecatedAnnotation() { ASTNode$State state = state(); boolean withinDeprecatedAnnotation_value = getParent().Define_boolean_withinDeprecatedAnnotation(this, null); return withinDeprecatedAnnotation_value; } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1384 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl typeWildcard() { ASTNode$State state = state(); TypeDecl typeWildcard_value = getParent().Define_TypeDecl_typeWildcard(this, null); return typeWildcard_value; } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1397 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl lookupWildcardExtends(TypeDecl typeDecl) { ASTNode$State state = state(); TypeDecl lookupWildcardExtends_TypeDecl_value = getParent().Define_TypeDecl_lookupWildcardExtends(this, null, typeDecl); return lookupWildcardExtends_TypeDecl_value; } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1410 */ @SuppressWarnings({ "unchecked", "cast" }) public TypeDecl lookupWildcardSuper(TypeDecl typeDecl) { ASTNode$State state = state(); TypeDecl lookupWildcardSuper_TypeDecl_value = getParent().Define_TypeDecl_lookupWildcardSuper(this, null, typeDecl); return lookupWildcardSuper_TypeDecl_value; } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1430 */ @SuppressWarnings({ "unchecked", "cast" }) public LUBType lookupLUBType(Collection bounds) { ASTNode$State state = state(); LUBType lookupLUBType_Collection_value = getParent().Define_LUBType_lookupLUBType(this, null, bounds); return lookupLUBType_Collection_value; } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1468 */ @SuppressWarnings({ "unchecked", "cast" }) public GLBType lookupGLBType(ArrayList bounds) { ASTNode$State state = state(); GLBType lookupGLBType_ArrayList_value = getParent().Define_GLBType_lookupGLBType(this, null, bounds); return lookupGLBType_ArrayList_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Arrays.jrag:20 * @apilevel internal */ public TypeDecl Define_TypeDecl_componentType(ASTNode caller, ASTNode child) { if (caller == arrayType_value) { return this; } else { return getParent().Define_TypeDecl_componentType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:20 * @apilevel internal */ public boolean Define_boolean_isDest(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_isDest(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:30 * @apilevel internal */ public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return true; } else { return getParent().Define_boolean_isSource(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:245 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { BodyDecl b = getBodyDecl(childIndex); // if(b instanceof MethodDecl || b instanceof MemberTypeDecl) { if (!v.isInstanceVariable() && !v.isClassVariable()) { if (v.hostType() != this) return isDAbefore(v); return false; } if (b instanceof FieldDeclaration && !((FieldDeclaration) b).isStatic() && v.isClassVariable()) return true; if (b instanceof MethodDecl) { return true; } if (b instanceof MemberTypeDecl && v.isBlank() && v.isFinal() && v.hostType() == this) return true; if (v.isClassVariable() || v.isInstanceVariable()) { if (v.isFinal() && v.hostType() != this && instanceOf(v.hostType())) return true; int index = childIndex - 1; if (b instanceof ConstructorDecl) index = getNumBodyDecl() - 1; for (int i = index; i >= 0; i--) { b = getBodyDecl(i); if (b instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration) b; if ((v.isClassVariable() && f.isStatic()) || (v.isInstanceVariable() && !f.isStatic())) { boolean c = f.isDAafter(v); // System.err.println("DefiniteAssignment: is " // + v.name() + " DA after index " + i + ", " + // f + ": " + c); return c; // return f.isDAafter(v); } } else if (b instanceof StaticInitializer && v.isClassVariable()) { StaticInitializer si = (StaticInitializer) b; return si.isDAafter(v); } else if (b instanceof InstanceInitializer && v.isInstanceVariable()) { InstanceInitializer ii = (InstanceInitializer) b; return ii.isDAafter(v); } } } return isDAbefore(v); } } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:712 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { BodyDecl b = getBodyDecl(childIndex); if (b instanceof MethodDecl || b instanceof MemberTypeDecl) { return false; } if (v.isClassVariable() || v.isInstanceVariable()) { int index = childIndex - 1; if (b instanceof ConstructorDecl) index = getNumBodyDecl() - 1; for (int i = index; i >= 0; i--) { b = getBodyDecl(i); if (b instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration) b; // System.err.println(" working on field " + // f.name() + " which is child " + i); if (f == v) return !f.hasInit(); if ((v.isClassVariable() && f.isStatic()) || (v.isInstanceVariable() && !f.isStatic())) return f.isDUafter(v); // System.err.println(" field " + f.name() + " can // not affect " + v.name()); } else if (b instanceof StaticInitializer && v.isClassVariable()) { StaticInitializer si = (StaticInitializer) b; // System.err.println(" working on static // initializer which is child " + i); return si.isDUafter(v); } else if (b instanceof InstanceInitializer && v.isInstanceVariable()) { InstanceInitializer ii = (InstanceInitializer) b; // System.err.println(" working on instance // initializer which is child " + i); return ii.isDUafter(v); } } } // System.err.println("Reached TypeDecl when searching for DU // for variable"); return isDUbefore(v); } } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupConstructor.jrag:16 * @apilevel internal */ public Collection Define_Collection_lookupConstructor(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return constructors(); } else { return getParent().Define_Collection_lookupConstructor(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupConstructor.jrag:20 * @apilevel internal */ public Collection Define_Collection_lookupSuperConstructor(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return lookupSuperConstructor(); } else { return getParent().Define_Collection_lookupSuperConstructor(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:34 * @apilevel internal */ public Collection Define_Collection_lookupMethod(ASTNode caller, ASTNode child, String name) { if (caller == getBodyDeclListNoTransform()) { int i = caller.getIndexOfChild(child); return unqualifiedLookupMethod(name); } else { return getParent().Define_Collection_lookupMethod(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:358 * @apilevel internal */ public SimpleSet Define_SimpleSet_lookupType(ASTNode caller, ASTNode child, String name) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { SimpleSet c = memberTypes(name); if (!c.isEmpty()) return c; if (name().equals(name)) return SimpleSet.emptySet.add(this); c = lookupType(name); // 8.5.2 if (isClassDecl() && isStatic() && !isTopLevelType()) { SimpleSet newSet = SimpleSet.emptySet; for (Iterator iter = c.iterator(); iter.hasNext();) { TypeDecl d = (TypeDecl) iter.next(); // if(d.isStatic() || d.isTopLevelType() || // this.instanceOf(d.enclosingType())) { newSet = newSet.add(d); // } } c = newSet; } return c; } } else { return getParent().Define_SimpleSet_lookupType(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:27 * @apilevel internal */ public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name) { if (caller == getBodyDeclListNoTransform()) { int i = caller.getIndexOfChild(child); { SimpleSet list = memberFields(name); if (!list.isEmpty()) return list; list = lookupVariable(name); if (inStaticContext() || isStatic()) list = removeInstanceVariables(list); return list; } } else { return getParent().Define_SimpleSet_lookupVariable(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:301 * @apilevel internal */ public boolean Define_boolean_mayBePublic(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else if (caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBePublic(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:302 * @apilevel internal */ public boolean Define_boolean_mayBeProtected(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else if (caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBeProtected(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:303 * @apilevel internal */ public boolean Define_boolean_mayBePrivate(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else if (caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBePrivate(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:306 * @apilevel internal */ public boolean Define_boolean_mayBeAbstract(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else if (caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBeAbstract(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:304 * @apilevel internal */ public boolean Define_boolean_mayBeStatic(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else if (caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBeStatic(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:309 * @apilevel internal */ public boolean Define_boolean_mayBeStrictfp(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else if (caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBeStrictfp(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:305 * @apilevel internal */ public boolean Define_boolean_mayBeFinal(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_mayBeFinal(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:307 * @apilevel internal */ public boolean Define_boolean_mayBeVolatile(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_mayBeVolatile(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:308 * @apilevel internal */ public boolean Define_boolean_mayBeTransient(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_mayBeTransient(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:310 * @apilevel internal */ public boolean Define_boolean_mayBeSynchronized(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_mayBeSynchronized(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:311 * @apilevel internal */ public boolean Define_boolean_mayBeNative(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_mayBeNative(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:297 * @apilevel internal */ public VariableScope Define_VariableScope_outerScope(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return this; } else { return getParent().Define_VariableScope_outerScope(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:369 * @apilevel internal */ public boolean Define_boolean_insideLoop(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int i = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_insideLoop(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:376 * @apilevel internal */ public boolean Define_boolean_insideSwitch(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int i = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_insideSwitch(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:118 * @apilevel internal */ public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return NameType.EXPRESSION_NAME; } else { return getParent().Define_NameType_nameType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:218 * @apilevel internal */ public boolean Define_boolean_isAnonymous(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_isAnonymous(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:494 * @apilevel internal */ public TypeDecl Define_TypeDecl_enclosingType(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return this; } else { return getParent().Define_TypeDecl_enclosingType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:520 * @apilevel internal */ public boolean Define_boolean_isNestedType(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return true; } else { return getParent().Define_boolean_isNestedType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:542 * @apilevel internal */ public boolean Define_boolean_isLocalClass(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_isLocalClass(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:575 * @apilevel internal */ public TypeDecl Define_TypeDecl_hostType(ASTNode caller, ASTNode child) { if (caller == getModifiersNoTransform()) { return hostType(); } else if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return hostType(); } else { int childIndex = this.getIndexOfChild(caller); return hostType(); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:404 * @apilevel internal */ public TypeDecl Define_TypeDecl_returnType(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return typeVoid(); } else { return getParent().Define_TypeDecl_returnType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:509 * @apilevel internal */ public TypeDecl Define_TypeDecl_enclosingInstance(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); { if (getBodyDecl(childIndex) instanceof MemberTypeDecl && !((MemberTypeDecl) getBodyDecl(childIndex)).typeDecl().isInnerType()) return null; if (getBodyDecl(childIndex) instanceof ConstructorDecl) return enclosingInstance(); return this; } } else { return getParent().Define_TypeDecl_enclosingInstance(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:12 * @apilevel internal */ public String Define_String_methodHost(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return typeName(); } else { return getParent().Define_String_methodHost(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:138 * @apilevel internal */ public boolean Define_boolean_inStaticContext(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return isStatic() || inStaticContext(); } else { return getParent().Define_boolean_inStaticContext(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:159 * @apilevel internal */ public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child) { { int childIndex = this.getIndexOfChild(caller); return true; } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:74 * @apilevel internal */ public boolean Define_boolean_mayUseAnnotationTarget(ASTNode caller, ASTNode child, String name) { if (caller == getModifiersNoTransform()) { return name.equals("TYPE"); } else { return getParent().Define_boolean_mayUseAnnotationTarget(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:271 * @apilevel internal */ public boolean Define_boolean_withinSuppressWarnings(ASTNode caller, ASTNode child, String s) { if (caller == getBodyDeclListNoTransform()) { int i = caller.getIndexOfChild(child); return getBodyDecl(i).hasAnnotationSuppressWarnings(s) || hasAnnotationSuppressWarnings(s) || withinSuppressWarnings(s); } else { return getParent().Define_boolean_withinSuppressWarnings(this, caller, s); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:374 * @apilevel internal */ public boolean Define_boolean_withinDeprecatedAnnotation(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int i = caller.getIndexOfChild(child); return getBodyDecl(i).isDeprecated() || isDeprecated() || withinDeprecatedAnnotation(); } else { return getParent().Define_boolean_withinDeprecatedAnnotation(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:350 * @apilevel internal */ public boolean Define_boolean_enclosedByExceptionHandler(ASTNode caller, ASTNode child) { if (caller == getBodyDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return false; } else { return getParent().Define_boolean_enclosedByExceptionHandler(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
221,629
28.452492
123
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TypeDescriptor.java
package soot.JastAddJ; import java.util.HashSet; 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 class * */ public class TypeDescriptor extends java.lang.Object { private BytecodeParser p; private String descriptor; public TypeDescriptor(BytecodeParser parser, String descriptor) { p = parser; this.descriptor = descriptor; } public boolean isBoolean() { return descriptor.charAt(0) == 'Z'; } public Access type() { return type(descriptor); } public Access type(String s) { char c = s.charAt(0); switch (c) { case 'B': return new PrimitiveTypeAccess("byte"); case 'C': return new PrimitiveTypeAccess("char"); case 'D': return new PrimitiveTypeAccess("double"); case 'F': return new PrimitiveTypeAccess("float"); case 'I': return new PrimitiveTypeAccess("int"); case 'J': return new PrimitiveTypeAccess("long"); case 'S': return new PrimitiveTypeAccess("short"); case 'Z': return new PrimitiveTypeAccess("boolean"); case 'L': return this.p.fromClassName(s.substring(1, s.length() - 1)); case '[': return new ArrayTypeAccess(type(s.substring(1))); case 'V': return new PrimitiveTypeAccess("void"); default: this.p.println("Error: unknown type in TypeDescriptor"); throw new Error("Error: unknown Type in TypeDescriptor: " + s); } //return null; } public List parameterList() { List list = new List(); String s = descriptor; while(!s.equals("")) { s = typeList(s, list); } return list; } public List parameterListSkipFirst() { List list = new List(); String s = descriptor; if(!s.equals("")) s = typeList(s, new List()); // skip first while(!s.equals("")) { s = typeList(s, list); } return list; } public String typeList(String s, List l) { char c = s.charAt(0); switch (c) { case 'B': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("byte"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'C': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("char"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'D': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("double"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'F': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("float"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'I': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("int"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'J': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("long"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'S': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("short"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'Z': l.add(new ParameterDeclaration(new Modifiers(), new PrimitiveTypeAccess("boolean"), "p" + l.getNumChildNoTransform())); return s.substring(1); case 'L': int pos = s.indexOf(';'); String s1 = s.substring(1, pos); String s2 = s.substring(pos+1, s.length()); l.add(new ParameterDeclaration(new Modifiers(), this.p.fromClassName(s1), "p" + l.getNumChildNoTransform())); return s2; case '[': int i = 1; while(s.charAt(i) == '[') i++; ArrayTypeAccess bottom = new ArrayTypeAccess(new ParseName("")); // dummy name is replaced later ArrayTypeAccess top = bottom; for(int j = 0; j < i - 1; j++) top = new ArrayTypeAccess(top); l.add(new ParameterDeclaration(new Modifiers(), top, "p" + l.getNumChild())); return arrayTypeList(s.substring(i), bottom); default: this.p.println("Error: unknown Type \"" + c + "\" in TypeDescriptor"); throw new Error("Error: unknown Type in TypeDescriptor: " + s); } //return ""; } public String arrayTypeList(String s, ArrayTypeAccess typeAccess) { char c = s.charAt(0); switch (c) { case 'B': typeAccess.setAccess(new PrimitiveTypeAccess("byte")); return s.substring(1); case 'C': typeAccess.setAccess(new PrimitiveTypeAccess("char")); return s.substring(1); case 'D': typeAccess.setAccess(new PrimitiveTypeAccess("double")); return s.substring(1); case 'F': typeAccess.setAccess(new PrimitiveTypeAccess("float")); return s.substring(1); case 'I': typeAccess.setAccess(new PrimitiveTypeAccess("int")); return s.substring(1); case 'J': typeAccess.setAccess(new PrimitiveTypeAccess("long")); return s.substring(1); case 'S': typeAccess.setAccess(new PrimitiveTypeAccess("short")); return s.substring(1); case 'Z': typeAccess.setAccess(new PrimitiveTypeAccess("boolean")); return s.substring(1); case 'L': //String[] strings = s.substring(1).split("\\;", 2); //typeAccess.setAccess(this.p.fromClassName(strings[0])); //return strings[1]; int pos = s.indexOf(';'); String s1 = s.substring(1, pos); String s2 = s.substring(pos+1, s.length()); typeAccess.setAccess(this.p.fromClassName(s1)); return s2; default: this.p.println("Error: unknown Type in TypeDescriptor"); throw new Error("Error: unknown Type in TypeDescriptor: " + s); } //return null; } }
6,718
30.251163
106
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TypeImportOnDemandDecl.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production TypeImportOnDemandDecl : {@link ImportDecl}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:12 */ public class TypeImportOnDemandDecl extends ImportDecl implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); importedTypes_String_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TypeImportOnDemandDecl clone() throws CloneNotSupportedException { TypeImportOnDemandDecl node = (TypeImportOnDemandDecl)super.clone(); node.importedTypes_String_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TypeImportOnDemandDecl copy() { try { TypeImportOnDemandDecl node = (TypeImportOnDemandDecl) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public TypeImportOnDemandDecl fullCopy() { TypeImportOnDemandDecl tree = (TypeImportOnDemandDecl) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:30 */ public void nameCheck() { if(getAccess().lastAccess().isTypeAccess() && !getAccess().type().typeName().equals(typeName())) error("On demand type import " + typeName() + ".* is not the canonical name of type " + getAccess().type().typeName()); } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:56 */ public void toString(StringBuffer s) { s.append("import "); getAccess().toString(s); s.append(".*;\n"); } /** * @ast method * */ public TypeImportOnDemandDecl() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[1]; } /** * @ast method * */ public TypeImportOnDemandDecl(Access p0) { setChild(p0, 0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 1; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Access child. * @param node The new node to replace the Access child. * @apilevel high-level * @ast method * */ public void setAccess(Access node) { setChild(node, 0); } /** * Retrieves the Access child. * @return The current node used as the Access child. * @apilevel high-level * @ast method * */ public Access getAccess() { return (Access)getChild(0); } /** * Retrieves the Access child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Access child. * @apilevel low-level * @ast method * */ public Access getAccessNoTransform() { return (Access)getChildNoTransform(0); } protected java.util.Map importedTypes_String_values; /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:329 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet importedTypes(String name) { Object _parameters = name; if(importedTypes_String_values == null) importedTypes_String_values = new java.util.HashMap(4); if(importedTypes_String_values.containsKey(_parameters)) { return (SimpleSet)importedTypes_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet importedTypes_String_value = importedTypes_compute(name); if(isFinal && num == state().boundariesCrossed) importedTypes_String_values.put(_parameters, importedTypes_String_value); return importedTypes_String_value; } /** * @apilevel internal */ private SimpleSet importedTypes_compute(String name) { SimpleSet set = SimpleSet.emptySet; if(getAccess() instanceof PackageAccess) { String packageName = ((PackageAccess)getAccess()).getPackage(); TypeDecl typeDecl = lookupType(packageName, name); if(typeDecl != null && typeDecl.accessibleFromPackage(packageName()) && typeDecl.typeName().equals(packageName + "." + name)) // canonical names match set = set.add(typeDecl); } else { for(Iterator iter = getAccess().type().memberTypes(name).iterator(); iter.hasNext(); ) { TypeDecl decl = (TypeDecl)iter.next(); if(decl.accessibleFromPackage(packageName()) && decl.typeName().equals(getAccess().typeName() + "." + name)) // canonical names match set = set.add(decl); } } return set; } /** * @attribute syn * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:351 */ public boolean isOnDemand() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute inh * @aspect TypeScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupType.jrag:348 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lookupType(String packageName, String typeName) { ASTNode$State state = state(); TypeDecl lookupType_String_String_value = getParent().Define_TypeDecl_lookupType(this, null, packageName, typeName); return lookupType_String_String_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:107 * @apilevel internal */ public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if(caller == getAccessNoTransform()) { return NameType.PACKAGE_OR_TYPE_NAME; } else { return getParent().Define_NameType_nameType(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
7,723
28.480916
127
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/TypeVariable.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production TypeVariable : {@link ReferenceType} ::= <span class="component">{@link Modifiers}</span> <span class="component">&lt;ID:String&gt;</span> <span class="component">{@link BodyDecl}*</span> <span class="component">TypeBound:{@link Access}*</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:18 */ public class TypeVariable extends ReferenceType implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); toInterface_computed = false; toInterface_value = null; involvesTypeParameters_visited = -1; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; memberFields_String_values = null; castingConversionTo_TypeDecl_values = null; erasure_computed = false; erasure_value = null; fullName_computed = false; fullName_value = null; lubType_computed = false; lubType_value = null; usesTypeVariable_visited = -1; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; accessibleFrom_TypeDecl_values = null; typeName_computed = false; typeName_value = null; sameStructure_TypeDecl_values = null; subtype_TypeDecl_values = null; getSubstitutedTypeBound_int_TypeDecl_values = null; instanceOf_TypeDecl_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TypeVariable clone() throws CloneNotSupportedException { TypeVariable node = (TypeVariable)super.clone(); node.toInterface_computed = false; node.toInterface_value = null; node.involvesTypeParameters_visited = -1; node.involvesTypeParameters_computed = false; node.involvesTypeParameters_initialized = false; node.memberFields_String_values = null; node.castingConversionTo_TypeDecl_values = null; node.erasure_computed = false; node.erasure_value = null; node.fullName_computed = false; node.fullName_value = null; node.lubType_computed = false; node.lubType_value = null; node.usesTypeVariable_visited = -1; node.usesTypeVariable_computed = false; node.usesTypeVariable_initialized = false; node.accessibleFrom_TypeDecl_values = null; node.typeName_computed = false; node.typeName_value = null; node.sameStructure_TypeDecl_values = null; node.subtype_TypeDecl_values = null; node.getSubstitutedTypeBound_int_TypeDecl_values = null; node.instanceOf_TypeDecl_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public TypeVariable copy() { try { TypeVariable node = (TypeVariable) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public TypeVariable fullCopy() { TypeVariable tree = (TypeVariable) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect GenericTypeVariables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag:28 */ public void nameCheck() { if(extractSingleType(lookupType(name())) != this) error("*** Semantic Error: type variable " + name() + " is multiply declared"); } /** * @ast method * @aspect GenricTypeVariablesTypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag:66 */ public void typeCheck() { if(!getTypeBound(0).type().isTypeVariable() && !getTypeBound(0).type().isClassDecl() && !getTypeBound(0).type().isInterfaceDecl()) { error("the first type bound must be either a type variable, or a class or interface type which " + getTypeBound(0).type().fullName() + " is not"); } for(int i = 1; i < getNumTypeBound(); i++) { if(!getTypeBound(i).type().isInterfaceDecl()) { error("type bound " + i + " must be an interface type which " + getTypeBound(i).type().fullName() + " is not"); } } HashSet typeSet = new HashSet(); for(int i = 0; i < getNumTypeBound(); i++) { TypeDecl type = getTypeBound(i).type(); TypeDecl erasure = type.erasure(); if(typeSet.contains(erasure)) { if(type != erasure) { error("the erasure " + erasure.fullName() + " of typebound " + getTypeBound(i) + " is multiply declared in " + this); } else { error(type.fullName() + " is multiply declared"); } } typeSet.add(erasure); } for(int i = 0; i < getNumTypeBound(); i++) { TypeDecl type = getTypeBound(i).type(); for(Iterator iter = type.methodsIterator(); iter.hasNext(); ) { MethodDecl m = (MethodDecl)iter.next(); for(int j = i+1; j < getNumTypeBound(); j++) { TypeDecl destType = getTypeBound(j).type(); for(Iterator destIter = destType.memberMethods(m.name()).iterator(); destIter.hasNext(); ) { MethodDecl n = (MethodDecl)destIter.next(); if(m.sameSignature(n) && m.type() != n.type()) { error("the two bounds, " + type.name() + " and " + destType.name() + ", in type variable " + name() + " have a method " + m.signature() + " with conflicting return types " + m.type().name() + " and " + n.type().name()); } } } } } } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:883 */ public Access substitute(Parameterization parTypeDecl) { if(parTypeDecl.isRawType()) return erasure().createBoundAccess(); return parTypeDecl.substitute(this).createBoundAccess(); } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:928 */ public Access substituteReturnType(Parameterization parTypeDecl) { if(parTypeDecl.isRawType()) return erasure().createBoundAccess(); TypeDecl typeDecl = parTypeDecl.substitute(this); if(typeDecl instanceof WildcardType) { // the bound of this type variable return createBoundAccess(); //return lubType().createBoundAccess(); //return typeObject().createBoundAccess(); } else if(typeDecl instanceof WildcardExtendsType) { if(typeDecl.instanceOf(this)) return ((WildcardExtendsType)typeDecl).extendsType().createBoundAccess(); else return createBoundAccess(); // the bound of this type variable of the bound of the wild card if it is more specific //return ((WildcardExtendsType)typeDecl).extendsType().createBoundAccess(); } else if(typeDecl instanceof WildcardSuperType) { // the bound of this type variable return createBoundAccess(); //return typeObject().createBoundAccess(); } return typeDecl.createBoundAccess(); } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:962 */ public Access substituteParameterType(Parameterization parTypeDecl) { if(parTypeDecl.isRawType()) return erasure().createBoundAccess(); TypeDecl typeDecl = parTypeDecl.substitute(this); if(typeDecl instanceof WildcardType) return typeNull().createQualifiedAccess(); else if(typeDecl instanceof WildcardExtendsType) return typeNull().createQualifiedAccess(); else if(typeDecl instanceof WildcardSuperType) return ((WildcardSuperType)typeDecl).superType().createBoundAccess(); return typeDecl.createBoundAccess(); } /** * @ast method * @aspect NewGenerics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1495 */ public Access createQualifiedAccess() { return createBoundAccess(); } /** * @ast method * @aspect GenericsPrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsPrettyPrint.jrag:11 */ public void toString(StringBuffer s) { s.append(name()); if(getNumTypeBound() > 0) { s.append(" extends "); s.append(getTypeBound(0).type().fullName()); for(int i = 1; i < getNumTypeBound(); i++) { s.append(" & "); s.append(getTypeBound(i).type().fullName()); } } } /** * @ast method * */ public TypeVariable() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[3]; setChild(new List(), 1); setChild(new List(), 2); } /** * @ast method * */ public TypeVariable(Modifiers p0, String p1, List<BodyDecl> p2, List<Access> p3) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); } /** * @ast method * */ public TypeVariable(Modifiers p0, beaver.Symbol p1, List<BodyDecl> p2, List<Access> p3) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 3; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return true; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public BodyDecl getBodyDecl(int i) { return (BodyDecl)getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>)getChildNoTransform(1); } /** * Replaces the TypeBound list. * @param list The new list node to be used as the TypeBound list. * @apilevel high-level * @ast method * */ public void setTypeBoundList(List<Access> list) { setChild(list, 2); } /** * Retrieves the number of children in the TypeBound list. * @return Number of children in the TypeBound list. * @apilevel high-level * @ast method * */ public int getNumTypeBound() { return getTypeBoundList().getNumChild(); } /** * Retrieves the number of children in the TypeBound list. * Calling this method will not trigger rewrites.. * @return Number of children in the TypeBound list. * @apilevel low-level * @ast method * */ public int getNumTypeBoundNoTransform() { return getTypeBoundListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the TypeBound list.. * @param i Index of the element to return. * @return The element at position {@code i} in the TypeBound list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Access getTypeBound(int i) { return (Access)getTypeBoundList().getChild(i); } /** * Append an element to the TypeBound list. * @param node The element to append to the TypeBound list. * @apilevel high-level * @ast method * */ public void addTypeBound(Access node) { List<Access> list = (parent == null || state == null) ? getTypeBoundListNoTransform() : getTypeBoundList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addTypeBoundNoTransform(Access node) { List<Access> list = getTypeBoundListNoTransform(); list.addChild(node); } /** * Replaces the TypeBound list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setTypeBound(Access node, int i) { List<Access> list = getTypeBoundList(); list.setChild(node, i); } /** * Retrieves the TypeBound list. * @return The node representing the TypeBound list. * @apilevel high-level * @ast method * */ public List<Access> getTypeBounds() { return getTypeBoundList(); } /** * Retrieves the TypeBound list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the TypeBound list. * @apilevel low-level * @ast method * */ public List<Access> getTypeBoundsNoTransform() { return getTypeBoundListNoTransform(); } /** * Retrieves the TypeBound list. * @return The node representing the TypeBound list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Access> getTypeBoundList() { List<Access> list = (List<Access>)getChild(2); list.getNumChild(); return list; } /** * Retrieves the TypeBound list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the TypeBound list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Access> getTypeBoundListNoTransform() { return (List<Access>)getChildNoTransform(2); } /** * @apilevel internal */ protected boolean toInterface_computed = false; /** * @apilevel internal */ protected TypeDecl toInterface_value; /** * @attribute syn * @aspect GreatestLowerBoundFactory * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GLBTypeFactory.jadd:12 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl toInterface() { if(toInterface_computed) { return toInterface_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); toInterface_value = toInterface_compute(); toInterface_value.setParent(this); toInterface_value.is$Final = true; if(true) toInterface_computed = true; return toInterface_value; } /** * @apilevel internal */ private TypeDecl toInterface_compute() { // convert var to interface InterfaceDecl ITj = new InterfaceDecl(); ITj.setID("ITj_" + hashCode()); // I'm assuming that TypeVariable has no members of it's own. // TODO: would it be enough to add only public members of a bound // that is TypeVariable or ClassDecl and add other (interface) // bounds as superinterfaces to ITj // TODO: Is it really necessary to add public members to the new // interface? Or is an empty interface more than enough since java // has a nominal type system. for (int i = 0; i < getNumTypeBound(); i++) { TypeDecl bound = getTypeBound(i).type(); for (int j = 0; j < bound.getNumBodyDecl(); j++) { BodyDecl bd = bound.getBodyDecl(j); if (bd instanceof FieldDeclaration) { FieldDeclaration fd = (FieldDeclaration) bd.fullCopy(); if (fd.isPublic()) ITj.addBodyDecl(fd); } else if (bd instanceof MethodDecl) { MethodDecl md = (MethodDecl) bd; if (md.isPublic()) ITj.addBodyDecl((BodyDecl)md.fullCopy()); } } } return ITj; } /** * @apilevel internal */ protected int involvesTypeParameters_visited = -1; /** * @apilevel internal */ protected boolean involvesTypeParameters_computed = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_initialized = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_value; /** * @attribute syn * @aspect GenericMethodsInference * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericMethodsInference.jrag:16 */ @SuppressWarnings({"unchecked", "cast"}) public boolean involvesTypeParameters() { if(involvesTypeParameters_computed) { return involvesTypeParameters_value; } ASTNode$State state = state(); if (!involvesTypeParameters_initialized) { involvesTypeParameters_initialized = true; involvesTypeParameters_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { involvesTypeParameters_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value!=involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { involvesTypeParameters_computed = true; } else { state.RESET_CYCLE = true; involvesTypeParameters_compute(); state.RESET_CYCLE = false; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; } state.IN_CIRCLE = false; return involvesTypeParameters_value; } if(involvesTypeParameters_visited != state.CIRCLE_INDEX) { involvesTypeParameters_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; involvesTypeParameters_visited = -1; return involvesTypeParameters_value; } boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value!=involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; return involvesTypeParameters_value; } return involvesTypeParameters_value; } /** * @apilevel internal */ private boolean involvesTypeParameters_compute() { return true; } /** * @attribute syn * @aspect GenericTypeVariables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag:33 */ public TypeDecl lowerBound() { ASTNode$State state = state(); try { return getTypeBound(0).type(); } finally { } } /** * @attribute syn * @aspect MemberMethods * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupMethod.jrag:210 */ public Collection memberMethods(String name) { ASTNode$State state = state(); try { Collection list = new HashSet(); for(int i = 0; i < getNumTypeBound(); i++) { for(Iterator iter = getTypeBound(i).type().memberMethods(name).iterator(); iter.hasNext(); ) { MethodDecl decl = (MethodDecl)iter.next(); //if(decl.accessibleFrom(hostType())) list.add(decl); } } return list; } finally { } } protected java.util.Map memberFields_String_values; /** * @attribute syn * @aspect GenericTypeVariablesMembers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag:50 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet memberFields(String name) { Object _parameters = name; if(memberFields_String_values == null) memberFields_String_values = new java.util.HashMap(4); if(memberFields_String_values.containsKey(_parameters)) { return (SimpleSet)memberFields_String_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); SimpleSet memberFields_String_value = memberFields_compute(name); if(isFinal && num == state().boundariesCrossed) memberFields_String_values.put(_parameters, memberFields_String_value); return memberFields_String_value; } /** * @apilevel internal */ private SimpleSet memberFields_compute(String name) { SimpleSet set = SimpleSet.emptySet; for(int i = 0; i < getNumTypeBound(); i++) { for(Iterator iter = getTypeBound(i).type().memberFields(name).iterator(); iter.hasNext(); ) { FieldDeclaration decl = (FieldDeclaration)iter.next(); //if(decl.accessibleFrom(hostType())) set = set.add(decl); } } return set; } protected java.util.Map castingConversionTo_TypeDecl_values; /** * @attribute syn * @aspect Generics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:86 */ @SuppressWarnings({"unchecked", "cast"}) public boolean castingConversionTo(TypeDecl type) { Object _parameters = type; if(castingConversionTo_TypeDecl_values == null) castingConversionTo_TypeDecl_values = new java.util.HashMap(4); if(castingConversionTo_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)castingConversionTo_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean castingConversionTo_TypeDecl_value = castingConversionTo_compute(type); if(isFinal && num == state().boundariesCrossed) castingConversionTo_TypeDecl_values.put(_parameters, Boolean.valueOf(castingConversionTo_TypeDecl_value)); return castingConversionTo_TypeDecl_value; } /** * @apilevel internal */ private boolean castingConversionTo_compute(TypeDecl type) { if(!type.isReferenceType()) return false; if(getNumTypeBound() == 0) return true; for(int i = 0; i < getNumTypeBound(); i++) if(getTypeBound(i).type().castingConversionTo(type)) return true; return false; } /** * @attribute syn * @aspect Generics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:148 */ public boolean isNestedType() { ASTNode$State state = state(); try { return false; } finally { } } /** * @apilevel internal */ protected boolean erasure_computed = false; /** * @apilevel internal */ protected TypeDecl erasure_value; /** * @attribute syn * @aspect GenericsErasure * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:352 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl erasure() { if(erasure_computed) { return erasure_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); erasure_value = erasure_compute(); if(isFinal && num == state().boundariesCrossed) erasure_computed = true; return erasure_value; } /** * @apilevel internal */ private TypeDecl erasure_compute() { return getTypeBound(0).type().erasure(); } /** * @apilevel internal */ protected boolean fullName_computed = false; /** * @apilevel internal */ protected String fullName_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:563 */ @SuppressWarnings({"unchecked", "cast"}) public String fullName() { if(fullName_computed) { return fullName_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); fullName_value = fullName_compute(); if(isFinal && num == state().boundariesCrossed) fullName_computed = true; return fullName_value; } /** * @apilevel internal */ private String fullName_compute() { if(getParent().getParent() instanceof TypeDecl) { TypeDecl typeDecl = (TypeDecl)getParent().getParent(); return typeDecl.fullName() + "@" + name(); } return super.fullName(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:571 */ public boolean sameSignature(Access a) { ASTNode$State state = state(); try { return a.type() == this; } finally { } } /** * @apilevel internal */ protected boolean lubType_computed = false; /** * @apilevel internal */ protected TypeDecl lubType_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:921 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lubType() { if(lubType_computed) { return lubType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); lubType_value = lubType_compute(); if(isFinal && num == state().boundariesCrossed) lubType_computed = true; return lubType_value; } /** * @apilevel internal */ private TypeDecl lubType_compute() { ArrayList list = new ArrayList(); for(int i = 0; i < getNumTypeBound(); i++) list.add(getTypeBound(i).type()); return lookupLUBType(list); } /** * @apilevel internal */ protected int usesTypeVariable_visited = -1; /** * @apilevel internal */ protected boolean usesTypeVariable_computed = false; /** * @apilevel internal */ protected boolean usesTypeVariable_initialized = false; /** * @apilevel internal */ protected boolean usesTypeVariable_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1079 */ @SuppressWarnings({"unchecked", "cast"}) public boolean usesTypeVariable() { if(usesTypeVariable_computed) { return usesTypeVariable_value; } ASTNode$State state = state(); if (!usesTypeVariable_initialized) { usesTypeVariable_initialized = true; usesTypeVariable_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { usesTypeVariable_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value!=usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { usesTypeVariable_computed = true; } else { state.RESET_CYCLE = true; usesTypeVariable_compute(); state.RESET_CYCLE = false; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; } state.IN_CIRCLE = false; return usesTypeVariable_value; } if(usesTypeVariable_visited != state.CIRCLE_INDEX) { usesTypeVariable_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { usesTypeVariable_computed = false; usesTypeVariable_initialized = false; usesTypeVariable_visited = -1; return usesTypeVariable_value; } boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value!=usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; return usesTypeVariable_value; } return usesTypeVariable_value; } /** * @apilevel internal */ private boolean usesTypeVariable_compute() { return true; } protected java.util.Map accessibleFrom_TypeDecl_values; /** * @attribute syn * @aspect NewGenerics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1499 */ @SuppressWarnings({"unchecked", "cast"}) public boolean accessibleFrom(TypeDecl type) { Object _parameters = type; if(accessibleFrom_TypeDecl_values == null) accessibleFrom_TypeDecl_values = new java.util.HashMap(4); if(accessibleFrom_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)accessibleFrom_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean accessibleFrom_TypeDecl_value = accessibleFrom_compute(type); if(isFinal && num == state().boundariesCrossed) accessibleFrom_TypeDecl_values.put(_parameters, Boolean.valueOf(accessibleFrom_TypeDecl_value)); return accessibleFrom_TypeDecl_value; } /** * @apilevel internal */ private boolean accessibleFrom_compute(TypeDecl type) { return true; } /** * @apilevel internal */ protected boolean typeName_computed = false; /** * @apilevel internal */ protected String typeName_value; /** * @attribute syn * @aspect NewGenerics * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1501 */ @SuppressWarnings({"unchecked", "cast"}) public String typeName() { if(typeName_computed) { return typeName_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeName_value = typeName_compute(); if(isFinal && num == state().boundariesCrossed) typeName_computed = true; return typeName_value; } /** * @apilevel internal */ private String typeName_compute() { return name(); } /** * @attribute syn * @aspect GenericsParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsParTypeDecl.jrag:73 */ public boolean isTypeVariable() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:46 */ public boolean supertypeWildcard(WildcardType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:57 */ public boolean supertypeWildcardExtends(WildcardExtendsType type) { ASTNode$State state = state(); try { return type.extendsType().subtype(this); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:66 */ public boolean supertypeWildcardSuper(WildcardSuperType type) { ASTNode$State state = state(); try { return type.superType().subtype(this); } finally { } } protected java.util.Map sameStructure_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:215 */ @SuppressWarnings({"unchecked", "cast"}) public boolean sameStructure(TypeDecl t) { Object _parameters = t; if(sameStructure_TypeDecl_values == null) sameStructure_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(sameStructure_TypeDecl_values.containsKey(_parameters)) { Object _o = sameStructure_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); sameStructure_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_sameStructure_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (new_sameStructure_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_sameStructure_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { sameStructure_TypeDecl_values.put(_parameters, new_sameStructure_TypeDecl_value); } else { sameStructure_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; sameStructure_compute(t); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_sameStructure_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (state.RESET_CYCLE) { sameStructure_TypeDecl_values.remove(_parameters); } else if (new_sameStructure_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_sameStructure_TypeDecl_value; } return new_sameStructure_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean sameStructure_compute(TypeDecl t) { if(!(t instanceof TypeVariable)) return false; if(t == this) return true; TypeVariable type = (TypeVariable)t; if(type.getNumTypeBound() != getNumTypeBound()) return false; for(int i = 0; i < getNumTypeBound(); i++) { boolean found = false; for(int j = i; !found && j < getNumTypeBound(); j++) if(getTypeBound(i).type().sameStructure(type.getTypeBound(j).type())) found = true; if(!found) return false; } return true; } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:450 */ public boolean supertypeArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { for(int i = 0; i < getNumTypeBound(); i++) if(type.subtype(getTypeBound(i).type())) { return true; } return false; } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:290 */ @SuppressWarnings({"unchecked", "cast"}) public boolean subtype(TypeDecl type) { Object _parameters = type; if(subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return type.supertypeTypeVariable(this); } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:291 */ public boolean supertypeTypeVariable(TypeVariable type) { ASTNode$State state = state(); try { if(type == this) return true; for(int i = 0; i < getNumTypeBound(); i++) { boolean found = false; for(int j = 0; !found && j < type.getNumTypeBound(); j++) { if(type.getSubstitutedTypeBound(j, this).type().subtype(getTypeBound(i).type())) found = true; } if(!found) return false; } return true; } finally { } } protected java.util.Map getSubstitutedTypeBound_int_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:314 */ @SuppressWarnings({"unchecked", "cast"}) public Access getSubstitutedTypeBound(int i, TypeDecl type) { java.util.List _parameters = new java.util.ArrayList(2); _parameters.add(Integer.valueOf(i)); _parameters.add(type); if(getSubstitutedTypeBound_int_TypeDecl_values == null) getSubstitutedTypeBound_int_TypeDecl_values = new java.util.HashMap(4); if(getSubstitutedTypeBound_int_TypeDecl_values.containsKey(_parameters)) { return (Access)getSubstitutedTypeBound_int_TypeDecl_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); Access getSubstitutedTypeBound_int_TypeDecl_value = getSubstitutedTypeBound_compute(i, type); if(isFinal && num == state().boundariesCrossed) getSubstitutedTypeBound_int_TypeDecl_values.put(_parameters, getSubstitutedTypeBound_int_TypeDecl_value); return getSubstitutedTypeBound_int_TypeDecl_value; } /** * @apilevel internal */ private Access getSubstitutedTypeBound_compute(int i, TypeDecl type) { Access bound = getTypeBound(i); if(!bound.type().usesTypeVariable()) return bound; final TypeDecl typeDecl = type; Access access = bound.type().substitute( new Parameterization() { public boolean isRawType() { return false; } public TypeDecl substitute(TypeVariable typeVariable) { return typeVariable == TypeVariable.this ? typeDecl : typeVariable; } } ); access.setParent(this); return access; } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:421 */ public boolean supertypeClassDecl(ClassDecl type) { ASTNode$State state = state(); try { for(int i = 0; i < getNumTypeBound(); i++) if(!type.subtype(getSubstitutedTypeBound(i, type).type())) return false; return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:437 */ public boolean supertypeInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { for(int i = 0; i < getNumTypeBound(); i++) if(!type.subtype(getSubstitutedTypeBound(i, type).type())) return false; return true; } finally { } } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:400 */ @SuppressWarnings({"unchecked", "cast"}) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if(instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if(instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if(isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * A type is reifiable if it either refers to a non-parameterized type, * is a raw type, is a parameterized type with only unbound wildcard * parameters or is an array type with a reifiable type parameter. * * @see "JLSv3 &sect;4.7" * @attribute syn * @aspect SafeVarargs * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/SafeVarargs.jrag:106 */ public boolean isReifiable() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:919 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeObject() { ASTNode$State state = state(); TypeDecl typeObject_value = getParent().Define_TypeDecl_typeObject(this, null); return typeObject_value; } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:961 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeNull() { ASTNode$State state = state(); TypeDecl typeNull_value = getParent().Define_TypeDecl_typeNull(this, null); return typeNull_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag:13 * @apilevel internal */ public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if(caller == getTypeBoundListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return NameType.TYPE_NAME; } else { return super.Define_NameType_nameType(caller, child); } } /** * @apilevel internal */ public ASTNode rewriteTo() { // Declared in /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag at line 16 if(getNumTypeBound() == 0) { state().duringGenericTypeVariables++; ASTNode result = rewriteRule0(); state().duringGenericTypeVariables--; return result; } return super.rewriteTo(); } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericTypeVariables.jrag:16 * @apilevel internal */ private TypeVariable rewriteRule0() { { addTypeBound( new TypeAccess( "java.lang", "Object" ) ); return this; } } }
50,170
31.59974
260
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/URShiftExpr.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production URShiftExpr : {@link ShiftExpr}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:164 */ public class URShiftExpr extends ShiftExpr implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public URShiftExpr clone() throws CloneNotSupportedException { URShiftExpr node = (URShiftExpr)super.clone(); node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public URShiftExpr copy() { try { URShiftExpr node = (URShiftExpr) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public URShiftExpr fullCopy() { URShiftExpr tree = (URShiftExpr) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:800 */ public soot.Value eval(Body b) { return emitShiftExpr(b); } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:826 */ public soot.Value emitOperation(Body b, soot.Value left, soot.Value right) { return asLocal(b, b.newUshrExpr(asImmediate(b, left), asImmediate(b, right), this)); } /** * @ast method * */ public URShiftExpr() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public URShiftExpr(Expr p0, Expr p1) { setChild(p0, 0); setChild(p1, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the LeftOperand child. * @param node The new node to replace the LeftOperand child. * @apilevel high-level * @ast method * */ public void setLeftOperand(Expr node) { setChild(node, 0); } /** * Retrieves the LeftOperand child. * @return The current node used as the LeftOperand child. * @apilevel high-level * @ast method * */ public Expr getLeftOperand() { return (Expr)getChild(0); } /** * Retrieves the LeftOperand child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the LeftOperand child. * @apilevel low-level * @ast method * */ public Expr getLeftOperandNoTransform() { return (Expr)getChildNoTransform(0); } /** * Replaces the RightOperand child. * @param node The new node to replace the RightOperand child. * @apilevel high-level * @ast method * */ public void setRightOperand(Expr node) { setChild(node, 1); } /** * Retrieves the RightOperand child. * @return The current node used as the RightOperand child. * @apilevel high-level * @ast method * */ public Expr getRightOperand() { return (Expr)getChild(1); } /** * Retrieves the RightOperand child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the RightOperand child. * @apilevel low-level * @ast method * */ public Expr getRightOperandNoTransform() { return (Expr)getChildNoTransform(1); } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:91 */ public Constant constant() { ASTNode$State state = state(); try { return type().urshift(getLeftOperand().constant(), getRightOperand().constant()); } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:400 */ public String printOp() { ASTNode$State state = state(); try { return " >>> "; } finally { } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
5,852
24.012821
113
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/Unary.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production Unary : {@link Expr} ::= <span class="component">Operand:{@link Expr}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:136 */ public abstract class Unary extends Expr implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public Unary clone() throws CloneNotSupportedException { Unary node = (Unary)super.clone(); node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:366 */ public void toString(StringBuffer s) { s.append(printPreOp()); getOperand().toString(s); s.append(printPostOp()); } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:689 */ public soot.Value eval(Body b) { return super.eval(b); } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:736 */ public soot.Value emitPostfix(Body b, int constant) { soot.Value lvalue = getOperand().eval(b); Value v = lvalue instanceof Local ? lvalue : (Value)lvalue.clone(); TypeDecl type = getOperand().type().binaryNumericPromotion(typeInt()); Value value = b.newTemp(getOperand().type().emitCastTo(b, v, type, getOperand())); Value rvalue = typeInt().emitCastTo(b, IntType.emitConstant(constant), type, this); Value sum = asRValue(b, type.emitCastTo(b, b.newAddExpr(asImmediate(b, value), asImmediate(b, rvalue), this), getOperand().type(), this )); getOperand().emitStore(b, lvalue, sum, this); return value; } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:754 */ public soot.Value emitPrefix(Body b, int constant) { soot.Value lvalue = getOperand().eval(b); Value v = lvalue instanceof Local ? lvalue : (Value)lvalue.clone(); TypeDecl type = getOperand().type().binaryNumericPromotion(typeInt()); Value value = getOperand().type().emitCastTo(b, v, type, getOperand()); Value rvalue = typeInt().emitCastTo(b, IntType.emitConstant(constant), type, this); Value result = asLocal(b, type.emitCastTo(b, b.newAddExpr(asImmediate(b, value), asImmediate(b, rvalue), this), getOperand().type(), this )); getOperand().emitStore(b, lvalue, result, this); return result; } /** * @ast method * */ public Unary() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[1]; } /** * @ast method * */ public Unary(Expr p0) { setChild(p0, 0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 1; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Operand child. * @param node The new node to replace the Operand child. * @apilevel high-level * @ast method * */ public void setOperand(Expr node) { setChild(node, 0); } /** * Retrieves the Operand child. * @return The current node used as the Operand child. * @apilevel high-level * @ast method * */ public Expr getOperand() { return (Expr)getChild(0); } /** * Retrieves the Operand child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Operand child. * @apilevel low-level * @ast method * */ public Expr getOperandNoTransform() { return (Expr)getChildNoTransform(0); } /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:235 */ public boolean isDAafter(Variable v) { ASTNode$State state = state(); try { return getOperand().isDAafter(v); } finally { } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:694 */ public boolean isDUafter(Variable v) { ASTNode$State state = state(); try { return getOperand().isDUafter(v); } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:372 */ public String printPostOp() { ASTNode$State state = state(); try { return ""; } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:376 */ public String printPreOp() { ASTNode$State state = state(); try { return ""; } finally { } } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:314 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return getOperand().type(); } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:44 * @apilevel internal */ public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) { if(caller == getOperandNoTransform()) { return true; } else { return getParent().Define_boolean_isSource(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
7,410
26.047445
113
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/Unicode.java
/* * The JastAdd Extensible Java Compiler (http://jastadd.org) is covered * by the modified BSD License. You should have received a copy of the * modified BSD license with this compiler. * * Copyright (c) 2005-2008, Torbjorn Ekman * All rights reserved. */ package soot.JastAddJ; import java.io.*; public class Unicode extends FilterReader { public Unicode(Reader in) { super(in); // initialize read ahead character try { next(); } catch (IOException e) { } } public Unicode(InputStream in) { this(new InputStreamReader(in)); } // buffer reads from filtered stream private void refill() throws IOException { if(pos >= length) { pos = 0; int i = in.read(buffer, 0, SIZE); length = i != -1 ? i : 0; } } private static final int SIZE = 1024; private char[] buffer = new char[SIZE]; private int pos = 0; private int length = 0; // interal read with support for lookahead private int next() throws java.io.IOException { int c = lookahead; refill(); lookahead = pos >= length ? -1 : buffer[pos++]; return c; } private int lookahead = -1; // read character and translate unicode escapes public int read() throws java.io.IOException { int current = next(); if(current != '\\') { numConsecutiveBackSlash = 0; return current; } boolean isEven = (numConsecutiveBackSlash & 0x01) == 0; if(!isEven || lookahead != 'u') { numConsecutiveBackSlash++; return current; } numConsecutiveBackSlash = 0; // UnicodeEscape found while(lookahead == 'u') next(); // The next four characters must be hexadecimal digits or else a compile-time error is thrown int result = 0; for(int i = 0; i < 4; i++) { int c = next(); int value = Character.digit((char)c, 16); if(value == -1) throw new Error("Invalid Unicode Escape"); result <<= 4; result += value; } return result; } private int numConsecutiveBackSlash = 0; public int read(char cbuf[], int off, int len) throws IOException { if(!ready()) return -1; len+= off; for (int i=off; i<len; i++) { // simplified common loop for non unicode escapes (read(), next(), refill(), cbuf[i]) while(pos < length && i < len-1 && lookahead != '\\') { if(lookahead < 0) return i - off; cbuf[i++] = (char)lookahead; lookahead = buffer[pos++]; numConsecutiveBackSlash = 0; } int c = read(); if (c < 0) return i-off; else cbuf[i] = (char) c; } return len-off; } public boolean ready() throws IOException { return pos < length || super.ready(); } }
2,741
24.867925
97
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/UnknownType.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production UnknownType : {@link ClassDecl}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:50 */ public class UnknownType extends ClassDecl implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); instanceOf_TypeDecl_values = null; subtype_TypeDecl_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public UnknownType clone() throws CloneNotSupportedException { UnknownType node = (UnknownType)super.clone(); node.instanceOf_TypeDecl_values = null; node.subtype_TypeDecl_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public UnknownType copy() { try { UnknownType node = (UnknownType) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public UnknownType fullCopy() { UnknownType tree = (UnknownType) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * */ public UnknownType() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[4]; setChild(new Opt(), 1); setChild(new List(), 2); setChild(new List(), 3); } /** * @ast method * */ public UnknownType(Modifiers p0, String p1, Opt<Access> p2, List<Access> p3, List<BodyDecl> p4) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); setChild(p4, 3); } /** * @ast method * */ public UnknownType(Modifiers p0, beaver.Symbol p1, Opt<Access> p2, List<Access> p3, List<BodyDecl> p4) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); setChild(p4, 3); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 4; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the optional node for the SuperClassAccess child. This is the {@code Opt} node containing the child SuperClassAccess, not the actual child! * @param opt The new node to be used as the optional node for the SuperClassAccess child. * @apilevel low-level * @ast method * */ public void setSuperClassAccessOpt(Opt<Access> opt) { setChild(opt, 1); } /** * Check whether the optional SuperClassAccess child exists. * @return {@code true} if the optional SuperClassAccess child exists, {@code false} if it does not. * @apilevel high-level * @ast method * */ public boolean hasSuperClassAccess() { return getSuperClassAccessOpt().getNumChild() != 0; } /** * Retrieves the (optional) SuperClassAccess child. * @return The SuperClassAccess child, if it exists. Returns {@code null} otherwise. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Access getSuperClassAccess() { return (Access)getSuperClassAccessOpt().getChild(0); } /** * Replaces the (optional) SuperClassAccess child. * @param node The new node to be used as the SuperClassAccess child. * @apilevel high-level * @ast method * */ public void setSuperClassAccess(Access node) { getSuperClassAccessOpt().setChild(node, 0); } /** * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Access> getSuperClassAccessOpt() { return (Opt<Access>)getChild(1); } /** * Retrieves the optional node for child SuperClassAccess. This is the {@code Opt} node containing the child SuperClassAccess, not the actual child! * <p><em>This method does not invoke AST transformations.</em></p> * @return The optional node for child SuperClassAccess. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Access> getSuperClassAccessOptNoTransform() { return (Opt<Access>)getChildNoTransform(1); } /** * Replaces the Implements list. * @param list The new list node to be used as the Implements list. * @apilevel high-level * @ast method * */ public void setImplementsList(List<Access> list) { setChild(list, 2); } /** * Retrieves the number of children in the Implements list. * @return Number of children in the Implements list. * @apilevel high-level * @ast method * */ public int getNumImplements() { return getImplementsList().getNumChild(); } /** * Retrieves the number of children in the Implements list. * Calling this method will not trigger rewrites.. * @return Number of children in the Implements list. * @apilevel low-level * @ast method * */ public int getNumImplementsNoTransform() { return getImplementsListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the Implements list.. * @param i Index of the element to return. * @return The element at position {@code i} in the Implements list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Access getImplements(int i) { return (Access)getImplementsList().getChild(i); } /** * Append an element to the Implements list. * @param node The element to append to the Implements list. * @apilevel high-level * @ast method * */ public void addImplements(Access node) { List<Access> list = (parent == null || state == null) ? getImplementsListNoTransform() : getImplementsList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addImplementsNoTransform(Access node) { List<Access> list = getImplementsListNoTransform(); list.addChild(node); } /** * Replaces the Implements list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setImplements(Access node, int i) { List<Access> list = getImplementsList(); list.setChild(node, i); } /** * Retrieves the Implements list. * @return The node representing the Implements list. * @apilevel high-level * @ast method * */ public List<Access> getImplementss() { return getImplementsList(); } /** * Retrieves the Implements list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Implements list. * @apilevel low-level * @ast method * */ public List<Access> getImplementssNoTransform() { return getImplementsListNoTransform(); } /** * Retrieves the Implements list. * @return The node representing the Implements list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Access> getImplementsList() { List<Access> list = (List<Access>)getChild(2); list.getNumChild(); return list; } /** * Retrieves the Implements list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Implements list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Access> getImplementsListNoTransform() { return (List<Access>)getChildNoTransform(2); } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 3); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public BodyDecl getBodyDecl(int i) { return (BodyDecl)getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>)getChild(3); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>)getChildNoTransform(3); } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:165 */ public boolean isReferenceType() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:168 */ public boolean isPrimitiveType() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:173 */ public boolean isNumericType() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:177 */ public boolean isIntegralType() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:181 */ public boolean isBoolean() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:191 */ public boolean isInt() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:230 */ public boolean isUnknown() { ASTNode$State state = state(); try { return true; } finally { } } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:393 */ @SuppressWarnings({"unchecked", "cast"}) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if(instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if(instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if(isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:423 */ public boolean isSupertypeOfClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:440 */ public boolean isSupertypeOfInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:453 */ public boolean isSupertypeOfArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:475 */ public boolean isSupertypeOfPrimitiveType(PrimitiveType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:482 */ public boolean isSupertypeOfNullType(NullType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect NumericPromotion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:146 */ public TypeDecl unaryNumericPromotion() { ASTNode$State state = state(); try { return this; } finally { } } /** * @attribute syn * @aspect NumericPromotion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:154 */ public TypeDecl binaryNumericPromotion(TypeDecl type) { ASTNode$State state = state(); try { return this; } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:414 */ @SuppressWarnings({"unchecked", "cast"}) public boolean subtype(TypeDecl type) { Object _parameters = type; if(subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return true; } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:421 */ public boolean supertypeClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:437 */ public boolean supertypeInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:450 */ public boolean supertypeArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:472 */ public boolean supertypePrimitiveType(PrimitiveType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:479 */ public boolean supertypeNullType(NullType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
23,771
27.710145
153
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VarAccess.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VarAccess : {@link Access} ::= <span class="component">&lt;ID:String&gt;</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:19 */ public class VarAccess extends Access implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); isConstant_visited = -1; isConstant_computed = false; isConstant_initialized = false; isDAafter_Variable_values = null; decls_computed = false; decls_value = null; decl_computed = false; decl_value = null; isFieldAccess_computed = false; type_computed = false; type_value = null; base_Body_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VarAccess clone() throws CloneNotSupportedException { VarAccess node = (VarAccess)super.clone(); node.isConstant_visited = -1; node.isConstant_computed = false; node.isConstant_initialized = false; node.isDAafter_Variable_values = null; node.decls_computed = false; node.decls_value = null; node.decl_computed = false; node.decl_value = null; node.isFieldAccess_computed = false; node.type_computed = false; node.type_value = null; node.base_Body_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VarAccess copy() { try { VarAccess node = (VarAccess) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VarAccess fullCopy() { VarAccess tree = (VarAccess) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect DefiniteAssignment * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:94 */ public void definiteAssignment() { if(isSource()) { if(decl() instanceof VariableDeclaration) { VariableDeclaration v = (VariableDeclaration)decl(); //System.err.println("Is " + v + " final? " + v.isFinal() + ", DAbefore: " + isDAbefore(v)); if(v.isValue()) { } else if(v.isBlankFinal()) { //if(!isDAbefore(v) && !v.hasInit() && !v.getInit().isConstant()) if(!isDAbefore(v)) error("Final variable " + v.name() + " is not assigned before used"); } else { //if(!v.hasInit() && !isDAbefore(v)) { if(!isDAbefore(v)) error("Local variable " + v.name() + " is not assigned before used"); } } else if(decl() instanceof FieldDeclaration && !isQualified()) { FieldDeclaration f = (FieldDeclaration)decl(); //if(f.isFinal() && f.isInstanceVariable() && !isDAbefore(f)) { //if(f.isFinal() && !isDAbefore(f) && (!f.hasInit() || !f.getInit().isConstant())) { //if(f.isFinal() && (!f.hasInit() || !f.getInit().isConstant()) && !isDAbefore(f)) { if(f.isFinal() && !f.hasInit() && !isDAbefore(f)) { error("Final field " + f + " is not assigned before used"); } } } if(isDest()) { Variable v = decl(); // Blank final field if(v.isFinal() && v.isBlank() && !hostType().instanceOf(v.hostType())) error("The final variable is not a blank final in this context, so it may not be assigned."); else if(v.isFinal() && isQualified() && (!qualifier().isThisAccess() || ((Access)qualifier()).isQualified())) error("the blank final field " + v.name() + " may only be assigned by simple name"); // local variable or parameter else if(v instanceof VariableDeclaration) { VariableDeclaration var = (VariableDeclaration)v; //System.out.println("### is variable"); if(!var.isValue() && var.getParent().getParent().getParent() instanceof SwitchStmt && var.isFinal()) { if(!isDUbefore(var)) error("Final variable " + var.name() + " may only be assigned once"); } else if(var.isValue()) { if(var.hasInit() || !isDUbefore(var)) error("Final variable " + var.name() + " may only be assigned once"); } else if(var.isBlankFinal()) { if(var.hasInit() || !isDUbefore(var)) error("Final variable " + var.name() + " may only be assigned once"); } if(var.isFinal() && (var.hasInit() || !isDUbefore(var))) { //if(var.isFinal() && ((var.hasInit() && var.getInit().isConstant()) || !isDUbefore(var))) { } } // field else if(v instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration)v; if(f.isFinal()) { if(f.hasInit()) error("initialized field " + f.name() + " can not be assigned"); else { BodyDecl bodyDecl = enclosingBodyDecl(); if(!(bodyDecl instanceof ConstructorDecl) && !(bodyDecl instanceof InstanceInitializer) && !(bodyDecl instanceof StaticInitializer) && !(bodyDecl instanceof FieldDeclaration)) error("final field " + f.name() + " may only be assigned in constructors and initializers"); else if(!isDUbefore(f)) error("Final field " + f.name() + " may only be assigned once"); } } } else if(v.isParameter()) { // 8.4.1 if(v.isFinal()) { error("Final parameter " + v.name() + " may not be assigned"); } } } } /** * @ast method * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:457 */ protected boolean checkDUeverywhere(Variable v) { if(isDest() && decl() == v) return false; return super.checkDUeverywhere(v); } /** * @ast method * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:182 */ public void nameCheck() { if(decls().isEmpty() && (!isQualified() || !qualifier().type().isUnknown() || qualifier().isPackageAccess())) error("no field named " + name() + " is accessible"); if(decls().size() > 1) { StringBuffer s = new StringBuffer(); s.append("several fields named " + name()); for(Iterator iter = decls().iterator(); iter.hasNext(); ) { Variable v = (Variable)iter.next(); s.append("\n " + v.type().typeName() + "." + v.name() + " declared in " + v.hostType().typeName()); } error(s.toString()); } // 8.8.5.1 if(inExplicitConstructorInvocation() && !isQualified() && decl().isInstanceVariable() && hostType() == decl().hostType()) error("instance variable " + name() + " may not be accessed in an explicit constructor invocation"); Variable v = decl(); if(!v.isFinal() && !v.isClassVariable() && !v.isInstanceVariable() && v.hostType() != hostType()) error("A parameter/variable used but not declared in an inner class must be declared final"); // 8.3.2.3 if((decl().isInstanceVariable() || decl().isClassVariable()) && !isQualified()) { if(hostType() != null && !hostType().declaredBeforeUse(decl(), this)) { if(inSameInitializer() && !simpleAssignment() && inDeclaringClass()) { BodyDecl b = closestBodyDecl(hostType()); error("variable " + decl().name() + " is used in " + b + " before it is declared"); } } } } /** * @ast method * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:216 */ public BodyDecl closestBodyDecl(TypeDecl t) { ASTNode node = this; while(!(node.getParent().getParent() instanceof Program) && node.getParent().getParent() != t) { node = node.getParent(); } if(node instanceof BodyDecl) return (BodyDecl)node; return null; } /** * @ast method * @aspect NodeConstructors * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NodeConstructors.jrag:38 */ public VarAccess(String name, int start, int end) { this(name); this.start = this.IDstart = start; this.end = this.IDend = end; } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:453 */ public void toString(StringBuffer s) { s.append(name()); } /** * @ast method * @aspect Annotations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:344 */ public void checkModifiers() { if(decl() instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration)decl(); if(f.isDeprecated() && !withinDeprecatedAnnotation() && hostType().topLevelType() != f.hostType().topLevelType() && !withinSuppressWarnings("deprecation")) warning(f.name() + " in " + f.hostType().typeName() + " has been deprecated"); } } /** * @ast method * @aspect Enums * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Enums.jrag:461 */ protected void checkEnum(EnumDecl enumDecl) { super.checkEnum(enumDecl); if(decl().isStatic() && decl().hostType() == enumDecl && !isConstant()) error("may not reference a static field of an enum type from here"); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:25 */ private TypeDecl refined_InnerClasses_VarAccess_fieldQualifierType() { if(hasPrevExpr()) return prevExpr().type(); TypeDecl typeDecl = hostType(); while(typeDecl != null && !typeDecl.hasField(name())) typeDecl = typeDecl.enclosingType(); if(typeDecl != null) return typeDecl; return decl().hostType(); } /** * @ast method * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:162 */ public void collectEnclosingVariables(HashSet set, TypeDecl typeDecl) { Variable v = decl(); if(!v.isInstanceVariable() && !v.isClassVariable() && v.hostType() == typeDecl) set.add(v); super.collectEnclosingVariables(set, typeDecl); } /** * @ast method * @aspect Transformations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Transformations.jrag:103 */ public void transformation() { Variable v = decl(); if(v instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration)v; if(requiresAccessor()) { TypeDecl typeDecl = fieldQualifierType(); if(isSource()) f.createAccessor(typeDecl); if(isDest()) f.createAccessorWrite(typeDecl); } } super.transformation(); } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:194 */ public soot.Value refined_Expressions_VarAccess_eval(Body b) { Variable v = decl(); if(v instanceof VariableDeclaration) { VariableDeclaration decl = (VariableDeclaration)v; if(decl.hostType() == hostType()) return decl.local; else return emitLoadLocalInNestedClass(b, decl); } else if(v instanceof ParameterDeclaration) { ParameterDeclaration decl = (ParameterDeclaration)v; if(decl.hostType() == hostType()) return decl.local; else return emitLoadLocalInNestedClass(b, decl); } else if(v instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration)v; if(f.hostType().isArrayDecl() && f.name().equals("length")) { return b.newLengthExpr(asImmediate(b, createLoadQualifier(b)), this); } if(f.isStatic()) { if(isQualified() && !qualifier().isTypeAccess()) b.newTemp(qualifier().eval(b)); if(requiresAccessor()) { ArrayList list = new ArrayList(); return b.newStaticInvokeExpr(f.createAccessor(fieldQualifierType()).sootRef(), list, this); } else return b.newStaticFieldRef(sootRef(), this); } else { if(requiresAccessor()) { soot.Local base = base(b); ArrayList list = new ArrayList(); list.add(base); return b.newStaticInvokeExpr(f.createAccessor(fieldQualifierType()).sootRef(), list, this); } else { soot.Local base = createLoadQualifier(b); return b.newInstanceFieldRef(base, sootRef(), this); } } } else return super.eval(b); } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:270 */ public soot.Value refined_Expressions_VarAccess_emitStore(Body b, soot.Value lvalue, soot.Value rvalue, ASTNode location) { Variable v = decl(); if(v instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration)v; if(requiresAccessor()) { if(f.isStatic()) { ArrayList list = new ArrayList(); list.add(rvalue); return asLocal(b, b.newStaticInvokeExpr(f.createAccessorWrite(fieldQualifierType()).sootRef(), list, location)); } else { soot.Local base = base(b); ArrayList list = new ArrayList(); list.add(base); list.add(asLocal(b, rvalue, lvalue.getType())); return asLocal(b, b.newStaticInvokeExpr(f.createAccessorWrite(fieldQualifierType()).sootRef(), list, location)); } } } return super.emitStore(b, lvalue, rvalue, location); } /** * @ast method * @aspect EmitJimpleRefinements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/SootJastAddJ/EmitJimpleRefinements.jrag:220 */ public void collectTypesToSignatures(Collection<Type> set) { super.collectTypesToSignatures(set); // if we access a field declaration we load the qualifying type // the element type is used to cater for reading the field length in an array type if(decl() instanceof FieldDeclaration) addDependencyIfNeeded(set, fieldQualifierType()); } /** * @ast method * */ public VarAccess() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { } /** * @ast method * */ public VarAccess(String p0) { setID(p0); } /** * @ast method * */ public VarAccess(beaver.Symbol p0) { setID(p0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 0; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * */ public int IDstart; /** * @ast method * */ public int IDend; /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * @ast method * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:312 */ protected TypeDecl refined_GenericsCodegen_VarAccess_fieldQualifierType() { TypeDecl typeDecl = refined_InnerClasses_VarAccess_fieldQualifierType(); return typeDecl == null ? null : typeDecl.erasure(); } /** * @ast method * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:38 */ public soot.Value eval(Body b) { Variable v = decl(); soot.Value result; if(v instanceof FieldDeclaration) { FieldDeclaration f = ((FieldDeclaration)v).erasedField(); if(f.hostType().isArrayDecl() && f.name().equals("length")) { return b.newLengthExpr(asImmediate(b, createLoadQualifier(b)), this); } if(f.isStatic()) { if(isQualified() && !qualifier().isTypeAccess()) b.newTemp(qualifier().eval(b)); if(requiresAccessor()) { ArrayList list = new ArrayList(); result = b.newStaticInvokeExpr(f.createAccessor(fieldQualifierType().erasure()).sootRef(), list, this); } else result = b.newStaticFieldRef(sootRef(), this); } else { if(requiresAccessor()) { soot.Local base = base(b); ArrayList list = new ArrayList(); list.add(base); result = b.newStaticInvokeExpr(f.createAccessor(fieldQualifierType().erasure()).sootRef(), list, this); } else { soot.Local base = createLoadQualifier(b); result = b.newInstanceFieldRef(base, sootRef(), this); } } if(f.type() != v.type()) result = f.type().emitCastTo(b, result, v.type(), this); return result; } else return refined_Expressions_VarAccess_eval(b); } /** * @ast method * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:75 */ private SootFieldRef sootRef() { FieldDeclaration decl = ((FieldDeclaration)decl()).erasedField(); SootFieldRef ref = Scene.v().makeFieldRef( fieldQualifierType().getSootClassDecl(), decl.name(), decl.type().getSootType(), decl.isStatic() ); return ref; } /** * @ast method * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:86 */ public soot.Value emitStore(Body b, soot.Value lvalue, soot.Value rvalue, ASTNode location) { Variable v = decl(); if(v instanceof FieldDeclaration) { FieldDeclaration f = ((FieldDeclaration)v).erasedField(); if(requiresAccessor()) { if(f.isStatic()) { ArrayList list = new ArrayList(); list.add(rvalue); return asLocal(b, b.newStaticInvokeExpr(f.createAccessorWrite(fieldQualifierType().erasure()).sootRef(), list, this)); } else { soot.Local base = base(b); ArrayList list = new ArrayList(); list.add(base); list.add(asLocal(b, rvalue, lvalue.getType())); return asLocal(b, b.newStaticInvokeExpr(f.createAccessorWrite(fieldQualifierType().erasure()).sootRef(), list, this)); } } } return refined_Expressions_VarAccess_emitStore(b, lvalue, rvalue, location); } /** * @ast method * @aspect GenericsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/GenericsCodegen.jrag:108 */ public soot.Local createLoadQualifier(Body b) { Variable v = decl(); if(v instanceof FieldDeclaration) { FieldDeclaration f = ((FieldDeclaration)v).erasedField(); if(hasPrevExpr()) { // load explicit qualifier Local qualifier = asLocal(b, prevExpr().eval(b)); // pop qualifier stack element for class variables // this qualifier must be computed to ensure side effects return qualifier; } else if(f.isInstanceVariable()) { return emitThis(b, fieldQualifierType().erasure()); } } throw new Error("createLoadQualifier not supported for " + v.getClass().getName()); } /** * @ast method * @aspect StaticImportsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/StaticImportsCodegen.jrag:11 */ protected TypeDecl fieldQualifierType() { TypeDecl typeDecl = refined_GenericsCodegen_VarAccess_fieldQualifierType(); if(typeDecl != null) return typeDecl; return decl().hostType(); } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:91 */ public Constant constant() { ASTNode$State state = state(); try { return type().cast(decl().getInit().constant()); } finally { } } /** * @apilevel internal */ protected int isConstant_visited = -1; /** * @apilevel internal */ protected boolean isConstant_computed = false; /** * @apilevel internal */ protected boolean isConstant_initialized = false; /** * @apilevel internal */ protected boolean isConstant_value; /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:354 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isConstant() { if(isConstant_computed) { return isConstant_value; } ASTNode$State state = state(); if (!isConstant_initialized) { isConstant_initialized = true; isConstant_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { isConstant_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_isConstant_value = isConstant_compute(); if (new_isConstant_value!=isConstant_value) state.CHANGE = true; isConstant_value = new_isConstant_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { isConstant_computed = true; } else { state.RESET_CYCLE = true; isConstant_compute(); state.RESET_CYCLE = false; isConstant_computed = false; isConstant_initialized = false; } state.IN_CIRCLE = false; return isConstant_value; } if(isConstant_visited != state.CIRCLE_INDEX) { isConstant_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { isConstant_computed = false; isConstant_initialized = false; isConstant_visited = -1; return isConstant_value; } boolean new_isConstant_value = isConstant_compute(); if (new_isConstant_value!=isConstant_value) state.CHANGE = true; isConstant_value = new_isConstant_value; return isConstant_value; } return isConstant_value; } /** * @apilevel internal */ private boolean isConstant_compute() { Variable v = decl(); if(v instanceof FieldDeclaration) { FieldDeclaration f = (FieldDeclaration)v; return f.isConstant() && (!isQualified() || (isQualified() && qualifier().isTypeAccess())); } boolean result = v.isFinal() && v.hasInit() && v.getInit().isConstant() && (v.type().isPrimitive() || v.type().isString()); return result && (!isQualified() || (isQualified() && qualifier().isTypeAccess())); } /** * @attribute syn * @aspect DefiniteAssignment * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:58 */ public Variable varDecl() { ASTNode$State state = state(); try { return decl(); } finally { } } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:351 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { return isDAbefore(v); } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:832 */ public boolean isDUafter(Variable v) { ASTNode$State state = state(); try { return isDUbefore(v); } finally { } } /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1196 */ public boolean unassignedEverywhere(Variable v, TryStmt stmt) { ASTNode$State state = state(); try { if(isDest() && decl() == v && enclosingStmt().reachable()) { return false; } return super.unassignedEverywhere(v, stmt); } finally { } } /** * @apilevel internal */ protected boolean decls_computed = false; /** * @apilevel internal */ protected SimpleSet decls_value; /** * @attribute syn * @aspect VariableScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:241 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet decls() { if(decls_computed) { return decls_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); decls_value = decls_compute(); if(isFinal && num == state().boundariesCrossed) decls_computed = true; return decls_value; } /** * @apilevel internal */ private SimpleSet decls_compute() { SimpleSet set = lookupVariable(name()); if(set.size() == 1) { Variable v = (Variable)set.iterator().next(); if(!isQualified() && inStaticContext()) { if(v.isInstanceVariable() && !hostType().memberFields(v.name()).isEmpty()) return SimpleSet.emptySet; } else if(isQualified() && qualifier().staticContextQualifier()) { if(v.isInstanceVariable()) return SimpleSet.emptySet; } } return set; } /** * @apilevel internal */ protected boolean decl_computed = false; /** * @apilevel internal */ protected Variable decl_value; /** * @attribute syn * @aspect VariableScopePropagation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:256 */ @SuppressWarnings({"unchecked", "cast"}) public Variable decl() { if(decl_computed) { return decl_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); decl_value = decl_compute(); if(isFinal && num == state().boundariesCrossed) decl_computed = true; return decl_value; } /** * @apilevel internal */ private Variable decl_compute() { SimpleSet decls = decls(); if(decls.size() == 1) return (Variable)decls.iterator().next(); return unknownField(); } /** * @attribute syn * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:226 */ public boolean inSameInitializer() { ASTNode$State state = state(); try { BodyDecl b = closestBodyDecl(decl().hostType()); if(b == null) return false; if(b instanceof FieldDeclaration && ((FieldDeclaration)b).isStatic() == decl().isStatic()) return true; if(b instanceof InstanceInitializer && !decl().isStatic()) return true; if(b instanceof StaticInitializer && decl().isStatic()) return true; return false; } finally { } } /** * @attribute syn * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:238 */ public boolean simpleAssignment() { ASTNode$State state = state(); try { return isDest() && getParent() instanceof AssignSimpleExpr; } finally { } } /** * @attribute syn * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:240 */ public boolean inDeclaringClass() { ASTNode$State state = state(); try { return hostType() == decl().hostType(); } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:800 */ public String dumpString() { ASTNode$State state = state(); try { return getClass().getName() + " [" + getID() + "]"; } finally { } } /** * @attribute syn * @aspect Names * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/QualifiedNames.jrag:17 */ public String name() { ASTNode$State state = state(); try { return getID(); } finally { } } /** * @apilevel internal */ protected boolean isFieldAccess_computed = false; /** * @apilevel internal */ protected boolean isFieldAccess_value; /** * @attribute syn * @aspect AccessTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/ResolveAmbiguousNames.jrag:23 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isFieldAccess() { if(isFieldAccess_computed) { return isFieldAccess_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); isFieldAccess_value = isFieldAccess_compute(); if(isFinal && num == state().boundariesCrossed) isFieldAccess_computed = true; return isFieldAccess_value; } /** * @apilevel internal */ private boolean isFieldAccess_compute() { return decl().isClassVariable() || decl().isInstanceVariable(); } /** * @attribute syn * @aspect SyntacticClassification * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:56 */ public NameType predNameType() { ASTNode$State state = state(); try { return NameType.AMBIGUOUS_NAME; } finally { } } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:283 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return decl().type(); } /** * @attribute syn * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:15 */ public boolean isVariable() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect Enums * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Enums.jrag:500 */ public boolean isEnumConstant() { ASTNode$State state = state(); try { return varDecl() instanceof EnumConstant; } finally { } } /** * @attribute syn * @aspect InnerClasses * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:373 */ public boolean requiresAccessor() { ASTNode$State state = state(); try { Variable v = decl(); if(!(v instanceof FieldDeclaration)) return false; FieldDeclaration f = (FieldDeclaration)v; if(f.isPrivate() && !hostType().hasField(v.name())) return true; if(f.isProtected() && !f.hostPackage().equals(hostPackage()) && !hostType().hasField(v.name())) return true; return false; } finally { } } protected java.util.Map base_Body_values; /** * @attribute syn * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:254 */ @SuppressWarnings({"unchecked", "cast"}) public soot.Local base(Body b) { Object _parameters = b; if(base_Body_values == null) base_Body_values = new java.util.HashMap(4); if(base_Body_values.containsKey(_parameters)) { return (soot.Local)base_Body_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); soot.Local base_Body_value = base_compute(b); if(isFinal && num == state().boundariesCrossed) base_Body_values.put(_parameters, base_Body_value); return base_Body_value; } /** * @apilevel internal */ private soot.Local base_compute(Body b) { return asLocal(b, createLoadQualifier(b)); } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:11 */ public Collection<TypeDecl> throwTypes() { ASTNode$State state = state(); try { return decl().throwTypes(); } finally { } } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:115 */ public boolean isVariable(Variable var) { ASTNode$State state = state(); try { return decl() == var; } finally { } } /** * @attribute inh * @aspect TypeHierarchyCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeHierarchyCheck.jrag:122 */ @SuppressWarnings({"unchecked", "cast"}) public boolean inExplicitConstructorInvocation() { ASTNode$State state = state(); boolean inExplicitConstructorInvocation_value = getParent().Define_boolean_inExplicitConstructorInvocation(this, null); return inExplicitConstructorInvocation_value; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
36,864
31.337719
187
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VarDeclStmt.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VarDeclStmt : {@link Stmt} ::= <span class="component">{@link Modifiers}</span> <span class="component">TypeAccess:{@link Access}</span> <span class="component">{@link VariableDecl}*</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:82 */ public class VarDeclStmt extends Stmt implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); canCompleteNormally_computed = false; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VarDeclStmt clone() throws CloneNotSupportedException { VarDeclStmt node = (VarDeclStmt)super.clone(); node.canCompleteNormally_computed = false; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VarDeclStmt copy() { try { VarDeclStmt node = (VarDeclStmt) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VarDeclStmt fullCopy() { VarDeclStmt tree = (VarDeclStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect VariableDeclarationTransformation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:163 */ private List createVariableDeclarationList() { List varList = new List(); for(int j = 0; j < getNumVariableDecl(); j++) { VariableDeclaration v = getVariableDecl(j).createVariableDeclarationFrom( (Modifiers)getModifiers().fullCopy(), (Access)getTypeAccess().fullCopy() ); if(j == 0) v.setStart(start); else { v.getModifiersNoTransform().clearLocations(); v.getTypeAccessNoTransform().clearLocations(); } varList.add(v); } return varList; } /** * @ast method * */ public VarDeclStmt() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[3]; setChild(new List(), 2); } /** * @ast method * */ public VarDeclStmt(Modifiers p0, Access p1, List<VariableDecl> p2) { setChild(p0, 0); setChild(p1, 1); setChild(p2, 2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 3; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return true; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the TypeAccess child. * @param node The new node to replace the TypeAccess child. * @apilevel high-level * @ast method * */ public void setTypeAccess(Access node) { setChild(node, 1); } /** * Retrieves the TypeAccess child. * @return The current node used as the TypeAccess child. * @apilevel high-level * @ast method * */ public Access getTypeAccess() { return (Access)getChild(1); } /** * Retrieves the TypeAccess child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the TypeAccess child. * @apilevel low-level * @ast method * */ public Access getTypeAccessNoTransform() { return (Access)getChildNoTransform(1); } /** * Replaces the VariableDecl list. * @param list The new list node to be used as the VariableDecl list. * @apilevel high-level * @ast method * */ public void setVariableDeclList(List<VariableDecl> list) { setChild(list, 2); } /** * Retrieves the number of children in the VariableDecl list. * @return Number of children in the VariableDecl list. * @apilevel high-level * @ast method * */ public int getNumVariableDecl() { return getVariableDeclList().getNumChild(); } /** * Retrieves the number of children in the VariableDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the VariableDecl list. * @apilevel low-level * @ast method * */ public int getNumVariableDeclNoTransform() { return getVariableDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the VariableDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the VariableDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public VariableDecl getVariableDecl(int i) { return (VariableDecl)getVariableDeclList().getChild(i); } /** * Append an element to the VariableDecl list. * @param node The element to append to the VariableDecl list. * @apilevel high-level * @ast method * */ public void addVariableDecl(VariableDecl node) { List<VariableDecl> list = (parent == null || state == null) ? getVariableDeclListNoTransform() : getVariableDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addVariableDeclNoTransform(VariableDecl node) { List<VariableDecl> list = getVariableDeclListNoTransform(); list.addChild(node); } /** * Replaces the VariableDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setVariableDecl(VariableDecl node, int i) { List<VariableDecl> list = getVariableDeclList(); list.setChild(node, i); } /** * Retrieves the VariableDecl list. * @return The node representing the VariableDecl list. * @apilevel high-level * @ast method * */ public List<VariableDecl> getVariableDecls() { return getVariableDeclList(); } /** * Retrieves the VariableDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the VariableDecl list. * @apilevel low-level * @ast method * */ public List<VariableDecl> getVariableDeclsNoTransform() { return getVariableDeclListNoTransform(); } /** * Retrieves the VariableDecl list. * @return The node representing the VariableDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<VariableDecl> getVariableDeclList() { List<VariableDecl> list = (List<VariableDecl>)getChild(2); list.getNumChild(); return list; } /** * Retrieves the VariableDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the VariableDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<VariableDecl> getVariableDeclListNoTransform() { return (List<VariableDecl>)getChildNoTransform(2); } /** * @apilevel internal */ protected boolean canCompleteNormally_computed = false; /** * @apilevel internal */ protected boolean canCompleteNormally_value; /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:42 */ @SuppressWarnings({"unchecked", "cast"}) public boolean canCompleteNormally() { if(canCompleteNormally_computed) { return canCompleteNormally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); canCompleteNormally_value = canCompleteNormally_compute(); if(isFinal && num == state().boundariesCrossed) canCompleteNormally_computed = true; return canCompleteNormally_value; } /** * @apilevel internal */ private boolean canCompleteNormally_compute() { return reachable(); } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { return false; } finally { } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:84 * @apilevel internal */ public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if(caller == getTypeAccessNoTransform()) { return NameType.TYPE_NAME; } else { return getParent().Define_NameType_nameType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:258 * @apilevel internal */ public TypeDecl Define_TypeDecl_declType(ASTNode caller, ASTNode child) { if(caller == getVariableDeclListNoTransform()) { int childIndex = caller.getIndexOfChild(child); return null; } else { return getParent().Define_TypeDecl_declType(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { // Declared in /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag at line 144 if(getNumVariableDecl() == 1) { state().duringVariableDeclarationTransformation++; ASTNode result = rewriteRule0(); state().duringVariableDeclarationTransformation--; return result; } // Declared in /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag at line 155 if(getParent().getParent() instanceof Block && ((Block)getParent().getParent()).getStmtListNoTransform() == getParent() && getNumVariableDecl() > 1) { state().duringVariableDeclarationTransformation++; List list = (List)getParent(); int i = list.getIndexOfChild(this); List newList = rewriteBlock_getStmt(); for(int j = 1; j < newList.getNumChildNoTransform(); j++) list.insertChild(newList.getChildNoTransform(j), ++i); state().duringVariableDeclarationTransformation--; return newList.getChildNoTransform(0); } // Declared in /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag at line 159 if(getParent().getParent() instanceof ForStmt && ((ForStmt)getParent().getParent()).getInitStmtListNoTransform() == getParent() && getNumVariableDecl() > 1) { state().duringVariableDeclarationTransformation++; List list = (List)getParent(); int i = list.getIndexOfChild(this); List newList = rewriteForStmt_getInitStmt(); for(int j = 1; j < newList.getNumChildNoTransform(); j++) list.insertChild(newList.getChildNoTransform(j), ++i); state().duringVariableDeclarationTransformation--; return newList.getChildNoTransform(0); } return super.rewriteTo(); } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:144 * @apilevel internal */ private VariableDeclaration rewriteRule0() { { VariableDeclaration decl = getVariableDecl(0).createVariableDeclarationFrom(getModifiers(), getTypeAccess()); decl.setStart(start); // copy location information decl.setEnd(end); // copy location information return decl; } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:155 * @apilevel internal */ private List rewriteBlock_getStmt() { return createVariableDeclarationList(); } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:159 * @apilevel internal */ private List rewriteForStmt_getInitStmt() { return createVariableDeclarationList(); } }
14,123
29.439655
205
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/Variable.java
package soot.JastAddJ; import java.util.HashSet; 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 interface * */ public interface Variable { public String name(); public TypeDecl type(); public Collection<TypeDecl> throwTypes(); public boolean isParameter(); // 4.5.3 // 4.5.3 public boolean isClassVariable(); public boolean isInstanceVariable(); public boolean isMethodParameter(); public boolean isConstructorParameter(); public boolean isExceptionHandlerParameter(); public boolean isLocalVariable(); // 4.5.4 // 4.5.4 public boolean isFinal(); public boolean isVolatile(); public boolean isBlank(); public boolean isStatic(); public boolean isSynthetic(); public TypeDecl hostType(); public Expr getInit(); public boolean hasInit(); public Constant constant(); public Modifiers getModifiers(); /** * @attribute syn * @aspect SourceDeclarations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1519 */ @SuppressWarnings({"unchecked", "cast"}) public Variable sourceVariableDecl(); }
1,600
13.962617
104
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VariableArityParameterDeclaration.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VariableArityParameterDeclaration : {@link ParameterDeclaration}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/VariableArityParameters.ast:1 */ public class VariableArityParameterDeclaration extends ParameterDeclaration implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableArityParameterDeclaration clone() throws CloneNotSupportedException { VariableArityParameterDeclaration node = (VariableArityParameterDeclaration)super.clone(); node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableArityParameterDeclaration copy() { try { VariableArityParameterDeclaration node = (VariableArityParameterDeclaration) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VariableArityParameterDeclaration fullCopy() { VariableArityParameterDeclaration tree = (VariableArityParameterDeclaration) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect VariableArityParameters * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/VariableArityParameters.jrag:15 */ public void nameCheck() { super.nameCheck(); if(!variableArityValid()) error("only the last formal paramater may be of variable arity"); } /** * @ast method * @aspect VariableArityParameters * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/VariableArityParameters.jrag:101 */ public void toString(StringBuffer s) { getModifiers().toString(s); getTypeAccess().toString(s); s.append(" ... " + name()); } /** * @ast method * */ public VariableArityParameterDeclaration() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public VariableArityParameterDeclaration(Modifiers p0, Access p1, String p2) { setChild(p0, 0); setChild(p1, 1); setID(p2); } /** * @ast method * */ public VariableArityParameterDeclaration(Modifiers p0, Access p1, beaver.Symbol p2) { setChild(p0, 0); setChild(p1, 1); setID(p2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the TypeAccess child. * @param node The new node to replace the TypeAccess child. * @apilevel high-level * @ast method * */ public void setTypeAccess(Access node) { setChild(node, 1); } /** * Retrieves the TypeAccess child. * @return The current node used as the TypeAccess child. * @apilevel high-level * @ast method * */ public Access getTypeAccess() { return (Access)getChild(1); } /** * Retrieves the TypeAccess child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the TypeAccess child. * @apilevel low-level * @ast method * */ public Access getTypeAccessNoTransform() { return (Access)getChildNoTransform(1); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /* If the last formal parameter is a variable arity parameter of type T, it is considered to define a formal parameter of type T[].* @attribute syn * @aspect VariableArityParameters * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/VariableArityParameters.jrag:30 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return super.type().arrayType(); } /** * @attribute syn * @aspect VariableArityParameters * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/VariableArityParameters.jrag:35 */ public boolean isVariableArity() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute inh * @aspect VariableArityParameters * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/VariableArityParameters.jrag:26 */ @SuppressWarnings({"unchecked", "cast"}) public boolean variableArityValid() { ASTNode$State state = state(); boolean variableArityValid_value = getParent().Define_boolean_variableArityValid(this, null); return variableArityValid_value; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
8,535
26.012658
118
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VariableArityParameterDeclarationSubstituted.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VariableArityParameterDeclarationSubstituted : {@link VariableArityParameterDeclaration} ::= <span class="component">&lt;Original:VariableArityParameterDeclaration&gt;</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:34 */ public class VariableArityParameterDeclarationSubstituted extends VariableArityParameterDeclaration implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableArityParameterDeclarationSubstituted clone() throws CloneNotSupportedException { VariableArityParameterDeclarationSubstituted node = (VariableArityParameterDeclarationSubstituted)super.clone(); node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableArityParameterDeclarationSubstituted copy() { try { VariableArityParameterDeclarationSubstituted node = (VariableArityParameterDeclarationSubstituted) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VariableArityParameterDeclarationSubstituted fullCopy() { VariableArityParameterDeclarationSubstituted tree = (VariableArityParameterDeclarationSubstituted) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * */ public VariableArityParameterDeclarationSubstituted() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public VariableArityParameterDeclarationSubstituted(Modifiers p0, Access p1, String p2, VariableArityParameterDeclaration p3) { setChild(p0, 0); setChild(p1, 1); setID(p2); setOriginal(p3); } /** * @ast method * */ public VariableArityParameterDeclarationSubstituted(Modifiers p0, Access p1, beaver.Symbol p2, VariableArityParameterDeclaration p3) { setChild(p0, 0); setChild(p1, 1); setID(p2); setOriginal(p3); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the TypeAccess child. * @param node The new node to replace the TypeAccess child. * @apilevel high-level * @ast method * */ public void setTypeAccess(Access node) { setChild(node, 1); } /** * Retrieves the TypeAccess child. * @return The current node used as the TypeAccess child. * @apilevel high-level * @ast method * */ public Access getTypeAccess() { return (Access)getChild(1); } /** * Retrieves the TypeAccess child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the TypeAccess child. * @apilevel low-level * @ast method * */ public Access getTypeAccessNoTransform() { return (Access)getChildNoTransform(1); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the lexeme Original. * @param value The new value for the lexeme Original. * @apilevel high-level * @ast method * */ public void setOriginal(VariableArityParameterDeclaration value) { tokenVariableArityParameterDeclaration_Original = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected VariableArityParameterDeclaration tokenVariableArityParameterDeclaration_Original; /** * Retrieves the value for the lexeme Original. * @return The value for the lexeme Original. * @apilevel high-level * @ast method * */ public VariableArityParameterDeclaration getOriginal() { return tokenVariableArityParameterDeclaration_Original; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
7,196
25.362637
190
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VariableDecl.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VariableDecl : {@link ASTNode} ::= <span class="component">&lt;ID:String&gt;</span> <span class="component">{@link Dims}*</span> <span class="component">[Init:{@link Expr}]</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:85 */ public class VariableDecl 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 VariableDecl clone() throws CloneNotSupportedException { VariableDecl node = (VariableDecl)super.clone(); node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableDecl copy() { try { VariableDecl node = (VariableDecl) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VariableDecl fullCopy() { VariableDecl tree = (VariableDecl) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect VariableDeclarationTransformation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:182 */ public VariableDeclaration createVariableDeclarationFrom(Modifiers modifiers, Access type) { VariableDeclaration decl = new VariableDeclaration( modifiers, type.addArrayDims(getDimsList()), getID(), getInitOpt() ); decl.setStart(start); // copy location information decl.setEnd(end); // copy location information decl.IDstart = IDstart; decl.IDend = IDend; return decl; } /** * @ast method * @aspect VariableDeclarationTransformation * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:196 */ public FieldDeclaration createFieldDeclarationFrom(Modifiers modifiers, Access type) { FieldDeclaration decl = new FieldDeclaration( modifiers, type.addArrayDims(getDimsList()), getID(), getInitOpt() ); decl.setStart(start); // copy location information decl.setEnd(end); // copy location information decl.IDstart = IDstart; decl.IDend = IDend; return decl; } /** * @ast method * */ public VariableDecl() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; setChild(new List(), 0); setChild(new Opt(), 1); } /** * @ast method * */ public VariableDecl(String p0, List<Dims> p1, Opt<Expr> p2) { setID(p0); setChild(p1, 0); setChild(p2, 1); } /** * @ast method * */ public VariableDecl(beaver.Symbol p0, List<Dims> p1, Opt<Expr> p2) { setID(p0); setChild(p1, 0); setChild(p2, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * */ public int IDstart; /** * @ast method * */ public int IDend; /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the Dims list. * @param list The new list node to be used as the Dims list. * @apilevel high-level * @ast method * */ public void setDimsList(List<Dims> list) { setChild(list, 0); } /** * Retrieves the number of children in the Dims list. * @return Number of children in the Dims list. * @apilevel high-level * @ast method * */ public int getNumDims() { return getDimsList().getNumChild(); } /** * Retrieves the number of children in the Dims list. * Calling this method will not trigger rewrites.. * @return Number of children in the Dims list. * @apilevel low-level * @ast method * */ public int getNumDimsNoTransform() { return getDimsListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the Dims list.. * @param i Index of the element to return. * @return The element at position {@code i} in the Dims list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Dims getDims(int i) { return (Dims)getDimsList().getChild(i); } /** * Append an element to the Dims list. * @param node The element to append to the Dims list. * @apilevel high-level * @ast method * */ public void addDims(Dims node) { List<Dims> list = (parent == null || state == null) ? getDimsListNoTransform() : getDimsList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addDimsNoTransform(Dims node) { List<Dims> list = getDimsListNoTransform(); list.addChild(node); } /** * Replaces the Dims list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setDims(Dims node, int i) { List<Dims> list = getDimsList(); list.setChild(node, i); } /** * Retrieves the Dims list. * @return The node representing the Dims list. * @apilevel high-level * @ast method * */ public List<Dims> getDimss() { return getDimsList(); } /** * Retrieves the Dims list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Dims list. * @apilevel low-level * @ast method * */ public List<Dims> getDimssNoTransform() { return getDimsListNoTransform(); } /** * Retrieves the Dims list. * @return The node representing the Dims list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Dims> getDimsList() { List<Dims> list = (List<Dims>)getChild(0); list.getNumChild(); return list; } /** * Retrieves the Dims list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the Dims list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<Dims> getDimsListNoTransform() { return (List<Dims>)getChildNoTransform(0); } /** * Replaces the optional node for the Init child. This is the {@code Opt} node containing the child Init, not the actual child! * @param opt The new node to be used as the optional node for the Init child. * @apilevel low-level * @ast method * */ public void setInitOpt(Opt<Expr> opt) { setChild(opt, 1); } /** * Check whether the optional Init child exists. * @return {@code true} if the optional Init child exists, {@code false} if it does not. * @apilevel high-level * @ast method * */ public boolean hasInit() { return getInitOpt().getNumChild() != 0; } /** * Retrieves the (optional) Init child. * @return The Init child, if it exists. Returns {@code null} otherwise. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Expr getInit() { return (Expr)getInitOpt().getChild(0); } /** * Replaces the (optional) Init child. * @param node The new node to be used as the Init child. * @apilevel high-level * @ast method * */ public void setInit(Expr node) { getInitOpt().setChild(node, 0); } /** * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Expr> getInitOpt() { return (Opt<Expr>)getChild(1); } /** * Retrieves the optional node for child Init. This is the {@code Opt} node containing the child Init, not the actual child! * <p><em>This method does not invoke AST transformations.</em></p> * @return The optional node for child Init. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Expr> getInitOptNoTransform() { return (Opt<Expr>)getChildNoTransform(1); } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:84 */ public String name() { ASTNode$State state = state(); try { return getID(); } finally { } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:41 * @apilevel internal */ public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return true; } else { return getParent().Define_boolean_isSource(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:69 * @apilevel internal */ public TypeDecl Define_TypeDecl_expectedType(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return null; } else { return getParent().Define_TypeDecl_expectedType(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
11,881
25.057018
195
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VariableDeclaration.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VariableDeclaration : {@link Stmt} ::= <span class="component">{@link Modifiers}</span> <span class="component">TypeAccess:{@link Access}</span> <span class="component">&lt;ID:String&gt;</span> <span class="component">[Init:{@link Expr}]</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:83 */ public class VariableDeclaration extends Stmt implements Cloneable, SimpleSet, Iterator, Variable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); isDAafter_Variable_values = null; isDUafter_Variable_values = null; constant_computed = false; constant_value = null; sourceVariableDecl_computed = false; sourceVariableDecl_value = null; throwTypes_computed = false; throwTypes_value = null; localNum_computed = false; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableDeclaration clone() throws CloneNotSupportedException { VariableDeclaration node = (VariableDeclaration)super.clone(); node.isDAafter_Variable_values = null; node.isDUafter_Variable_values = null; node.constant_computed = false; node.constant_value = null; node.sourceVariableDecl_computed = false; node.sourceVariableDecl_value = null; node.throwTypes_computed = false; node.throwTypes_value = null; node.localNum_computed = false; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VariableDeclaration copy() { try { VariableDeclaration node = (VariableDeclaration) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VariableDeclaration fullCopy() { VariableDeclaration tree = (VariableDeclaration) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:99 */ public SimpleSet add(Object o) { return new SimpleSetImpl().add(this).add(o); } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:103 */ public boolean isSingleton() { return true; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:104 */ public boolean isSingleton(Object o) { return contains(o); } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:107 */ private VariableDeclaration iterElem; /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:108 */ public Iterator iterator() { iterElem = this; return this; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:109 */ public boolean hasNext() { return iterElem != null; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:110 */ public Object next() { Object o = iterElem; iterElem = null; return o; } /** * @ast method * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:111 */ public void remove() { throw new UnsupportedOperationException(); } /** * @ast method * @aspect NodeConstructors * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NodeConstructors.jrag:74 */ public VariableDeclaration(Access type, String name, Expr init) { this(new Modifiers(new List()), type, name, new Opt(init)); } /** * @ast method * @aspect NodeConstructors * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NodeConstructors.jrag:78 */ public VariableDeclaration(Access type, String name) { this(new Modifiers(new List()), type, name, new Opt()); } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:164 */ public void toString(StringBuffer s) { s.append(indent()); getModifiers().toString(s); getTypeAccess().toString(s); s.append(" " + name()); if(hasInit()) { s.append(" = "); getInit().toString(s); } s.append(";"); } /** * @ast method * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:22 */ public void typeCheck() { if(hasInit()) { TypeDecl source = getInit().type(); TypeDecl dest = type(); if(!source.assignConversionTo(dest, getInit())) error("can not assign variable " + name() + " of type " + dest.typeName() + " a value of type " + source.typeName()); } } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:377 */ public void jimplify2(Body b) { b.setLine(this); local = b.newLocal(name(), type().getSootType()); if(hasInit()) { b.add( b.newAssignStmt( local, asRValue(b, getInit().type().emitCastTo(b, // Assign conversion getInit(), type() ) ), this ) ); } } /** * @ast method * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:395 */ public Local local; /** * @ast method * @aspect UncheckedConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/UncheckedConversion.jrag:20 */ public void checkWarnings() { if (hasInit() && !suppressWarnings("unchecked")) checkUncheckedConversion(getInit().type(), type()); } /** * @ast method * */ public VariableDeclaration() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[3]; setChild(new Opt(), 2); } /** * @ast method * */ public VariableDeclaration(Modifiers p0, Access p1, String p2, Opt<Expr> p3) { setChild(p0, 0); setChild(p1, 1); setID(p2); setChild(p3, 2); } /** * @ast method * */ public VariableDeclaration(Modifiers p0, Access p1, beaver.Symbol p2, Opt<Expr> p3) { setChild(p0, 0); setChild(p1, 1); setID(p2); setChild(p3, 2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 3; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the TypeAccess child. * @param node The new node to replace the TypeAccess child. * @apilevel high-level * @ast method * */ public void setTypeAccess(Access node) { setChild(node, 1); } /** * Retrieves the TypeAccess child. * @return The current node used as the TypeAccess child. * @apilevel high-level * @ast method * */ public Access getTypeAccess() { return (Access)getChild(1); } /** * Retrieves the TypeAccess child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the TypeAccess child. * @apilevel low-level * @ast method * */ public Access getTypeAccessNoTransform() { return (Access)getChildNoTransform(1); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * @apilevel internal * @ast method * */ /** * @apilevel internal */ protected String tokenString_ID; /** * @ast method * */ public int IDstart; /** * @ast method * */ public int IDend; /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the optional node for the Init child. This is the {@code Opt} node containing the child Init, not the actual child! * @param opt The new node to be used as the optional node for the Init child. * @apilevel low-level * @ast method * */ public void setInitOpt(Opt<Expr> opt) { setChild(opt, 2); } /** * Check whether the optional Init child exists. * @return {@code true} if the optional Init child exists, {@code false} if it does not. * @apilevel high-level * @ast method * */ public boolean hasInit() { return getInitOpt().getNumChild() != 0; } /** * Retrieves the (optional) Init child. * @return The Init child, if it exists. Returns {@code null} otherwise. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Expr getInit() { return (Expr)getInitOpt().getChild(0); } /** * Replaces the (optional) Init child. * @param node The new node to be used as the Init child. * @apilevel high-level * @ast method * */ public void setInit(Expr node) { getInitOpt().setChild(node, 0); } /** * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Expr> getInitOpt() { return (Opt<Expr>)getChild(2); } /** * Retrieves the optional node for child Init. This is the {@code Opt} node containing the child Init, not the actual child! * <p><em>This method does not invoke AST transformations.</em></p> * @return The optional node for child Init. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public Opt<Expr> getInitOptNoTransform() { return (Opt<Expr>)getChildNoTransform(2); } /** * @ast method * @aspect MultiCatch * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/MultiCatch.jrag:240 */ public void nameCheck() { SimpleSet decls = outerScope().lookupVariable(name()); for(Iterator iter = decls.iterator(); iter.hasNext(); ) { Variable var = (Variable)iter.next(); if(var instanceof VariableDeclaration) { VariableDeclaration decl = (VariableDeclaration)var; if(decl != this && decl.enclosingBodyDecl() == enclosingBodyDecl()) error("duplicate declaration of local variable " + name()); } // 8.4.1 else if(var instanceof ParameterDeclaration) { ParameterDeclaration decl = (ParameterDeclaration)var; if(decl.enclosingBodyDecl() == enclosingBodyDecl()) error("duplicate declaration of local variable " + name()); } else if(var instanceof CatchParameterDeclaration) { CatchParameterDeclaration decl = (CatchParameterDeclaration)var; if(decl.enclosingBodyDecl() == enclosingBodyDecl()) error("duplicate declaration of local variable " + name()); } } if(getParent().getParent() instanceof Block) { Block block = (Block)getParent().getParent(); for(int i = 0; i < block.getNumStmt(); i++) { if(block.getStmt(i) instanceof Variable) { Variable v = (Variable)block.getStmt(i); if(v.name().equals(name()) && v != this) { error("duplicate declaration of local variable " + name()); } } } } } /** * @attribute syn * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:97 */ public int size() { ASTNode$State state = state(); try { return 1; } finally { } } /** * @attribute syn * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:98 */ public boolean isEmpty() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect DataStructures * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DataStructures.jrag:102 */ public boolean contains(Object o) { ASTNode$State state = state(); try { return this == o; } finally { } } /** * @attribute syn * @aspect DefiniteAssignment * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:91 */ public boolean isBlankFinal() { ASTNode$State state = state(); try { return isFinal() && (!hasInit() || !getInit().isConstant()); } finally { } } /** * @attribute syn * @aspect DefiniteAssignment * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:92 */ public boolean isValue() { ASTNode$State state = state(); try { return isFinal() && hasInit() && getInit().isConstant(); } finally { } } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:492 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { if(v == this) return hasInit(); return hasInit() ? getInit().isDAafter(v) : isDAbefore(v); } protected java.util.Map isDUafter_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:875 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v; if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); return isDUafter_Variable_value; } /** * @apilevel internal */ private boolean isDUafter_compute(Variable v) { if(v == this) return !hasInit(); return hasInit() ? getInit().isDUafter(v) : isDUbefore(v); } /** * @attribute syn * @aspect VariableScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:129 */ public boolean declaresVariable(String name) { ASTNode$State state = state(); try { return name().equals(name); } finally { } } /** * @attribute syn * @aspect Modifiers * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:219 */ public boolean isSynthetic() { ASTNode$State state = state(); try { return getModifiers().isSynthetic(); } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:800 */ public String dumpString() { ASTNode$State state = state(); try { return getClass().getName() + " [" + getID() + "]"; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:252 */ public TypeDecl type() { ASTNode$State state = state(); try { return getTypeAccess().type(); } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:13 */ public boolean isParameter() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:15 */ public boolean isClassVariable() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:16 */ public boolean isInstanceVariable() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:17 */ public boolean isMethodParameter() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:18 */ public boolean isConstructorParameter() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:19 */ public boolean isExceptionHandlerParameter() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:20 */ public boolean isLocalVariable() { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:22 */ public boolean isFinal() { ASTNode$State state = state(); try { return getModifiers().isFinal(); } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:23 */ public boolean isVolatile() { ASTNode$State state = state(); try { return getModifiers().isVolatile(); } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:24 */ public boolean isBlank() { ASTNode$State state = state(); try { return !hasInit(); } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:25 */ public boolean isStatic() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:27 */ public String name() { ASTNode$State state = state(); try { return getID(); } finally { } } /** * @apilevel internal */ protected boolean constant_computed = false; /** * @apilevel internal */ protected Constant constant_value; /** * @attribute syn * @aspect Variables * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/VariableDeclaration.jrag:29 */ @SuppressWarnings({"unchecked", "cast"}) public Constant constant() { if(constant_computed) { return constant_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); constant_value = constant_compute(); if(isFinal && num == state().boundariesCrossed) constant_computed = true; return constant_value; } /** * @apilevel internal */ private Constant constant_compute() { return type().cast(getInit().constant()); } /** * @apilevel internal */ protected boolean sourceVariableDecl_computed = false; /** * @apilevel internal */ protected Variable sourceVariableDecl_value; /** * @attribute syn * @aspect SourceDeclarations * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1520 */ @SuppressWarnings({"unchecked", "cast"}) public Variable sourceVariableDecl() { if(sourceVariableDecl_computed) { return sourceVariableDecl_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); sourceVariableDecl_value = sourceVariableDecl_compute(); if(isFinal && num == state().boundariesCrossed) sourceVariableDecl_computed = true; return sourceVariableDecl_value; } /** * @apilevel internal */ private Variable sourceVariableDecl_compute() { return this; } /** * @apilevel internal */ protected boolean throwTypes_computed = false; /** * @apilevel internal */ protected Collection<TypeDecl> throwTypes_value; /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:17 */ @SuppressWarnings({"unchecked", "cast"}) public Collection<TypeDecl> throwTypes() { if(throwTypes_computed) { return throwTypes_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); throwTypes_value = throwTypes_compute(); if(isFinal && num == state().boundariesCrossed) throwTypes_computed = true; return throwTypes_value; } /** * @apilevel internal */ private Collection<TypeDecl> throwTypes_compute() { Collection<TypeDecl> tts = new LinkedList<TypeDecl>(); tts.add(type()); return tts; } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect SuppressWarnings * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/SuppressWarnings.jrag:10 */ public boolean hasAnnotationSuppressWarnings(String s) { ASTNode$State state = state(); try { return getModifiers().hasAnnotationSuppressWarnings(s); } finally { } } /** * @attribute syn * @aspect SuppressWarnings * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/SuppressWarnings.jrag:20 */ public boolean suppressWarnings(String type) { ASTNode$State state = state(); try { return hasAnnotationSuppressWarnings(type) || withinSuppressWarnings(type); } finally { } } /** * @attribute inh * @aspect VariableScope * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/LookupVariable.jrag:21 */ @SuppressWarnings({"unchecked", "cast"}) public SimpleSet lookupVariable(String name) { ASTNode$State state = state(); SimpleSet lookupVariable_String_value = getParent().Define_SimpleSet_lookupVariable(this, null, name); return lookupVariable_String_value; } /** * @attribute inh * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:294 */ @SuppressWarnings({"unchecked", "cast"}) public VariableScope outerScope() { ASTNode$State state = state(); VariableScope outerScope_value = getParent().Define_VariableScope_outerScope(this, null); return outerScope_value; } /** * @attribute inh * @aspect NestedTypes * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:588 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl hostType() { ASTNode$State state = state(); TypeDecl hostType_value = getParent().Define_TypeDecl_hostType(this, null); return hostType_value; } /** * @apilevel internal */ protected boolean localNum_computed = false; /** * @apilevel internal */ protected int localNum_value; /** * @attribute inh * @aspect LocalNum * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/LocalNum.jrag:11 */ @SuppressWarnings({"unchecked", "cast"}) public int localNum() { if(localNum_computed) { return localNum_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); localNum_value = getParent().Define_int_localNum(this, null); if(isFinal && num == state().boundariesCrossed) localNum_computed = true; return localNum_value; } /** * @attribute inh * @aspect SuppressWarnings * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/SuppressWarnings.jrag:13 */ @SuppressWarnings({"unchecked", "cast"}) public boolean withinSuppressWarnings(String s) { ASTNode$State state = state(); boolean withinSuppressWarnings_String_value = getParent().Define_boolean_withinSuppressWarnings(this, null, s); return withinSuppressWarnings_String_value; } /** * @attribute inh * @aspect TryWithResources * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/TryWithResources.jrag:144 */ @SuppressWarnings({"unchecked", "cast"}) public boolean resourcePreviouslyDeclared(String name) { ASTNode$State state = state(); boolean resourcePreviouslyDeclared_String_value = getParent().Define_boolean_resourcePreviouslyDeclared(this, null, name); return resourcePreviouslyDeclared_String_value; } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:40 * @apilevel internal */ public boolean Define_boolean_isSource(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return true; } else { return getParent().Define_boolean_isSource(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:497 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getInitOptNoTransform()) { return isDAbefore(v); } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:880 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getInitOptNoTransform()) { return isDUbefore(v); } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/Modifiers.jrag:286 * @apilevel internal */ public boolean Define_boolean_mayBeFinal(ASTNode caller, ASTNode child) { if(caller == getModifiersNoTransform()) { return true; } else { return getParent().Define_boolean_mayBeFinal(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/SyntacticClassification.jrag:85 * @apilevel internal */ public NameType Define_NameType_nameType(ASTNode caller, ASTNode child) { if(caller == getTypeAccessNoTransform()) { return NameType.TYPE_NAME; } else { return getParent().Define_NameType_nameType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:261 * @apilevel internal */ public TypeDecl Define_TypeDecl_declType(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return type(); } else { return getParent().Define_TypeDecl_declType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:92 * @apilevel internal */ public boolean Define_boolean_mayUseAnnotationTarget(ASTNode caller, ASTNode child, String name) { if(caller == getModifiersNoTransform()) { return name.equals("LOCAL_VARIABLE"); } else { return getParent().Define_boolean_mayUseAnnotationTarget(this, caller, name); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericMethodsInference.jrag:34 * @apilevel internal */ public TypeDecl Define_TypeDecl_assignConvertedType(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return type(); } else { return getParent().Define_TypeDecl_assignConvertedType(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/InnerClasses.jrag:68 * @apilevel internal */ public TypeDecl Define_TypeDecl_expectedType(ASTNode caller, ASTNode child) { if(caller == getInitOptNoTransform()) { return type().componentType(); } else { return getParent().Define_TypeDecl_expectedType(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
33,535
29.212613
260
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VariableScope.java
package soot.JastAddJ; import java.util.HashSet; 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 interface * */ public interface VariableScope { public SimpleSet lookupVariable(String name); }
594
19.517241
49
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/VoidType.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production VoidType : {@link TypeDecl}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:48 */ public class VoidType extends TypeDecl implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); instanceOf_TypeDecl_values = null; subtype_TypeDecl_values = null; getSootType_computed = false; getSootType_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VoidType clone() throws CloneNotSupportedException { VoidType node = (VoidType)super.clone(); node.instanceOf_TypeDecl_values = null; node.subtype_TypeDecl_values = null; node.getSootType_computed = false; node.getSootType_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public VoidType copy() { try { VoidType node = (VoidType) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public VoidType fullCopy() { VoidType tree = (VoidType) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:859 */ public void toString(StringBuffer s) { s.append("void"); } /** * @ast method * */ public VoidType() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; setChild(new List(), 1); } /** * @ast method * */ public VoidType(Modifiers p0, String p1, List<BodyDecl> p2) { setChild(p0, 0); setID(p1); setChild(p2, 1); } /** * @ast method * */ public VoidType(Modifiers p0, beaver.Symbol p1, List<BodyDecl> p2) { setChild(p0, 0); setID(p1); setChild(p2, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public BodyDecl getBodyDecl(int i) { return (BodyDecl)getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>)getChildNoTransform(1); } /** * @attribute syn * @aspect TypeConversion * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:55 */ public boolean stringConversion() { ASTNode$State state = state(); try { return false; } finally { } } /** * @attribute syn * @aspect TypeAnalysis * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:202 */ public boolean isVoid() { ASTNode$State state = state(); try { return true; } finally { } } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:392 */ @SuppressWarnings({"unchecked", "cast"}) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if(instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if(instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if(isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * @attribute syn * @aspect TypeWideningAndIdentity * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeAnalysis.jrag:486 */ public boolean isSupertypeOfVoidType(VoidType type) { ASTNode$State state = state(); try { return true; } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:412 */ @SuppressWarnings({"unchecked", "cast"}) public boolean subtype(TypeDecl type) { Object _parameters = type; if(subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return type.supertypeVoidType(this); } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:483 */ public boolean supertypeVoidType(VoidType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect Java2Rewrites * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Backend/Java2Rewrites.jrag:44 */ public String primitiveClassName() { ASTNode$State state = state(); try { return "Void"; } finally { } } /** * @apilevel internal */ protected boolean getSootType_computed = false; /** * @apilevel internal */ protected Type getSootType_value; /** * @attribute syn * @aspect EmitJimple * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/EmitJimple.jrag:55 */ @SuppressWarnings({"unchecked", "cast"}) public Type getSootType() { if(getSootType_computed) { return getSootType_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); getSootType_value = getSootType_compute(); if(isFinal && num == state().boundariesCrossed) getSootType_computed = true; return getSootType_value; } /** * @apilevel internal */ private Type getSootType_compute() { return soot.VoidType.v(); } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
14,930
27.385932
142
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WhileStmt.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WhileStmt : {@link BranchTargetStmt} ::= <span class="component">Condition:{@link Expr}</span> <span class="component">{@link Stmt}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:208 */ public class WhileStmt extends BranchTargetStmt implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); targetOf_ContinueStmt_values = null; targetOf_BreakStmt_values = null; isDAafter_Variable_values = null; isDUafter_Variable_values = null; isDUbeforeCondition_Variable_values = null; canCompleteNormally_computed = false; cond_label_computed = false; cond_label_value = null; end_label_computed = false; end_label_value = null; stmt_label_computed = false; stmt_label_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WhileStmt clone() throws CloneNotSupportedException { WhileStmt node = (WhileStmt)super.clone(); node.targetOf_ContinueStmt_values = null; node.targetOf_BreakStmt_values = null; node.isDAafter_Variable_values = null; node.isDUafter_Variable_values = null; node.isDUbeforeCondition_Variable_values = null; node.canCompleteNormally_computed = false; node.cond_label_computed = false; node.cond_label_value = null; node.end_label_computed = false; node.end_label_value = null; node.stmt_label_computed = false; node.stmt_label_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WhileStmt copy() { try { WhileStmt node = (WhileStmt) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WhileStmt fullCopy() { WhileStmt tree = (WhileStmt) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:587 */ public void toString(StringBuffer s) { s.append(indent()); s.append("while("); getCondition().toString(s); s.append(")"); getStmt().toString(s); } /** * @ast method * @aspect TypeCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/TypeCheck.jrag:322 */ public void typeCheck() { TypeDecl cond = getCondition().type(); if(!cond.isBoolean()) { error("the type of \"" + getCondition() + "\" is " + cond.name() + " which is not boolean"); } } /** * @ast method * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:146 */ public void jimplify2(Body b) { b.addLabel(cond_label()); getCondition().emitEvalBranch(b); b.addLabel(stmt_label()); if(getCondition().canBeTrue()) { getStmt().jimplify2(b); if(getStmt().canCompleteNormally()) { b.setLine(this); b.add(b.newGotoStmt(cond_label(), this)); } } if(canCompleteNormally()) b.addLabel(end_label()); } /** * @ast method * */ public WhileStmt() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public WhileStmt(Expr p0, Stmt p1) { setChild(p0, 0); setChild(p1, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Condition child. * @param node The new node to replace the Condition child. * @apilevel high-level * @ast method * */ public void setCondition(Expr node) { setChild(node, 0); } /** * Retrieves the Condition child. * @return The current node used as the Condition child. * @apilevel high-level * @ast method * */ public Expr getCondition() { return (Expr)getChild(0); } /** * Retrieves the Condition child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Condition child. * @apilevel low-level * @ast method * */ public Expr getConditionNoTransform() { return (Expr)getChildNoTransform(0); } /** * Replaces the Stmt child. * @param node The new node to replace the Stmt child. * @apilevel high-level * @ast method * */ public void setStmt(Stmt node) { setChild(node, 1); } /** * Retrieves the Stmt child. * @return The current node used as the Stmt child. * @apilevel high-level * @ast method * */ public Stmt getStmt() { return (Stmt)getChild(1); } /** * Retrieves the Stmt child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Stmt child. * @apilevel low-level * @ast method * */ public Stmt getStmtNoTransform() { return (Stmt)getChildNoTransform(1); } protected java.util.Map targetOf_ContinueStmt_values; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:69 */ @SuppressWarnings({"unchecked", "cast"}) public boolean targetOf(ContinueStmt stmt) { Object _parameters = stmt; if(targetOf_ContinueStmt_values == null) targetOf_ContinueStmt_values = new java.util.HashMap(4); if(targetOf_ContinueStmt_values.containsKey(_parameters)) { return ((Boolean)targetOf_ContinueStmt_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean targetOf_ContinueStmt_value = targetOf_compute(stmt); if(isFinal && num == state().boundariesCrossed) targetOf_ContinueStmt_values.put(_parameters, Boolean.valueOf(targetOf_ContinueStmt_value)); return targetOf_ContinueStmt_value; } /** * @apilevel internal */ private boolean targetOf_compute(ContinueStmt stmt) { return !stmt.hasLabel(); } protected java.util.Map targetOf_BreakStmt_values; /** * @attribute syn * @aspect BranchTarget * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/BranchTarget.jrag:77 */ @SuppressWarnings({"unchecked", "cast"}) public boolean targetOf(BreakStmt stmt) { Object _parameters = stmt; if(targetOf_BreakStmt_values == null) targetOf_BreakStmt_values = new java.util.HashMap(4); if(targetOf_BreakStmt_values.containsKey(_parameters)) { return ((Boolean)targetOf_BreakStmt_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean targetOf_BreakStmt_value = targetOf_compute(stmt); if(isFinal && num == state().boundariesCrossed) targetOf_BreakStmt_values.put(_parameters, Boolean.valueOf(targetOf_BreakStmt_value)); return targetOf_BreakStmt_value; } /** * @apilevel internal */ private boolean targetOf_compute(BreakStmt stmt) { return !stmt.hasLabel(); } protected java.util.Map isDAafter_Variable_values; /** * @attribute syn * @aspect DA * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:576 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDAafter(Variable v) { Object _parameters = v; if(isDAafter_Variable_values == null) isDAafter_Variable_values = new java.util.HashMap(4); if(isDAafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDAafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDAafter_Variable_value = isDAafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDAafter_Variable_values.put(_parameters, Boolean.valueOf(isDAafter_Variable_value)); return isDAafter_Variable_value; } /** * @apilevel internal */ private boolean isDAafter_compute(Variable v) { if(!getCondition().isDAafterFalse(v)) return false; for(Iterator iter = targetBreaks().iterator(); iter.hasNext(); ) { BreakStmt stmt = (BreakStmt)iter.next(); if(!stmt.isDAafterReachedFinallyBlocks(v)) return false; } return true; } protected java.util.Map isDUafter_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1032 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUafter(Variable v) { Object _parameters = v; if(isDUafter_Variable_values == null) isDUafter_Variable_values = new java.util.HashMap(4); if(isDUafter_Variable_values.containsKey(_parameters)) { return ((Boolean)isDUafter_Variable_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean isDUafter_Variable_value = isDUafter_compute(v); if(isFinal && num == state().boundariesCrossed) isDUafter_Variable_values.put(_parameters, Boolean.valueOf(isDUafter_Variable_value)); return isDUafter_Variable_value; } /** * @apilevel internal */ private boolean isDUafter_compute(Variable v) { if(!isDUbeforeCondition(v)) // start a circular evaluation here return false; if(!getCondition().isDUafterFalse(v)) return false; for(Iterator iter = targetBreaks().iterator(); iter.hasNext(); ) { BreakStmt stmt = (BreakStmt)iter.next(); if(!stmt.isDUafterReachedFinallyBlocks(v)) return false; } return true; } protected java.util.Map isDUbeforeCondition_Variable_values; /** * @attribute syn * @aspect DU * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1049 */ @SuppressWarnings({"unchecked", "cast"}) public boolean isDUbeforeCondition(Variable v) { Object _parameters = v; if(isDUbeforeCondition_Variable_values == null) isDUbeforeCondition_Variable_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(isDUbeforeCondition_Variable_values.containsKey(_parameters)) { Object _o = isDUbeforeCondition_Variable_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); isDUbeforeCondition_Variable_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_isDUbeforeCondition_Variable_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_isDUbeforeCondition_Variable_value = isDUbeforeCondition_compute(v); if (new_isDUbeforeCondition_Variable_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_isDUbeforeCondition_Variable_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { isDUbeforeCondition_Variable_values.put(_parameters, new_isDUbeforeCondition_Variable_value); } else { isDUbeforeCondition_Variable_values.remove(_parameters); state.RESET_CYCLE = true; isDUbeforeCondition_compute(v); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_isDUbeforeCondition_Variable_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_isDUbeforeCondition_Variable_value = isDUbeforeCondition_compute(v); if (state.RESET_CYCLE) { isDUbeforeCondition_Variable_values.remove(_parameters); } else if (new_isDUbeforeCondition_Variable_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_isDUbeforeCondition_Variable_value; } return new_isDUbeforeCondition_Variable_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean isDUbeforeCondition_compute(Variable v) { // 1st if(!isDUbefore(v)) return false; else if(!getStmt().isDUafter(v)) return false; else { for(Iterator iter = targetContinues().iterator(); iter.hasNext(); ) { ContinueStmt stmt = (ContinueStmt)iter.next(); if(!stmt.isDUafterReachedFinallyBlocks(v)) return false; } } return true; } /** * @attribute syn * @aspect NameCheck * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:401 */ public boolean continueLabel() { ASTNode$State state = state(); try { return true; } finally { } } /** * @apilevel internal */ protected boolean canCompleteNormally_computed = false; /** * @apilevel internal */ protected boolean canCompleteNormally_value; /** * @attribute syn * @aspect UnreachableStatements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:85 */ @SuppressWarnings({"unchecked", "cast"}) public boolean canCompleteNormally() { if(canCompleteNormally_computed) { return canCompleteNormally_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); canCompleteNormally_value = canCompleteNormally_compute(); if(isFinal && num == state().boundariesCrossed) canCompleteNormally_computed = true; return canCompleteNormally_value; } /** * @apilevel internal */ private boolean canCompleteNormally_compute() { return reachable() && (!getCondition().isConstant() || !getCondition().isTrue()) || reachableBreak(); } /** * @attribute syn * @aspect BooleanExpressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/BooleanExpressions.jrag:21 */ public boolean definesLabel() { ASTNode$State state = state(); try { return true; } finally { } } /** * @apilevel internal */ protected boolean cond_label_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt cond_label_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:142 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt cond_label() { if(cond_label_computed) { return cond_label_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); cond_label_value = cond_label_compute(); if(isFinal && num == state().boundariesCrossed) cond_label_computed = true; return cond_label_value; } /** * @apilevel internal */ private soot.jimple.Stmt cond_label_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean end_label_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt end_label_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:143 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt end_label() { if(end_label_computed) { return end_label_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); end_label_value = end_label_compute(); if(isFinal && num == state().boundariesCrossed) end_label_computed = true; return end_label_value; } /** * @apilevel internal */ private soot.jimple.Stmt end_label_compute() { return newLabel(); } /** * @apilevel internal */ protected boolean stmt_label_computed = false; /** * @apilevel internal */ protected soot.jimple.Stmt stmt_label_value; /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:144 */ @SuppressWarnings({"unchecked", "cast"}) public soot.jimple.Stmt stmt_label() { if(stmt_label_computed) { return stmt_label_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); stmt_label_value = stmt_label_compute(); if(isFinal && num == state().boundariesCrossed) stmt_label_computed = true; return stmt_label_value; } /** * @apilevel internal */ private soot.jimple.Stmt stmt_label_compute() { return newLabel(); } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:200 */ public soot.jimple.Stmt break_label() { ASTNode$State state = state(); try { return end_label(); } finally { } } /** * @attribute syn * @aspect Statements * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Statements.jrag:225 */ public soot.jimple.Stmt continue_label() { ASTNode$State state = state(); try { return cond_label(); } finally { } } /** * @attribute syn * @aspect PreciseRethrow * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/PreciseRethrow.jrag:55 */ public boolean modifiedInScope(Variable var) { ASTNode$State state = state(); try { return getStmt().modifiedInScope(var); } finally { } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:587 * @apilevel internal */ public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getStmtNoTransform()) { return getCondition().isDAafterTrue(v); } else if(caller == getConditionNoTransform()) { return isDAbefore(v); } else { return getParent().Define_boolean_isDAbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/DefiniteAssignment.jrag:1066 * @apilevel internal */ public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) { if(caller == getStmtNoTransform()) { return getCondition().isDUafterTrue(v); } else if(caller == getConditionNoTransform()) { return isDUbeforeCondition(v); } else { return getParent().Define_boolean_isDUbefore(this, caller, v); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/NameCheck.jrag:371 * @apilevel internal */ public boolean Define_boolean_insideLoop(ASTNode caller, ASTNode child) { if(caller == getStmtNoTransform()) { return true; } else { return getParent().Define_boolean_insideLoop(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:86 * @apilevel internal */ public boolean Define_boolean_reachable(ASTNode caller, ASTNode child) { if(caller == getStmtNoTransform()) { return reachable() && !getCondition().isFalse(); } else { return getParent().Define_boolean_reachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/UnreachableStatements.jrag:153 * @apilevel internal */ public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child) { if(caller == getStmtNoTransform()) { return reachable(); } else { return getParent().Define_boolean_reportUnreachable(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/BooleanExpressions.jrag:40 * @apilevel internal */ public soot.jimple.Stmt Define_soot_jimple_Stmt_condition_false_label(ASTNode caller, ASTNode child) { if(caller == getConditionNoTransform()) { return end_label(); } else { return getParent().Define_soot_jimple_Stmt_condition_false_label(this, caller); } } /** * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/BooleanExpressions.jrag:41 * @apilevel internal */ public soot.jimple.Stmt Define_soot_jimple_Stmt_condition_true_label(ASTNode caller, ASTNode child) { if(caller == getConditionNoTransform()) { return stmt_label(); } else { return getParent().Define_soot_jimple_Stmt_condition_true_label(this, caller); } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
23,080
31.14624
155
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/Wildcard.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production Wildcard : {@link AbstractWildcard}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:21 */ public class Wildcard extends AbstractWildcard implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public Wildcard clone() throws CloneNotSupportedException { Wildcard node = (Wildcard)super.clone(); node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public Wildcard copy() { try { Wildcard node = (Wildcard) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public Wildcard fullCopy() { Wildcard tree = (Wildcard) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect GenericsPrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsPrettyPrint.jrag:161 */ public void toString(StringBuffer s) { s.append("?"); } /** * @ast method * */ public Wildcard() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 0; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1369 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return typeWildcard(); } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1374 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeWildcard() { ASTNode$State state = state(); TypeDecl typeWildcard_value = getParent().Define_TypeDecl_typeWildcard(this, null); return typeWildcard_value; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
4,439
23.804469
114
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WildcardExtends.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WildcardExtends : {@link AbstractWildcard} ::= <span class="component">{@link Access}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:22 */ public class WildcardExtends extends AbstractWildcard implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardExtends clone() throws CloneNotSupportedException { WildcardExtends node = (WildcardExtends)super.clone(); node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardExtends copy() { try { WildcardExtends node = (WildcardExtends) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WildcardExtends fullCopy() { WildcardExtends tree = (WildcardExtends) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect GenericsPrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsPrettyPrint.jrag:164 */ public void toString(StringBuffer s) { s.append("? extends "); getAccess().toString(s); } /** * @ast method * */ public WildcardExtends() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[1]; } /** * @ast method * */ public WildcardExtends(Access p0) { setChild(p0, 0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 1; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Access child. * @param node The new node to replace the Access child. * @apilevel high-level * @ast method * */ public void setAccess(Access node) { setChild(node, 0); } /** * Retrieves the Access child. * @return The current node used as the Access child. * @apilevel high-level * @ast method * */ public Access getAccess() { return (Access)getChild(0); } /** * Retrieves the Access child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Access child. * @apilevel low-level * @ast method * */ public Access getAccessNoTransform() { return (Access)getChildNoTransform(0); } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1370 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return lookupWildcardExtends(getAccess().type()); } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1373 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lookupWildcardExtends(TypeDecl typeDecl) { ASTNode$State state = state(); TypeDecl lookupWildcardExtends_TypeDecl_value = getParent().Define_TypeDecl_lookupWildcardExtends(this, null, typeDecl); return lookupWildcardExtends_TypeDecl_value; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
5,593
24.543379
124
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WildcardExtendsType.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WildcardExtendsType : {@link AbstractWildcardType} ::= <span class="component">{@link Access}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:27 */ public class WildcardExtendsType extends AbstractWildcardType implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); involvesTypeParameters_visited = -1; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; usesTypeVariable_visited = -1; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; subtype_TypeDecl_values = null; containedIn_TypeDecl_values = null; sameStructure_TypeDecl_values = null; instanceOf_TypeDecl_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardExtendsType clone() throws CloneNotSupportedException { WildcardExtendsType node = (WildcardExtendsType)super.clone(); node.involvesTypeParameters_visited = -1; node.involvesTypeParameters_computed = false; node.involvesTypeParameters_initialized = false; node.usesTypeVariable_visited = -1; node.usesTypeVariable_computed = false; node.usesTypeVariable_initialized = false; node.subtype_TypeDecl_values = null; node.containedIn_TypeDecl_values = null; node.sameStructure_TypeDecl_values = null; node.instanceOf_TypeDecl_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardExtendsType copy() { try { WildcardExtendsType node = (WildcardExtendsType) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WildcardExtendsType fullCopy() { WildcardExtendsType tree = (WildcardExtendsType) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:902 */ public Access substitute(Parameterization parTypeDecl) { if(!usesTypeVariable()) return super.substitute(parTypeDecl); return new WildcardExtends(getAccess().type().substitute(parTypeDecl)); } /** * @ast method * */ public WildcardExtendsType() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[3]; setChild(new List(), 1); } /** * @ast method * */ public WildcardExtendsType(Modifiers p0, String p1, List<BodyDecl> p2, Access p3) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); } /** * @ast method * */ public WildcardExtendsType(Modifiers p0, beaver.Symbol p1, List<BodyDecl> p2, Access p3) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 3; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public BodyDecl getBodyDecl(int i) { return (BodyDecl)getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>)getChildNoTransform(1); } /** * Replaces the Access child. * @param node The new node to replace the Access child. * @apilevel high-level * @ast method * */ public void setAccess(Access node) { setChild(node, 2); } /** * Retrieves the Access child. * @return The current node used as the Access child. * @apilevel high-level * @ast method * */ public Access getAccess() { return (Access)getChild(2); } /** * Retrieves the Access child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Access child. * @apilevel low-level * @ast method * */ public Access getAccessNoTransform() { return (Access)getChildNoTransform(2); } /** * @apilevel internal */ protected int involvesTypeParameters_visited = -1; /** * @apilevel internal */ protected boolean involvesTypeParameters_computed = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_initialized = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_value; /** * @attribute syn * @aspect GenericMethodsInference * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericMethodsInference.jrag:30 */ @SuppressWarnings({"unchecked", "cast"}) public boolean involvesTypeParameters() { if(involvesTypeParameters_computed) { return involvesTypeParameters_value; } ASTNode$State state = state(); if (!involvesTypeParameters_initialized) { involvesTypeParameters_initialized = true; involvesTypeParameters_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { involvesTypeParameters_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value!=involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { involvesTypeParameters_computed = true; } else { state.RESET_CYCLE = true; involvesTypeParameters_compute(); state.RESET_CYCLE = false; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; } state.IN_CIRCLE = false; return involvesTypeParameters_value; } if(involvesTypeParameters_visited != state.CIRCLE_INDEX) { involvesTypeParameters_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; involvesTypeParameters_visited = -1; return involvesTypeParameters_value; } boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value!=involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; return involvesTypeParameters_value; } return involvesTypeParameters_value; } /** * @apilevel internal */ private boolean involvesTypeParameters_compute() { return extendsType().involvesTypeParameters(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:571 */ public boolean sameSignature(Access a) { ASTNode$State state = state(); try { if(a instanceof WildcardExtends) return getAccess().type().sameSignature(((WildcardExtends)a).getAccess()); return super.sameSignature(a); } finally { } } /** * @apilevel internal */ protected int usesTypeVariable_visited = -1; /** * @apilevel internal */ protected boolean usesTypeVariable_computed = false; /** * @apilevel internal */ protected boolean usesTypeVariable_initialized = false; /** * @apilevel internal */ protected boolean usesTypeVariable_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1080 */ @SuppressWarnings({"unchecked", "cast"}) public boolean usesTypeVariable() { if(usesTypeVariable_computed) { return usesTypeVariable_value; } ASTNode$State state = state(); if (!usesTypeVariable_initialized) { usesTypeVariable_initialized = true; usesTypeVariable_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { usesTypeVariable_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value!=usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { usesTypeVariable_computed = true; } else { state.RESET_CYCLE = true; usesTypeVariable_compute(); state.RESET_CYCLE = false; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; } state.IN_CIRCLE = false; return usesTypeVariable_value; } if(usesTypeVariable_visited != state.CIRCLE_INDEX) { usesTypeVariable_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { usesTypeVariable_computed = false; usesTypeVariable_initialized = false; usesTypeVariable_visited = -1; return usesTypeVariable_value; } boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value!=usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; return usesTypeVariable_value; } return usesTypeVariable_value; } /** * @apilevel internal */ private boolean usesTypeVariable_compute() { return getAccess().type().usesTypeVariable(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1366 */ public TypeDecl extendsType() { ASTNode$State state = state(); try { return getAccess().type(); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:46 */ public boolean supertypeWildcard(WildcardType type) { ASTNode$State state = state(); try { return typeObject().subtype(this); } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:56 */ @SuppressWarnings({"unchecked", "cast"}) public boolean subtype(TypeDecl type) { Object _parameters = type; if(subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return type.supertypeWildcardExtends(this); } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:57 */ public boolean supertypeWildcardExtends(WildcardExtendsType type) { ASTNode$State state = state(); try { return type.extendsType().subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:421 */ public boolean supertypeClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:437 */ public boolean supertypeInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:125 */ public boolean supertypeParClassDecl(ParClassDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:129 */ public boolean supertypeParInterfaceDecl(ParInterfaceDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:26 */ public boolean supertypeRawClassDecl(RawClassDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:30 */ public boolean supertypeRawInterfaceDecl(RawInterfaceDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:291 */ public boolean supertypeTypeVariable(TypeVariable type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:450 */ public boolean supertypeArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return type.subtype(extendsType()); } finally { } } protected java.util.Map containedIn_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:153 */ @SuppressWarnings({"unchecked", "cast"}) public boolean containedIn(TypeDecl type) { Object _parameters = type; if(containedIn_TypeDecl_values == null) containedIn_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(containedIn_TypeDecl_values.containsKey(_parameters)) { Object _o = containedIn_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); containedIn_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_containedIn_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_containedIn_TypeDecl_value = containedIn_compute(type); if (new_containedIn_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_containedIn_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { containedIn_TypeDecl_values.put(_parameters, new_containedIn_TypeDecl_value); } else { containedIn_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; containedIn_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_containedIn_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_containedIn_TypeDecl_value = containedIn_compute(type); if (state.RESET_CYCLE) { containedIn_TypeDecl_values.remove(_parameters); } else if (new_containedIn_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_containedIn_TypeDecl_value; } return new_containedIn_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean containedIn_compute(TypeDecl type) { if(type == this || type instanceof WildcardType) return true; else if(type instanceof WildcardExtendsType) return extendsType().subtype(((WildcardExtendsType)type).extendsType()); else return false; } protected java.util.Map sameStructure_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:209 */ @SuppressWarnings({"unchecked", "cast"}) public boolean sameStructure(TypeDecl t) { Object _parameters = t; if(sameStructure_TypeDecl_values == null) sameStructure_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(sameStructure_TypeDecl_values.containsKey(_parameters)) { Object _o = sameStructure_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); sameStructure_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_sameStructure_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (new_sameStructure_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_sameStructure_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { sameStructure_TypeDecl_values.put(_parameters, new_sameStructure_TypeDecl_value); } else { sameStructure_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; sameStructure_compute(t); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_sameStructure_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (state.RESET_CYCLE) { sameStructure_TypeDecl_values.remove(_parameters); } else if (new_sameStructure_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_sameStructure_TypeDecl_value; } return new_sameStructure_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean sameStructure_compute(TypeDecl t) { return super.sameStructure(t) || t instanceof WildcardExtendsType && ((WildcardExtendsType)t).extendsType().sameStructure(extendsType()); } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:402 */ @SuppressWarnings({"unchecked", "cast"}) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if(instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if(instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if(isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
29,569
30.898598
142
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WildcardSuper.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WildcardSuper : {@link AbstractWildcard} ::= <span class="component">{@link Access}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:23 */ public class WildcardSuper extends AbstractWildcard implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); type_computed = false; type_value = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardSuper clone() throws CloneNotSupportedException { WildcardSuper node = (WildcardSuper)super.clone(); node.type_computed = false; node.type_value = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardSuper copy() { try { WildcardSuper node = (WildcardSuper) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WildcardSuper fullCopy() { WildcardSuper tree = (WildcardSuper) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect GenericsPrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsPrettyPrint.jrag:168 */ public void toString(StringBuffer s) { s.append("? super "); getAccess().toString(s); } /** * @ast method * */ public WildcardSuper() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[1]; } /** * @ast method * */ public WildcardSuper(Access p0) { setChild(p0, 0); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 1; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Access child. * @param node The new node to replace the Access child. * @apilevel high-level * @ast method * */ public void setAccess(Access node) { setChild(node, 0); } /** * Retrieves the Access child. * @return The current node used as the Access child. * @apilevel high-level * @ast method * */ public Access getAccess() { return (Access)getChild(0); } /** * Retrieves the Access child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Access child. * @apilevel low-level * @ast method * */ public Access getAccessNoTransform() { return (Access)getChildNoTransform(0); } /** * @apilevel internal */ protected boolean type_computed = false; /** * @apilevel internal */ protected TypeDecl type_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1371 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl type() { if(type_computed) { return type_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); type_value = type_compute(); if(isFinal && num == state().boundariesCrossed) type_computed = true; return type_value; } /** * @apilevel internal */ private TypeDecl type_compute() { return lookupWildcardSuper(getAccess().type()); } /** * @attribute inh * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1372 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lookupWildcardSuper(TypeDecl typeDecl) { ASTNode$State state = state(); TypeDecl lookupWildcardSuper_TypeDecl_value = getParent().Define_TypeDecl_lookupWildcardSuper(this, null, typeDecl); return lookupWildcardSuper_TypeDecl_value; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
5,555
24.369863
120
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WildcardSuperType.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WildcardSuperType : {@link AbstractWildcardType} ::= <span class="component">{@link Access}</span>; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:28 */ public class WildcardSuperType extends AbstractWildcardType implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); involvesTypeParameters_visited = -1; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; usesTypeVariable_visited = -1; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; subtype_TypeDecl_values = null; containedIn_TypeDecl_values = null; sameStructure_TypeDecl_values = null; instanceOf_TypeDecl_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardSuperType clone() throws CloneNotSupportedException { WildcardSuperType node = (WildcardSuperType)super.clone(); node.involvesTypeParameters_visited = -1; node.involvesTypeParameters_computed = false; node.involvesTypeParameters_initialized = false; node.usesTypeVariable_visited = -1; node.usesTypeVariable_computed = false; node.usesTypeVariable_initialized = false; node.subtype_TypeDecl_values = null; node.containedIn_TypeDecl_values = null; node.sameStructure_TypeDecl_values = null; node.instanceOf_TypeDecl_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardSuperType copy() { try { WildcardSuperType node = (WildcardSuperType) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WildcardSuperType fullCopy() { WildcardSuperType tree = (WildcardSuperType) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:907 */ public Access substitute(Parameterization parTypeDecl) { if(!usesTypeVariable()) return super.substitute(parTypeDecl); return new WildcardSuper(getAccess().type().substitute(parTypeDecl)); } /** * @ast method * */ public WildcardSuperType() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[3]; setChild(new List(), 1); } /** * @ast method * */ public WildcardSuperType(Modifiers p0, String p1, List<BodyDecl> p2, Access p3) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); } /** * @ast method * */ public WildcardSuperType(Modifiers p0, beaver.Symbol p1, List<BodyDecl> p2, Access p3) { setChild(p0, 0); setID(p1); setChild(p2, 1); setChild(p3, 2); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 3; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public BodyDecl getBodyDecl(int i) { return (BodyDecl)getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>)getChildNoTransform(1); } /** * Replaces the Access child. * @param node The new node to replace the Access child. * @apilevel high-level * @ast method * */ public void setAccess(Access node) { setChild(node, 2); } /** * Retrieves the Access child. * @return The current node used as the Access child. * @apilevel high-level * @ast method * */ public Access getAccess() { return (Access)getChild(2); } /** * Retrieves the Access child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Access child. * @apilevel low-level * @ast method * */ public Access getAccessNoTransform() { return (Access)getChildNoTransform(2); } /** * @apilevel internal */ protected int involvesTypeParameters_visited = -1; /** * @apilevel internal */ protected boolean involvesTypeParameters_computed = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_initialized = false; /** * @apilevel internal */ protected boolean involvesTypeParameters_value; /** * @attribute syn * @aspect GenericMethodsInference * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericMethodsInference.jrag:31 */ @SuppressWarnings({"unchecked", "cast"}) public boolean involvesTypeParameters() { if(involvesTypeParameters_computed) { return involvesTypeParameters_value; } ASTNode$State state = state(); if (!involvesTypeParameters_initialized) { involvesTypeParameters_initialized = true; involvesTypeParameters_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { involvesTypeParameters_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value!=involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { involvesTypeParameters_computed = true; } else { state.RESET_CYCLE = true; involvesTypeParameters_compute(); state.RESET_CYCLE = false; involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; } state.IN_CIRCLE = false; return involvesTypeParameters_value; } if(involvesTypeParameters_visited != state.CIRCLE_INDEX) { involvesTypeParameters_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { involvesTypeParameters_computed = false; involvesTypeParameters_initialized = false; involvesTypeParameters_visited = -1; return involvesTypeParameters_value; } boolean new_involvesTypeParameters_value = involvesTypeParameters_compute(); if (new_involvesTypeParameters_value!=involvesTypeParameters_value) state.CHANGE = true; involvesTypeParameters_value = new_involvesTypeParameters_value; return involvesTypeParameters_value; } return involvesTypeParameters_value; } /** * @apilevel internal */ private boolean involvesTypeParameters_compute() { return superType().involvesTypeParameters(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:571 */ public boolean sameSignature(Access a) { ASTNode$State state = state(); try { if(a instanceof WildcardSuper) return getAccess().type().sameSignature(((WildcardSuper)a).getAccess()); return super.sameSignature(a); } finally { } } /** * @apilevel internal */ protected int usesTypeVariable_visited = -1; /** * @apilevel internal */ protected boolean usesTypeVariable_computed = false; /** * @apilevel internal */ protected boolean usesTypeVariable_initialized = false; /** * @apilevel internal */ protected boolean usesTypeVariable_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1081 */ @SuppressWarnings({"unchecked", "cast"}) public boolean usesTypeVariable() { if(usesTypeVariable_computed) { return usesTypeVariable_value; } ASTNode$State state = state(); if (!usesTypeVariable_initialized) { usesTypeVariable_initialized = true; usesTypeVariable_value = false; } if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); do { usesTypeVariable_visited = state.CIRCLE_INDEX; state.CHANGE = false; boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value!=usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { usesTypeVariable_computed = true; } else { state.RESET_CYCLE = true; usesTypeVariable_compute(); state.RESET_CYCLE = false; usesTypeVariable_computed = false; usesTypeVariable_initialized = false; } state.IN_CIRCLE = false; return usesTypeVariable_value; } if(usesTypeVariable_visited != state.CIRCLE_INDEX) { usesTypeVariable_visited = state.CIRCLE_INDEX; if (state.RESET_CYCLE) { usesTypeVariable_computed = false; usesTypeVariable_initialized = false; usesTypeVariable_visited = -1; return usesTypeVariable_value; } boolean new_usesTypeVariable_value = usesTypeVariable_compute(); if (new_usesTypeVariable_value!=usesTypeVariable_value) state.CHANGE = true; usesTypeVariable_value = new_usesTypeVariable_value; return usesTypeVariable_value; } return usesTypeVariable_value; } /** * @apilevel internal */ private boolean usesTypeVariable_compute() { return getAccess().type().usesTypeVariable(); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1367 */ public TypeDecl superType() { ASTNode$State state = state(); try { return getAccess().type(); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:46 */ public boolean supertypeWildcard(WildcardType type) { ASTNode$State state = state(); try { return superType().subtype(typeObject()); } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:65 */ @SuppressWarnings({"unchecked", "cast"}) public boolean subtype(TypeDecl type) { Object _parameters = type; if(subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return type.supertypeWildcardSuper(this); } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:66 */ public boolean supertypeWildcardSuper(WildcardSuperType type) { ASTNode$State state = state(); try { return type.superType().subtype(superType()); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:421 */ public boolean supertypeClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:437 */ public boolean supertypeInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:125 */ public boolean supertypeParClassDecl(ParClassDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:129 */ public boolean supertypeParInterfaceDecl(ParInterfaceDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:26 */ public boolean supertypeRawClassDecl(RawClassDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:30 */ public boolean supertypeRawInterfaceDecl(RawInterfaceDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:291 */ public boolean supertypeTypeVariable(TypeVariable type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:450 */ public boolean supertypeArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return superType().subtype(type); } finally { } } protected java.util.Map containedIn_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:161 */ @SuppressWarnings({"unchecked", "cast"}) public boolean containedIn(TypeDecl type) { Object _parameters = type; if(containedIn_TypeDecl_values == null) containedIn_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(containedIn_TypeDecl_values.containsKey(_parameters)) { Object _o = containedIn_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); containedIn_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_containedIn_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_containedIn_TypeDecl_value = containedIn_compute(type); if (new_containedIn_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_containedIn_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { containedIn_TypeDecl_values.put(_parameters, new_containedIn_TypeDecl_value); } else { containedIn_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; containedIn_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_containedIn_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_containedIn_TypeDecl_value = containedIn_compute(type); if (state.RESET_CYCLE) { containedIn_TypeDecl_values.remove(_parameters); } else if (new_containedIn_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_containedIn_TypeDecl_value; } return new_containedIn_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean containedIn_compute(TypeDecl type) { if(type == this || type instanceof WildcardType) return true; else if(type instanceof WildcardSuperType) return ((WildcardSuperType)type).superType().subtype(superType()); else return false; } protected java.util.Map sameStructure_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:212 */ @SuppressWarnings({"unchecked", "cast"}) public boolean sameStructure(TypeDecl t) { Object _parameters = t; if(sameStructure_TypeDecl_values == null) sameStructure_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(sameStructure_TypeDecl_values.containsKey(_parameters)) { Object _o = sameStructure_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); sameStructure_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_sameStructure_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (new_sameStructure_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_sameStructure_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { sameStructure_TypeDecl_values.put(_parameters, new_sameStructure_TypeDecl_value); } else { sameStructure_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; sameStructure_compute(t); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_sameStructure_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_sameStructure_TypeDecl_value = sameStructure_compute(t); if (state.RESET_CYCLE) { sameStructure_TypeDecl_values.remove(_parameters); } else if (new_sameStructure_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_sameStructure_TypeDecl_value; } return new_sameStructure_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean sameStructure_compute(TypeDecl t) { return super.sameStructure(t) || t instanceof WildcardSuperType && ((WildcardSuperType)t).superType().sameStructure(superType()); } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:403 */ @SuppressWarnings({"unchecked", "cast"}) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if(instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if(instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if(isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
29,496
30.819849
142
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WildcardType.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WildcardType : {@link AbstractWildcardType}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:26 */ public class WildcardType extends AbstractWildcardType implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); subtype_TypeDecl_values = null; containedIn_TypeDecl_values = null; instanceOf_TypeDecl_values = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardType clone() throws CloneNotSupportedException { WildcardType node = (WildcardType)super.clone(); node.subtype_TypeDecl_values = null; node.containedIn_TypeDecl_values = null; node.instanceOf_TypeDecl_values = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardType copy() { try { WildcardType node = (WildcardType) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WildcardType fullCopy() { WildcardType tree = (WildcardType) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * */ public WildcardType() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; setChild(new List(), 1); } /** * @ast method * */ public WildcardType(Modifiers p0, String p1, List<BodyDecl> p2) { setChild(p0, 0); setID(p1); setChild(p2, 1); } /** * @ast method * */ public WildcardType(Modifiers p0, beaver.Symbol p1, List<BodyDecl> p2) { setChild(p0, 0); setID(p1); setChild(p2, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the Modifiers child. * @param node The new node to replace the Modifiers child. * @apilevel high-level * @ast method * */ public void setModifiers(Modifiers node) { setChild(node, 0); } /** * Retrieves the Modifiers child. * @return The current node used as the Modifiers child. * @apilevel high-level * @ast method * */ public Modifiers getModifiers() { return (Modifiers)getChild(0); } /** * Retrieves the Modifiers child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the Modifiers child. * @apilevel low-level * @ast method * */ public Modifiers getModifiersNoTransform() { return (Modifiers)getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level * @ast method * */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @apilevel internal * @ast method * */ 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(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level * @ast method * */ public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level * @ast method * */ public void setBodyDeclList(List<BodyDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level * @ast method * */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the BodyDecl list. * @apilevel low-level * @ast method * */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public BodyDecl getBodyDecl(int i) { return (BodyDecl)getBodyDeclList().getChild(i); } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level * @ast method * */ public void addBodyDecl(BodyDecl node) { List<BodyDecl> list = (parent == null || state == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addBodyDeclNoTransform(BodyDecl node) { List<BodyDecl> list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setBodyDecl(BodyDecl node, int i) { List<BodyDecl> list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ public List<BodyDecl> getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ public List<BodyDecl> getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclList() { List<BodyDecl> list = (List<BodyDecl>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the BodyDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the BodyDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<BodyDecl> getBodyDeclListNoTransform() { return (List<BodyDecl>)getChildNoTransform(1); } /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:571 */ public boolean sameSignature(Access a) { ASTNode$State state = state(); try { if(a instanceof Wildcard) return true; return super.sameSignature(a); } finally { } } protected java.util.Map subtype_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:45 */ @SuppressWarnings({"unchecked", "cast"}) public boolean subtype(TypeDecl type) { Object _parameters = type; if(subtype_TypeDecl_values == null) subtype_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(subtype_TypeDecl_values.containsKey(_parameters)) { Object _o = subtype_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); subtype_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_subtype_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_subtype_TypeDecl_value = subtype_compute(type); if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_subtype_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { subtype_TypeDecl_values.put(_parameters, new_subtype_TypeDecl_value); } else { subtype_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; subtype_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_subtype_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_subtype_TypeDecl_value = subtype_compute(type); if (state.RESET_CYCLE) { subtype_TypeDecl_values.remove(_parameters); } else if (new_subtype_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_subtype_TypeDecl_value; } return new_subtype_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean subtype_compute(TypeDecl type) { return type.supertypeWildcard(this); } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:46 */ public boolean supertypeWildcard(WildcardType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:57 */ public boolean supertypeWildcardExtends(WildcardExtendsType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:66 */ public boolean supertypeWildcardSuper(WildcardSuperType type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:421 */ public boolean supertypeClassDecl(ClassDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:437 */ public boolean supertypeInterfaceDecl(InterfaceDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:125 */ public boolean supertypeParClassDecl(ParClassDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:129 */ public boolean supertypeParInterfaceDecl(ParInterfaceDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:26 */ public boolean supertypeRawClassDecl(RawClassDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:30 */ public boolean supertypeRawInterfaceDecl(RawInterfaceDecl type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:291 */ public boolean supertypeTypeVariable(TypeVariable type) { ASTNode$State state = state(); try { return true; } finally { } } /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:450 */ public boolean supertypeArrayDecl(ArrayDecl type) { ASTNode$State state = state(); try { return true; } finally { } } protected java.util.Map containedIn_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:169 */ @SuppressWarnings({"unchecked", "cast"}) public boolean containedIn(TypeDecl type) { Object _parameters = type; if(containedIn_TypeDecl_values == null) containedIn_TypeDecl_values = new java.util.HashMap(4); ASTNode$State.CircularValue _value; if(containedIn_TypeDecl_values.containsKey(_parameters)) { Object _o = containedIn_TypeDecl_values.get(_parameters); if(!(_o instanceof ASTNode$State.CircularValue)) { return ((Boolean)_o).booleanValue(); } else _value = (ASTNode$State.CircularValue)_o; } else { _value = new ASTNode$State.CircularValue(); containedIn_TypeDecl_values.put(_parameters, _value); _value.value = Boolean.valueOf(true); } ASTNode$State state = state(); if (!state.IN_CIRCLE) { state.IN_CIRCLE = true; int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean new_containedIn_TypeDecl_value; do { _value.visited = new Integer(state.CIRCLE_INDEX); state.CHANGE = false; new_containedIn_TypeDecl_value = containedIn_compute(type); if (new_containedIn_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = Boolean.valueOf(new_containedIn_TypeDecl_value); } state.CIRCLE_INDEX++; } while (state.CHANGE); if(isFinal && num == state().boundariesCrossed) { containedIn_TypeDecl_values.put(_parameters, new_containedIn_TypeDecl_value); } else { containedIn_TypeDecl_values.remove(_parameters); state.RESET_CYCLE = true; containedIn_compute(type); state.RESET_CYCLE = false; } state.IN_CIRCLE = false; return new_containedIn_TypeDecl_value; } if(!new Integer(state.CIRCLE_INDEX).equals(_value.visited)) { _value.visited = new Integer(state.CIRCLE_INDEX); boolean new_containedIn_TypeDecl_value = containedIn_compute(type); if (state.RESET_CYCLE) { containedIn_TypeDecl_values.remove(_parameters); } else if (new_containedIn_TypeDecl_value!=((Boolean)_value.value).booleanValue()) { state.CHANGE = true; _value.value = new_containedIn_TypeDecl_value; } return new_containedIn_TypeDecl_value; } return ((Boolean)_value.value).booleanValue(); } /** * @apilevel internal */ private boolean containedIn_compute(TypeDecl type) { if(type == this) return true; else if(type instanceof WildcardExtendsType) return typeObject().subtype(((WildcardExtendsType)type).extendsType()); else return false; } protected java.util.Map instanceOf_TypeDecl_values; /** * @attribute syn * @aspect GenericsSubtype * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/GenericsSubtype.jrag:401 */ @SuppressWarnings({"unchecked", "cast"}) public boolean instanceOf(TypeDecl type) { Object _parameters = type; if(instanceOf_TypeDecl_values == null) instanceOf_TypeDecl_values = new java.util.HashMap(4); if(instanceOf_TypeDecl_values.containsKey(_parameters)) { return ((Boolean)instanceOf_TypeDecl_values.get(_parameters)).booleanValue(); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); boolean instanceOf_TypeDecl_value = instanceOf_compute(type); if(isFinal && num == state().boundariesCrossed) instanceOf_TypeDecl_values.put(_parameters, Boolean.valueOf(instanceOf_TypeDecl_value)); return instanceOf_TypeDecl_value; } /** * @apilevel internal */ private boolean instanceOf_compute(TypeDecl type) { return subtype(type); } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
19,167
28.717829
142
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/WildcardsCompilationUnit.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production WildcardsCompilationUnit : {@link CompilationUnit}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.ast:49 */ public class WildcardsCompilationUnit extends CompilationUnit implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); typeWildcard_computed = false; typeWildcard_value = null; lookupWildcardExtends_TypeDecl_values = null; lookupWildcardExtends_TypeDecl_list = null; lookupWildcardSuper_TypeDecl_values = null; lookupWildcardSuper_TypeDecl_list = null; lookupLUBType_Collection_values = null; lookupLUBType_Collection_list = null; lookupGLBType_ArrayList_values = null; lookupGLBType_ArrayList_list = null; } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardsCompilationUnit clone() throws CloneNotSupportedException { WildcardsCompilationUnit node = (WildcardsCompilationUnit)super.clone(); node.typeWildcard_computed = false; node.typeWildcard_value = null; node.lookupWildcardExtends_TypeDecl_values = null; node.lookupWildcardExtends_TypeDecl_list = null; node.lookupWildcardSuper_TypeDecl_values = null; node.lookupWildcardSuper_TypeDecl_list = null; node.lookupLUBType_Collection_values = null; node.lookupLUBType_Collection_list = null; node.lookupGLBType_ArrayList_values = null; node.lookupGLBType_ArrayList_list = null; node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public WildcardsCompilationUnit copy() { try { WildcardsCompilationUnit node = (WildcardsCompilationUnit) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public WildcardsCompilationUnit fullCopy() { WildcardsCompilationUnit tree = (WildcardsCompilationUnit) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1414 */ public static LUBType createLUBType(Collection bounds) { List boundList = new List(); StringBuffer name = new StringBuffer(); for(Iterator iter = bounds.iterator(); iter.hasNext(); ) { TypeDecl typeDecl = (TypeDecl)iter.next(); boundList.add(typeDecl.createBoundAccess()); name.append("& " + typeDecl.typeName()); } LUBType decl = new LUBType( new Modifiers(new List().add(new Modifier("public"))), name.toString(), new List(), boundList ); return decl; } /** * @ast method * */ public WildcardsCompilationUnit() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; setChild(new List(), 0); setChild(new List(), 1); } /** * @ast method * */ public WildcardsCompilationUnit(java.lang.String p0, List<ImportDecl> p1, List<TypeDecl> p2) { setPackageDecl(p0); setChild(p1, 0); setChild(p2, 1); } /** * @ast method * */ public WildcardsCompilationUnit(beaver.Symbol p0, List<ImportDecl> p1, List<TypeDecl> p2) { setPackageDecl(p0); setChild(p1, 0); setChild(p2, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the lexeme PackageDecl. * @param value The new value for the lexeme PackageDecl. * @apilevel high-level * @ast method * */ public void setPackageDecl(java.lang.String value) { tokenjava_lang_String_PackageDecl = value; } /** * JastAdd-internal setter for lexeme PackageDecl using the Beaver parser. * @apilevel internal * @ast method * */ public void setPackageDecl(beaver.Symbol symbol) { if(symbol.value != null && !(symbol.value instanceof String)) throw new UnsupportedOperationException("setPackageDecl is only valid for String lexemes"); tokenjava_lang_String_PackageDecl = (String)symbol.value; PackageDeclstart = symbol.getStart(); PackageDeclend = symbol.getEnd(); } /** * Retrieves the value for the lexeme PackageDecl. * @return The value for the lexeme PackageDecl. * @apilevel high-level * @ast method * */ public java.lang.String getPackageDecl() { return tokenjava_lang_String_PackageDecl != null ? tokenjava_lang_String_PackageDecl : ""; } /** * Replaces the ImportDecl list. * @param list The new list node to be used as the ImportDecl list. * @apilevel high-level * @ast method * */ public void setImportDeclList(List<ImportDecl> list) { setChild(list, 0); } /** * Retrieves the number of children in the ImportDecl list. * @return Number of children in the ImportDecl list. * @apilevel high-level * @ast method * */ public int getNumImportDecl() { return getImportDeclList().getNumChild(); } /** * Retrieves the number of children in the ImportDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the ImportDecl list. * @apilevel low-level * @ast method * */ public int getNumImportDeclNoTransform() { return getImportDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the ImportDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the ImportDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public ImportDecl getImportDecl(int i) { return (ImportDecl)getImportDeclList().getChild(i); } /** * Append an element to the ImportDecl list. * @param node The element to append to the ImportDecl list. * @apilevel high-level * @ast method * */ public void addImportDecl(ImportDecl node) { List<ImportDecl> list = (parent == null || state == null) ? getImportDeclListNoTransform() : getImportDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addImportDeclNoTransform(ImportDecl node) { List<ImportDecl> list = getImportDeclListNoTransform(); list.addChild(node); } /** * Replaces the ImportDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setImportDecl(ImportDecl node, int i) { List<ImportDecl> list = getImportDeclList(); list.setChild(node, i); } /** * Retrieves the ImportDecl list. * @return The node representing the ImportDecl list. * @apilevel high-level * @ast method * */ public List<ImportDecl> getImportDecls() { return getImportDeclList(); } /** * Retrieves the ImportDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the ImportDecl list. * @apilevel low-level * @ast method * */ public List<ImportDecl> getImportDeclsNoTransform() { return getImportDeclListNoTransform(); } /** * Retrieves the ImportDecl list. * @return The node representing the ImportDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<ImportDecl> getImportDeclList() { List<ImportDecl> list = (List<ImportDecl>)getChild(0); list.getNumChild(); return list; } /** * Retrieves the ImportDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the ImportDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<ImportDecl> getImportDeclListNoTransform() { return (List<ImportDecl>)getChildNoTransform(0); } /** * Replaces the TypeDecl list. * @param list The new list node to be used as the TypeDecl list. * @apilevel high-level * @ast method * */ public void setTypeDeclList(List<TypeDecl> list) { setChild(list, 1); } /** * Retrieves the number of children in the TypeDecl list. * @return Number of children in the TypeDecl list. * @apilevel high-level * @ast method * */ public int getNumTypeDecl() { return getTypeDeclList().getNumChild(); } /** * Retrieves the number of children in the TypeDecl list. * Calling this method will not trigger rewrites.. * @return Number of children in the TypeDecl list. * @apilevel low-level * @ast method * */ public int getNumTypeDeclNoTransform() { return getTypeDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the TypeDecl list.. * @param i Index of the element to return. * @return The element at position {@code i} in the TypeDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl getTypeDecl(int i) { return (TypeDecl)getTypeDeclList().getChild(i); } /** * Append an element to the TypeDecl list. * @param node The element to append to the TypeDecl list. * @apilevel high-level * @ast method * */ public void addTypeDecl(TypeDecl node) { List<TypeDecl> list = (parent == null || state == null) ? getTypeDeclListNoTransform() : getTypeDeclList(); list.addChild(node); } /** * @apilevel low-level * @ast method * */ public void addTypeDeclNoTransform(TypeDecl node) { List<TypeDecl> list = getTypeDeclListNoTransform(); list.addChild(node); } /** * Replaces the TypeDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level * @ast method * */ public void setTypeDecl(TypeDecl node, int i) { List<TypeDecl> list = getTypeDeclList(); list.setChild(node, i); } /** * Retrieves the TypeDecl list. * @return The node representing the TypeDecl list. * @apilevel high-level * @ast method * */ public List<TypeDecl> getTypeDecls() { return getTypeDeclList(); } /** * Retrieves the TypeDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the TypeDecl list. * @apilevel low-level * @ast method * */ public List<TypeDecl> getTypeDeclsNoTransform() { return getTypeDeclListNoTransform(); } /** * Retrieves the TypeDecl list. * @return The node representing the TypeDecl list. * @apilevel high-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<TypeDecl> getTypeDeclList() { List<TypeDecl> list = (List<TypeDecl>)getChild(1); list.getNumChild(); return list; } /** * Retrieves the TypeDecl list. * <p><em>This method does not invoke AST transformations.</em></p> * @return The node representing the TypeDecl list. * @apilevel low-level * @ast method * */ @SuppressWarnings({"unchecked", "cast"}) public List<TypeDecl> getTypeDeclListNoTransform() { return (List<TypeDecl>)getChildNoTransform(1); } /** * @apilevel internal */ protected boolean typeWildcard_computed = false; /** * @apilevel internal */ protected TypeDecl typeWildcard_value; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1376 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl typeWildcard() { if(typeWildcard_computed) { return typeWildcard_value; } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); typeWildcard_value = typeWildcard_compute(); typeWildcard_value.setParent(this); typeWildcard_value.is$Final = true; if(true) typeWildcard_computed = true; return typeWildcard_value; } /** * @apilevel internal */ private TypeDecl typeWildcard_compute() { TypeDecl decl = new WildcardType( new Modifiers(new List().add(new Modifier("public"))), "?", new List() ); return decl; } /** * @apilevel internal */ protected java.util.Map lookupWildcardExtends_TypeDecl_values; /** * @apilevel internal */ protected List lookupWildcardExtends_TypeDecl_list; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1387 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lookupWildcardExtends(TypeDecl bound) { Object _parameters = bound; if(lookupWildcardExtends_TypeDecl_values == null) lookupWildcardExtends_TypeDecl_values = new java.util.HashMap(4); if(lookupWildcardExtends_TypeDecl_values.containsKey(_parameters)) { return (TypeDecl)lookupWildcardExtends_TypeDecl_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); TypeDecl lookupWildcardExtends_TypeDecl_value = lookupWildcardExtends_compute(bound); if(lookupWildcardExtends_TypeDecl_list == null) { lookupWildcardExtends_TypeDecl_list = new List(); lookupWildcardExtends_TypeDecl_list.is$Final = true; lookupWildcardExtends_TypeDecl_list.setParent(this); } lookupWildcardExtends_TypeDecl_list.add(lookupWildcardExtends_TypeDecl_value); if(lookupWildcardExtends_TypeDecl_value != null) { lookupWildcardExtends_TypeDecl_value.is$Final = true; } if(true) lookupWildcardExtends_TypeDecl_values.put(_parameters, lookupWildcardExtends_TypeDecl_value); return lookupWildcardExtends_TypeDecl_value; } /** * @apilevel internal */ private TypeDecl lookupWildcardExtends_compute(TypeDecl bound) { TypeDecl decl = new WildcardExtendsType( new Modifiers(new List().add(new Modifier("public"))), "? extends " + bound.fullName(), new List(), bound.createBoundAccess() ); return decl; } /** * @apilevel internal */ protected java.util.Map lookupWildcardSuper_TypeDecl_values; /** * @apilevel internal */ protected List lookupWildcardSuper_TypeDecl_list; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1400 */ @SuppressWarnings({"unchecked", "cast"}) public TypeDecl lookupWildcardSuper(TypeDecl bound) { Object _parameters = bound; if(lookupWildcardSuper_TypeDecl_values == null) lookupWildcardSuper_TypeDecl_values = new java.util.HashMap(4); if(lookupWildcardSuper_TypeDecl_values.containsKey(_parameters)) { return (TypeDecl)lookupWildcardSuper_TypeDecl_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); TypeDecl lookupWildcardSuper_TypeDecl_value = lookupWildcardSuper_compute(bound); if(lookupWildcardSuper_TypeDecl_list == null) { lookupWildcardSuper_TypeDecl_list = new List(); lookupWildcardSuper_TypeDecl_list.is$Final = true; lookupWildcardSuper_TypeDecl_list.setParent(this); } lookupWildcardSuper_TypeDecl_list.add(lookupWildcardSuper_TypeDecl_value); if(lookupWildcardSuper_TypeDecl_value != null) { lookupWildcardSuper_TypeDecl_value.is$Final = true; } if(true) lookupWildcardSuper_TypeDecl_values.put(_parameters, lookupWildcardSuper_TypeDecl_value); return lookupWildcardSuper_TypeDecl_value; } /** * @apilevel internal */ private TypeDecl lookupWildcardSuper_compute(TypeDecl bound) { TypeDecl decl = new WildcardSuperType( new Modifiers(new List().add(new Modifier("public"))), "? super " + bound.fullName(), new List(), bound.createBoundAccess() ); return decl; } /** * @apilevel internal */ protected java.util.Map lookupLUBType_Collection_values; /** * @apilevel internal */ protected List lookupLUBType_Collection_list; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1413 */ @SuppressWarnings({"unchecked", "cast"}) public LUBType lookupLUBType(Collection bounds) { Object _parameters = bounds; if(lookupLUBType_Collection_values == null) lookupLUBType_Collection_values = new java.util.HashMap(4); if(lookupLUBType_Collection_values.containsKey(_parameters)) { return (LUBType)lookupLUBType_Collection_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); LUBType lookupLUBType_Collection_value = lookupLUBType_compute(bounds); if(lookupLUBType_Collection_list == null) { lookupLUBType_Collection_list = new List(); lookupLUBType_Collection_list.is$Final = true; lookupLUBType_Collection_list.setParent(this); } lookupLUBType_Collection_list.add(lookupLUBType_Collection_value); if(lookupLUBType_Collection_value != null) { lookupLUBType_Collection_value.is$Final = true; } if(true) lookupLUBType_Collection_values.put(_parameters, lookupLUBType_Collection_value); return lookupLUBType_Collection_value; } /** * @apilevel internal */ private LUBType lookupLUBType_compute(Collection bounds) { return createLUBType(bounds); } /** * @apilevel internal */ protected java.util.Map lookupGLBType_ArrayList_values; /** * @apilevel internal */ protected List lookupGLBType_ArrayList_list; /** * @attribute syn * @aspect LookupParTypeDecl * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Generics.jrag:1452 */ @SuppressWarnings({"unchecked", "cast"}) public GLBType lookupGLBType(ArrayList bounds) { Object _parameters = bounds; if(lookupGLBType_ArrayList_values == null) lookupGLBType_ArrayList_values = new java.util.HashMap(4); if(lookupGLBType_ArrayList_values.containsKey(_parameters)) { return (GLBType)lookupGLBType_ArrayList_values.get(_parameters); } ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); GLBType lookupGLBType_ArrayList_value = lookupGLBType_compute(bounds); if(lookupGLBType_ArrayList_list == null) { lookupGLBType_ArrayList_list = new List(); lookupGLBType_ArrayList_list.is$Final = true; lookupGLBType_ArrayList_list.setParent(this); } lookupGLBType_ArrayList_list.add(lookupGLBType_ArrayList_value); if(lookupGLBType_ArrayList_value != null) { lookupGLBType_ArrayList_value.is$Final = true; } if(true) lookupGLBType_ArrayList_values.put(_parameters, lookupGLBType_ArrayList_value); return lookupGLBType_ArrayList_value; } /** * @apilevel internal */ private GLBType lookupGLBType_compute(ArrayList bounds) { List boundList = new List(); StringBuffer name = new StringBuffer(); for(Iterator iter = bounds.iterator(); iter.hasNext(); ) { TypeDecl typeDecl = (TypeDecl)iter.next(); boundList.add(typeDecl.createBoundAccess()); name.append("& " + typeDecl.typeName()); } GLBType decl = new GLBType( new Modifiers(new List().add(new Modifier("public"))), name.toString(), new List(), boundList ); return decl; } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
21,563
30.480292
119
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/XorBitwiseExpr.java
/* This file was generated with JastAdd2 (http://jastadd.org) version R20130212 (r1031) */ package soot.JastAddJ; import java.util.HashSet; 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; /** * @production XorBitwiseExpr : {@link BitwiseExpr}; * @ast node * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/java.ast:169 */ public class XorBitwiseExpr extends BitwiseExpr implements Cloneable { /** * @apilevel low-level */ public void flushCache() { super.flushCache(); } /** * @apilevel internal */ public void flushCollectionCache() { super.flushCollectionCache(); } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public XorBitwiseExpr clone() throws CloneNotSupportedException { XorBitwiseExpr node = (XorBitwiseExpr)super.clone(); node.in$Circle(false); node.is$Final(false); return node; } /** * @apilevel internal */ @SuppressWarnings({"unchecked", "cast"}) public XorBitwiseExpr copy() { try { XorBitwiseExpr node = (XorBitwiseExpr) clone(); node.parent = null; if(children != null) node.children = (ASTNode[]) children.clone(); return node; } catch (CloneNotSupportedException e) { throw new Error("Error: clone not supported for " + getClass().getName()); } } /** * Create a deep copy of the AST subtree at this node. * The copy is dangling, i.e. has no parent. * @return dangling copy of the subtree at this node * @apilevel low-level */ @SuppressWarnings({"unchecked", "cast"}) public XorBitwiseExpr fullCopy() { XorBitwiseExpr tree = (XorBitwiseExpr) copy(); if (children != null) { for (int i = 0; i < children.length; ++i) { ASTNode child = (ASTNode) children[i]; if(child != null) { child = child.fullCopy(); tree.setChild(child, i); } } } return tree; } /** * @ast method * @aspect Expressions * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/JimpleBackend/Expressions.jrag:835 */ public soot.Value emitOperation(Body b, soot.Value left, soot.Value right) { return asLocal(b, b.newXorExpr(asImmediate(b, left), asImmediate(b, right), this)); } /** * @ast method * */ public XorBitwiseExpr() { super(); } /** * Initializes the child array to the correct size. * Initializes List and Opt nta children. * @apilevel internal * @ast method * @ast method * */ public void init$Children() { children = new ASTNode[2]; } /** * @ast method * */ public XorBitwiseExpr(Expr p0, Expr p1) { setChild(p0, 0); setChild(p1, 1); } /** * @apilevel low-level * @ast method * */ protected int numChildren() { return 2; } /** * @apilevel internal * @ast method * */ public boolean mayHaveRewrite() { return false; } /** * Replaces the LeftOperand child. * @param node The new node to replace the LeftOperand child. * @apilevel high-level * @ast method * */ public void setLeftOperand(Expr node) { setChild(node, 0); } /** * Retrieves the LeftOperand child. * @return The current node used as the LeftOperand child. * @apilevel high-level * @ast method * */ public Expr getLeftOperand() { return (Expr)getChild(0); } /** * Retrieves the LeftOperand child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the LeftOperand child. * @apilevel low-level * @ast method * */ public Expr getLeftOperandNoTransform() { return (Expr)getChildNoTransform(0); } /** * Replaces the RightOperand child. * @param node The new node to replace the RightOperand child. * @apilevel high-level * @ast method * */ public void setRightOperand(Expr node) { setChild(node, 1); } /** * Retrieves the RightOperand child. * @return The current node used as the RightOperand child. * @apilevel high-level * @ast method * */ public Expr getRightOperand() { return (Expr)getChild(1); } /** * Retrieves the RightOperand child. * <p><em>This method does not invoke AST transformations.</em></p> * @return The current node used as the RightOperand child. * @apilevel low-level * @ast method * */ public Expr getRightOperandNoTransform() { return (Expr)getChildNoTransform(1); } /** * @attribute syn * @aspect ConstantExpression * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java7Frontend/ConstantExpression.jrag:91 */ public Constant constant() { ASTNode$State state = state(); try { return type().xorBitwise(getLeftOperand().constant(), getRightOperand().constant()); } finally { } } /** * @attribute syn * @aspect PrettyPrint * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.4Frontend/PrettyPrint.jadd:400 */ public String printOp() { ASTNode$State state = state(); try { return " ^ "; } finally { } } /** * @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } }
5,664
23.846491
113
java
soot
soot-master/src/main/generated/jastadd/soot/JastAddJ/ZipFilePart.java
package soot.JastAddJ; import java.io.File; import java.io.IOException; import java.util.*; import java.util.zip.*; import java.io.*; /** * Loads class files from a zip file (Jar file) * @ast class * */ public class ZipFilePart extends PathPart { private Set<String> set; private File file; public boolean hasPackage(String name) { return set.contains(name); } public ZipFilePart(File file) throws IOException { this.set = new HashSet<String>(); this.file = file; ZipFile zipFile = null; try{ zipFile = new ZipFile(file); // process all entries in the zip file for (Enumeration<? extends ZipEntry> e = zipFile.entries() ; e.hasMoreElements() ;) { ZipEntry entry = (ZipEntry)e.nextElement(); String pathName = new File(entry.getName()).getParent(); if(pathName != null) pathName = pathName.replace(File.separatorChar, '.'); if(!set.contains(pathName)) { int pos = 0; while(pathName != null && -1 != (pos = pathName.indexOf('.', pos + 1))) { String n = pathName.substring(0, pos); if(!set.contains(n)) { set.add(n); } } set.add(pathName); } set.add(entry.getName()); } } finally { if(zipFile != null) zipFile.close(); } } public boolean selectCompilationUnit(String canonicalName) throws IOException { ZipFile zipFile = null; boolean success = false; try{ zipFile = new ZipFile(file); String name = canonicalName.replace('.', '/'); // ZipFiles always use '/' as separator name = name + fileSuffix(); if(set.contains(name)) { ZipEntry zipEntry = zipFile.getEntry(name); if(zipEntry != null && !zipEntry.isDirectory()) { is = new ZipEntryInputStreamWrapper(zipFile,zipEntry); age = zipEntry.getTime(); pathName = zipFile.getName(); relativeName = name + fileSuffix(); fullName = canonicalName; success = true; } } } finally { if(zipFile != null && !success) zipFile.close(); } return success; } /** Wrapper class for the input stream of a ZipFile entry. All methods are passed through * to the underlining ZipFile entry input stream. However, close has the additional * functionality of ensuring that the ZipFile is closed along with the input stream * when close is called. */ public static class ZipEntryInputStreamWrapper extends InputStream { private ZipFile zipFile; private InputStream entryInputStream; public ZipEntryInputStreamWrapper(ZipFile zipFile, ZipEntry zipEntry) throws IOException { this.zipFile = zipFile; this.entryInputStream = zipFile.getInputStream(zipEntry); } @Override public int read() throws IOException { return entryInputStream.read(); } @Override public int read(byte[] b) throws IOException { return entryInputStream.read(b); } @Override public int read(byte[] b, int off, int len) throws IOException { return entryInputStream.read(b, off, len); } @Override public long skip(long n) throws IOException { return entryInputStream.skip(n); } @Override public int available() throws IOException { return entryInputStream.available(); } @Override public void close() throws IOException { try{ entryInputStream.close(); //Don't set to null so calls after close will still pass to the InputStream } finally { if(zipFile != null){ zipFile.close(); zipFile = null; } } } @Override public synchronized void mark(int readlimit) { entryInputStream.mark(readlimit); } @Override public synchronized void reset() throws IOException { entryInputStream.reset(); } @Override public boolean markSupported() { return entryInputStream.markSupported(); } } }
3,728
24.026846
92
java
soot
soot-master/src/main/generated/options/soot/AntTask.java
package soot; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2004 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import soot.*; import org.apache.tools.ant.*; import org.apache.tools.ant.taskdefs.*; import org.apache.tools.ant.types.*; import java.util.*; /** * Soot ant task. * @author Ondrej Lhotak */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class AntTask extends MatchingTask { public static final boolean DEBUG = true; private void debug(String s) { if(DEBUG) System.err.println(s); } private ArrayList args = new ArrayList(); public List args() { return args; } private void addArg( String s ) { args.add(s); } private void addArg( String s, String s2 ) { args.add(s); args.add(s2); } private Path appendToPath( Path old, Path newPath ) { if( old == null ) return newPath; old.append(newPath); return old; } private void addPath(String option, Path path) { if( path.size() == 0 ) return; addArg(option); addArg(path.toString()); } private List phaseopts = new ArrayList(); private Path phase_help = null; private Path process_dir = null; private Path process_jar_dir = null; private Path dump_body = null; private Path dump_cfg = null; private Path plugin = null; private Path include = null; private Path exclude = null; private Path dynamic_class = null; private Path dynamic_dir = null; private Path dynamic_package = null; public void execute() throws BuildException { if( phase_help != null ) addPath("-phase-help", phase_help); if( process_dir != null ) addPath("-process-dir", process_dir); if( process_jar_dir != null ) addPath("-process-jar-dir", process_jar_dir); if( dump_body != null ) addPath("-dump-body", dump_body); if( dump_cfg != null ) addPath("-dump-cfg", dump_cfg); if( plugin != null ) addPath("-plugin", plugin); if( include != null ) addPath("-include", include); if( exclude != null ) addPath("-exclude", exclude); if( dynamic_class != null ) addPath("-dynamic-class", dynamic_class); if( dynamic_dir != null ) addPath("-dynamic-dir", dynamic_dir); if( dynamic_package != null ) addPath("-dynamic-package", dynamic_package); if(DEBUG) System.out.println(args); try { soot.Main.main((String[]) args.toArray(new String[0])); soot.G.v().reset(); } catch( Exception e ) { e.printStackTrace(); throw new BuildException(e); } } public void setcoffi(boolean arg) { if(arg) addArg("-coffi"); } public void setjasmin_backend(boolean arg) { if(arg) addArg("-jasmin-backend"); } public void sethelp(boolean arg) { if(arg) addArg("-help"); } public void setphase_list(boolean arg) { if(arg) addArg("-phase-list"); } public void setphase_help(Path arg) { if(phase_help == null ) phase_help = new Path(getProject()); phase_help = appendToPath(phase_help, arg); } public Path createphase_help() { if(phase_help == null ) phase_help = new Path(getProject()); return phase_help.createPath(); } public void setversion(boolean arg) { if(arg) addArg("-version"); } public void setverbose(boolean arg) { if(arg) addArg("-verbose"); } public void setinteractive_mode(boolean arg) { if(arg) addArg("-interactive-mode"); } public void setunfriendly_mode(boolean arg) { if(arg) addArg("-unfriendly-mode"); } public void setapp(boolean arg) { if(arg) addArg("-app"); } public void setwhole_program(boolean arg) { if(arg) addArg("-whole-program"); } public void setwhole_shimple(boolean arg) { if(arg) addArg("-whole-shimple"); } public void seton_the_fly(boolean arg) { if(arg) addArg("-on-the-fly"); } public void setvalidate(boolean arg) { if(arg) addArg("-validate"); } public void setdebug(boolean arg) { if(arg) addArg("-debug"); } public void setdebug_resolver(boolean arg) { if(arg) addArg("-debug-resolver"); } public void setignore_resolving_levels(boolean arg) { if(arg) addArg("-ignore-resolving-levels"); } public void setweak_map_structures(boolean arg) { if(arg) addArg("-weak-map-structures"); } public void setsoot_classpath(String arg) { addArg("-soot-classpath"); addArg(arg); } public void setsoot_modulepath(String arg) { addArg("-soot-modulepath"); addArg(arg); } public void setprepend_classpath(boolean arg) { if(arg) addArg("-prepend-classpath"); } public void setignore_classpath_errors(boolean arg) { if(arg) addArg("-ignore-classpath-errors"); } public void setprocess_multiple_dex(boolean arg) { if(arg) addArg("-process-multiple-dex"); } public void setsearch_dex_in_archives(boolean arg) { if(arg) addArg("-search-dex-in-archives"); } public void setprocess_dir(Path arg) { if(process_dir == null ) process_dir = new Path(getProject()); process_dir = appendToPath(process_dir, arg); } public Path createprocess_dir() { if(process_dir == null ) process_dir = new Path(getProject()); return process_dir.createPath(); } public void setprocess_jar_dir(Path arg) { if(process_jar_dir == null ) process_jar_dir = new Path(getProject()); process_jar_dir = appendToPath(process_jar_dir, arg); } public Path createprocess_jar_dir() { if(process_jar_dir == null ) process_jar_dir = new Path(getProject()); return process_jar_dir.createPath(); } public void setderive_java_version(boolean arg) { if(arg) addArg("-derive-java-version"); } public void setoaat(boolean arg) { if(arg) addArg("-oaat"); } public void setandroid_jars(String arg) { addArg("-android-jars"); addArg(arg); } public void setforce_android_jar(String arg) { addArg("-force-android-jar"); addArg(arg); } public void setast_metrics(boolean arg) { if(arg) addArg("-ast-metrics"); } public void setsrc_prec(String arg) { if(false || arg.equals( "c" ) || arg.equals( "class" ) || arg.equals( "only-class" ) || arg.equals( "J" ) || arg.equals( "jimple" ) || arg.equals( "java" ) || arg.equals( "apk" ) || arg.equals( "apk-class-jimple" ) || arg.equals( "apk-c-j" ) ) { addArg("-src-prec"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option src_prec"); } } public void setfull_resolver(boolean arg) { if(arg) addArg("-full-resolver"); } public void setallow_phantom_refs(boolean arg) { if(arg) addArg("-allow-phantom-refs"); } public void setallow_phantom_elms(boolean arg) { if(arg) addArg("-allow-phantom-elms"); } public void setallow_cg_errors(boolean arg) { if(arg) addArg("-allow-cg-errors"); } public void setno_bodies_for_excluded(boolean arg) { if(arg) addArg("-no-bodies-for-excluded"); } public void setj2me(boolean arg) { if(arg) addArg("-j2me"); } public void setmain_class(String arg) { addArg("-main-class"); addArg(arg); } public void setpolyglot(boolean arg) { if(arg) addArg("-polyglot"); } public void setpermissive_resolving(boolean arg) { if(arg) addArg("-permissive-resolving"); } public void setdrop_bodies_after_load(boolean arg) { if(arg) addArg("-drop-bodies-after-load"); } public void setoutput_dir(String arg) { addArg("-output-dir"); addArg(arg); } public void setoutput_format(String arg) { if(false || arg.equals( "J" ) || arg.equals( "jimple" ) || arg.equals( "j" ) || arg.equals( "jimp" ) || arg.equals( "S" ) || arg.equals( "shimple" ) || arg.equals( "s" ) || arg.equals( "shimp" ) || arg.equals( "B" ) || arg.equals( "baf" ) || arg.equals( "b" ) || arg.equals( "G" ) || arg.equals( "grimple" ) || arg.equals( "g" ) || arg.equals( "grimp" ) || arg.equals( "X" ) || arg.equals( "xml" ) || arg.equals( "dex" ) || arg.equals( "force-dex" ) || arg.equals( "n" ) || arg.equals( "none" ) || arg.equals( "jasmin" ) || arg.equals( "c" ) || arg.equals( "class" ) || arg.equals( "d" ) || arg.equals( "dava" ) || arg.equals( "t" ) || arg.equals( "template" ) || arg.equals( "a" ) || arg.equals( "asm" ) ) { addArg("-output-format"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option output_format"); } } public void setjava_version(String arg) { if(false || arg.equals( "default" ) || arg.equals( "1.1" ) || arg.equals( "1" ) || arg.equals( "1.2" ) || arg.equals( "2" ) || arg.equals( "1.3" ) || arg.equals( "3" ) || arg.equals( "1.4" ) || arg.equals( "4" ) || arg.equals( "1.5" ) || arg.equals( "5" ) || arg.equals( "1.6" ) || arg.equals( "6" ) || arg.equals( "1.7" ) || arg.equals( "7" ) || arg.equals( "1.8" ) || arg.equals( "8" ) || arg.equals( "1.9" ) || arg.equals( "9" ) || arg.equals( "1.10" ) || arg.equals( "10" ) || arg.equals( "1.11" ) || arg.equals( "11" ) || arg.equals( "1.12" ) || arg.equals( "12" ) ) { addArg("-java-version"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option java_version"); } } public void setoutput_jar(boolean arg) { if(arg) addArg("-output-jar"); } public void sethierarchy_dirs(boolean arg) { if(arg) addArg("-hierarchy-dirs"); } public void setxml_attributes(boolean arg) { if(arg) addArg("-xml-attributes"); } public void setprint_tags_in_output(boolean arg) { if(arg) addArg("-print-tags-in-output"); } public void setno_output_source_file_attribute(boolean arg) { if(arg) addArg("-no-output-source-file-attribute"); } public void setno_output_inner_classes_attribute(boolean arg) { if(arg) addArg("-no-output-inner-classes-attribute"); } public void setdump_body(Path arg) { if(dump_body == null ) dump_body = new Path(getProject()); dump_body = appendToPath(dump_body, arg); } public Path createdump_body() { if(dump_body == null ) dump_body = new Path(getProject()); return dump_body.createPath(); } public void setdump_cfg(Path arg) { if(dump_cfg == null ) dump_cfg = new Path(getProject()); dump_cfg = appendToPath(dump_cfg, arg); } public Path createdump_cfg() { if(dump_cfg == null ) dump_cfg = new Path(getProject()); return dump_cfg.createPath(); } public void setshow_exception_dests(boolean arg) { if(arg) addArg("-show-exception-dests"); } public void setgzip(boolean arg) { if(arg) addArg("-gzip"); } public void setforce_overwrite(boolean arg) { if(arg) addArg("-force-overwrite"); } public void setplugin(Path arg) { if(plugin == null ) plugin = new Path(getProject()); plugin = appendToPath(plugin, arg); } public Path createplugin() { if(plugin == null ) plugin = new Path(getProject()); return plugin.createPath(); } public void setwrong_staticness(String arg) { if(false || arg.equals( "fail" ) || arg.equals( "ignore" ) || arg.equals( "fix" ) || arg.equals( "fixstrict" ) ) { addArg("-wrong-staticness"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option wrong_staticness"); } } public void setfield_type_mismatches(String arg) { if(false || arg.equals( "fail" ) || arg.equals( "ignore" ) || arg.equals( "null" ) ) { addArg("-field-type-mismatches"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option field_type_mismatches"); } } public void setoptimize(boolean arg) { if(arg) addArg("-optimize"); } public void setwhole_optimize(boolean arg) { if(arg) addArg("-whole-optimize"); } public void setvia_grimp(boolean arg) { if(arg) addArg("-via-grimp"); } public void setvia_shimple(boolean arg) { if(arg) addArg("-via-shimple"); } public void setthrow_analysis(String arg) { if(false || arg.equals( "pedantic" ) || arg.equals( "unit" ) || arg.equals( "dalvik" ) || arg.equals( "auto-select" ) ) { addArg("-throw-analysis"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option throw_analysis"); } } public void setcheck_init_throw_analysis(String arg) { if(false || arg.equals( "auto" ) || arg.equals( "pedantic" ) || arg.equals( "unit" ) || arg.equals( "dalvik" ) ) { addArg("-check-init-throw-analysis"); addArg(arg); } else { throw new BuildException("Bad value "+arg+" for option check_init_throw_analysis"); } } public void setomit_excepting_unit_edges(boolean arg) { if(arg) addArg("-omit-excepting-unit-edges"); } public void settrim_cfgs(boolean arg) { if(arg) addArg("-trim-cfgs"); } public void setignore_resolution_errors(boolean arg) { if(arg) addArg("-ignore-resolution-errors"); } public void setinclude(Path arg) { if(include == null ) include = new Path(getProject()); include = appendToPath(include, arg); } public Path createinclude() { if(include == null ) include = new Path(getProject()); return include.createPath(); } public void setexclude(Path arg) { if(exclude == null ) exclude = new Path(getProject()); exclude = appendToPath(exclude, arg); } public Path createexclude() { if(exclude == null ) exclude = new Path(getProject()); return exclude.createPath(); } public void setinclude_all(boolean arg) { if(arg) addArg("-include-all"); } public void setdynamic_class(Path arg) { if(dynamic_class == null ) dynamic_class = new Path(getProject()); dynamic_class = appendToPath(dynamic_class, arg); } public Path createdynamic_class() { if(dynamic_class == null ) dynamic_class = new Path(getProject()); return dynamic_class.createPath(); } public void setdynamic_dir(Path arg) { if(dynamic_dir == null ) dynamic_dir = new Path(getProject()); dynamic_dir = appendToPath(dynamic_dir, arg); } public Path createdynamic_dir() { if(dynamic_dir == null ) dynamic_dir = new Path(getProject()); return dynamic_dir.createPath(); } public void setdynamic_package(Path arg) { if(dynamic_package == null ) dynamic_package = new Path(getProject()); dynamic_package = appendToPath(dynamic_package, arg); } public Path createdynamic_package() { if(dynamic_package == null ) dynamic_package = new Path(getProject()); return dynamic_package.createPath(); } public void setkeep_line_number(boolean arg) { if(arg) addArg("-keep-line-number"); } public void setkeep_offset(boolean arg) { if(arg) addArg("-keep-offset"); } public void setwrite_local_annotations(boolean arg) { if(arg) addArg("-write-local-annotations"); } public void setannot_purity(boolean arg) { if(arg) addArg("-annot-purity"); } public void setannot_nullpointer(boolean arg) { if(arg) addArg("-annot-nullpointer"); } public void setannot_arraybounds(boolean arg) { if(arg) addArg("-annot-arraybounds"); } public void setannot_side_effect(boolean arg) { if(arg) addArg("-annot-side-effect"); } public void setannot_fieldrw(boolean arg) { if(arg) addArg("-annot-fieldrw"); } public void settime(boolean arg) { if(arg) addArg("-time"); } public void setsubtract_gc(boolean arg) { if(arg) addArg("-subtract-gc"); } public void setno_writeout_body_releasing(boolean arg) { if(arg) addArg("-no-writeout-body-releasing"); } public Object createp_jb() { Object ret = new PhaseOptjb(); phaseopts.add(ret); return ret; } public class PhaseOptjb { public void setenabled(boolean arg) { addArg("-p"); addArg("jb"); addArg("enabled:"+(arg?"true":"false")); } public void setuse_original_names(boolean arg) { addArg("-p"); addArg("jb"); addArg("use-original-names:"+(arg?"true":"false")); } public void setpreserve_source_annotations(boolean arg) { addArg("-p"); addArg("jb"); addArg("preserve-source-annotations:"+(arg?"true":"false")); } public void setstabilize_local_names(boolean arg) { addArg("-p"); addArg("jb"); addArg("stabilize-local-names:"+(arg?"true":"false")); } public void setmodel_lambdametafactory(boolean arg) { addArg("-p"); addArg("jb"); addArg("model-lambdametafactory:"+(arg?"true":"false")); } } public Object createp_jb_dtr() { Object ret = new PhaseOptjb_dtr(); phaseopts.add(ret); return ret; } public class PhaseOptjb_dtr { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.dtr"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_ese() { Object ret = new PhaseOptjb_ese(); phaseopts.add(ret); return ret; } public class PhaseOptjb_ese { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.ese"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_ls() { Object ret = new PhaseOptjb_ls(); phaseopts.add(ret); return ret; } public class PhaseOptjb_ls { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.ls"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_sils() { Object ret = new PhaseOptjb_sils(); phaseopts.add(ret); return ret; } public class PhaseOptjb_sils { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.sils"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_a() { Object ret = new PhaseOptjb_a(); phaseopts.add(ret); return ret; } public class PhaseOptjb_a { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.a"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jb.a"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jb_ule() { Object ret = new PhaseOptjb_ule(); phaseopts.add(ret); return ret; } public class PhaseOptjb_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_tr() { Object ret = new PhaseOptjb_tr(); phaseopts.add(ret); return ret; } public class PhaseOptjb_tr { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.tr"); addArg("enabled:"+(arg?"true":"false")); } public void setuse_older_type_assigner(boolean arg) { addArg("-p"); addArg("jb.tr"); addArg("use-older-type-assigner:"+(arg?"true":"false")); } public void setcompare_type_assigners(boolean arg) { addArg("-p"); addArg("jb.tr"); addArg("compare-type-assigners:"+(arg?"true":"false")); } public void setignore_nullpointer_dereferences(boolean arg) { addArg("-p"); addArg("jb.tr"); addArg("ignore-nullpointer-dereferences:"+(arg?"true":"false")); } } public Object createp_jb_ulp() { Object ret = new PhaseOptjb_ulp(); phaseopts.add(ret); return ret; } public class PhaseOptjb_ulp { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.ulp"); addArg("enabled:"+(arg?"true":"false")); } public void setunsplit_original_locals(boolean arg) { addArg("-p"); addArg("jb.ulp"); addArg("unsplit-original-locals:"+(arg?"true":"false")); } } public Object createp_jb_lns() { Object ret = new PhaseOptjb_lns(); phaseopts.add(ret); return ret; } public class PhaseOptjb_lns { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.lns"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jb.lns"); addArg("only-stack-locals:"+(arg?"true":"false")); } public void setsort_locals(boolean arg) { addArg("-p"); addArg("jb.lns"); addArg("sort-locals:"+(arg?"true":"false")); } } public Object createp_jb_cp() { Object ret = new PhaseOptjb_cp(); phaseopts.add(ret); return ret; } public class PhaseOptjb_cp { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.cp"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_regular_locals(boolean arg) { addArg("-p"); addArg("jb.cp"); addArg("only-regular-locals:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jb.cp"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jb_dae() { Object ret = new PhaseOptjb_dae(); phaseopts.add(ret); return ret; } public class PhaseOptjb_dae { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.dae"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jb.dae"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jb_cp_ule() { Object ret = new PhaseOptjb_cp_ule(); phaseopts.add(ret); return ret; } public class PhaseOptjb_cp_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.cp-ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_lp() { Object ret = new PhaseOptjb_lp(); phaseopts.add(ret); return ret; } public class PhaseOptjb_lp { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.lp"); addArg("enabled:"+(arg?"true":"false")); } public void setunsplit_original_locals(boolean arg) { addArg("-p"); addArg("jb.lp"); addArg("unsplit-original-locals:"+(arg?"true":"false")); } } public Object createp_jb_ne() { Object ret = new PhaseOptjb_ne(); phaseopts.add(ret); return ret; } public class PhaseOptjb_ne { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.ne"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_uce() { Object ret = new PhaseOptjb_uce(); phaseopts.add(ret); return ret; } public class PhaseOptjb_uce { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.uce"); addArg("enabled:"+(arg?"true":"false")); } public void setremove_unreachable_traps(boolean arg) { addArg("-p"); addArg("jb.uce"); addArg("remove-unreachable-traps:"+(arg?"true":"false")); } } public Object createp_jb_tt() { Object ret = new PhaseOptjb_tt(); phaseopts.add(ret); return ret; } public class PhaseOptjb_tt { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.tt"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jb_cbf() { Object ret = new PhaseOptjb_cbf(); phaseopts.add(ret); return ret; } public class PhaseOptjb_cbf { public void setenabled(boolean arg) { addArg("-p"); addArg("jb.cbf"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj() { Object ret = new PhaseOptjj(); phaseopts.add(ret); return ret; } public class PhaseOptjj { public void setenabled(boolean arg) { addArg("-p"); addArg("jj"); addArg("enabled:"+(arg?"true":"false")); } public void setuse_original_names(boolean arg) { addArg("-p"); addArg("jj"); addArg("use-original-names:"+(arg?"true":"false")); } } public Object createp_jj_ls() { Object ret = new PhaseOptjj_ls(); phaseopts.add(ret); return ret; } public class PhaseOptjj_ls { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.ls"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj_sils() { Object ret = new PhaseOptjj_sils(); phaseopts.add(ret); return ret; } public class PhaseOptjj_sils { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.sils"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj_a() { Object ret = new PhaseOptjj_a(); phaseopts.add(ret); return ret; } public class PhaseOptjj_a { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.a"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jj.a"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jj_ule() { Object ret = new PhaseOptjj_ule(); phaseopts.add(ret); return ret; } public class PhaseOptjj_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj_tr() { Object ret = new PhaseOptjj_tr(); phaseopts.add(ret); return ret; } public class PhaseOptjj_tr { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.tr"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj_ulp() { Object ret = new PhaseOptjj_ulp(); phaseopts.add(ret); return ret; } public class PhaseOptjj_ulp { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.ulp"); addArg("enabled:"+(arg?"true":"false")); } public void setunsplit_original_locals(boolean arg) { addArg("-p"); addArg("jj.ulp"); addArg("unsplit-original-locals:"+(arg?"true":"false")); } } public Object createp_jj_lns() { Object ret = new PhaseOptjj_lns(); phaseopts.add(ret); return ret; } public class PhaseOptjj_lns { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.lns"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jj.lns"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jj_cp() { Object ret = new PhaseOptjj_cp(); phaseopts.add(ret); return ret; } public class PhaseOptjj_cp { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.cp"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_regular_locals(boolean arg) { addArg("-p"); addArg("jj.cp"); addArg("only-regular-locals:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jj.cp"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jj_dae() { Object ret = new PhaseOptjj_dae(); phaseopts.add(ret); return ret; } public class PhaseOptjj_dae { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.dae"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jj.dae"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jj_cp_ule() { Object ret = new PhaseOptjj_cp_ule(); phaseopts.add(ret); return ret; } public class PhaseOptjj_cp_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.cp-ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj_lp() { Object ret = new PhaseOptjj_lp(); phaseopts.add(ret); return ret; } public class PhaseOptjj_lp { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.lp"); addArg("enabled:"+(arg?"true":"false")); } public void setunsplit_original_locals(boolean arg) { addArg("-p"); addArg("jj.lp"); addArg("unsplit-original-locals:"+(arg?"true":"false")); } } public Object createp_jj_ne() { Object ret = new PhaseOptjj_ne(); phaseopts.add(ret); return ret; } public class PhaseOptjj_ne { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.ne"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jj_uce() { Object ret = new PhaseOptjj_uce(); phaseopts.add(ret); return ret; } public class PhaseOptjj_uce { public void setenabled(boolean arg) { addArg("-p"); addArg("jj.uce"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjpp() { Object ret = new PhaseOptwjpp(); phaseopts.add(ret); return ret; } public class PhaseOptwjpp { public void setenabled(boolean arg) { addArg("-p"); addArg("wjpp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjpp_cimbt() { Object ret = new PhaseOptwjpp_cimbt(); phaseopts.add(ret); return ret; } public class PhaseOptwjpp_cimbt { public void setenabled(boolean arg) { addArg("-p"); addArg("wjpp.cimbt"); addArg("enabled:"+(arg?"true":"false")); } public void setverbose(boolean arg) { addArg("-p"); addArg("wjpp.cimbt"); addArg("verbose:"+(arg?"true":"false")); } } public Object createp_wspp() { Object ret = new PhaseOptwspp(); phaseopts.add(ret); return ret; } public class PhaseOptwspp { public void setenabled(boolean arg) { addArg("-p"); addArg("wspp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_cg() { Object ret = new PhaseOptcg(); phaseopts.add(ret); return ret; } public class PhaseOptcg { public void setenabled(boolean arg) { addArg("-p"); addArg("cg"); addArg("enabled:"+(arg?"true":"false")); } public void setsafe_forname(boolean arg) { addArg("-p"); addArg("cg"); addArg("safe-forname:"+(arg?"true":"false")); } public void setsafe_newinstance(boolean arg) { addArg("-p"); addArg("cg"); addArg("safe-newinstance:"+(arg?"true":"false")); } public void setverbose(boolean arg) { addArg("-p"); addArg("cg"); addArg("verbose:"+(arg?"true":"false")); } public void setall_reachable(boolean arg) { addArg("-p"); addArg("cg"); addArg("all-reachable:"+(arg?"true":"false")); } public void setimplicit_entry(boolean arg) { addArg("-p"); addArg("cg"); addArg("implicit-entry:"+(arg?"true":"false")); } public void settrim_clinit(boolean arg) { addArg("-p"); addArg("cg"); addArg("trim-clinit:"+(arg?"true":"false")); } public void settypes_for_invoke(boolean arg) { addArg("-p"); addArg("cg"); addArg("types-for-invoke:"+(arg?"true":"false")); } public void setresolve_all_abstract_invokes(boolean arg) { addArg("-p"); addArg("cg"); addArg("resolve-all-abstract-invokes:"+(arg?"true":"false")); } public void setlibrary(String arg) { addArg("-p"); addArg("cg"); addArg("library:"+arg); } public void setjdkver(String arg) { addArg("-p"); addArg("cg"); addArg("jdkver:"+arg); } public void setreflection_log(String arg) { addArg("-p"); addArg("cg"); addArg("reflection-log:"+arg); } public void setguards(String arg) { addArg("-p"); addArg("cg"); addArg("guards:"+arg); } } public Object createp_cg_cha() { Object ret = new PhaseOptcg_cha(); phaseopts.add(ret); return ret; } public class PhaseOptcg_cha { public void setenabled(boolean arg) { addArg("-p"); addArg("cg.cha"); addArg("enabled:"+(arg?"true":"false")); } public void setverbose(boolean arg) { addArg("-p"); addArg("cg.cha"); addArg("verbose:"+(arg?"true":"false")); } public void setapponly(boolean arg) { addArg("-p"); addArg("cg.cha"); addArg("apponly:"+(arg?"true":"false")); } } public Object createp_cg_spark() { Object ret = new PhaseOptcg_spark(); phaseopts.add(ret); return ret; } public class PhaseOptcg_spark { public void setenabled(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("enabled:"+(arg?"true":"false")); } public void setverbose(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("verbose:"+(arg?"true":"false")); } public void setignore_types(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("ignore-types:"+(arg?"true":"false")); } public void setforce_gc(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("force-gc:"+(arg?"true":"false")); } public void setpre_jimplify(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("pre-jimplify:"+(arg?"true":"false")); } public void setapponly(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("apponly:"+(arg?"true":"false")); } public void setvta(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("vta:"+(arg?"true":"false")); } public void setrta(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("rta:"+(arg?"true":"false")); } public void setfield_based(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("field-based:"+(arg?"true":"false")); } public void settypes_for_sites(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("types-for-sites:"+(arg?"true":"false")); } public void setmerge_stringbuffer(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("merge-stringbuffer:"+(arg?"true":"false")); } public void setstring_constants(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("string-constants:"+(arg?"true":"false")); } public void setsimulate_natives(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("simulate-natives:"+(arg?"true":"false")); } public void setempties_as_allocs(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("empties-as-allocs:"+(arg?"true":"false")); } public void setsimple_edges_bidirectional(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("simple-edges-bidirectional:"+(arg?"true":"false")); } public void seton_fly_cg(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("on-fly-cg:"+(arg?"true":"false")); } public void setsimplify_offline(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("simplify-offline:"+(arg?"true":"false")); } public void setsimplify_sccs(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("simplify-sccs:"+(arg?"true":"false")); } public void setignore_types_for_sccs(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("ignore-types-for-sccs:"+(arg?"true":"false")); } public void setdump_html(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("dump-html:"+(arg?"true":"false")); } public void setdump_pag(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("dump-pag:"+(arg?"true":"false")); } public void setdump_solution(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("dump-solution:"+(arg?"true":"false")); } public void settopo_sort(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("topo-sort:"+(arg?"true":"false")); } public void setdump_types(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("dump-types:"+(arg?"true":"false")); } public void setclass_method_var(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("class-method-var:"+(arg?"true":"false")); } public void setdump_answer(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("dump-answer:"+(arg?"true":"false")); } public void setadd_tags(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("add-tags:"+(arg?"true":"false")); } public void setset_mass(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("set-mass:"+(arg?"true":"false")); } public void setcs_demand(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("cs-demand:"+(arg?"true":"false")); } public void setlazy_pts(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("lazy-pts:"+(arg?"true":"false")); } public void setgeom_pta(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-pta:"+(arg?"true":"false")); } public void setgeom_trans(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-trans:"+(arg?"true":"false")); } public void setgeom_blocking(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-blocking:"+(arg?"true":"false")); } public void setgeom_app_only(boolean arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-app-only:"+(arg?"true":"false")); } public void setpropagator(String arg) { addArg("-p"); addArg("cg.spark"); addArg("propagator:"+arg); } public void setset_impl(String arg) { addArg("-p"); addArg("cg.spark"); addArg("set-impl:"+arg); } public void setdouble_set_old(String arg) { addArg("-p"); addArg("cg.spark"); addArg("double-set-old:"+arg); } public void setdouble_set_new(String arg) { addArg("-p"); addArg("cg.spark"); addArg("double-set-new:"+arg); } public void settraversal(String arg) { addArg("-p"); addArg("cg.spark"); addArg("traversal:"+arg); } public void setpasses(String arg) { addArg("-p"); addArg("cg.spark"); addArg("passes:"+arg); } public void setgeom_encoding(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-encoding:"+arg); } public void setgeom_worklist(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-worklist:"+arg); } public void setgeom_dump_verbose(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-dump-verbose:"+arg); } public void setgeom_verify_name(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-verify-name:"+arg); } public void setgeom_eval(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-eval:"+arg); } public void setgeom_frac_base(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-frac-base:"+arg); } public void setgeom_runs(String arg) { addArg("-p"); addArg("cg.spark"); addArg("geom-runs:"+arg); } } public Object createp_cg_paddle() { Object ret = new PhaseOptcg_paddle(); phaseopts.add(ret); return ret; } public class PhaseOptcg_paddle { public void setenabled(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("enabled:"+(arg?"true":"false")); } public void setverbose(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("verbose:"+(arg?"true":"false")); } public void setbdd(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("bdd:"+(arg?"true":"false")); } public void setdynamic_order(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("dynamic-order:"+(arg?"true":"false")); } public void setprofile(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("profile:"+(arg?"true":"false")); } public void setverbosegc(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("verbosegc:"+(arg?"true":"false")); } public void setignore_types(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("ignore-types:"+(arg?"true":"false")); } public void setpre_jimplify(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("pre-jimplify:"+(arg?"true":"false")); } public void setcontext_heap(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("context-heap:"+(arg?"true":"false")); } public void setrta(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("rta:"+(arg?"true":"false")); } public void setfield_based(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("field-based:"+(arg?"true":"false")); } public void settypes_for_sites(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("types-for-sites:"+(arg?"true":"false")); } public void setmerge_stringbuffer(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("merge-stringbuffer:"+(arg?"true":"false")); } public void setstring_constants(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("string-constants:"+(arg?"true":"false")); } public void setsimulate_natives(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("simulate-natives:"+(arg?"true":"false")); } public void setglobal_nodes_in_natives(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("global-nodes-in-natives:"+(arg?"true":"false")); } public void setsimple_edges_bidirectional(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("simple-edges-bidirectional:"+(arg?"true":"false")); } public void setthis_edges(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("this-edges:"+(arg?"true":"false")); } public void setprecise_newinstance(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("precise-newinstance:"+(arg?"true":"false")); } public void setcontext_counts(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("context-counts:"+(arg?"true":"false")); } public void settotal_context_counts(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("total-context-counts:"+(arg?"true":"false")); } public void setmethod_context_counts(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("method-context-counts:"+(arg?"true":"false")); } public void setset_mass(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("set-mass:"+(arg?"true":"false")); } public void setnumber_nodes(boolean arg) { addArg("-p"); addArg("cg.paddle"); addArg("number-nodes:"+(arg?"true":"false")); } public void setconf(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("conf:"+arg); } public void setorder(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("order:"+arg); } public void setq(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("q:"+arg); } public void setbackend(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("backend:"+arg); } public void setbdd_nodes(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("bdd-nodes:"+arg); } public void setcontext(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("context:"+arg); } public void setk(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("k:"+arg); } public void setpropagator(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("propagator:"+arg); } public void setset_impl(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("set-impl:"+arg); } public void setdouble_set_old(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("double-set-old:"+arg); } public void setdouble_set_new(String arg) { addArg("-p"); addArg("cg.paddle"); addArg("double-set-new:"+arg); } } public Object createp_wstp() { Object ret = new PhaseOptwstp(); phaseopts.add(ret); return ret; } public class PhaseOptwstp { public void setenabled(boolean arg) { addArg("-p"); addArg("wstp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wsop() { Object ret = new PhaseOptwsop(); phaseopts.add(ret); return ret; } public class PhaseOptwsop { public void setenabled(boolean arg) { addArg("-p"); addArg("wsop"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjtp() { Object ret = new PhaseOptwjtp(); phaseopts.add(ret); return ret; } public class PhaseOptwjtp { public void setenabled(boolean arg) { addArg("-p"); addArg("wjtp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjtp_mhp() { Object ret = new PhaseOptwjtp_mhp(); phaseopts.add(ret); return ret; } public class PhaseOptwjtp_mhp { public void setenabled(boolean arg) { addArg("-p"); addArg("wjtp.mhp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjtp_tn() { Object ret = new PhaseOptwjtp_tn(); phaseopts.add(ret); return ret; } public class PhaseOptwjtp_tn { public void setenabled(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("enabled:"+(arg?"true":"false")); } public void setavoid_deadlock(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("avoid-deadlock:"+(arg?"true":"false")); } public void setopen_nesting(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("open-nesting:"+(arg?"true":"false")); } public void setdo_mhp(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("do-mhp:"+(arg?"true":"false")); } public void setdo_tlo(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("do-tlo:"+(arg?"true":"false")); } public void setprint_graph(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("print-graph:"+(arg?"true":"false")); } public void setprint_table(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("print-table:"+(arg?"true":"false")); } public void setprint_debug(boolean arg) { addArg("-p"); addArg("wjtp.tn"); addArg("print-debug:"+(arg?"true":"false")); } public void setlocking_scheme(String arg) { addArg("-p"); addArg("wjtp.tn"); addArg("locking-scheme:"+arg); } } public Object createp_wjtp_rdc() { Object ret = new PhaseOptwjtp_rdc(); phaseopts.add(ret); return ret; } public class PhaseOptwjtp_rdc { public void setenabled(boolean arg) { addArg("-p"); addArg("wjtp.rdc"); addArg("enabled:"+(arg?"true":"false")); } public void setfixed_class_names(String arg) { addArg("-p"); addArg("wjtp.rdc"); addArg("fixed-class-names:"+arg); } } public Object createp_wjop() { Object ret = new PhaseOptwjop(); phaseopts.add(ret); return ret; } public class PhaseOptwjop { public void setenabled(boolean arg) { addArg("-p"); addArg("wjop"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjop_smb() { Object ret = new PhaseOptwjop_smb(); phaseopts.add(ret); return ret; } public class PhaseOptwjop_smb { public void setenabled(boolean arg) { addArg("-p"); addArg("wjop.smb"); addArg("enabled:"+(arg?"true":"false")); } public void setinsert_null_checks(boolean arg) { addArg("-p"); addArg("wjop.smb"); addArg("insert-null-checks:"+(arg?"true":"false")); } public void setinsert_redundant_casts(boolean arg) { addArg("-p"); addArg("wjop.smb"); addArg("insert-redundant-casts:"+(arg?"true":"false")); } public void setallowed_modifier_changes(String arg) { addArg("-p"); addArg("wjop.smb"); addArg("allowed-modifier-changes:"+arg); } } public Object createp_wjop_si() { Object ret = new PhaseOptwjop_si(); phaseopts.add(ret); return ret; } public class PhaseOptwjop_si { public void setenabled(boolean arg) { addArg("-p"); addArg("wjop.si"); addArg("enabled:"+(arg?"true":"false")); } public void setrerun_jb(boolean arg) { addArg("-p"); addArg("wjop.si"); addArg("rerun-jb:"+(arg?"true":"false")); } public void setinsert_null_checks(boolean arg) { addArg("-p"); addArg("wjop.si"); addArg("insert-null-checks:"+(arg?"true":"false")); } public void setinsert_redundant_casts(boolean arg) { addArg("-p"); addArg("wjop.si"); addArg("insert-redundant-casts:"+(arg?"true":"false")); } public void setallowed_modifier_changes(String arg) { addArg("-p"); addArg("wjop.si"); addArg("allowed-modifier-changes:"+arg); } public void setexpansion_factor(String arg) { addArg("-p"); addArg("wjop.si"); addArg("expansion-factor:"+arg); } public void setmax_container_size(String arg) { addArg("-p"); addArg("wjop.si"); addArg("max-container-size:"+arg); } public void setmax_inlinee_size(String arg) { addArg("-p"); addArg("wjop.si"); addArg("max-inlinee-size:"+arg); } } public Object createp_wjap() { Object ret = new PhaseOptwjap(); phaseopts.add(ret); return ret; } public class PhaseOptwjap { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjap_ra() { Object ret = new PhaseOptwjap_ra(); phaseopts.add(ret); return ret; } public class PhaseOptwjap_ra { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap.ra"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjap_umt() { Object ret = new PhaseOptwjap_umt(); phaseopts.add(ret); return ret; } public class PhaseOptwjap_umt { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap.umt"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjap_uft() { Object ret = new PhaseOptwjap_uft(); phaseopts.add(ret); return ret; } public class PhaseOptwjap_uft { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap.uft"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjap_tqt() { Object ret = new PhaseOptwjap_tqt(); phaseopts.add(ret); return ret; } public class PhaseOptwjap_tqt { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap.tqt"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_wjap_cgg() { Object ret = new PhaseOptwjap_cgg(); phaseopts.add(ret); return ret; } public class PhaseOptwjap_cgg { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap.cgg"); addArg("enabled:"+(arg?"true":"false")); } public void setshow_lib_meths(boolean arg) { addArg("-p"); addArg("wjap.cgg"); addArg("show-lib-meths:"+(arg?"true":"false")); } } public Object createp_wjap_purity() { Object ret = new PhaseOptwjap_purity(); phaseopts.add(ret); return ret; } public class PhaseOptwjap_purity { public void setenabled(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("enabled:"+(arg?"true":"false")); } public void setdump_summaries(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("dump-summaries:"+(arg?"true":"false")); } public void setdump_cg(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("dump-cg:"+(arg?"true":"false")); } public void setdump_intra(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("dump-intra:"+(arg?"true":"false")); } public void setprint(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("print:"+(arg?"true":"false")); } public void setannotate(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("annotate:"+(arg?"true":"false")); } public void setverbose(boolean arg) { addArg("-p"); addArg("wjap.purity"); addArg("verbose:"+(arg?"true":"false")); } } public Object createp_shimple() { Object ret = new PhaseOptshimple(); phaseopts.add(ret); return ret; } public class PhaseOptshimple { public void setenabled(boolean arg) { addArg("-p"); addArg("shimple"); addArg("enabled:"+(arg?"true":"false")); } public void setnode_elim_opt(boolean arg) { addArg("-p"); addArg("shimple"); addArg("node-elim-opt:"+(arg?"true":"false")); } public void setstandard_local_names(boolean arg) { addArg("-p"); addArg("shimple"); addArg("standard-local-names:"+(arg?"true":"false")); } public void setextended(boolean arg) { addArg("-p"); addArg("shimple"); addArg("extended:"+(arg?"true":"false")); } public void setdebug(boolean arg) { addArg("-p"); addArg("shimple"); addArg("debug:"+(arg?"true":"false")); } } public Object createp_stp() { Object ret = new PhaseOptstp(); phaseopts.add(ret); return ret; } public class PhaseOptstp { public void setenabled(boolean arg) { addArg("-p"); addArg("stp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_sop() { Object ret = new PhaseOptsop(); phaseopts.add(ret); return ret; } public class PhaseOptsop { public void setenabled(boolean arg) { addArg("-p"); addArg("sop"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_sop_cpf() { Object ret = new PhaseOptsop_cpf(); phaseopts.add(ret); return ret; } public class PhaseOptsop_cpf { public void setenabled(boolean arg) { addArg("-p"); addArg("sop.cpf"); addArg("enabled:"+(arg?"true":"false")); } public void setprune_cfg(boolean arg) { addArg("-p"); addArg("sop.cpf"); addArg("prune-cfg:"+(arg?"true":"false")); } } public Object createp_jtp() { Object ret = new PhaseOptjtp(); phaseopts.add(ret); return ret; } public class PhaseOptjtp { public void setenabled(boolean arg) { addArg("-p"); addArg("jtp"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop() { Object ret = new PhaseOptjop(); phaseopts.add(ret); return ret; } public class PhaseOptjop { public void setenabled(boolean arg) { addArg("-p"); addArg("jop"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop_cse() { Object ret = new PhaseOptjop_cse(); phaseopts.add(ret); return ret; } public class PhaseOptjop_cse { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.cse"); addArg("enabled:"+(arg?"true":"false")); } public void setnaive_side_effect(boolean arg) { addArg("-p"); addArg("jop.cse"); addArg("naive-side-effect:"+(arg?"true":"false")); } } public Object createp_jop_bcm() { Object ret = new PhaseOptjop_bcm(); phaseopts.add(ret); return ret; } public class PhaseOptjop_bcm { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.bcm"); addArg("enabled:"+(arg?"true":"false")); } public void setnaive_side_effect(boolean arg) { addArg("-p"); addArg("jop.bcm"); addArg("naive-side-effect:"+(arg?"true":"false")); } } public Object createp_jop_lcm() { Object ret = new PhaseOptjop_lcm(); phaseopts.add(ret); return ret; } public class PhaseOptjop_lcm { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.lcm"); addArg("enabled:"+(arg?"true":"false")); } public void setunroll(boolean arg) { addArg("-p"); addArg("jop.lcm"); addArg("unroll:"+(arg?"true":"false")); } public void setnaive_side_effect(boolean arg) { addArg("-p"); addArg("jop.lcm"); addArg("naive-side-effect:"+(arg?"true":"false")); } public void setsafety(String arg) { addArg("-p"); addArg("jop.lcm"); addArg("safety:"+arg); } } public Object createp_jop_cp() { Object ret = new PhaseOptjop_cp(); phaseopts.add(ret); return ret; } public class PhaseOptjop_cp { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.cp"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_regular_locals(boolean arg) { addArg("-p"); addArg("jop.cp"); addArg("only-regular-locals:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jop.cp"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jop_cpf() { Object ret = new PhaseOptjop_cpf(); phaseopts.add(ret); return ret; } public class PhaseOptjop_cpf { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.cpf"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop_cbf() { Object ret = new PhaseOptjop_cbf(); phaseopts.add(ret); return ret; } public class PhaseOptjop_cbf { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.cbf"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop_dae() { Object ret = new PhaseOptjop_dae(); phaseopts.add(ret); return ret; } public class PhaseOptjop_dae { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.dae"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_tag(boolean arg) { addArg("-p"); addArg("jop.dae"); addArg("only-tag:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("jop.dae"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_jop_nce() { Object ret = new PhaseOptjop_nce(); phaseopts.add(ret); return ret; } public class PhaseOptjop_nce { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.nce"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop_uce1() { Object ret = new PhaseOptjop_uce1(); phaseopts.add(ret); return ret; } public class PhaseOptjop_uce1 { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.uce1"); addArg("enabled:"+(arg?"true":"false")); } public void setremove_unreachable_traps(boolean arg) { addArg("-p"); addArg("jop.uce1"); addArg("remove-unreachable-traps:"+(arg?"true":"false")); } } public Object createp_jop_ubf1() { Object ret = new PhaseOptjop_ubf1(); phaseopts.add(ret); return ret; } public class PhaseOptjop_ubf1 { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.ubf1"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop_uce2() { Object ret = new PhaseOptjop_uce2(); phaseopts.add(ret); return ret; } public class PhaseOptjop_uce2 { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.uce2"); addArg("enabled:"+(arg?"true":"false")); } public void setremove_unreachable_traps(boolean arg) { addArg("-p"); addArg("jop.uce2"); addArg("remove-unreachable-traps:"+(arg?"true":"false")); } } public Object createp_jop_ubf2() { Object ret = new PhaseOptjop_ubf2(); phaseopts.add(ret); return ret; } public class PhaseOptjop_ubf2 { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.ubf2"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jop_ule() { Object ret = new PhaseOptjop_ule(); phaseopts.add(ret); return ret; } public class PhaseOptjop_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("jop.ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap() { Object ret = new PhaseOptjap(); phaseopts.add(ret); return ret; } public class PhaseOptjap { public void setenabled(boolean arg) { addArg("-p"); addArg("jap"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_npc() { Object ret = new PhaseOptjap_npc(); phaseopts.add(ret); return ret; } public class PhaseOptjap_npc { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.npc"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_array_ref(boolean arg) { addArg("-p"); addArg("jap.npc"); addArg("only-array-ref:"+(arg?"true":"false")); } public void setprofiling(boolean arg) { addArg("-p"); addArg("jap.npc"); addArg("profiling:"+(arg?"true":"false")); } } public Object createp_jap_npcolorer() { Object ret = new PhaseOptjap_npcolorer(); phaseopts.add(ret); return ret; } public class PhaseOptjap_npcolorer { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.npcolorer"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_abc() { Object ret = new PhaseOptjap_abc(); phaseopts.add(ret); return ret; } public class PhaseOptjap_abc { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("enabled:"+(arg?"true":"false")); } public void setwith_all(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("with-all:"+(arg?"true":"false")); } public void setwith_cse(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("with-cse:"+(arg?"true":"false")); } public void setwith_arrayref(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("with-arrayref:"+(arg?"true":"false")); } public void setwith_fieldref(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("with-fieldref:"+(arg?"true":"false")); } public void setwith_classfield(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("with-classfield:"+(arg?"true":"false")); } public void setwith_rectarray(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("with-rectarray:"+(arg?"true":"false")); } public void setprofiling(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("profiling:"+(arg?"true":"false")); } public void setadd_color_tags(boolean arg) { addArg("-p"); addArg("jap.abc"); addArg("add-color-tags:"+(arg?"true":"false")); } } public Object createp_jap_profiling() { Object ret = new PhaseOptjap_profiling(); phaseopts.add(ret); return ret; } public class PhaseOptjap_profiling { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.profiling"); addArg("enabled:"+(arg?"true":"false")); } public void setnotmainentry(boolean arg) { addArg("-p"); addArg("jap.profiling"); addArg("notmainentry:"+(arg?"true":"false")); } } public Object createp_jap_sea() { Object ret = new PhaseOptjap_sea(); phaseopts.add(ret); return ret; } public class PhaseOptjap_sea { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.sea"); addArg("enabled:"+(arg?"true":"false")); } public void setnaive(boolean arg) { addArg("-p"); addArg("jap.sea"); addArg("naive:"+(arg?"true":"false")); } } public Object createp_jap_fieldrw() { Object ret = new PhaseOptjap_fieldrw(); phaseopts.add(ret); return ret; } public class PhaseOptjap_fieldrw { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.fieldrw"); addArg("enabled:"+(arg?"true":"false")); } public void setthreshold(String arg) { addArg("-p"); addArg("jap.fieldrw"); addArg("threshold:"+arg); } } public Object createp_jap_cgtagger() { Object ret = new PhaseOptjap_cgtagger(); phaseopts.add(ret); return ret; } public class PhaseOptjap_cgtagger { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.cgtagger"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_parity() { Object ret = new PhaseOptjap_parity(); phaseopts.add(ret); return ret; } public class PhaseOptjap_parity { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.parity"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_pat() { Object ret = new PhaseOptjap_pat(); phaseopts.add(ret); return ret; } public class PhaseOptjap_pat { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.pat"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_lvtagger() { Object ret = new PhaseOptjap_lvtagger(); phaseopts.add(ret); return ret; } public class PhaseOptjap_lvtagger { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.lvtagger"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_rdtagger() { Object ret = new PhaseOptjap_rdtagger(); phaseopts.add(ret); return ret; } public class PhaseOptjap_rdtagger { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.rdtagger"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_che() { Object ret = new PhaseOptjap_che(); phaseopts.add(ret); return ret; } public class PhaseOptjap_che { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.che"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_umt() { Object ret = new PhaseOptjap_umt(); phaseopts.add(ret); return ret; } public class PhaseOptjap_umt { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.umt"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_lit() { Object ret = new PhaseOptjap_lit(); phaseopts.add(ret); return ret; } public class PhaseOptjap_lit { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.lit"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_jap_aet() { Object ret = new PhaseOptjap_aet(); phaseopts.add(ret); return ret; } public class PhaseOptjap_aet { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.aet"); addArg("enabled:"+(arg?"true":"false")); } public void setkind(String arg) { addArg("-p"); addArg("jap.aet"); addArg("kind:"+arg); } } public Object createp_jap_dmt() { Object ret = new PhaseOptjap_dmt(); phaseopts.add(ret); return ret; } public class PhaseOptjap_dmt { public void setenabled(boolean arg) { addArg("-p"); addArg("jap.dmt"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_gb() { Object ret = new PhaseOptgb(); phaseopts.add(ret); return ret; } public class PhaseOptgb { public void setenabled(boolean arg) { addArg("-p"); addArg("gb"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_gb_a1() { Object ret = new PhaseOptgb_a1(); phaseopts.add(ret); return ret; } public class PhaseOptgb_a1 { public void setenabled(boolean arg) { addArg("-p"); addArg("gb.a1"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("gb.a1"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_gb_cf() { Object ret = new PhaseOptgb_cf(); phaseopts.add(ret); return ret; } public class PhaseOptgb_cf { public void setenabled(boolean arg) { addArg("-p"); addArg("gb.cf"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_gb_a2() { Object ret = new PhaseOptgb_a2(); phaseopts.add(ret); return ret; } public class PhaseOptgb_a2 { public void setenabled(boolean arg) { addArg("-p"); addArg("gb.a2"); addArg("enabled:"+(arg?"true":"false")); } public void setonly_stack_locals(boolean arg) { addArg("-p"); addArg("gb.a2"); addArg("only-stack-locals:"+(arg?"true":"false")); } } public Object createp_gb_ule() { Object ret = new PhaseOptgb_ule(); phaseopts.add(ret); return ret; } public class PhaseOptgb_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("gb.ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_gop() { Object ret = new PhaseOptgop(); phaseopts.add(ret); return ret; } public class PhaseOptgop { public void setenabled(boolean arg) { addArg("-p"); addArg("gop"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_bb() { Object ret = new PhaseOptbb(); phaseopts.add(ret); return ret; } public class PhaseOptbb { public void setenabled(boolean arg) { addArg("-p"); addArg("bb"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_bb_lso() { Object ret = new PhaseOptbb_lso(); phaseopts.add(ret); return ret; } public class PhaseOptbb_lso { public void setenabled(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("enabled:"+(arg?"true":"false")); } public void setdebug(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("debug:"+(arg?"true":"false")); } public void setinter(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("inter:"+(arg?"true":"false")); } public void setsl(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("sl:"+(arg?"true":"false")); } public void setsl2(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("sl2:"+(arg?"true":"false")); } public void setsll(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("sll:"+(arg?"true":"false")); } public void setsll2(boolean arg) { addArg("-p"); addArg("bb.lso"); addArg("sll2:"+(arg?"true":"false")); } } public Object createp_bb_sco() { Object ret = new PhaseOptbb_sco(); phaseopts.add(ret); return ret; } public class PhaseOptbb_sco { public void setenabled(boolean arg) { addArg("-p"); addArg("bb.sco"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_bb_pho() { Object ret = new PhaseOptbb_pho(); phaseopts.add(ret); return ret; } public class PhaseOptbb_pho { public void setenabled(boolean arg) { addArg("-p"); addArg("bb.pho"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_bb_ule() { Object ret = new PhaseOptbb_ule(); phaseopts.add(ret); return ret; } public class PhaseOptbb_ule { public void setenabled(boolean arg) { addArg("-p"); addArg("bb.ule"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_bb_lp() { Object ret = new PhaseOptbb_lp(); phaseopts.add(ret); return ret; } public class PhaseOptbb_lp { public void setenabled(boolean arg) { addArg("-p"); addArg("bb.lp"); addArg("enabled:"+(arg?"true":"false")); } public void setunsplit_original_locals(boolean arg) { addArg("-p"); addArg("bb.lp"); addArg("unsplit-original-locals:"+(arg?"true":"false")); } } public Object createp_bb_ne() { Object ret = new PhaseOptbb_ne(); phaseopts.add(ret); return ret; } public class PhaseOptbb_ne { public void setenabled(boolean arg) { addArg("-p"); addArg("bb.ne"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_bop() { Object ret = new PhaseOptbop(); phaseopts.add(ret); return ret; } public class PhaseOptbop { public void setenabled(boolean arg) { addArg("-p"); addArg("bop"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_tag() { Object ret = new PhaseOpttag(); phaseopts.add(ret); return ret; } public class PhaseOpttag { public void setenabled(boolean arg) { addArg("-p"); addArg("tag"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_tag_ln() { Object ret = new PhaseOpttag_ln(); phaseopts.add(ret); return ret; } public class PhaseOpttag_ln { public void setenabled(boolean arg) { addArg("-p"); addArg("tag.ln"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_tag_an() { Object ret = new PhaseOpttag_an(); phaseopts.add(ret); return ret; } public class PhaseOpttag_an { public void setenabled(boolean arg) { addArg("-p"); addArg("tag.an"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_tag_dep() { Object ret = new PhaseOpttag_dep(); phaseopts.add(ret); return ret; } public class PhaseOpttag_dep { public void setenabled(boolean arg) { addArg("-p"); addArg("tag.dep"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_tag_fieldrw() { Object ret = new PhaseOpttag_fieldrw(); phaseopts.add(ret); return ret; } public class PhaseOpttag_fieldrw { public void setenabled(boolean arg) { addArg("-p"); addArg("tag.fieldrw"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_db() { Object ret = new PhaseOptdb(); phaseopts.add(ret); return ret; } public class PhaseOptdb { public void setenabled(boolean arg) { addArg("-p"); addArg("db"); addArg("enabled:"+(arg?"true":"false")); } public void setsource_is_javac(boolean arg) { addArg("-p"); addArg("db"); addArg("source-is-javac:"+(arg?"true":"false")); } } public Object createp_db_transformations() { Object ret = new PhaseOptdb_transformations(); phaseopts.add(ret); return ret; } public class PhaseOptdb_transformations { public void setenabled(boolean arg) { addArg("-p"); addArg("db.transformations"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_db_renamer() { Object ret = new PhaseOptdb_renamer(); phaseopts.add(ret); return ret; } public class PhaseOptdb_renamer { public void setenabled(boolean arg) { addArg("-p"); addArg("db.renamer"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_db_deobfuscate() { Object ret = new PhaseOptdb_deobfuscate(); phaseopts.add(ret); return ret; } public class PhaseOptdb_deobfuscate { public void setenabled(boolean arg) { addArg("-p"); addArg("db.deobfuscate"); addArg("enabled:"+(arg?"true":"false")); } } public Object createp_db_force_recompile() { Object ret = new PhaseOptdb_force_recompile(); phaseopts.add(ret); return ret; } public class PhaseOptdb_force_recompile { public void setenabled(boolean arg) { addArg("-p"); addArg("db.force-recompile"); addArg("enabled:"+(arg?"true":"false")); } } }
100,263
27.524609
99
java
soot
soot-master/src/main/generated/options/soot/options/ABCOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Array Bound Checker. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class ABCOptions { private Map<String, String> options; public ABCOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * With All * Setting the With All option to true is equivalent to setting * each of With CSE, With Array Ref, With Field Ref, With Class * Field, and With Rectangular Array to true. */ public boolean with_all() { return soot.PhaseOptions.getBoolean(options, "with-all"); } /** * With Common Sub-expressions * The analysis will consider common subexpressions. For example, * consider the situation where r1 is assigned a*b; later, r2 is * assigned a*b, where neither a nor b have changed between the two * statements. The analysis can conclude that r2 has the same value * as r1. Experiments show that this option can improve the result * slightly. */ public boolean with_cse() { return soot.PhaseOptions.getBoolean(options, "with-cse"); } /** * With Array References * With this option enabled, array references can be considered as * common subexpressions; however, we are more conservative when * writing into an array, because array objects may be aliased. We * also assume that the application is single-threaded or that the * array references occur in a synchronized block. That is, we * assume that an array element may not be changed by other threads * between two array references. */ public boolean with_arrayref() { return soot.PhaseOptions.getBoolean(options, "with-arrayref"); } /** * With Field References * The analysis treats field references (static and instance) as * common subexpressions; however, we are more conservative when * writing to a field, because the base of the field reference may * be aliased. We also assume that the application is * single-threaded or that the field references occur in a * synchronized block. That is, we assume that a field may not be * changed by other threads between two field references. */ public boolean with_fieldref() { return soot.PhaseOptions.getBoolean(options, "with-fieldref"); } /** * With Class Field * This option makes the analysis work on the class level. The * algorithm analyzes final or private class fields first. It can * recognize the fields that hold array objects of constant length. * In an application using lots of array fields, this option can * improve the analysis results dramatically. */ public boolean with_classfield() { return soot.PhaseOptions.getBoolean(options, "with-classfield"); } /** * With Rectangular Array * This option is used together with wjap.ra to make Soot run the * whole-program analysis for rectangular array objects. This * analysis is based on the call graph, and it usually takes a long * time. If the application uses rectangular arrays, these options * can improve the analysis result. */ public boolean with_rectarray() { return soot.PhaseOptions.getBoolean(options, "with-rectarray"); } /** * Profiling -- * Profile the results of array bounds check analysis. * * Profile the results of array bounds check analysis. The inserted * profiling code assumes the existence of a MultiCounter class * implementing the methods invoked. For details, see the * ArrayBoundsChecker source code. */ public boolean profiling() { return soot.PhaseOptions.getBoolean(options, "profiling"); } /** * Add Color Tags -- * Add color tags to results of array bound check analysis. * * Add color tags to the results of the array bounds check * analysis. */ public boolean add_color_tags() { return soot.PhaseOptions.getBoolean(options, "add-color-tags"); } }
5,196
34.59589
88
java
soot
soot-master/src/main/generated/options/soot/options/AETOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Available Expressions Tagger. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class AETOptions { private Map<String, String> options; public AETOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } public static final int kind_optimistic = 1; public static final int kind_pessimistic = 2; /** * Kind */ public int kind() { String s = soot.PhaseOptions.getString(options, "kind"); if (s == null || s.isEmpty()) return kind_optimistic; if (s.equalsIgnoreCase("optimistic")) return kind_optimistic; if (s.equalsIgnoreCase("pessimistic")) return kind_pessimistic; throw new RuntimeException(String.format("Invalid value %s of phase option kind", s)); } }
1,915
28.030303
94
java
soot
soot-master/src/main/generated/options/soot/options/BCMOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Busy Code Motion. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class BCMOptions { private Map<String, String> options; public BCMOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Naive Side Effect Tester -- * Use a naive side effect analysis even if interprocedural * information is available. * * If Naive Side Effect Tester is set to true, Busy Code Motion * uses the conservative side effect information provided by the * NaiveSideEffectTester class, even if interprocedural information * about side effects is available. The naive side effect analysis * is based solely on the information available locally about a * statement. It assumes, for example, that any method call has the * potential to write and read all instance and static fields in * the program. If Naive Side Effect Tester is set to false and * Soot is in whole program mode, then Busy Code Motion uses the * side effect information provided by the PASideEffectTester * class. PASideEffectTester uses a points-to analysis to determine * which fields and statics may be written or read by a given * statement. If whole program analysis is not performed, naive * side effect information is used regardless of the setting of * Naive Side Effect Tester. */ public boolean naive_side_effect() { return soot.PhaseOptions.getBoolean(options, "naive-side-effect"); } }
2,636
35.625
88
java
soot
soot-master/src/main/generated/options/soot/options/CGGOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Call Graph Grapher. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class CGGOptions { private Map<String, String> options; public CGGOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Show Library Methods */ public boolean show_lib_meths() { return soot.PhaseOptions.getBoolean(options, "show-lib-meths"); } }
1,507
26.925926
88
java
soot
soot-master/src/main/generated/options/soot/options/CGOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Call Graph Constructor. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class CGOptions { private Map<String, String> options; public CGOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Safe forName -- * Handle Class.forName() calls conservatively. * * When a program calls Class.forName(), the named class is * resolved, and its static initializer executed. In many cases, it * cannot be determined statically which class will be loaded, and * which static initializer executed. When this option is set to * true, Soot will conservatively assume that any static * initializer could be executed. This may make the call graph very * large. When this option is set to false, any calls to * Class.forName() for which the class cannot be determined * statically are assumed to call no static initializers. */ public boolean safe_forname() { return soot.PhaseOptions.getBoolean(options, "safe-forname"); } /** * Safe newInstance -- * Handle Class.newInstance() calls conservatively. * * When a program calls Class.newInstance(), a new object is * created and its constructor executed. Soot does not determine * statically which type of object will be created, and which * constructor executed. When this option is set to true, Soot will * conservatively assume that any constructor could be executed. * This may make the call graph very large. When this option is set * to false, any calls to Class.newInstance() are assumed not to * call the constructor of the created object. */ public boolean safe_newinstance() { return soot.PhaseOptions.getBoolean(options, "safe-newinstance"); } /** * Verbose -- * Print warnings about where the call graph may be incomplete. * * Due to the effects of native methods and reflection, it may not * always be possible to construct a fully conservative call graph. * Setting this option to true causes Soot to point out the parts * of the call graph that may be incomplete, so that they can be * checked by hand. */ public boolean verbose() { return soot.PhaseOptions.getBoolean(options, "verbose"); } /** * All Application Class Methods Reachable -- * Assume all methods of application classes are reachable. * * When this option is false, the call graph is built starting at a * set of entry points, and only methods reachable from those entry * points are processed. Unreachable methods will not have any call * graph edges generated out of them. Setting this option to true * makes Soot consider all methods of application classes to be * reachable, so call edges are generated for all of them. This * leads to a larger call graph. For program visualization * purposes, it is sometimes desirable to include edges from * unreachable methods; although these methods are unreachable in * the version being analyzed, they may become reachable if the * program is modified. */ public boolean all_reachable() { return soot.PhaseOptions.getBoolean(options, "all-reachable"); } /** * Implicit Entry Points -- * Include methods called implicitly by the VM as entry points. * * When this option is true, methods that are called implicitly by * the VM are considered entry points of the call graph. When it is * false, these methods are not considered entry points, leading to * a possibly incomplete call graph. */ public boolean implicit_entry() { return soot.PhaseOptions.getBoolean(options, "implicit-entry"); } /** * Trim Static Initializer Edges -- * Removes redundant static initializer calls. * * The call graph contains an edge from each statement that could * trigger execution of a static initializer to that static * initializer. However, each static initializer is triggered only * once. When this option is enabled, after the call graph is * built, an intra-procedural analysis is performed to detect * static initializer edges leading to methods that must have * already been executed. Since these static initializers cannot be * executed again, the corresponding call graph edges are removed * from the call graph. */ public boolean trim_clinit() { return soot.PhaseOptions.getBoolean(options, "trim-clinit"); } /** * Types for invoke -- * Uses reaching types inferred by the pointer analysis to resolve * reflective calls.. * * For each call to Method.invoke(), use the possible types of the * first receiver argument and the possible types stored in the * second argument array to resolve calls to Method.invoke(). This * strategy makes no attempt to resolve reflectively invoked static * methods. Currently only works for context insensitive pointer * analyses. */ public boolean types_for_invoke() { return soot.PhaseOptions.getBoolean(options, "types-for-invoke"); } /** * Resolve Abstract Classes with No Children -- * Causes methods invoked on abstract classes to be resolved even * if there are no non-abstract children of the classes in the * Scene.. * * Normally, if a method is invoked on a class that is abstract and * said class does not have any children in the Scene, the method * invoke will not be resolved to any concrete methods even if the * abstract class or its parent classes contain a concrete * declaration of the method. This is because without any * non-abstract children it is impossible to tell if the resolution * is correct (since any child may override any non-private method * in any of its parent classes). However, sometimes it is * necessary to resolve methods in such situations (e.g. when * analyzing libraries or incomplete code). This forces all methods * invoked on abstract classes to be resolved if there exists a * parent class with a concrete definition of the method even if * there are no non-abstract children of the abstract class. */ public boolean resolve_all_abstract_invokes() { return soot.PhaseOptions.getBoolean(options, "resolve-all-abstract-invokes"); } /** * JDK version -- * JDK version for native methods. * * This option sets the JDK version of the standard library being * analyzed so that Soot can simulate the native methods in the * specific version of the library. The default, 3, refers to Java * 1.3.x. */ public int jdkver() { return soot.PhaseOptions.getInt(options, "jdkver"); } /** * Reflection Log -- * Uses a reflection log to resolve reflective calls. * * Load a reflection log from the given file and use this log to * resolve reflective call sites. Note that when a log is given, * the following other options have no effect: safe-forname, * safe-newinstance. */ public String reflection_log() { return soot.PhaseOptions.getString(options, "reflection-log"); } /** * Guarding strategy -- * Describes how to guard the program from unsound assumptions. * * Using a reflection log is only sound for method executions that * were logged. Executing the program differently may be unsound. * Soot can insert guards at program points for which the * reflection log contains no information. When these points are * reached (because the program is executed differently) then the * follwing will happen, depending on the value of this flag. * ignore: no guard is inserted, the program executes normally but * under unsound assumptions. print: the program prints a stack * trace when reaching a porgram location that was not traced but * continues to run. throw (default): the program throws an Error * instead. */ public String guards() { return soot.PhaseOptions.getString(options, "guards"); } public static final int library_disabled = 1; public static final int library_any_subtype = 2; public static final int library_signature_resolution = 3; /** * Library mode -- * Specifies whether the target classes should be treated as an * application or a library.. * * Specifies whether the target classes should be treated as an * application or a library. If library mode is disabled (default), * the call graph construction assumes that the target is an * application and starts the construction from the specified entry * points (main method by default). Under the assumption that the * target is a library, possible call edges might be missing in the * call graph. The two different library modes add theses missing * calls to the call graph and differ only in the view of the class * hierachy (hierachy of target library or possible extended * hierachy). If simulate-natives is also set, the results of * native methods are also set to any sub type of the declared * return type. */ public int library() { String s = soot.PhaseOptions.getString(options, "library"); if (s == null || s.isEmpty()) return library_disabled; if (s.equalsIgnoreCase("disabled")) return library_disabled; if (s.equalsIgnoreCase("any-subtype")) return library_any_subtype; if (s.equalsIgnoreCase("signature-resolution")) return library_signature_resolution; throw new RuntimeException(String.format("Invalid value %s of phase option library", s)); } }
11,086
40.062963
97
java
soot
soot-master/src/main/generated/options/soot/options/CHAOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Class Hierarchy Analysis. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class CHAOptions { private Map<String, String> options; public CHAOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Verbose -- * Print statistics about the resulting call graph. * * Setting this option to true causes Soot to print out statistics * about the call graph computed by this phase, such as the number * of methods determined to be reachable. */ public boolean verbose() { return soot.PhaseOptions.getBoolean(options, "verbose"); } /** * AppOnly -- * Consider only application classes. * * Setting this option to true causes Soot to only consider * application classes when building the callgraph. The resulting * callgraph will be inherently unsound. Still, this option can * make sense if performance optimization and memory reduction are * your primary goal. */ public boolean apponly() { return soot.PhaseOptions.getBoolean(options, "apponly"); } }
2,231
29.575342
88
java
soot
soot-master/src/main/generated/options/soot/options/CPOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Copy Propagator. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class CPOptions { private Map<String, String> options; public CPOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Only Regular Locals * Only propagate copies through ``regular'' locals, that is, those * declared in the source bytecode. */ public boolean only_regular_locals() { return soot.PhaseOptions.getBoolean(options, "only-regular-locals"); } /** * Only Stack Locals * Only propagate copies through locals that represent stack * locations in the original bytecode. */ public boolean only_stack_locals() { return soot.PhaseOptions.getBoolean(options, "only-stack-locals"); } }
1,897
28.2
88
java
soot
soot-master/src/main/generated/options/soot/options/FRWOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Field Read/Write Tagger. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class FRWOptions { private Map<String, String> options; public FRWOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Maximum number of fields * If a statement reads/writes more than this number of fields, no * tag will be produced for it, in order to keep the size of the * tags reasonable. */ public int threshold() { return soot.PhaseOptions.getInt(options, "threshold"); } }
1,664
28.210526
88
java
soot
soot-master/src/main/generated/options/soot/options/JBOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Jimple Body Creation. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class JBOptions { private Map<String, String> options; public JBOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Use Original Names * Retain the original names for local variables when the source * includes those names. Otherwise, Soot gives variables generic * names based on their types. */ public boolean use_original_names() { return soot.PhaseOptions.getBoolean(options, "use-original-names"); } /** * Preserve source-level annotations * Preserves annotations of retention type SOURCE. (for everything * but package and local variable annotations) */ public boolean preserve_source_annotations() { return soot.PhaseOptions.getBoolean(options, "preserve-source-annotations"); } /** * Stabilize local names * Make sure that local names are stable between runs. This * requires re-normalizing all local names after the standard * transformations, sorting them, and padding all local names with * leading zeros up to the maximum number of digits in the local * with the highest integer value. This can negatively impact * performance. This option automatically sets "sort-locals" in * "jb.lns" during the second re-normalization pass. */ public boolean stabilize_local_names() { return soot.PhaseOptions.getBoolean(options, "stabilize-local-names"); } /** * Model LambdaMetafactory -- * Replace dynamic invoke instructions to the LambdaMetafactory by * static invokes to a synthetic LambdaMetafactory implementation.. * * When the asm bytecode frontend is used and this option is set to * true, Soot creates an implementation of the LambdaMetafactory * for each dynamic invoke and replaces the original dynamic invoke * by a static invocation of the factory's bootstrap method. This * allows the call-graph generation to find the lambda body * reachable, i.e., call-graphs contain paths from the invocation * of a functional interface to the lambda body implementing this * interface. Note that this procedure is not reversed when * writing-out. Therefore, written-out code will contain the * created LambdaMetafactories and instrumented calls to the * corresponding bootstrap methods. */ public boolean model_lambdametafactory() { return soot.PhaseOptions.getBoolean(options, "model-lambdametafactory"); } }
3,721
35.851485
88
java
soot
soot-master/src/main/generated/options/soot/options/JBTROptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Type Assigner. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class JBTROptions { private Map<String, String> options; public JBTROptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Use older type assigner -- * Enables the older type assigner. * * This enables the older type assigner that was in use until May * 2008. The current type assigner is a reimplementation by Ben * Bellamy that uses an entirely new and faster algorithm which * always assigns the most narrow type possible. If * compare-type-assigners is on, this option causes the older type * assigner to execute first. (Otherwise the newer one is executed * first.) */ public boolean use_older_type_assigner() { return soot.PhaseOptions.getBoolean(options, "use-older-type-assigner"); } /** * Compare type assigners -- * Compares Ben Bellamy's and the older type assigner. * * Enables comparison (both runtime and results) of Ben Bellamy's * type assigner with the older type assigner that was in Soot. */ public boolean compare_type_assigners() { return soot.PhaseOptions.getBoolean(options, "compare-type-assigners"); } /** * Ignore Nullpointer Dereferences -- * Ignores virtual method calls on base objects that may only be * null. * * If this option is enabled, Soot wiil not check whether the base * object of a virtual method call can only be null. This will lead * to the null_type pseudo type being used in your Jimple code. */ public boolean ignore_nullpointer_dereferences() { return soot.PhaseOptions.getBoolean(options, "ignore-nullpointer-dereferences"); } }
2,899
32.333333
88
java
soot
soot-master/src/main/generated/options/soot/options/JJOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Java To Jimple Body Creation. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class JJOptions { private Map<String, String> options; public JJOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Use Original Names * Retain the original names for local variables when the source * includes those names. Otherwise, Soot gives variables generic * names based on their types. */ public boolean use_original_names() { return soot.PhaseOptions.getBoolean(options, "use-original-names"); } }
1,696
28.77193
88
java
soot
soot-master/src/main/generated/options/soot/options/LCMOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Lazy Code Motion. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class LCMOptions { private Map<String, String> options; public LCMOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Unroll * If true, perform loop inversion before doing the transformation. */ public boolean unroll() { return soot.PhaseOptions.getBoolean(options, "unroll"); } /** * Naive Side Effect Tester -- * Use a naive side effect analysis even if interprocedural * information is available. * * If Naive Side Effect Tester is set to true, Lazy Code Motion * uses the conservative side effect information provided by the * NaiveSideEffectTester class, even if interprocedural information * about side effects is available. The naive side effect analysis * is based solely on the information available locally about a * statement. It assumes, for example, that any method call has the * potential to write and read all instance and static fields in * the program. If Naive Side Effect Tester is set to false and * Soot is in whole program mode, then Lazy Code Motion uses the * side effect information provided by the PASideEffectTester * class. PASideEffectTester uses a points-to analysis to determine * which fields and statics may be written or read by a given * statement. If whole program analysis is not performed, naive * side effect information is used regardless of the setting of * Naive Side Effect Tester. */ public boolean naive_side_effect() { return soot.PhaseOptions.getBoolean(options, "naive-side-effect"); } public static final int safety_safe = 1; public static final int safety_medium = 2; public static final int safety_unsafe = 3; /** * Safety * This option controls which fields and statements are candidates * for code motion. */ public int safety() { String s = soot.PhaseOptions.getString(options, "safety"); if (s == null || s.isEmpty()) return safety_safe; if (s.equalsIgnoreCase("safe")) return safety_safe; if (s.equalsIgnoreCase("medium")) return safety_medium; if (s.equalsIgnoreCase("unsafe")) return safety_unsafe; throw new RuntimeException(String.format("Invalid value %s of phase option safety", s)); } }
3,596
33.586538
96
java
soot
soot-master/src/main/generated/options/soot/options/LockAllocator.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Lock Allocator. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class LockAllocator { private Map<String, String> options; public LockAllocator(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Perform Deadlock Avoidance -- * Perform Deadlock Avoidance. * * Perform Deadlock Avoidance by enforcing a lock ordering where * necessary. */ public boolean avoid_deadlock() { return soot.PhaseOptions.getBoolean(options, "avoid-deadlock"); } /** * Use Open Nesting -- * Use an open nesting model. * * Use an open nesting model, where inner transactions are allowed * to commit independently of any outer transaction. */ public boolean open_nesting() { return soot.PhaseOptions.getBoolean(options, "open-nesting"); } /** * Perform May-Happen-in-Parallel Analysis -- * Perform a May-Happen-in-Parallel analysis. * * Perform a May-Happen-in-Parallel analysis to assist in * allocating locks. */ public boolean do_mhp() { return soot.PhaseOptions.getBoolean(options, "do-mhp"); } /** * Perform Local Objects Analysis -- * Perform a Local-Objects analysis. * * Perform a Local-Objects analysis to assist in allocating locks. */ public boolean do_tlo() { return soot.PhaseOptions.getBoolean(options, "do-tlo"); } /** * Print Topological Graph -- * Print topological graph of transactions. * * Print a topological graph of the program's transactions in the * format used by the graphviz package. */ public boolean print_graph() { return soot.PhaseOptions.getBoolean(options, "print-graph"); } /** * Print Table -- * Print table of transactions. * * Print a table of information about the program's transactions. */ public boolean print_table() { return soot.PhaseOptions.getBoolean(options, "print-table"); } /** * Print Debugging Info -- * Print debugging info. * * Print debugging info, including every statement visited. */ public boolean print_debug() { return soot.PhaseOptions.getBoolean(options, "print-debug"); } public static final int locking_scheme_medium_grained = 1; public static final int locking_scheme_coarse_grained = 2; public static final int locking_scheme_single_static = 3; public static final int locking_scheme_leave_original = 4; /** * Locking Scheme -- * Selects the granularity of the generated lock allocation. * * Selects the granularity of the generated lock allocation */ public int locking_scheme() { String s = soot.PhaseOptions.getString(options, "locking-scheme"); if (s == null || s.isEmpty()) return locking_scheme_medium_grained; if (s.equalsIgnoreCase("medium-grained")) return locking_scheme_medium_grained; if (s.equalsIgnoreCase("coarse-grained")) return locking_scheme_coarse_grained; if (s.equalsIgnoreCase("single-static")) return locking_scheme_single_static; if (s.equalsIgnoreCase("leave-original")) return locking_scheme_leave_original; throw new RuntimeException(String.format("Invalid value %s of phase option locking-scheme", s)); } }
4,550
29.543624
104
java
soot
soot-master/src/main/generated/options/soot/options/MhpTransformer.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for May Happen in Parallel Analyses. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class MhpTransformer { private Map<String, String> options; public MhpTransformer(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } }
1,367
28.106383
88
java
soot
soot-master/src/main/generated/options/soot/options/NPCOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Null Pointer Checker. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class NPCOptions { private Map<String, String> options; public NPCOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Only Array Ref -- * Annotate only array references. * * Annotate only array-referencing instructions, instead of all * instructions that need null pointer checks. */ public boolean only_array_ref() { return soot.PhaseOptions.getBoolean(options, "only-array-ref"); } /** * Profiling -- * Insert instructions to count safe pointer accesses. * * Insert profiling instructions that at runtime count the number * of eliminated safe null pointer checks. The inserted profiling * code assumes the existence of a MultiCounter class implementing * the methods invoked. For details, see the NullPointerChecker * source code. */ public boolean profiling() { return soot.PhaseOptions.getBoolean(options, "profiling"); } }
2,184
29.347222
88
java
soot
soot-master/src/main/generated/options/soot/options/Options.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import soot.*; import java.util.*; /** * Soot command-line options parser. * * @author Ondrej Lhotak */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class Options extends OptionsBase { public Options(Singletons.Global g) { } public static Options v() { return G.v().soot_options_Options(); } public static final int src_prec_c = 1; public static final int src_prec_class = 1; public static final int src_prec_only_class = 2; public static final int src_prec_J = 3; public static final int src_prec_jimple = 3; public static final int src_prec_java = 4; public static final int src_prec_apk = 5; public static final int src_prec_apk_class_jimple = 6; public static final int src_prec_apk_c_j = 6; public static final int output_format_J = 1; public static final int output_format_jimple = 1; public static final int output_format_j = 2; public static final int output_format_jimp = 2; public static final int output_format_S = 3; public static final int output_format_shimple = 3; public static final int output_format_s = 4; public static final int output_format_shimp = 4; public static final int output_format_B = 5; public static final int output_format_baf = 5; public static final int output_format_b = 6; public static final int output_format_G = 7; public static final int output_format_grimple = 7; public static final int output_format_g = 8; public static final int output_format_grimp = 8; public static final int output_format_X = 9; public static final int output_format_xml = 9; public static final int output_format_dex = 10; public static final int output_format_force_dex = 11; public static final int output_format_n = 12; public static final int output_format_none = 12; public static final int output_format_jasmin = 13; public static final int output_format_c = 14; public static final int output_format_class = 14; public static final int output_format_d = 15; public static final int output_format_dava = 15; public static final int output_format_t = 16; public static final int output_format_template = 16; public static final int output_format_a = 17; public static final int output_format_asm = 17; public static final int java_version_default = 1; public static final int java_version_1_1 = 2; public static final int java_version_1 = 2; public static final int java_version_1_2 = 3; public static final int java_version_2 = 3; public static final int java_version_1_3 = 4; public static final int java_version_3 = 4; public static final int java_version_1_4 = 5; public static final int java_version_4 = 5; public static final int java_version_1_5 = 6; public static final int java_version_5 = 6; public static final int java_version_1_6 = 7; public static final int java_version_6 = 7; public static final int java_version_1_7 = 8; public static final int java_version_7 = 8; public static final int java_version_1_8 = 9; public static final int java_version_8 = 9; public static final int java_version_1_9 = 10; public static final int java_version_9 = 10; public static final int java_version_1_10 = 11; public static final int java_version_10 = 11; public static final int java_version_1_11 = 12; public static final int java_version_11 = 12; public static final int java_version_1_12 = 13; public static final int java_version_12 = 13; public static final int wrong_staticness_fail = 1; public static final int wrong_staticness_ignore = 2; public static final int wrong_staticness_fix = 3; public static final int wrong_staticness_fixstrict = 4; public static final int field_type_mismatches_fail = 1; public static final int field_type_mismatches_ignore = 2; public static final int field_type_mismatches_null = 3; public static final int throw_analysis_pedantic = 1; public static final int throw_analysis_unit = 2; public static final int throw_analysis_dalvik = 3; public static final int throw_analysis_auto_select = 4; public static final int check_init_throw_analysis_auto = 1; public static final int check_init_throw_analysis_pedantic = 2; public static final int check_init_throw_analysis_unit = 3; public static final int check_init_throw_analysis_dalvik = 4; @SuppressWarnings("unused") public boolean parse(String[] argv) { List<String> phaseOptions = new LinkedList<>(); for(int i = argv.length; i > 0; i--) { pushOption(argv[i-1]); } while(hasMoreOptions()) { String option = nextOption(); if(option.charAt(0) != '-') { classes.add(option); continue; } while(option.charAt(0) == '-') { option = option.substring(1); } if (false); else if (false || option.equals("coffi") ) coffi = true; else if (false || option.equals("jasmin-backend") ) jasmin_backend = true; else if (false || option.equals("h") || option.equals("help") ) help = true; else if (false || option.equals("pl") || option.equals("phase-list") ) phase_list = true; else if (false || option.equals("ph") || option.equals("phase-help") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (phase_help == null) phase_help = new LinkedList<>(); phase_help.add(value); } else if (false || option.equals("version") ) version = true; else if (false || option.equals("v") || option.equals("verbose") ) verbose = true; else if (false || option.equals("interactive-mode") ) interactive_mode = true; else if (false || option.equals("unfriendly-mode") ) unfriendly_mode = true; else if (false || option.equals("app") ) app = true; else if (false || option.equals("w") || option.equals("whole-program") ) whole_program = true; else if (false || option.equals("ws") || option.equals("whole-shimple") ) whole_shimple = true; else if (false || option.equals("fly") || option.equals("on-the-fly") ) on_the_fly = true; else if (false || option.equals("validate") ) validate = true; else if (false || option.equals("debug") ) debug = true; else if (false || option.equals("debug-resolver") ) debug_resolver = true; else if (false || option.equals("ignore-resolving-levels") ) ignore_resolving_levels = true; else if (false || option.equals("weak-map-structures") ) weak_map_structures = true; else if (false || option.equals("cp") || option.equals("soot-class-path") || option.equals("soot-classpath") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (soot_classpath.isEmpty()) soot_classpath = value; else { G.v().out.println("Duplicate values " + soot_classpath + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("soot-modulepath") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (soot_modulepath.isEmpty()) soot_modulepath = value; else { G.v().out.println("Duplicate values " + soot_modulepath + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("pp") || option.equals("prepend-classpath") ) prepend_classpath = true; else if (false || option.equals("ice") || option.equals("ignore-classpath-errors") ) ignore_classpath_errors = true; else if (false || option.equals("process-multiple-dex") ) process_multiple_dex = true; else if (false || option.equals("search-dex-in-archives") ) search_dex_in_archives = true; else if (false || option.equals("process-path") || option.equals("process-dir") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (process_dir == null) process_dir = new LinkedList<>(); process_dir.add(value); } else if (false || option.equals("process-jar-dir") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (process_jar_dir == null) process_jar_dir = new LinkedList<>(); process_jar_dir.add(value); } else if (false || option.equals("no-derive-java-version") ) derive_java_version = false; else if (false || option.equals("oaat") ) oaat = true; else if (false || option.equals("android-jars") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (android_jars.isEmpty()) android_jars = value; else { G.v().out.println("Duplicate values " + android_jars + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("force-android-jar") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (force_android_jar.isEmpty()) force_android_jar = value; else { G.v().out.println("Duplicate values " + force_android_jar + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("android-api-version") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if(android_api_version == -1) android_api_version = Integer.valueOf(value); else { G.v().out.println("Duplicate values " + android_api_version + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("ast-metrics") ) ast_metrics = true; else if (false || option.equals("src-prec") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("c") || value.equals("class") ) { if (src_prec != 0 && src_prec != src_prec_class) { G.v().out.println("Multiple values given for option " + option); return false; } src_prec = src_prec_class; } else if (false || value.equals("only-class") ) { if (src_prec != 0 && src_prec != src_prec_only_class) { G.v().out.println("Multiple values given for option " + option); return false; } src_prec = src_prec_only_class; } else if (false || value.equals("J") || value.equals("jimple") ) { if (src_prec != 0 && src_prec != src_prec_jimple) { G.v().out.println("Multiple values given for option " + option); return false; } src_prec = src_prec_jimple; } else if (false || value.equals("java") ) { if (src_prec != 0 && src_prec != src_prec_java) { G.v().out.println("Multiple values given for option " + option); return false; } src_prec = src_prec_java; } else if (false || value.equals("apk") ) { if (src_prec != 0 && src_prec != src_prec_apk) { G.v().out.println("Multiple values given for option " + option); return false; } src_prec = src_prec_apk; } else if (false || value.equals("apk-class-jimple") || value.equals("apk-c-j") ) { if (src_prec != 0 && src_prec != src_prec_apk_c_j) { G.v().out.println("Multiple values given for option " + option); return false; } src_prec = src_prec_apk_c_j; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("full-resolver") ) full_resolver = true; else if (false || option.equals("allow-phantom-refs") ) allow_phantom_refs = true; else if (false || option.equals("allow-phantom-elms") ) allow_phantom_elms = true; else if (false || option.equals("allow-cg-errors") ) allow_cg_errors = true; else if (false || option.equals("no-bodies-for-excluded") ) no_bodies_for_excluded = true; else if (false || option.equals("j2me") ) j2me = true; else if (false || option.equals("main-class") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (main_class.isEmpty()) main_class = value; else { G.v().out.println("Duplicate values " + main_class + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("polyglot") ) polyglot = true; else if (false || option.equals("permissive-resolving") ) permissive_resolving = true; else if (false || option.equals("no-drop-bodies-after-load") ) drop_bodies_after_load = false; else if (false || option.equals("d") || option.equals("output-dir") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (output_dir.isEmpty()) output_dir = value; else { G.v().out.println("Duplicate values " + output_dir + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("f") || option.equals("output-format") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("J") || value.equals("jimple") ) { if (output_format != 0 && output_format != output_format_jimple) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_jimple; } else if (false || value.equals("j") || value.equals("jimp") ) { if (output_format != 0 && output_format != output_format_jimp) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_jimp; } else if (false || value.equals("S") || value.equals("shimple") ) { if (output_format != 0 && output_format != output_format_shimple) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_shimple; } else if (false || value.equals("s") || value.equals("shimp") ) { if (output_format != 0 && output_format != output_format_shimp) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_shimp; } else if (false || value.equals("B") || value.equals("baf") ) { if (output_format != 0 && output_format != output_format_baf) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_baf; } else if (false || value.equals("b") ) { if (output_format != 0 && output_format != output_format_b) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_b; } else if (false || value.equals("G") || value.equals("grimple") ) { if (output_format != 0 && output_format != output_format_grimple) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_grimple; } else if (false || value.equals("g") || value.equals("grimp") ) { if (output_format != 0 && output_format != output_format_grimp) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_grimp; } else if (false || value.equals("X") || value.equals("xml") ) { if (output_format != 0 && output_format != output_format_xml) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_xml; } else if (false || value.equals("dex") ) { if (output_format != 0 && output_format != output_format_dex) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_dex; } else if (false || value.equals("force-dex") ) { if (output_format != 0 && output_format != output_format_force_dex) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_force_dex; } else if (false || value.equals("n") || value.equals("none") ) { if (output_format != 0 && output_format != output_format_none) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_none; } else if (false || value.equals("jasmin") ) { if (output_format != 0 && output_format != output_format_jasmin) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_jasmin; } else if (false || value.equals("c") || value.equals("class") ) { if (output_format != 0 && output_format != output_format_class) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_class; } else if (false || value.equals("d") || value.equals("dava") ) { if (output_format != 0 && output_format != output_format_dava) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_dava; } else if (false || value.equals("t") || value.equals("template") ) { if (output_format != 0 && output_format != output_format_template) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_template; } else if (false || value.equals("a") || value.equals("asm") ) { if (output_format != 0 && output_format != output_format_asm) { G.v().out.println("Multiple values given for option " + option); return false; } output_format = output_format_asm; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("java-version") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("default") ) { if (java_version != 0 && java_version != java_version_default) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_default; } else if (false || value.equals("1.1") || value.equals("1") ) { if (java_version != 0 && java_version != java_version_1) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_1; } else if (false || value.equals("1.2") || value.equals("2") ) { if (java_version != 0 && java_version != java_version_2) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_2; } else if (false || value.equals("1.3") || value.equals("3") ) { if (java_version != 0 && java_version != java_version_3) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_3; } else if (false || value.equals("1.4") || value.equals("4") ) { if (java_version != 0 && java_version != java_version_4) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_4; } else if (false || value.equals("1.5") || value.equals("5") ) { if (java_version != 0 && java_version != java_version_5) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_5; } else if (false || value.equals("1.6") || value.equals("6") ) { if (java_version != 0 && java_version != java_version_6) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_6; } else if (false || value.equals("1.7") || value.equals("7") ) { if (java_version != 0 && java_version != java_version_7) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_7; } else if (false || value.equals("1.8") || value.equals("8") ) { if (java_version != 0 && java_version != java_version_8) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_8; } else if (false || value.equals("1.9") || value.equals("9") ) { if (java_version != 0 && java_version != java_version_9) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_9; } else if (false || value.equals("1.10") || value.equals("10") ) { if (java_version != 0 && java_version != java_version_10) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_10; } else if (false || value.equals("1.11") || value.equals("11") ) { if (java_version != 0 && java_version != java_version_11) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_11; } else if (false || value.equals("1.12") || value.equals("12") ) { if (java_version != 0 && java_version != java_version_12) { G.v().out.println("Multiple values given for option " + option); return false; } java_version = java_version_12; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("outjar") || option.equals("output-jar") ) output_jar = true; else if (false || option.equals("hierarchy-dirs") ) hierarchy_dirs = true; else if (false || option.equals("xml-attributes") ) xml_attributes = true; else if (false || option.equals("print-tags") || option.equals("print-tags-in-output") ) print_tags_in_output = true; else if (false || option.equals("no-output-source-file-attribute") ) no_output_source_file_attribute = true; else if (false || option.equals("no-output-inner-classes-attribute") ) no_output_inner_classes_attribute = true; else if (false || option.equals("dump-body") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (dump_body == null) dump_body = new LinkedList<>(); dump_body.add(value); } else if (false || option.equals("dump-cfg") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (dump_cfg == null) dump_cfg = new LinkedList<>(); dump_cfg.add(value); } else if (false || option.equals("no-show-exception-dests") ) show_exception_dests = false; else if (false || option.equals("gzip") ) gzip = true; else if (false || option.equals("force-overwrite") ) force_overwrite = true; else if (false || option.equals("plugin") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (plugin == null) plugin = new LinkedList<>(); plugin.add(value); if (!loadPluginConfiguration(value)) { G.v().out.println("Failed to load plugin " + value); return false; } } else if (false || option.equals("wrong-staticness") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("fail") ) { if (wrong_staticness != 0 && wrong_staticness != wrong_staticness_fail) { G.v().out.println("Multiple values given for option " + option); return false; } wrong_staticness = wrong_staticness_fail; } else if (false || value.equals("ignore") ) { if (wrong_staticness != 0 && wrong_staticness != wrong_staticness_ignore) { G.v().out.println("Multiple values given for option " + option); return false; } wrong_staticness = wrong_staticness_ignore; } else if (false || value.equals("fix") ) { if (wrong_staticness != 0 && wrong_staticness != wrong_staticness_fix) { G.v().out.println("Multiple values given for option " + option); return false; } wrong_staticness = wrong_staticness_fix; } else if (false || value.equals("fixstrict") ) { if (wrong_staticness != 0 && wrong_staticness != wrong_staticness_fixstrict) { G.v().out.println("Multiple values given for option " + option); return false; } wrong_staticness = wrong_staticness_fixstrict; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("field-type-mismatches") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("fail") ) { if (field_type_mismatches != 0 && field_type_mismatches != field_type_mismatches_fail) { G.v().out.println("Multiple values given for option " + option); return false; } field_type_mismatches = field_type_mismatches_fail; } else if (false || value.equals("ignore") ) { if (field_type_mismatches != 0 && field_type_mismatches != field_type_mismatches_ignore) { G.v().out.println("Multiple values given for option " + option); return false; } field_type_mismatches = field_type_mismatches_ignore; } else if (false || value.equals("null") ) { if (field_type_mismatches != 0 && field_type_mismatches != field_type_mismatches_null) { G.v().out.println("Multiple values given for option " + option); return false; } field_type_mismatches = field_type_mismatches_null; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("p") || option.equals("phase-option") ) { if (!hasMoreOptions()) { G.v().out.println("No phase name given for option -" + option); return false; } String phaseName = nextOption(); if (!hasMoreOptions()) { G.v().out.println("No phase option given for option -" + option + " " + phaseName); return false; } String phaseOption = nextOption(); phaseOptions.add(phaseName); phaseOptions.add(phaseOption); } else if (false || option.equals("t") || option.equals("num-threads") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if(num_threads == -1) num_threads = Integer.valueOf(value); else { G.v().out.println("Duplicate values " + num_threads + " and " + value + " for option -" + option); return false; } } else if (false || option.equals("O") || option.equals("optimize") ) { pushOption("enabled:true"); pushOption("sop"); pushOption("-p"); pushOption("enabled:true"); pushOption("jop"); pushOption("-p"); pushOption("enabled:true"); pushOption("gop"); pushOption("-p"); pushOption("enabled:true"); pushOption("bop"); pushOption("-p"); pushOption("only-stack-locals:false"); pushOption("gb.a2"); pushOption("-p"); pushOption("only-stack-locals:false"); pushOption("gb.a1"); pushOption("-p"); } else if (false || option.equals("W") || option.equals("whole-optimize") ) { pushOption("-O"); pushOption("-w"); pushOption("enabled:true"); pushOption("wsop"); pushOption("-p"); pushOption("enabled:true"); pushOption("wjop"); pushOption("-p"); } else if (false || option.equals("via-grimp") ) via_grimp = true; else if (false || option.equals("via-shimple") ) via_shimple = true; else if (false || option.equals("throw-analysis") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("pedantic") ) { if (throw_analysis != 0 && throw_analysis != throw_analysis_pedantic) { G.v().out.println("Multiple values given for option " + option); return false; } throw_analysis = throw_analysis_pedantic; } else if (false || value.equals("unit") ) { if (throw_analysis != 0 && throw_analysis != throw_analysis_unit) { G.v().out.println("Multiple values given for option " + option); return false; } throw_analysis = throw_analysis_unit; } else if (false || value.equals("dalvik") ) { if (throw_analysis != 0 && throw_analysis != throw_analysis_dalvik) { G.v().out.println("Multiple values given for option " + option); return false; } throw_analysis = throw_analysis_dalvik; } else if (false || value.equals("auto-select") ) { if (throw_analysis != 0 && throw_analysis != throw_analysis_auto_select) { G.v().out.println("Multiple values given for option " + option); return false; } throw_analysis = throw_analysis_auto_select; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("check-init-ta") || option.equals("check-init-throw-analysis") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (false); else if (false || value.equals("auto") ) { if (check_init_throw_analysis != 0 && check_init_throw_analysis != check_init_throw_analysis_auto) { G.v().out.println("Multiple values given for option " + option); return false; } check_init_throw_analysis = check_init_throw_analysis_auto; } else if (false || value.equals("pedantic") ) { if (check_init_throw_analysis != 0 && check_init_throw_analysis != check_init_throw_analysis_pedantic) { G.v().out.println("Multiple values given for option " + option); return false; } check_init_throw_analysis = check_init_throw_analysis_pedantic; } else if (false || value.equals("unit") ) { if (check_init_throw_analysis != 0 && check_init_throw_analysis != check_init_throw_analysis_unit) { G.v().out.println("Multiple values given for option " + option); return false; } check_init_throw_analysis = check_init_throw_analysis_unit; } else if (false || value.equals("dalvik") ) { if (check_init_throw_analysis != 0 && check_init_throw_analysis != check_init_throw_analysis_dalvik) { G.v().out.println("Multiple values given for option " + option); return false; } check_init_throw_analysis = check_init_throw_analysis_dalvik; } else { G.v().out.println(String.format("Invalid value %s given for option -%s", value, option)); return false; } } else if (false || option.equals("omit-excepting-unit-edges") ) omit_excepting_unit_edges = true; else if (false || option.equals("trim-cfgs") ) { pushOption("enabled:true"); pushOption("jb.tt"); pushOption("-p"); pushOption("-omit-excepting-unit-edges"); pushOption("unit"); pushOption("-throw-analysis"); } else if (false || option.equals("ire") || option.equals("ignore-resolution-errors") ) ignore_resolution_errors = true; else if (false || option.equals("i") || option.equals("include") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (include == null) include = new LinkedList<>(); include.add(value); } else if (false || option.equals("x") || option.equals("exclude") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (exclude == null) exclude = new LinkedList<>(); exclude.add(value); } else if (false || option.equals("include-all") ) include_all = true; else if (false || option.equals("dynamic-class") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (dynamic_class == null) dynamic_class = new LinkedList<>(); dynamic_class.add(value); } else if (false || option.equals("dynamic-dir") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (dynamic_dir == null) dynamic_dir = new LinkedList<>(); dynamic_dir.add(value); } else if (false || option.equals("dynamic-package") ) { if (!hasMoreOptions()) { G.v().out.println("No value given for option -" + option); return false; } String value = nextOption(); if (dynamic_package == null) dynamic_package = new LinkedList<>(); dynamic_package.add(value); } else if (false || option.equals("keep-line-number") ) keep_line_number = true; else if (false || option.equals("keep-bytecode-offset") || option.equals("keep-offset") ) keep_offset = true; else if (false || option.equals("write-local-annotations") ) write_local_annotations = true; else if (false || option.equals("annot-purity") ) { pushOption("enabled:true"); pushOption("wjap.purity"); pushOption("-p"); pushOption("enabled:true"); pushOption("cg.spark"); pushOption("-p"); pushOption("-w"); } else if (false || option.equals("annot-nullpointer") ) { pushOption("enabled:true"); pushOption("tag.an"); pushOption("-p"); pushOption("enabled:true"); pushOption("jap.npc"); pushOption("-p"); } else if (false || option.equals("annot-arraybounds") ) { pushOption("enabled:true"); pushOption("tag.an"); pushOption("-p"); pushOption("enabled:true"); pushOption("jap.abc"); pushOption("-p"); pushOption("enabled:true"); pushOption("wjap.ra"); pushOption("-p"); } else if (false || option.equals("annot-side-effect") ) { pushOption("enabled:true"); pushOption("tag.dep"); pushOption("-p"); pushOption("enabled:true"); pushOption("jap.sea"); pushOption("-p"); pushOption("-w"); } else if (false || option.equals("annot-fieldrw") ) { pushOption("enabled:true"); pushOption("tag.fieldrw"); pushOption("-p"); pushOption("enabled:true"); pushOption("jap.fieldrw"); pushOption("-p"); pushOption("-w"); } else if (false || option.equals("time") ) time = true; else if (false || option.equals("subtract-gc") ) subtract_gc = true; else if (false || option.equals("no-writeout-body-releasing") ) no_writeout_body_releasing = true; else { G.v().out.println("Invalid option -" + option); return false; } } Iterator<String> it = phaseOptions.iterator(); while(it.hasNext()) { String phaseName = it.next(); String phaseOption = it.next(); if(!setPhaseOption(phaseName, "enabled:true")) return false; } it = phaseOptions.iterator(); while(it.hasNext()) { String phaseName = it.next(); String phaseOption = it.next(); if(!setPhaseOption(phaseName, phaseOption)) return false; } return true; } public boolean coffi() { return coffi; } private boolean coffi = false; public void set_coffi(boolean setting) { coffi = setting; } public boolean jasmin_backend() { return jasmin_backend; } private boolean jasmin_backend = false; public void set_jasmin_backend(boolean setting) { jasmin_backend = setting; } public boolean help() { return help; } private boolean help = false; public void set_help(boolean setting) { help = setting; } public boolean phase_list() { return phase_list; } private boolean phase_list = false; public void set_phase_list(boolean setting) { phase_list = setting; } public List<String> phase_help() { return phase_help == null ? Collections.emptyList() : phase_help; } public void set_phase_help(List<String> setting) { phase_help = setting; } private List<String> phase_help = null; public boolean version() { return version; } private boolean version = false; public void set_version(boolean setting) { version = setting; } public boolean verbose() { return verbose; } private boolean verbose = false; public void set_verbose(boolean setting) { verbose = setting; } public boolean interactive_mode() { return interactive_mode; } private boolean interactive_mode = false; public void set_interactive_mode(boolean setting) { interactive_mode = setting; } public boolean unfriendly_mode() { return unfriendly_mode; } private boolean unfriendly_mode = false; public void set_unfriendly_mode(boolean setting) { unfriendly_mode = setting; } public boolean app() { return app; } private boolean app = false; public void set_app(boolean setting) { app = setting; } public boolean whole_program() { return whole_program; } private boolean whole_program = false; public void set_whole_program(boolean setting) { whole_program = setting; } public boolean whole_shimple() { return whole_shimple; } private boolean whole_shimple = false; public void set_whole_shimple(boolean setting) { whole_shimple = setting; } public boolean on_the_fly() { return on_the_fly; } private boolean on_the_fly = false; public void set_on_the_fly(boolean setting) { on_the_fly = setting; } public boolean validate() { return validate; } private boolean validate = false; public void set_validate(boolean setting) { validate = setting; } public boolean debug() { return debug; } private boolean debug = false; public void set_debug(boolean setting) { debug = setting; } public boolean debug_resolver() { return debug_resolver; } private boolean debug_resolver = false; public void set_debug_resolver(boolean setting) { debug_resolver = setting; } public boolean ignore_resolving_levels() { return ignore_resolving_levels; } private boolean ignore_resolving_levels = false; public void set_ignore_resolving_levels(boolean setting) { ignore_resolving_levels = setting; } public boolean weak_map_structures() { return weak_map_structures; } private boolean weak_map_structures = false; public void set_weak_map_structures(boolean setting) { weak_map_structures = setting; } public String soot_classpath() { return soot_classpath; } public void set_soot_classpath(String setting) { soot_classpath = setting; } private String soot_classpath = ""; public String soot_modulepath() { return soot_modulepath; } public void set_soot_modulepath(String setting) { soot_modulepath = setting; } private String soot_modulepath = ""; public boolean prepend_classpath() { return prepend_classpath; } private boolean prepend_classpath = false; public void set_prepend_classpath(boolean setting) { prepend_classpath = setting; } public boolean ignore_classpath_errors() { return ignore_classpath_errors; } private boolean ignore_classpath_errors = false; public void set_ignore_classpath_errors(boolean setting) { ignore_classpath_errors = setting; } public boolean process_multiple_dex() { return process_multiple_dex; } private boolean process_multiple_dex = false; public void set_process_multiple_dex(boolean setting) { process_multiple_dex = setting; } public boolean search_dex_in_archives() { return search_dex_in_archives; } private boolean search_dex_in_archives = false; public void set_search_dex_in_archives(boolean setting) { search_dex_in_archives = setting; } public List<String> process_dir() { return process_dir == null ? Collections.emptyList() : process_dir; } public void set_process_dir(List<String> setting) { process_dir = setting; } private List<String> process_dir = null; public List<String> process_jar_dir() { return process_jar_dir == null ? Collections.emptyList() : process_jar_dir; } public void set_process_jar_dir(List<String> setting) { process_jar_dir = setting; } private List<String> process_jar_dir = null; public boolean derive_java_version() { return derive_java_version; } private boolean derive_java_version = true; public void set_derive_java_version(boolean setting) { derive_java_version = setting; } public boolean oaat() { return oaat; } private boolean oaat = false; public void set_oaat(boolean setting) { oaat = setting; } public String android_jars() { return android_jars; } public void set_android_jars(String setting) { android_jars = setting; } private String android_jars = ""; public String force_android_jar() { return force_android_jar; } public void set_force_android_jar(String setting) { force_android_jar = setting; } private String force_android_jar = ""; public int android_api_version() { return android_api_version; } public void set_android_api_version(int setting) { android_api_version = setting; } private int android_api_version = -1; public boolean ast_metrics() { return ast_metrics; } private boolean ast_metrics = false; public void set_ast_metrics(boolean setting) { ast_metrics = setting; } public int src_prec() { if (src_prec == 0) return src_prec_class; return src_prec; } public void set_src_prec(int setting) { src_prec = setting; } private int src_prec = 0; public boolean full_resolver() { return full_resolver; } private boolean full_resolver = false; public void set_full_resolver(boolean setting) { full_resolver = setting; } public boolean allow_phantom_refs() { return allow_phantom_refs; } private boolean allow_phantom_refs = false; public void set_allow_phantom_refs(boolean setting) { allow_phantom_refs = setting; } public boolean allow_phantom_elms() { return allow_phantom_elms; } private boolean allow_phantom_elms = false; public void set_allow_phantom_elms(boolean setting) { allow_phantom_elms = setting; } public boolean allow_cg_errors() { return allow_cg_errors; } private boolean allow_cg_errors = false; public void set_allow_cg_errors(boolean setting) { allow_cg_errors = setting; } public boolean no_bodies_for_excluded() { return no_bodies_for_excluded; } private boolean no_bodies_for_excluded = false; public void set_no_bodies_for_excluded(boolean setting) { no_bodies_for_excluded = setting; } public boolean j2me() { return j2me; } private boolean j2me = false; public void set_j2me(boolean setting) { j2me = setting; } public String main_class() { return main_class; } public void set_main_class(String setting) { main_class = setting; } private String main_class = ""; public boolean polyglot() { return polyglot; } private boolean polyglot = false; public void set_polyglot(boolean setting) { polyglot = setting; } public boolean permissive_resolving() { return permissive_resolving; } private boolean permissive_resolving = false; public void set_permissive_resolving(boolean setting) { permissive_resolving = setting; } public boolean drop_bodies_after_load() { return drop_bodies_after_load; } private boolean drop_bodies_after_load = true; public void set_drop_bodies_after_load(boolean setting) { drop_bodies_after_load = setting; } public String output_dir() { return output_dir; } public void set_output_dir(String setting) { output_dir = setting; } private String output_dir = ""; public int output_format() { if (output_format == 0) return output_format_class; return output_format; } public void set_output_format(int setting) { output_format = setting; } private int output_format = 0; public int java_version() { return java_version; } public void set_java_version(int setting) { java_version = setting; } private int java_version = 0; public boolean output_jar() { return output_jar; } private boolean output_jar = false; public void set_output_jar(boolean setting) { output_jar = setting; } public boolean hierarchy_dirs() { return hierarchy_dirs; } private boolean hierarchy_dirs = false; public void set_hierarchy_dirs(boolean setting) { hierarchy_dirs = setting; } public boolean xml_attributes() { return xml_attributes; } private boolean xml_attributes = false; public void set_xml_attributes(boolean setting) { xml_attributes = setting; } public boolean print_tags_in_output() { return print_tags_in_output; } private boolean print_tags_in_output = false; public void set_print_tags_in_output(boolean setting) { print_tags_in_output = setting; } public boolean no_output_source_file_attribute() { return no_output_source_file_attribute; } private boolean no_output_source_file_attribute = false; public void set_no_output_source_file_attribute(boolean setting) { no_output_source_file_attribute = setting; } public boolean no_output_inner_classes_attribute() { return no_output_inner_classes_attribute; } private boolean no_output_inner_classes_attribute = false; public void set_no_output_inner_classes_attribute(boolean setting) { no_output_inner_classes_attribute = setting; } public List<String> dump_body() { return dump_body == null ? Collections.emptyList() : dump_body; } public void set_dump_body(List<String> setting) { dump_body = setting; } private List<String> dump_body = null; public List<String> dump_cfg() { return dump_cfg == null ? Collections.emptyList() : dump_cfg; } public void set_dump_cfg(List<String> setting) { dump_cfg = setting; } private List<String> dump_cfg = null; public boolean show_exception_dests() { return show_exception_dests; } private boolean show_exception_dests = true; public void set_show_exception_dests(boolean setting) { show_exception_dests = setting; } public boolean gzip() { return gzip; } private boolean gzip = false; public void set_gzip(boolean setting) { gzip = setting; } public boolean force_overwrite() { return force_overwrite; } private boolean force_overwrite = false; public void set_force_overwrite(boolean setting) { force_overwrite = setting; } public List<String> plugin() { return plugin == null ? Collections.emptyList() : plugin; } public void set_plugin(List<String> setting) { plugin = setting; } private List<String> plugin = null; public int wrong_staticness() { if (wrong_staticness == 0) return wrong_staticness_fixstrict; return wrong_staticness; } public void set_wrong_staticness(int setting) { wrong_staticness = setting; } private int wrong_staticness = 0; public int field_type_mismatches() { if (field_type_mismatches == 0) return field_type_mismatches_null; return field_type_mismatches; } public void set_field_type_mismatches(int setting) { field_type_mismatches = setting; } private int field_type_mismatches = 0; public int num_threads() { return num_threads; } public void set_num_threads(int setting) { num_threads = setting; } private int num_threads = -1; public boolean via_grimp() { return via_grimp; } private boolean via_grimp = false; public void set_via_grimp(boolean setting) { via_grimp = setting; } public boolean via_shimple() { return via_shimple; } private boolean via_shimple = false; public void set_via_shimple(boolean setting) { via_shimple = setting; } public int throw_analysis() { if (throw_analysis == 0) return throw_analysis_auto_select; return throw_analysis; } public void set_throw_analysis(int setting) { throw_analysis = setting; } private int throw_analysis = 0; public int check_init_throw_analysis() { if (check_init_throw_analysis == 0) return check_init_throw_analysis_auto; return check_init_throw_analysis; } public void set_check_init_throw_analysis(int setting) { check_init_throw_analysis = setting; } private int check_init_throw_analysis = 0; public boolean omit_excepting_unit_edges() { return omit_excepting_unit_edges; } private boolean omit_excepting_unit_edges = false; public void set_omit_excepting_unit_edges(boolean setting) { omit_excepting_unit_edges = setting; } public boolean ignore_resolution_errors() { return ignore_resolution_errors; } private boolean ignore_resolution_errors = false; public void set_ignore_resolution_errors(boolean setting) { ignore_resolution_errors = setting; } public List<String> include() { return include == null ? Collections.emptyList() : include; } public void set_include(List<String> setting) { include = setting; } private List<String> include = null; public List<String> exclude() { return exclude == null ? Collections.emptyList() : exclude; } public void set_exclude(List<String> setting) { exclude = setting; } private List<String> exclude = null; public boolean include_all() { return include_all; } private boolean include_all = false; public void set_include_all(boolean setting) { include_all = setting; } public List<String> dynamic_class() { return dynamic_class == null ? Collections.emptyList() : dynamic_class; } public void set_dynamic_class(List<String> setting) { dynamic_class = setting; } private List<String> dynamic_class = null; public List<String> dynamic_dir() { return dynamic_dir == null ? Collections.emptyList() : dynamic_dir; } public void set_dynamic_dir(List<String> setting) { dynamic_dir = setting; } private List<String> dynamic_dir = null; public List<String> dynamic_package() { return dynamic_package == null ? Collections.emptyList() : dynamic_package; } public void set_dynamic_package(List<String> setting) { dynamic_package = setting; } private List<String> dynamic_package = null; public boolean keep_line_number() { return keep_line_number; } private boolean keep_line_number = false; public void set_keep_line_number(boolean setting) { keep_line_number = setting; } public boolean keep_offset() { return keep_offset; } private boolean keep_offset = false; public void set_keep_offset(boolean setting) { keep_offset = setting; } public boolean write_local_annotations() { return write_local_annotations; } private boolean write_local_annotations = false; public void set_write_local_annotations(boolean setting) { write_local_annotations = setting; } public boolean time() { return time; } private boolean time = false; public void set_time(boolean setting) { time = setting; } public boolean subtract_gc() { return subtract_gc; } private boolean subtract_gc = false; public void set_subtract_gc(boolean setting) { subtract_gc = setting; } public boolean no_writeout_body_releasing() { return no_writeout_body_releasing; } private boolean no_writeout_body_releasing = false; public void set_no_writeout_body_releasing(boolean setting) { no_writeout_body_releasing = setting; } public String getUsage() { return "" + "\nGeneral Options:\n" + padOpt("-coffi", "Use the good old Coffi front end for parsing Java bytecode (instead of using ASM).") + padOpt("-jasmin-backend", "Use the Jasmin back end for generating Java bytecode (instead of using ASM).") + padOpt("-h, -help", "Display help and exit") + padOpt("-pl, -phase-list", "Print list of available phases") + padOpt("-ph ARG -phase-help ARG", "Print help for specified ARG") + padOpt("-version", "Display version information and exit") + padOpt("-v, -verbose", "Verbose mode") + padOpt("-interactive-mode", "Run in interactive mode") + padOpt("-unfriendly-mode", "Allow Soot to run with no command-line options") + padOpt("-app", "Run in application mode") + padOpt("-w, -whole-program", "Run in whole-program mode") + padOpt("-ws, -whole-shimple", "Run in whole-shimple mode") + padOpt("-fly, -on-the-fly", "Run in on-the-fly mode") + padOpt("-validate", "Run internal validation on bodies") + padOpt("-debug", "Print various Soot debugging info") + padOpt("-debug-resolver", "Print debugging info from SootResolver") + padOpt("-ignore-resolving-levels", "Ignore mismatching resolving levels") + padOpt("-weak-map-structures", "Use weak references in Scene to prevent memory leakage when removing many classes/methods/locals") + "\nInput Options:\n" + padOpt("-cp ARG -soot-class-path ARG -soot-classpath ARG", "Use ARG as the classpath for finding classes.") + padOpt("-soot-modulepath ARG", "Use ARG as the modulepath for finding classes.") + padOpt("-pp, -prepend-classpath", "Prepend the given soot classpath to the default classpath.") + padOpt("-ice, -ignore-classpath-errors", "Ignores invalid entries on the Soot classpath.") + padOpt("-process-multiple-dex", "Process all DEX files found in APK.") + padOpt("-search-dex-in-archives", "Also includes Jar and Zip files when searching for DEX files under the provided classpath.") + padOpt("-process-path ARG -process-dir ARG", "Process all classes found in ARG (but not classes within JAR files in ARG , use process-jar-dir for that)") + padOpt("-process-jar-dir ARG", "Process all classes found in JAR files found in ARG") + padOpt("-derive-java-version", "Java version for output and internal processing will be derived from the given input classes") + padOpt("-oaat", "From the process-dir, processes one class at a time.") + padOpt("-android-jars ARG", "Use ARG as the path for finding the android.jar file") + padOpt("-force-android-jar ARG", "Force Soot to use ARG as the path for the android.jar file.") + padOpt("-ast-metrics", "Compute AST Metrics if performing java to jimple") + padOpt("-src-prec ARG", "Sets source precedence to ARG files") + padVal("c class (default)", "Favour class files as Soot source") + padVal("only-class", "Use only class files as Soot source") + padVal("J jimple", "Favour Jimple files as Soot source") + padVal("java", "Favour Java files as Soot source") + padVal("apk", "Favour APK files as Soot source") + padVal("apk-class-jimple apk-c-j", "Favour APK files as Soot source, disregard Java files") + padOpt("-full-resolver", "Force transitive resolving of referenced classes") + padOpt("-allow-phantom-refs", "Allow unresolved classes; may cause errors") + padOpt("-allow-phantom-elms", "Allow phantom methods and fields in non-phantom classes") + padOpt("-allow-cg-errors", "Allow Errors during callgraph construction") + padOpt("-no-bodies-for-excluded", "Do not load bodies for excluded classes") + padOpt("-j2me", "Use J2ME mode; changes assignment of types") + padOpt("-main-class ARG", "Sets the main class for whole-program analysis.") + padOpt("-polyglot", "Use Java 1.4 Polyglot frontend instead of JastAdd") + padOpt("-permissive-resolving", "Use alternative sources when classes cannot be found using the normal resolving strategy") + padOpt("-drop-bodies-after-load", "Drop the method source after it has served its purpose of loading the method body") + "\nOutput Options:\n" + padOpt("-d ARG -output-dir ARG", "Store output files in ARG") + padOpt("-f ARG -output-format ARG", "Set output format for Soot") + padVal("J jimple", "Produce .jimple Files") + padVal("j jimp", "Produce .jimp (abbreviated Jimple) files") + padVal("S shimple", "Produce .shimple files") + padVal("s shimp", "Produce .shimp (abbreviated Shimple) files") + padVal("B baf", "Produce .baf files") + padVal("b", "Produce .b (abbreviated Baf) files") + padVal("G grimple", "Produce .grimple files") + padVal("g grimp", "Produce .grimp (abbreviated Grimp) files") + padVal("X xml", "Produce .xml Files") + padVal("dex", "Produce Dalvik Virtual Machine files") + padVal("force-dex", "Produce Dalvik DEX files") + padVal("n none", "Produce no output") + padVal("jasmin", "Produce .jasmin files") + padVal("c class (default)", "Produce .class Files") + padVal("d dava", "Produce dava-decompiled .java files") + padVal("t template", "Produce .java files with Jimple templates.") + padVal("a asm", "Produce .asm files as textual bytecode representation generated with the ASM back end.") + padOpt("-java-version ARG", "Force Java version of bytecode generated by Soot.") + padVal("default", "Let Soot determine Java version of generated bytecode.") + padVal("1.1 1", "Force Java 1.1 as output version.") + padVal("1.2 2", "Force Java 1.2 as output version.") + padVal("1.3 3", "Force Java 1.3 as output version.") + padVal("1.4 4", "Force Java 1.4 as output version.") + padVal("1.5 5", "Force Java 1.5 as output version.") + padVal("1.6 6", "Force Java 1.6 as output version.") + padVal("1.7 7", "Force Java 1.7 as output version.") + padVal("1.8 8", "Force Java 1.8 as output version.") + padVal("1.9 9", "Force Java 1.9 as output version (Experimental).") + padVal("1.10 10", "Force Java 1.10 as output version (Experimental).") + padVal("1.11 11", "Force Java 1.11 as output version (Experimental).") + padVal("1.12 12", "Force Java 1.12 as output version (Experimental).") + padOpt("-outjar, -output-jar", "Make output dir a Jar file instead of dir") + padOpt("-hierarchy-dirs", "Generate class hierarchy directories for Jimple/Shimple") + padOpt("-xml-attributes", "Save tags to XML attributes for Eclipse") + padOpt("-print-tags, -print-tags-in-output", "Print tags in output files after stmt") + padOpt("-no-output-source-file-attribute", "Don't output Source File Attribute when producing class files") + padOpt("-no-output-inner-classes-attribute", "Don't output inner classes attribute in class files") + padOpt("-dump-body ARG", "Dump the internal representation of each method before and after phase ARG") + padOpt("-dump-cfg ARG", "Dump the internal representation of each CFG constructed during phase ARG") + padOpt("-show-exception-dests", "Include exception destination edges as well as CFG edges in dumped CFGs") + padOpt("-gzip", "GZip IR output files") + padOpt("-force-overwrite", "Force Overwrite Output Files") + "\nProcessing Options:\n" + padOpt("-plugin ARG", "Load all plugins found in ARG") + padOpt("-wrong-staticness ARG", "Ignores or fixes errors due to wrong staticness") + padVal("fail", "Raise an error when wrong staticness is detected") + padVal("ignore", "Ignore errors caused by wrong staticness") + padVal("fix", "Transparently fix staticness errors") + padVal("fixstrict (default)", "Transparently fix staticness errors, but do not ignore remaining errors") + padOpt("-field-type-mismatches ARG", "Specifies how errors shall be handled when resolving field references with mismatching types") + padVal("fail", "Raise an error when a field type mismatch is detected") + padVal("ignore", "Ignore field type mismatches") + padVal("null (default)", "Return null in case of type mismatch") + padOpt("-p ARG -phase-option ARG", "Set PHASE 's OPT option to VALUE") + padOpt("-O, -optimize", "Perform intraprocedural optimizations") + padOpt("-W, -whole-optimize", "Perform whole program optimizations") + padOpt("-via-grimp", "Convert to bytecode via Grimp instead of via Baf") + padOpt("-via-shimple", "Enable Shimple SSA representation") + padOpt("-throw-analysis ARG", "") + padVal("pedantic", "Pedantically conservative throw analysis") + padVal("unit", "Unit Throw Analysis") + padVal("dalvik", "Dalvik Throw Analysis") + padVal("auto-select (default)", "Automatically Select Throw Analysis") + padOpt("-check-init-ta ARG -check-init-throw-analysis ARG", "") + padVal("auto (default)", "Automatically select a throw analysis") + padVal("pedantic", "Pedantically conservative throw analysis") + padVal("unit", "Unit Throw Analysis") + padVal("dalvik", "Dalvik Throw Analysis") + padOpt("-omit-excepting-unit-edges", "Omit CFG edges to handlers from excepting units which lack side effects") + padOpt("-trim-cfgs", "Trim unrealizable exceptional edges from CFGs") + padOpt("-ire, -ignore-resolution-errors", "Does not throw an exception when a program references an undeclared field or method.") + "\nApplication Mode Options:\n" + padOpt("-i ARG -include ARG", "Include classes in ARG as application classes") + padOpt("-x ARG -exclude ARG", "Exclude classes in ARG from application classes") + padOpt("-include-all", "Set default excluded packages to empty list") + padOpt("-dynamic-class ARG", "Note that ARG may be loaded dynamically") + padOpt("-dynamic-dir ARG", "Mark all classes in ARG as potentially dynamic") + padOpt("-dynamic-package ARG", "Marks classes in ARG as potentially dynamic") + "\nInput Attribute Options:\n" + padOpt("-keep-line-number", "Keep line number tables") + padOpt("-keep-bytecode-offset, -keep-offset", "Attach bytecode offset to IR") + "\nOutput Attribute Options:\n" + padOpt("-write-local-annotations", "Write out debug annotations on local names") + "\nAnnotation Options:\n" + padOpt("-annot-purity", "Emit purity attributes") + padOpt("-annot-nullpointer", "Emit null pointer attributes") + padOpt("-annot-arraybounds", "Emit array bounds check attributes") + padOpt("-annot-side-effect", "Emit side-effect attributes") + padOpt("-annot-fieldrw", "Emit field read/write attributes") + "\nMiscellaneous Options:\n" + padOpt("-time", "Report time required for transformations") + padOpt("-subtract-gc", "Subtract gc from time") + padOpt("-no-writeout-body-releasing", "Disables the release of method bodies after writeout. This flag is used internally."); } public String getPhaseList() { return "" + padOpt("jb", "Creates a JimpleBody for each method") + padVal("jb.dtr", "Reduces chains of catch-all traps") + padVal("jb.ese", "Removes empty switch statements") + padVal("jb.ls", "Local splitter: one local per DU-UD web") + padVal("jb.sils", "Splits primitive locals used as different types") + padVal("jb.a", "Aggregator: removes some unnecessary copies") + padVal("jb.ule", "Unused local eliminator") + padVal("jb.tr", "Assigns types to locals") + padVal("jb.ulp", "Local packer: minimizes number of locals") + padVal("jb.lns", "Local name standardizer") + padVal("jb.cp", "Copy propagator") + padVal("jb.dae", "Dead assignment eliminator") + padVal("jb.cp-ule", "Post-copy propagation unused local eliminator") + padVal("jb.lp", "Local packer: minimizes number of locals") + padVal("jb.ne", "Nop eliminator") + padVal("jb.uce", "Unreachable code eliminator") + padVal("jb.tt", "Trap Tightener") + padVal("jb.cbf", "Conditional branch folder") + padOpt("jj", "Creates a JimpleBody for each method directly from source") + padVal("jj.ls", "Local splitter: one local per DU-UD web") + padVal("jj.sils", "Splits primitive locals used as different types") + padVal("jj.a", "Aggregator: removes some unnecessary copies") + padVal("jj.ule", "Unused local eliminator") + padVal("jj.tr", "Assigns types to locals") + padVal("jj.ulp", "Local packer: minimizes number of locals") + padVal("jj.lns", "Local name standardizer") + padVal("jj.cp", "Copy propagator") + padVal("jj.dae", "Dead assignment eliminator") + padVal("jj.cp-ule", "Post-copy propagation unused local eliminator") + padVal("jj.lp", "Local packer: minimizes number of locals") + padVal("jj.ne", "Nop eliminator") + padVal("jj.uce", "Unreachable code eliminator") + padOpt("wjpp", "Whole Jimple Pre-processing Pack") + padVal("wjpp.cimbt", "Replaces base objects of calls to Method.invoke() that are string constants by locals") + padOpt("wspp", "Whole Shimple Pre-processing Pack") + padOpt("cg", "Call graph constructor") + padVal("cg.cha", "Builds call graph using Class Hierarchy Analysis") + padVal("cg.spark", "Spark points-to analysis framework") + padVal("cg.paddle", "Paddle points-to analysis framework") + padOpt("wstp", "Whole-shimple transformation pack") + padOpt("wsop", "Whole-shimple optimization pack") + padOpt("wjtp", "Whole-jimple transformation pack") + padVal("wjtp.mhp", "Determines what statements may be run concurrently") + padVal("wjtp.tn", "Finds critical sections, allocates locks") + padVal("wjtp.rdc", "Rename duplicated classes when the file system is not case sensitive") + padOpt("wjop", "Whole-jimple optimization pack") + padVal("wjop.smb", "Static method binder: Devirtualizes monomorphic calls") + padVal("wjop.si", "Static inliner: inlines monomorphic calls") + padOpt("wjap", "Whole-jimple annotation pack: adds interprocedural tags") + padVal("wjap.ra", "Rectangular array finder") + padVal("wjap.umt", "Tags all unreachable methods") + padVal("wjap.uft", "Tags all unreachable fields") + padVal("wjap.tqt", "Tags all qualifiers that could be tighter") + padVal("wjap.cgg", "Creates graphical call graph.") + padVal("wjap.purity", "Emit purity attributes") + padOpt("shimple", "Sets parameters for Shimple SSA form") + padOpt("stp", "Shimple transformation pack") + padOpt("sop", "Shimple optimization pack") + padVal("sop.cpf", "Shimple constant propagator and folder") + padOpt("jtp", "Jimple transformation pack: intraprocedural analyses added to Soot") + padOpt("jop", "Jimple optimization pack (intraprocedural)") + padVal("jop.cse", "Common subexpression eliminator") + padVal("jop.bcm", "Busy code motion: unaggressive partial redundancy elimination") + padVal("jop.lcm", "Lazy code motion: aggressive partial redundancy elimination") + padVal("jop.cp", "Copy propagator") + padVal("jop.cpf", "Constant propagator and folder") + padVal("jop.cbf", "Conditional branch folder") + padVal("jop.dae", "Dead assignment eliminator") + padVal("jop.nce", "Null Check Eliminator") + padVal("jop.uce1", "Unreachable code eliminator, pass 1") + padVal("jop.ubf1", "Unconditional branch folder, pass 1") + padVal("jop.uce2", "Unreachable code eliminator, pass 2") + padVal("jop.ubf2", "Unconditional branch folder, pass 2") + padVal("jop.ule", "Unused local eliminator") + padOpt("jap", "Jimple annotation pack: adds intraprocedural tags") + padVal("jap.npc", "Null pointer checker") + padVal("jap.npcolorer", "Null pointer colourer: tags references for eclipse") + padVal("jap.abc", "Array bound checker") + padVal("jap.profiling", "Instruments null pointer and array checks") + padVal("jap.sea", "Side effect tagger") + padVal("jap.fieldrw", "Field read/write tagger") + padVal("jap.cgtagger", "Call graph tagger") + padVal("jap.parity", "Parity tagger") + padVal("jap.pat", "Colour-codes method parameters that may be aliased") + padVal("jap.lvtagger", "Creates color tags for live variables") + padVal("jap.rdtagger", "Creates link tags for reaching defs") + padVal("jap.che", "Indicates whether cast checks can be eliminated") + padVal("jap.umt", "Inserts assertions into unreachable methods") + padVal("jap.lit", "Tags loop invariants") + padVal("jap.aet", "Tags statements with sets of available expressions") + padVal("jap.dmt", "Tags dominators of statement") + padOpt("gb", "Creates a GrimpBody for each method") + padVal("gb.a1", "Aggregator: removes some copies, pre-folding") + padVal("gb.cf", "Constructor folder") + padVal("gb.a2", "Aggregator: removes some copies, post-folding") + padVal("gb.ule", "Unused local eliminator") + padOpt("gop", "Grimp optimization pack") + padOpt("bb", "Creates Baf bodies") + padVal("bb.lso", "Load store optimizer") + padVal("bb.sco", "Store chain optimizer") + padVal("bb.pho", "Peephole optimizer") + padVal("bb.ule", "Unused local eliminator") + padVal("bb.lp", "Local packer: minimizes number of locals") + padVal("bb.ne", "Nop eliminator") + padOpt("bop", "Baf optimization pack") + padOpt("tag", "Tag aggregator: turns tags into attributes") + padVal("tag.ln", "Line number aggregator") + padVal("tag.an", "Array bounds and null pointer check aggregator") + padVal("tag.dep", "Dependence aggregator") + padVal("tag.fieldrw", "Field read/write aggregator") + padOpt("db", "Dummy phase to store options for Dava") + padVal("db.transformations", "The Dava back-end with all its transformations") + padVal("db.renamer", "Apply heuristics based naming of local variables") + padVal("db.deobfuscate", "Apply de-obfuscation analyses") + padVal("db.force-recompile", "Try to get recompilable code."); } public String getPhaseHelp(String phaseName) { if (phaseName.equals("jb")) return "Phase " + phaseName + ":\n" + "\nJimple Body Creation creates a JimpleBody for each input method, \nusing either asm, to read .class files, or the jimple parser, to \nread .jimple files." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("use-original-names (false)", "") + padOpt("preserve-source-annotations (false)", "") + padOpt("stabilize-local-names (false)", "") + padOpt("model-lambdametafactory (true)", "Replace dynamic invoke instructions to the LambdaMetafactory by static invokes to a synthetic LambdaMetafactory implementation."); if (phaseName.equals("jb.dtr")) return "Phase " + phaseName + ":\n" + "\nThis transformer detects cases in which the same code block is \ncovered by two different catch all traps with different \nexception handlers (A and B), and if there is at the same time a \nthird catch all trap that covers the second handler B and jumps \nto A, then the second trap is unnecessary, because it is already \ncovered by a combination of the other two traps. This \ntransformer removes the unnecessary trap." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.ese")) return "Phase " + phaseName + ":\n" + "\nThe Empty Switch Eliminator detects and removes switch \nstatements that have no data labels. Instead, the code is \ntransformed to contain a single jump statement to the default \nlabel." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.ls")) return "Phase " + phaseName + ":\n" + "\nThe Local Splitter identifies DU-UD webs for local variables and \nintroduces new variables so that each disjoint web is associated \nwith a single local." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.sils")) return "Phase " + phaseName + ":\n" + "\n" + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.a")) return "Phase " + phaseName + ":\n" + "\nThe Jimple Local Aggregator removes some unnecessary copies by \ncombining local variables. Essentially, it finds definitions \nwhich have only a single use and, if it is safe to do so, \nremoves the original definition after replacing the use with the \ndefinition's right-hand side. At this stage in JimpleBody \nconstruction, local aggregation serves largely to remove the \ncopies to and from stack variables which simulate load and store \ninstructions in the original bytecode." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("jb.ule")) return "Phase " + phaseName + ":\n" + "\nThe Unused Local Eliminator removes any unused locals from the \nmethod." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.tr")) return "Phase " + phaseName + ":\n" + "\nThe Type Assigner gives local variables types which will \naccommodate the values stored in them over the course of the \nmethod." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("use-older-type-assigner (false)", "Enables the older type assigner") + padOpt("compare-type-assigners (false)", "Compares Ben Bellamy's and the older type assigner") + padOpt("ignore-nullpointer-dereferences (false)", "Ignores virtual method calls on base objects that may only be null"); if (phaseName.equals("jb.ulp")) return "Phase " + phaseName + ":\n" + "\nThe Unsplit-originals Local Packer executes only when the \n`use-original-names' option is chosen for the `jb' phase. The \nLocal Packer attempts to minimize the number of local variables \nrequired in a method by reusing the same variable for disjoint \nDU-UD webs. Conceptually, it is the inverse of the Local \nSplitter." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("unsplit-original-locals (true)", ""); if (phaseName.equals("jb.lns")) return "Phase " + phaseName + ":\n" + "\nThe Local Name Standardizer assigns generic names to local \nvariables." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (false)", "") + padOpt("sort-locals (false)", "Specifies whether the locals shall be ordered."); if (phaseName.equals("jb.cp")) return "Phase " + phaseName + ":\n" + "\nThis phase performs cascaded copy propagation. If the propagator \nencounters situations of the form: A: a = ...; ... B: x = a; ... \nC: ... = ... x; where a and x are each defined only once (at A \nand B, respectively), then it can propagate immediately without \nchecking between B and C for redefinitions of a. In this case \nthe propagator is global. Otherwise, if a has multiple \ndefinitions then the propagator checks for redefinitions and \npropagates copies only within extended basic blocks." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-regular-locals (false)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("jb.dae")) return "Phase " + phaseName + ":\n" + "\nThe Dead Assignment Eliminator eliminates assignment statements \nto locals whose values are not subsequently used, unless \nevaluating the right-hand side of the assignment may cause \nside-effects." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("jb.cp-ule")) return "Phase " + phaseName + ":\n" + "\nThis phase removes any locals that are unused after copy \npropagation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.lp")) return "Phase " + phaseName + ":\n" + "\nThe Local Packer attempts to minimize the number of local \nvariables required in a method by reusing the same variable for \ndisjoint DU-UD webs. Conceptually, it is the inverse of the \nLocal Splitter." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("unsplit-original-locals (false)", ""); if (phaseName.equals("jb.ne")) return "Phase " + phaseName + ":\n" + "\nThe Nop Eliminator removes nop statements from the method." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jb.uce")) return "Phase " + phaseName + ":\n" + "\nThe Unreachable Code Eliminator removes unreachable code and \ntraps whose catch blocks are empty." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("remove-unreachable-traps (true)", ""); if (phaseName.equals("jb.tt")) return "Phase " + phaseName + ":\n" + "\nThe Trap Tightener changes the area protected by each exception \nhandler, so that it begins with the first instruction in the old \nprotected area which is actually capable of throwing an \nexception caught by the handler, and ends just after the last \ninstruction in the old protected area which can throw an \nexception caught by the handler. This reduces the chance of \nproducing unverifiable code as a byproduct of pruning \nexceptional control flow within CFGs." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jb.cbf")) return "Phase " + phaseName + ":\n" + "\nThe Conditional Branch Folder statically evaluates the \nconditional expression of Jimple if statements. If the condition \nis identically true or false, the Folder replaces the \nconditional branch statement with an unconditional goto \nstatement." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jj")) return "Phase " + phaseName + ":\n" + "\nJimple Body Creation creates a JimpleBody for each input method, \nusing polyglot, to read .java files." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("use-original-names (true)", ""); if (phaseName.equals("jj.ls")) return "Phase " + phaseName + ":\n" + "\nThe Local Splitter identifies DU-UD webs for local variables and \nintroduces new variables so that each disjoint web is associated \nwith a single local." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jj.sils")) return "Phase " + phaseName + ":\n" + "\n" + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jj.a")) return "Phase " + phaseName + ":\n" + "\nThe Jimple Local Aggregator removes some unnecessary copies by \ncombining local variables. Essentially, it finds definitions \nwhich have only a single use and, if it is safe to do so, \nremoves the original definition after replacing the use with the \ndefinition's right-hand side. At this stage in JimpleBody \nconstruction, local aggregation serves largely to remove the \ncopies to and from stack variables which simulate load and store \ninstructions in the original bytecode." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("jj.ule")) return "Phase " + phaseName + ":\n" + "\nThe Unused Local Eliminator removes any unused locals from the \nmethod." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jj.tr")) return "Phase " + phaseName + ":\n" + "\nThe Type Assigner gives local variables types which will \naccommodate the values stored in them over the course of the \nmethod." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jj.ulp")) return "Phase " + phaseName + ":\n" + "\nThe Unsplit-originals Local Packer executes only when the \n`use-original-names' option is chosen for the `jb' phase. The \nLocal Packer attempts to minimize the number of local variables \nrequired in a method by reusing the same variable for disjoint \nDU-UD webs. Conceptually, it is the inverse of the Local \nSplitter." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("unsplit-original-locals (false)", ""); if (phaseName.equals("jj.lns")) return "Phase " + phaseName + ":\n" + "\nThe Local Name Standardizer assigns generic names to local \nvariables." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (false)", ""); if (phaseName.equals("jj.cp")) return "Phase " + phaseName + ":\n" + "\nThis phase performs cascaded copy propagation. If the propagator \nencounters situations of the form: A: a = ...; ... B: x = a; ... \nC: ... = ... x; where a and x are each defined only once (at A \nand B, respectively), then it can propagate immediately without \nchecking between B and C for redefinitions of a. In this case \nthe propagator is global. Otherwise, if a has multiple \ndefinitions then the propagator checks for redefinitions and \npropagates copies only within extended basic blocks." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-regular-locals (false)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("jj.dae")) return "Phase " + phaseName + ":\n" + "\nThe Dead Assignment Eliminator eliminates assignment statements \nto locals whose values are not subsequently used, unless \nevaluating the right-hand side of the assignment may cause \nside-effects." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("jj.cp-ule")) return "Phase " + phaseName + ":\n" + "\nThis phase removes any locals that are unused after copy \npropagation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jj.lp")) return "Phase " + phaseName + ":\n" + "\nThe Local Packer attempts to minimize the number of local \nvariables required in a method by reusing the same variable for \ndisjoint DU-UD webs. Conceptually, it is the inverse of the \nLocal Splitter." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("unsplit-original-locals (false)", ""); if (phaseName.equals("jj.ne")) return "Phase " + phaseName + ":\n" + "\nThe Nop Eliminator removes nop statements from the method." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jj.uce")) return "Phase " + phaseName + ":\n" + "\nThe Unreachable Code Eliminator removes unreachable code and \ntraps whose catch blocks are empty." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("wjpp")) return "Phase " + phaseName + ":\n" + "\nThis pack allows you to insert pre-processors that are run \nbefore call-graph construction. Only enabled in whole-program \nmode." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("wjpp.cimbt")) return "Phase " + phaseName + ":\n" + "\nWhen using the types-for-invoke option of the cg phase, problems \nmight occur if the base object of a call to Method.invoke() (the \nfirst argument) is a string constant. This option replaces all \nstring constants of such calls by locals and, therefore, allows \nthe static resolution of reflective call targets on constant \nstring objects." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("verbose (false)", ""); if (phaseName.equals("wspp")) return "Phase " + phaseName + ":\n" + "\nThis pack allows you to insert pre-processors that are run \nbefore call-graph construction. Only enabled in whole-program \nShimple mode. In an unmodified copy of Soot, this pack is empty." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("cg")) return "Phase " + phaseName + ":\n" + "\nThe Call Graph Constructor computes a call graph for whole \nprogram analysis. When this pack finishes, a call graph is \navailable in the Scene. The different phases in this pack are \ndifferent ways to construct the call graph. Exactly one phase in \nthis pack must be enabled; Soot will raise an error otherwise." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("safe-forname (false)", "Handle Class.forName() calls conservatively") + padOpt("safe-newinstance (false)", "Handle Class.newInstance() calls conservatively") + padOpt("library", "Specifies whether the target classes should be treated as an application or a library.") + padVal("disabled (default)", "Call(and pointer assignment) graph construction treat the target classes as application starting from the entry points.") + padVal("any-subtype", "In this mode types of any accessible field, method parameter, this local, or caugth exception is set to any possible sub type according to the class hierarchy of the target library.") + padVal("signature-resolution", "In this mode types of any accessible field, method parameter, this local, or caugth exception is set to any possible sub type according to a possible extended class hierarchy of the target library.") + padOpt("verbose (false)", "Print warnings about where the call graph may be incomplete") + padOpt("jdkver (3)", "JDK version for native methods") + padOpt("all-reachable (false)", "Assume all methods of application classes are reachable.") + padOpt("implicit-entry (true)", "Include methods called implicitly by the VM as entry points") + padOpt("trim-clinit (true)", "Removes redundant static initializer calls") + padOpt("reflection-log", "Uses a reflection log to resolve reflective calls.") + padOpt("guards (ignore)", "Describes how to guard the program from unsound assumptions.") + padOpt("types-for-invoke (false)", "Uses reaching types inferred by the pointer analysis to resolve reflective calls.") + padOpt("resolve-all-abstract-invokes (false)", "Causes methods invoked on abstract classes to be resolved even if there are no non-abstract children of the classes in the Scene."); if (phaseName.equals("cg.cha")) return "Phase " + phaseName + ":\n" + "\nThis phase uses Class Hierarchy Analysis to generate a call \ngraph." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("verbose (false)", "Print statistics about the resulting call graph") + padOpt("apponly (false)", "Consider only application classes"); if (phaseName.equals("cg.spark")) return "Phase " + phaseName + ":\n" + "\nSpark is a flexible points-to analysis framework. Aside from \nbuilding a call graph, it also generates information about the \ntargets of pointers. For details about Spark, please see Ondrej \nLhotak's M.Sc. thesis." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("verbose (false)", "Print detailed information about the execution of Spark") + padOpt("ignore-types (false)", "Make Spark completely ignore declared types of variables") + padOpt("force-gc (false)", "Force garbage collection for measuring memory usage") + padOpt("pre-jimplify (false)", "Jimplify all methods before starting Spark") + padOpt("apponly (false)", "Consider only application classes") + padOpt("vta (false)", "Emulate Variable Type Analysis") + padOpt("rta (false)", "Emulate Rapid Type Analysis") + padOpt("field-based (false)", "Use a field-based rather than field-sensitive representation") + padOpt("types-for-sites (false)", "Represent objects by their actual type rather than allocation site") + padOpt("merge-stringbuffer (true)", "Represent all StringBuffers as one object") + padOpt("string-constants (false)", "Propagate all string constants, not just class names") + padOpt("simulate-natives (true)", "Simulate effects of native methods in standard class library") + padOpt("empties-as-allocs (false)", "Treat singletons for empty sets etc. as allocation sites") + padOpt("simple-edges-bidirectional (false)", "Equality-based analysis between variable nodes") + padOpt("on-fly-cg (true)", "Build call graph as receiver types become known") + padOpt("simplify-offline (false)", "Collapse single-entry subgraphs of the PAG") + padOpt("simplify-sccs (false)", "Collapse strongly-connected components of the PAG") + padOpt("ignore-types-for-sccs (false)", "Ignore declared types when determining node equivalence for SCCs") + padOpt("propagator", "Select propagation algorithm") + padVal("iter", "Simple iterative algorithm") + padVal("worklist (default)", "Fast, worklist-based algorithm") + padVal("cycle", "Unfinished on-the-fly cycle detection algorithm") + padVal("merge", "Unfinished field reference merging algorithms") + padVal("alias", "Alias-edge based algorithm") + padVal("none", "Disable propagation") + padOpt("set-impl", "Select points-to set implementation") + padVal("hash", "Use Java HashSet") + padVal("bit", "Bit vector") + padVal("hybrid", "Hybrid representation using bit vector for large sets") + padVal("array", "Sorted array representation") + padVal("heintze", "Heintze's shared bit-vector and overflow list representation") + padVal("sharedlist", "Shared list representation") + padVal("double (default)", "Double set representation for incremental propagation") + padOpt("double-set-old", "Select implementation of points-to set for old part of double set") + padVal("hash", "Use Java HashSet") + padVal("bit", "Bit vector") + padVal("hybrid (default)", "Hybrid representation using bit vector for large sets") + padVal("array", "Sorted array representation") + padVal("heintze", "Heintze's shared bit-vector and overflow list representation") + padVal("sharedlist", "Shared list representation") + padOpt("double-set-new", "Select implementation of points-to set for new part of double set") + padVal("hash", "Use Java HashSet") + padVal("bit", "Bit vector") + padVal("hybrid (default)", "Hybrid representation using bit vector for large sets") + padVal("array", "Sorted array representation") + padVal("heintze", "Heintze's shared bit-vector and overflow list representation") + padVal("sharedlist", "Shared list representation") + padOpt("dump-html (false)", "Dump pointer assignment graph to HTML for debugging") + padOpt("dump-pag (false)", "Dump pointer assignment graph for other solvers") + padOpt("dump-solution (false)", "Dump final solution for comparison with other solvers") + padOpt("topo-sort (false)", "Sort variable nodes in dump") + padOpt("dump-types (true)", "Include declared types in dump") + padOpt("class-method-var (true)", "In dump, label variables by class and method") + padOpt("dump-answer (false)", "Dump computed reaching types for comparison with other solvers") + padOpt("add-tags (false)", "Output points-to results in tags for viewing with the Jimple") + padOpt("set-mass (false)", "Calculate statistics about points-to set sizes") + padOpt("cs-demand (false)", "After running Spark, refine points-to sets on demand with context information") + padOpt("lazy-pts (true)", "Create lazy points-to sets that create context information only when needed.") + padOpt("traversal (75000)", "Make the analysis traverse at most this number of nodes per query.") + padOpt("passes (10)", "Perform at most this number of refinement iterations.") + padOpt("geom-pta (false)", "This switch enables/disables the geometric analysis.") + padOpt("geom-encoding (Geom)", "Encoding methodology") + padVal("Geom (default)", "Geometric Encoding") + padVal("HeapIns", "Heap Insensitive Encoding") + padVal("PtIns", "PtIns") + padOpt("geom-worklist (PQ)", "Worklist type") + padVal("PQ (default)", "Priority Queue") + padVal("FIFO", "FIFO Queue") + padOpt("geom-dump-verbose ()", "Filename for detailed execution log") + padOpt("geom-verify-name ()", "Filename for verification file") + padOpt("geom-eval (0)", "Precision evaluation methodologies") + padOpt("geom-trans (false)", "Transform to context-insensitive result") + padOpt("geom-frac-base (40)", "Fractional parameter for precision/performance trade-off") + padOpt("geom-blocking (true)", "Enable blocking strategy for recursive calls") + padOpt("geom-runs (1)", "Iterations of analysis") + padOpt("geom-app-only (true)", "Processing pointers that impact pointers in application code only"); if (phaseName.equals("cg.paddle")) return "Phase " + phaseName + ":\n" + "\nPaddle is a BDD-based interprocedural analysis framework. It \nincludes points-to analysis, call graph construction, and \nvarious client analyses." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("verbose (false)", "Print detailed information about the execution of Paddle") + padOpt("conf", "Select Paddle configuration") + padVal("ofcg (default)", "On-the fly call graph") + padVal("cha", "CHA only") + padVal("cha-aot", "CHA ahead-of-time callgraph") + padVal("ofcg-aot", "OFCG-AOT callgraph") + padVal("cha-context-aot", "CHA-Context-AOT callgraph") + padVal("ofcg-context-aot", "OFCG-Context-AOT callgraph") + padVal("cha-context", "CHA-Context callgraph") + padVal("ofcg-context", "OFCG-Context callgraph") + padOpt("bdd (false)", "Use BDD version of Paddle") + padOpt("order (32)", "") + padOpt("dynamic-order", "") + padOpt("profile (false)", "Profile BDDs using JeddProfiler") + padOpt("verbosegc (false)", "Print memory usage at each BDD garbage collection.") + padOpt("q", "Select queue implementation") + padVal("auto (default)", "Select queue implementation based on bdd option") + padVal("trad", "Normal worklist queue implementation") + padVal("bdd", "BDD-based queue implementation") + padVal("debug", "Debugging queue implementation") + padVal("trace", "Tracing queue implementation") + padVal("numtrace", "Number-tracing queue implementation") + padOpt("backend", "Select BDD backend") + padVal("auto (default)", "Select backend based on bdd option") + padVal("buddy", "BuDDy backend") + padVal("cudd", "CUDD backend") + padVal("sable", "SableJBDD backend") + padVal("javabdd", "JavaBDD backend") + padVal("none", "No BDDs") + padOpt("bdd-nodes (0)", "Number of BDD nodes to allocate (0=unlimited)") + padOpt("ignore-types (false)", "Make Paddle completely ignore declared types of variables") + padOpt("pre-jimplify (false)", "Jimplify all methods before starting Paddle") + padOpt("context", "Select context-sensitivity level") + padVal("insens (default)", "Builds a context-insensitive call graph") + padVal("1cfa", "Builds a 1-CFA call graph") + padVal("kcfa", "Builds a k-CFA call graph") + padVal("objsens", "Builds an object-sensitive call graph") + padVal("kobjsens", "Builds a k-object-sensitive call graph") + padVal("uniqkobjsens", "Builds a unique-k-object-sensitive call graph") + padVal("threadkobjsens", "Experimental option for thread-entry-point sensitivity") + padOpt("k (2)", "") + padOpt("context-heap (false)", "Treat allocation sites context-sensitively") + padOpt("rta (false)", "Emulate Rapid Type Analysis") + padOpt("field-based (false)", "Use a field-based rather than field-sensitive representation") + padOpt("types-for-sites (false)", "Represent objects by their actual type rather than allocation site") + padOpt("merge-stringbuffer (true)", "Represent all StringBuffers as one object") + padOpt("string-constants (false)", "Propagate all string constants, not just class names") + padOpt("simulate-natives (true)", "Simulate effects of native methods in standard class library") + padOpt("global-nodes-in-natives (false)", "Use global node to model variables in simulations of native methods") + padOpt("simple-edges-bidirectional (false)", "Equality-based analysis between variable nodes") + padOpt("this-edges (false)", "Use pointer assignment edges to model this parameters") + padOpt("precise-newinstance (true)", "Make newInstance only allocate objects of dynamic classes") + padOpt("propagator", "Select propagation algorithm") + padVal("auto (default)", "Select propagation algorithm based on bdd option") + padVal("iter", "Simple iterative algorithm") + padVal("worklist", "Fast, worklist-based algorithm") + padVal("alias", "Alias-edge based algorithm") + padVal("bdd", "BDD-based propagator") + padVal("incbdd", "Incrementalized BDD-based propagator") + padOpt("set-impl", "Select points-to set implementation") + padVal("hash", "Use Java HashSet") + padVal("bit", "Bit vector") + padVal("hybrid", "Hybrid representation using bit vector for large sets") + padVal("array", "Sorted array representation") + padVal("heintze", "Heintze's shared bit-vector and overflow list representation") + padVal("double (default)", "Double set representation for incremental propagation") + padOpt("double-set-old", "Select implementation of points-to set for old part of double set") + padVal("hash", "Use Java HashSet") + padVal("bit", "Bit vector") + padVal("hybrid (default)", "Hybrid representation using bit vector for large sets") + padVal("array", "Sorted array representation") + padVal("heintze", "Heintze's shared bit-vector and overflow list representation") + padOpt("double-set-new", "Select implementation of points-to set for new part of double set") + padVal("hash", "Use Java HashSet") + padVal("bit", "Bit vector") + padVal("hybrid (default)", "Hybrid representation using bit vector for large sets") + padVal("array", "Sorted array representation") + padVal("heintze", "Heintze's shared bit-vector and overflow list representation") + padOpt("context-counts (false)", "Print number of contexts for each method") + padOpt("total-context-counts (false)", "Print total number of contexts") + padOpt("method-context-counts (false)", "Print number of contexts for each method") + padOpt("set-mass (false)", "Calculate statistics about points-to set sizes") + padOpt("number-nodes (true)", "Print node numbers in dumps"); if (phaseName.equals("wstp")) return "Phase " + phaseName + ":\n" + "\nSoot can perform whole-program analyses. In whole-shimple mode, \nSoot applies the contents of the Whole-Shimple Transformation \nPack to the scene as a whole after constructing a call graph for \nthe program. In an unmodified copy of Soot the Whole-Shimple \nTransformation Pack is empty." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("wsop")) return "Phase " + phaseName + ":\n" + "\nIf Soot is running in whole shimple mode and the Whole-Shimple \nOptimization Pack is enabled, the pack's transformations are \napplied to the scene as a whole after construction of the call \ngraph and application of any enabled Whole-Shimple \nTransformations. In an unmodified copy of Soot the Whole-Shimple \nOptimization Pack is empty." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjtp")) return "Phase " + phaseName + ":\n" + "\nSoot can perform whole-program analyses. In whole-program mode, \nSoot applies the contents of the Whole-Jimple Transformation \nPack to the scene as a whole after constructing a call graph for \nthe program." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("wjtp.mhp")) return "Phase " + phaseName + ":\n" + "\nMay Happen in Parallel (MHP) Analyses determine what program \nstatements may be run by different threads concurrently. This \nphase does not perform any transformation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjtp.tn")) return "Phase " + phaseName + ":\n" + "\nThe Lock Allocator finds critical sections (synchronized \nregions) in Java programs and assigns locks for execution on \nboth optimistic and pessimistic JVMs. It can also be used to \nanalyze the existing locks." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("locking-scheme", "Selects the granularity of the generated lock allocation") + padVal("medium-grained (default)", "Use a runtime object for synchronization where possible") + padVal("coarse-grained", "Use static objects for synchronization") + padVal("single-static", "Use just one static synchronization object for all transactional regions") + padVal("leave-original", "Analyse the existing lock structure without making changes") + padOpt("avoid-deadlock (true)", "Perform Deadlock Avoidance") + padOpt("open-nesting (true)", "Use an open nesting model") + padOpt("do-mhp (true)", "Perform a May-Happen-in-Parallel analysis") + padOpt("do-tlo (true)", "Perform a Local-Objects analysis") + padOpt("print-graph (false)", "Print topological graph of transactions") + padOpt("print-table (false)", "Print table of transactions") + padOpt("print-debug (false)", "Print debugging info"); if (phaseName.equals("wjtp.rdc")) return "Phase " + phaseName + ":\n" + "\nRename duplicated classes when the file system is not case \nsensitive. If the file system is case sensitive, this phase does \nnothing." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("fcn fixed-class-names", "Set ARG for the fixed class names."); if (phaseName.equals("wjop")) return "Phase " + phaseName + ":\n" + "\nIf Soot is running in whole program mode and the Whole-Jimple \nOptimization Pack is enabled, the pack's transformations are \napplied to the scene as a whole after construction of the call \ngraph and application of any enabled Whole-Jimple \nTransformations." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjop.smb")) return "Phase " + phaseName + ":\n" + "\nThe Static Method Binder statically binds monomorphic call \nsites. That is, it searches the call graph for virtual method \ninvocations that can be determined statically to call only a \nsingle implementation of the called method. Then it replaces \nsuch virtual invocations with invocations of a static copy of \nthe single called implementation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("insert-null-checks (true)", "") + padOpt("insert-redundant-casts (true)", "") + padOpt("allowed-modifier-changes", "") + padVal("unsafe (default)", "") + padVal("safe", "") + padVal("none", ""); if (phaseName.equals("wjop.si")) return "Phase " + phaseName + ":\n" + "\nThe Static Inliner visits all call sites in the call graph in a \nbottom-up fashion, replacing monomorphic calls with inlined \ncopies of the invoked methods." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("rerun-jb (true)", "") + padOpt("insert-null-checks (true)", "") + padOpt("insert-redundant-casts (true)", "") + padOpt("allowed-modifier-changes", "") + padVal("unsafe (default)", "") + padVal("safe", "") + padVal("none", "") + padOpt("expansion-factor (3)", "") + padOpt("max-container-size (5000)", "") + padOpt("max-inlinee-size (20)", ""); if (phaseName.equals("wjap")) return "Phase " + phaseName + ":\n" + "\nSome analyses do not transform Jimple body directly, but \nannotate statements or values with tags. Whole-Jimple annotation \npack provides a place for annotation-oriented analyses in whole \nprogram mode." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("wjap.ra")) return "Phase " + phaseName + ":\n" + "\nThe Rectangular Array Finder traverses Jimple statements based \non the static call graph, and finds array variables which always \nhold rectangular two-dimensional array objects. In Java, a \nmulti-dimensional array is an array of arrays, which means the \nshape of the array can be ragged. Nevertheless, many \napplications use rectangular arrays. Knowing that an array is \nrectangular can be very helpful in proving safe array bounds \nchecks. The Rectangular Array Finder does not change the program \nbeing analyzed. Its results are used by the Array Bound Checker." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjap.umt")) return "Phase " + phaseName + ":\n" + "\nUses the call graph to determine which methods are unreachable \nand adds color tags so they can be highlighted in a source \nbrowser." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjap.uft")) return "Phase " + phaseName + ":\n" + "\nUses the call graph to determine which fields are unreachable \nand adds color tags so they can be highlighted in a source \nbrowser." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjap.tqt")) return "Phase " + phaseName + ":\n" + "\nDetermines which methods and fields have qualifiers that could \nbe tightened. For example: if a field or method has the \nqualifier of public but is only used within the declaring class \nit could be private. This, this field or method is tagged with \ncolor tags so that the results can be highlighted in a source \nbrowser." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("wjap.cgg")) return "Phase " + phaseName + ":\n" + "\nCreates graphical call graph." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("show-lib-meths (false)", ""); if (phaseName.equals("wjap.purity")) return "Phase " + phaseName + ":\n" + "\nPurity anaysis implemented by Antoine Mine and based on the \npaper A Combined Pointer and Purity Analysis for Java Programs \nby Alexandru Salcianu and Martin Rinard." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("dump-summaries (true)", "") + padOpt("dump-cg (false)", "") + padOpt("dump-intra (false)", "") + padOpt("print (true)", "") + padOpt("annotate (true)", "Marks pure methods with a purity bytecode attribute") + padOpt("verbose (false)", ""); if (phaseName.equals("shimple")) return "Phase " + phaseName + ":\n" + "\nShimple Control sets parameters which apply throughout the \ncreation and manipulation of Shimple bodies. Shimple is Soot's \nSSA representation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("node-elim-opt (true)", "Node elimination optimizations") + padOpt("standard-local-names (false)", "Uses naming scheme of the Local Name Standardizer.") + padOpt("extended (false)", "Compute extended SSA (SSI) form.") + padOpt("debug (false)", "Enables debugging output, if any."); if (phaseName.equals("stp")) return "Phase " + phaseName + ":\n" + "\nWhen the Shimple representation is produced, Soot applies the \ncontents of the Shimple Transformation Pack to each method under \nanalysis. This pack contains no transformations in an unmodified \nversion of Soot." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("sop")) return "Phase " + phaseName + ":\n" + "\nThe Shimple Optimization Pack contains transformations that \nperform optimizations on Shimple, Soot's SSA representation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("sop.cpf")) return "Phase " + phaseName + ":\n" + "\nA powerful constant propagator and folder based on an algorithm \nsketched by Cytron et al that takes conditional control flow \ninto account. This optimization demonstrates some of the \nbenefits of SSA -- particularly the fact that Phi nodes \nrepresent natural merge points in the control flow." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("prune-cfg (true)", "Take advantage of CFG optimization opportunities."); if (phaseName.equals("jtp")) return "Phase " + phaseName + ":\n" + "\nSoot applies the contents of the Jimple Transformation Pack to \neach method under analysis. This pack contains no \ntransformations in an unmodified version of Soot." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jop")) return "Phase " + phaseName + ":\n" + "\nWhen Soot's Optimize option is on, Soot applies the Jimple \nOptimization Pack to every JimpleBody in application classes. \nThis section lists the default transformations in the Jimple \nOptimization Pack." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "Eliminates common subexpressions"); if (phaseName.equals("jop.cse")) return "Phase " + phaseName + ":\n" + "\nThe Common Subexpression Eliminator runs an available \nexpressions analysis on the method body, then eliminates common \nsubexpressions. This implementation is especially slow, as it \nruns on individual statements rather than on basic blocks. A \nbetter implementation (which would find most common \nsubexpressions, but not all) would use basic blocks instead. \nThis implementation is also slow because the flow universe is \nexplicitly created; it need not be. A better implementation \nwould implicitly compute the kill sets at every node. Because of \nits current slowness, this transformation is not enabled by \ndefault." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("naive-side-effect (false)", "Use naive side effect analysis even if interprocedural information is available"); if (phaseName.equals("jop.bcm")) return "Phase " + phaseName + ":\n" + "\nBusy Code Motion is a straightforward implementation of Partial \nRedundancy Elimination. This implementation is not very \naggressive. Lazy Code Motion is an improved version which should \nbe used instead of Busy Code Motion." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("naive-side-effect (false)", "Use a naive side effect analysis even if interprocedural information is available"); if (phaseName.equals("jop.lcm")) return "Phase " + phaseName + ":\n" + "\nLazy Code Motion is an enhanced version of Busy Code Motion, a \nPartial Redundancy Eliminator. Before doing Partial Redundancy \nElimination, this optimization performs loop inversion (turning \nwhile loops into do while loops inside an if statement). This \nallows the Partial Redundancy Eliminator to optimize loop \ninvariants of while loops." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("safety", "") + padVal("safe (default)", "") + padVal("medium", "") + padVal("unsafe", "") + padOpt("unroll (true)", "") + padOpt("naive-side-effect (false)", "Use a naive side effect analysis even if interprocedural information is available"); if (phaseName.equals("jop.cp")) return "Phase " + phaseName + ":\n" + "\nThis phase performs cascaded copy propagation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-regular-locals (false)", "") + padOpt("only-stack-locals (false)", ""); if (phaseName.equals("jop.cpf")) return "Phase " + phaseName + ":\n" + "\nThe Jimple Constant Propagator and Folder evaluates any \nexpressions consisting entirely of compile-time constants, for \nexample 2 * 3, and replaces the expression with the constant \nresult, in this case 6." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jop.cbf")) return "Phase " + phaseName + ":\n" + "\nThe Conditional Branch Folder statically evaluates the \nconditional expression of Jimple if statements. If the condition \nis identically true or false, the Folder replaces the \nconditional branch statement with an unconditional goto \nstatement." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jop.dae")) return "Phase " + phaseName + ":\n" + "\nThe Dead Assignment Eliminator eliminates assignment statements \nto locals whose values are not subsequently used, unless \nevaluating the right-hand side of the assignment may cause \nside-effects." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-tag (false)", "") + padOpt("only-stack-locals (false)", ""); if (phaseName.equals("jop.nce")) return "Phase " + phaseName + ":\n" + "\nReplaces statements 'if(x!=null) goto y' with 'goto y' if x is \nknown to be non-null or with 'nop' if it is known to be null, \netc. Generates dead code and is hence followed by unreachable \ncode elimination. Disabled by default because it can be \nexpensive on methods with many locals." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jop.uce1")) return "Phase " + phaseName + ":\n" + "\nThe Unreachable Code Eliminator removes unreachable code and \ntraps whose catch blocks are empty." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("remove-unreachable-traps (false)", ""); if (phaseName.equals("jop.ubf1")) return "Phase " + phaseName + ":\n" + "\nThe Unconditional Branch Folder removes unnecessary `goto' \nstatements from a JimpleBody. If a goto statement's target is \nthe next instruction, then the statement is removed. If a goto's \ntarget is another goto, with target y, then the first \nstatement's target is changed to y. If some if statement's \ntarget is a goto statement, then the if's target can be replaced \nwith the goto's target. (These situations can result from other \noptimizations, and branch folding may itself generate more \nunreachable code.)" + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jop.uce2")) return "Phase " + phaseName + ":\n" + "\nAnother iteration of the Unreachable Code Eliminator." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("remove-unreachable-traps (false)", ""); if (phaseName.equals("jop.ubf2")) return "Phase " + phaseName + ":\n" + "\nAnother iteration of the Unconditional Branch Folder." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jop.ule")) return "Phase " + phaseName + ":\n" + "\nThe Unused Local Eliminator phase removes any unused locals from \nthe method." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jap")) return "Phase " + phaseName + ":\n" + "\nThe Jimple Annotation Pack contains phases which add annotations \nto Jimple bodies individually (as opposed to the Whole-Jimple \nAnnotation Pack, which adds annotations based on the analysis of \nthe whole program)." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("jap.npc")) return "Phase " + phaseName + ":\n" + "\nThe Null Pointer Checker finds instruction which have the \npotential to throw NullPointerExceptions and adds annotations \nindicating whether or not the pointer being dereferenced can be \ndetermined statically not to be null." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("only-array-ref (false)", "Annotate only array references") + padOpt("profiling (false)", "Insert instructions to count safe pointer accesses"); if (phaseName.equals("jap.npcolorer")) return "Phase " + phaseName + ":\n" + "\nProduce colour tags that the Soot plug-in for Eclipse can use to \nhighlight null and non-null references." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.abc")) return "Phase " + phaseName + ":\n" + "\nThe Array Bound Checker performs a static analysis to determine \nwhich array bounds checks may safely be eliminated and then \nannotates statements with the results of the analysis. If Soot \nis in whole-program mode, the Array Bound Checker can use the \nresults provided by the Rectangular Array Finder." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("with-all (false)", "") + padOpt("with-cse (false)", "") + padOpt("with-arrayref (false)", "") + padOpt("with-fieldref (false)", "") + padOpt("with-classfield (false)", "") + padOpt("with-rectarray (false)", "") + padOpt("profiling (false)", "Profile the results of array bounds check analysis.") + padOpt("add-color-tags (false)", "Add color tags to results of array bound check analysis."); if (phaseName.equals("jap.profiling")) return "Phase " + phaseName + ":\n" + "\nThe Profiling Generator inserts the method invocations required \nto initialize and to report the results of any profiling \nperformed by the Null Pointer Checker and Array Bound Checker. \nUsers of the Profiling Generator must provide a MultiCounter \nclass implementing the methods invoked. For details, see the \nProfilingGenerator source code." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("notmainentry (false)", "Instrument runBenchmark() instead of main()"); if (phaseName.equals("jap.sea")) return "Phase " + phaseName + ":\n" + "\nThe Side Effect Tagger uses the active invoke graph to produce \nside-effect attributes, as described in the Spark thesis, \nchapter 6." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("naive (false)", ""); if (phaseName.equals("jap.fieldrw")) return "Phase " + phaseName + ":\n" + "\nThe Field Read/Write Tagger uses the active invoke graph to \nproduce tags indicating which fields may be read or written by \neach statement, including invoke statements." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("threshold (100)", ""); if (phaseName.equals("jap.cgtagger")) return "Phase " + phaseName + ":\n" + "\nThe Call Graph Tagger produces LinkTags based on the call graph. \nThe Eclipse plugin uses these tags to produce linked popup lists \nwhich indicate the source and target methods of the statement. \nSelecting a link from the list moves the cursor to the indicated \nmethod." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.parity")) return "Phase " + phaseName + ":\n" + "\nThe Parity Tagger produces StringTags and ColorTags indicating \nthe parity of a variable (even, odd, top, or bottom). The \neclipse plugin can use tooltips and variable colouring to \ndisplay the information in these tags. For example, even \nvariables (such as x in x = 2) are coloured yellow." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.pat")) return "Phase " + phaseName + ":\n" + "\nFor each method with parameters of reference type, this tagger \nindicates the aliasing relationships between the parameters \nusing colour tags. Parameters that may be aliased are the same \ncolour. Parameters that may not be aliased are in different \ncolours." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.lvtagger")) return "Phase " + phaseName + ":\n" + "\nColors live variables." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.rdtagger")) return "Phase " + phaseName + ":\n" + "\nFor each use of a local in a stmt creates a link to the reaching \ndef." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.che")) return "Phase " + phaseName + ":\n" + "\nIndicates whether cast checks can be eliminated." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.umt")) return "Phase " + phaseName + ":\n" + "\nWhen the whole-program analysis determines a method to be \nunreachable, this transformer inserts an assertion into the \nmethod to check that it is indeed unreachable." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.lit")) return "Phase " + phaseName + ":\n" + "\nAn expression whose operands are constant or have reaching \ndefinitions from outside the loop body are tagged as loop \ninvariant." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("jap.aet")) return "Phase " + phaseName + ":\n" + "\nA each statement a set of available expressions is after the \nstatement is added as a tag." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", "") + padOpt("kind", "") + padVal("optimistic (default)", "") + padVal("pessimistic", ""); if (phaseName.equals("jap.dmt")) return "Phase " + phaseName + ":\n" + "\nProvides link tags at a statement to all of the satements \ndominators." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("gb")) return "Phase " + phaseName + ":\n" + "\nThe Grimp Body Creation phase creates a GrimpBody for each \nsource method. It is run only if the output format is grimp or \ngrimple, or if class files are being output and the Via Grimp \noption has been specified." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("gb.a1")) return "Phase " + phaseName + ":\n" + "\nThe Grimp Pre-folding Aggregator combines some local variables, \nfinding definitions with only a single use and removing the \ndefinition after replacing the use with the definition's \nright-hand side, if it is safe to do so. While the mechanism is \nthe same as that employed by the Jimple Local Aggregator, there \nis more scope for aggregation because of Grimp's more \ncomplicated expressions." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("gb.cf")) return "Phase " + phaseName + ":\n" + "\nThe Grimp Constructor Folder combines new statements with the \nspecialinvoke statement that calls the new object's constructor. \nFor example, it turns r2 = new java.util.ArrayList; r2.init(); \ninto r2 = new java.util.ArrayList();" + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("gb.a2")) return "Phase " + phaseName + ":\n" + "\nThe Grimp Post-folding Aggregator combines local variables after \nconstructors have been folded. Constructor folding typically \nintroduces new opportunities for aggregation, since when a \nsequence of instructions like r2 = new java.util.ArrayList; \nr2.init(); r3 = r2 is replaced by r2 = new \njava.util.ArrayList(); r3 = r2 the invocation of init no longer \nrepresents a potential side-effect separating the two \ndefinitions, so they can be combined into r3 = new \njava.util.ArrayList(); (assuming there are no subsequent uses of \nr2)." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("only-stack-locals (true)", ""); if (phaseName.equals("gb.ule")) return "Phase " + phaseName + ":\n" + "\nThis phase removes any locals that are unused after constructor \nfolding and aggregation." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("gop")) return "Phase " + phaseName + ":\n" + "\nThe Grimp Optimization pack performs optimizations on GrimpBodys \n(currently there are no optimizations performed specifically on \nGrimpBodys, and the pack is empty). It is run only if the output \nformat is grimp or grimple, or if class files are being output \nand the Via Grimp option has been specified." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("bb")) return "Phase " + phaseName + ":\n" + "\nThe Baf Body Creation phase creates a BafBody from each source \nmethod. It is run if the output format is baf or b or asm or a, \nor if class files are being output and the Via Grimp option has \nnot been specified." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("bb.lso")) return "Phase " + phaseName + ":\n" + "\nThe Load Store Optimizer replaces some combinations of loads to \nand stores from local variables with stack instructions. A \nsimple example would be the replacement of store.r $r2; load.r \n$r2; with dup1.r in cases where the value of r2 is not used \nsubsequently." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("debug (false)", "") + padOpt("inter (false)", "") + padOpt("sl (true)", "") + padOpt("sl2 (false)", "") + padOpt("sll (true)", "") + padOpt("sll2 (false)", ""); if (phaseName.equals("bb.sco")) return "Phase " + phaseName + ":\n" + "\nThe store chain optimizer detects chains of push/store pairs \nthat write to the same variable and only retains the last store. \nIt removes the unnecessary previous push/stores that are \nsubsequently overwritten." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("bb.pho")) return "Phase " + phaseName + ":\n" + "\nApplies peephole optimizations to the Baf intermediate \nrepresentation. Individual optimizations must be implemented by \nclasses implementing the Peephole interface. The Peephole \nOptimizer reads the names of the Peephole classes at runtime \nfrom the file peephole.dat and loads them dynamically. Then it \ncontinues to apply the Peepholes repeatedly until none of them \nare able to perform any further optimizations. Soot provides \nonly one Peephole, named ExamplePeephole, which is not enabled \nby the delivered peephole.dat file. ExamplePeephole removes all \ncheckcast instructions." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("bb.ule")) return "Phase " + phaseName + ":\n" + "\nThis phase removes any locals that are unused after load store \noptimization and peephole optimization." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("bb.lp")) return "Phase " + phaseName + ":\n" + "\nThe Local Packer attempts to minimize the number of local \nvariables required in a method by reusing the same variable for \ndisjoint DU-UD webs. Conceptually, it is the inverse of the \nLocal Splitter." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("unsplit-original-locals (false)", ""); if (phaseName.equals("bb.ne")) return "Phase " + phaseName + ":\n" + "\nThe Nop Eliminator removes nop instructions from the method." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("bop")) return "Phase " + phaseName + ":\n" + "\nThe Baf Optimization pack performs optimizations on BafBodys \n(currently there are no optimizations performed specifically on \nBafBodys, and the pack is empty). It is run only if the output \nformat is baf or b or asm or a, or if class files are being \noutput and the Via Grimp option has not been specified." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("tag")) return "Phase " + phaseName + ":\n" + "\nThe Tag Aggregator pack aggregates tags attached to individual \nunits into a code attribute for each method, so that these \nattributes can be encoded in Java class files." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("tag.ln")) return "Phase " + phaseName + ":\n" + "\nThe Line Number Tag Aggregator aggregates line number tags." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("tag.an")) return "Phase " + phaseName + ":\n" + "\nThe Array Bounds and Null Pointer Tag Aggregator aggregates tags \nproduced by the Array Bound Checker and Null Pointer Checker." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("tag.dep")) return "Phase " + phaseName + ":\n" + "\nThe Dependence Tag Aggregator aggregates tags produced by the \nSide Effect Tagger." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("tag.fieldrw")) return "Phase " + phaseName + ":\n" + "\nThe Field Read/Write Tag Aggregator aggregates field read/write \ntags produced by the Field Read/Write Tagger, phase jap.fieldrw." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("db")) return "Phase " + phaseName + ":\n" + "\nThe decompile (Dava) option is set using the -f dava options in \nSoot. Options provided by Dava are added to this dummy phase so \nas not to clutter the soot general arguments. -p db (option \nname):(value) will be used to set all required values for Dava." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", "") + padOpt("source-is-javac (true)", ""); if (phaseName.equals("db.transformations")) return "Phase " + phaseName + ":\n" + "\nThe transformations implemented using AST Traversal and \nstructural flow analses on Dava's AST" + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("db.renamer")) return "Phase " + phaseName + ":\n" + "\nIf set, the renaming analyses implemented in Dava are applied to \neach method body being decompiled. The analyses use heuristics \nto choose potentially better names for local variables. (As of \nFebruary 14th 2006, work is still under progress on these \nanalyses (dava.toolkits.base.renamer)." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (false)", ""); if (phaseName.equals("db.deobfuscate")) return "Phase " + phaseName + ":\n" + "\nCertain analyses make sense only when the bytecode is obfuscated \ncode. There are plans to implement such analyses and apply them \non methods only if this flag is set. Dead Code elimination which \nincludes removing code guarded by some condition which is always \nfalse or always true is one such analysis. Another suggested \nanalysis is giving default names to classes and fields. \nOnfuscators love to use weird names for fields and classes and \neven a simple re-naming of these could be a good help to the \nuser. Another more advanced analysis would be to check for \nredundant constant fields added by obfuscators and then remove \nuses of these constant fields from the code." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); if (phaseName.equals("db.force-recompile")) return "Phase " + phaseName + ":\n" + "\nWhile decompiling we have to be clear what our aim is: do we \nwant to convert bytecode to Java syntax and stay as close to the \nactual execution of bytecode or do we want recompilably Java \nsource representing the bytecode. This distinction is important \nbecause some restrictions present in Java source are absent from \nthe bytecode. Examples of this include that fact that in Java a \ncall to a constructor or super needs to be the first statement \nin a constructors body. This restriction is absent from the \nbytecode. Similarly final fields HAVE to be initialized once and \nonly once in either the static initializer (static fields) or \nall the constructors (non-static fields). Additionally the \nfields should be initialized on all possible execution paths. \nThese restrictions are again absent from the bytecode. In doing \na one-one conversion of bytecode to Java source then no attempt \nshould be made to fix any of these and similar problems in the \nJava source. However, if the aim is to get recompilable code \nthen these and similar issues need to be fixed. Setting the \nforce-recompilability flag will ensure that the decompiler tries \nits best to produce recompilable Java source." + "\n\nRecognized options (with default values):\n" + padOpt("enabled (true)", ""); return "Unrecognized phase: " + phaseName; } public static String getDeclaredOptionsForPhase(String phaseName) { if (phaseName.equals("jb")) return String.join(" ", "enabled", "use-original-names", "preserve-source-annotations", "stabilize-local-names", "model-lambdametafactory" ); if (phaseName.equals("jb.dtr")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.ese")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.ls")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.sils")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.a")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("jb.ule")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.tr")) return String.join(" ", "enabled", "use-older-type-assigner", "compare-type-assigners", "ignore-nullpointer-dereferences" ); if (phaseName.equals("jb.ulp")) return String.join(" ", "enabled", "unsplit-original-locals" ); if (phaseName.equals("jb.lns")) return String.join(" ", "enabled", "only-stack-locals", "sort-locals" ); if (phaseName.equals("jb.cp")) return String.join(" ", "enabled", "only-regular-locals", "only-stack-locals" ); if (phaseName.equals("jb.dae")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("jb.cp-ule")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.lp")) return String.join(" ", "enabled", "unsplit-original-locals" ); if (phaseName.equals("jb.ne")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.uce")) return String.join(" ", "enabled", "remove-unreachable-traps" ); if (phaseName.equals("jb.tt")) return String.join(" ", "enabled" ); if (phaseName.equals("jb.cbf")) return String.join(" ", "enabled" ); if (phaseName.equals("jj")) return String.join(" ", "enabled", "use-original-names" ); if (phaseName.equals("jj.ls")) return String.join(" ", "enabled" ); if (phaseName.equals("jj.sils")) return String.join(" ", "enabled" ); if (phaseName.equals("jj.a")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("jj.ule")) return String.join(" ", "enabled" ); if (phaseName.equals("jj.tr")) return String.join(" ", "enabled" ); if (phaseName.equals("jj.ulp")) return String.join(" ", "enabled", "unsplit-original-locals" ); if (phaseName.equals("jj.lns")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("jj.cp")) return String.join(" ", "enabled", "only-regular-locals", "only-stack-locals" ); if (phaseName.equals("jj.dae")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("jj.cp-ule")) return String.join(" ", "enabled" ); if (phaseName.equals("jj.lp")) return String.join(" ", "enabled", "unsplit-original-locals" ); if (phaseName.equals("jj.ne")) return String.join(" ", "enabled" ); if (phaseName.equals("jj.uce")) return String.join(" ", "enabled" ); if (phaseName.equals("wjpp")) return String.join(" ", "enabled" ); if (phaseName.equals("wjpp.cimbt")) return String.join(" ", "enabled", "verbose" ); if (phaseName.equals("wspp")) return String.join(" ", "enabled" ); if (phaseName.equals("cg")) return String.join(" ", "enabled", "safe-forname", "safe-newinstance", "library", "verbose", "jdkver", "all-reachable", "implicit-entry", "trim-clinit", "reflection-log", "guards", "types-for-invoke", "resolve-all-abstract-invokes" ); if (phaseName.equals("cg.cha")) return String.join(" ", "enabled", "verbose", "apponly" ); if (phaseName.equals("cg.spark")) return String.join(" ", "enabled", "verbose", "ignore-types", "force-gc", "pre-jimplify", "apponly", "vta", "rta", "field-based", "types-for-sites", "merge-stringbuffer", "string-constants", "simulate-natives", "empties-as-allocs", "simple-edges-bidirectional", "on-fly-cg", "simplify-offline", "simplify-sccs", "ignore-types-for-sccs", "propagator", "set-impl", "double-set-old", "double-set-new", "dump-html", "dump-pag", "dump-solution", "topo-sort", "dump-types", "class-method-var", "dump-answer", "add-tags", "set-mass", "cs-demand", "lazy-pts", "traversal", "passes", "geom-pta", "geom-encoding", "geom-worklist", "geom-dump-verbose", "geom-verify-name", "geom-eval", "geom-trans", "geom-frac-base", "geom-blocking", "geom-runs", "geom-app-only" ); if (phaseName.equals("cg.paddle")) return String.join(" ", "enabled", "verbose", "conf", "bdd", "order", "dynamic-order", "profile", "verbosegc", "q", "backend", "bdd-nodes", "ignore-types", "pre-jimplify", "context", "k", "context-heap", "rta", "field-based", "types-for-sites", "merge-stringbuffer", "string-constants", "simulate-natives", "global-nodes-in-natives", "simple-edges-bidirectional", "this-edges", "precise-newinstance", "propagator", "set-impl", "double-set-old", "double-set-new", "context-counts", "total-context-counts", "method-context-counts", "set-mass", "number-nodes" ); if (phaseName.equals("wstp")) return String.join(" ", "enabled" ); if (phaseName.equals("wsop")) return String.join(" ", "enabled" ); if (phaseName.equals("wjtp")) return String.join(" ", "enabled" ); if (phaseName.equals("wjtp.mhp")) return String.join(" ", "enabled" ); if (phaseName.equals("wjtp.tn")) return String.join(" ", "enabled", "locking-scheme", "avoid-deadlock", "open-nesting", "do-mhp", "do-tlo", "print-graph", "print-table", "print-debug" ); if (phaseName.equals("wjtp.rdc")) return String.join(" ", "enabled", "fcn fixed-class-names" ); if (phaseName.equals("wjop")) return String.join(" ", "enabled" ); if (phaseName.equals("wjop.smb")) return String.join(" ", "enabled", "insert-null-checks", "insert-redundant-casts", "allowed-modifier-changes" ); if (phaseName.equals("wjop.si")) return String.join(" ", "enabled", "rerun-jb", "insert-null-checks", "insert-redundant-casts", "allowed-modifier-changes", "expansion-factor", "max-container-size", "max-inlinee-size" ); if (phaseName.equals("wjap")) return String.join(" ", "enabled" ); if (phaseName.equals("wjap.ra")) return String.join(" ", "enabled" ); if (phaseName.equals("wjap.umt")) return String.join(" ", "enabled" ); if (phaseName.equals("wjap.uft")) return String.join(" ", "enabled" ); if (phaseName.equals("wjap.tqt")) return String.join(" ", "enabled" ); if (phaseName.equals("wjap.cgg")) return String.join(" ", "enabled", "show-lib-meths" ); if (phaseName.equals("wjap.purity")) return String.join(" ", "enabled", "dump-summaries", "dump-cg", "dump-intra", "print", "annotate", "verbose" ); if (phaseName.equals("shimple")) return String.join(" ", "enabled", "node-elim-opt", "standard-local-names", "extended", "debug" ); if (phaseName.equals("stp")) return String.join(" ", "enabled" ); if (phaseName.equals("sop")) return String.join(" ", "enabled" ); if (phaseName.equals("sop.cpf")) return String.join(" ", "enabled", "prune-cfg" ); if (phaseName.equals("jtp")) return String.join(" ", "enabled" ); if (phaseName.equals("jop")) return String.join(" ", "enabled" ); if (phaseName.equals("jop.cse")) return String.join(" ", "enabled", "naive-side-effect" ); if (phaseName.equals("jop.bcm")) return String.join(" ", "enabled", "naive-side-effect" ); if (phaseName.equals("jop.lcm")) return String.join(" ", "enabled", "safety", "unroll", "naive-side-effect" ); if (phaseName.equals("jop.cp")) return String.join(" ", "enabled", "only-regular-locals", "only-stack-locals" ); if (phaseName.equals("jop.cpf")) return String.join(" ", "enabled" ); if (phaseName.equals("jop.cbf")) return String.join(" ", "enabled" ); if (phaseName.equals("jop.dae")) return String.join(" ", "enabled", "only-tag", "only-stack-locals" ); if (phaseName.equals("jop.nce")) return String.join(" ", "enabled" ); if (phaseName.equals("jop.uce1")) return String.join(" ", "enabled", "remove-unreachable-traps" ); if (phaseName.equals("jop.ubf1")) return String.join(" ", "enabled" ); if (phaseName.equals("jop.uce2")) return String.join(" ", "enabled", "remove-unreachable-traps" ); if (phaseName.equals("jop.ubf2")) return String.join(" ", "enabled" ); if (phaseName.equals("jop.ule")) return String.join(" ", "enabled" ); if (phaseName.equals("jap")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.npc")) return String.join(" ", "enabled", "only-array-ref", "profiling" ); if (phaseName.equals("jap.npcolorer")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.abc")) return String.join(" ", "enabled", "with-all", "with-cse", "with-arrayref", "with-fieldref", "with-classfield", "with-rectarray", "profiling", "add-color-tags" ); if (phaseName.equals("jap.profiling")) return String.join(" ", "enabled", "notmainentry" ); if (phaseName.equals("jap.sea")) return String.join(" ", "enabled", "naive" ); if (phaseName.equals("jap.fieldrw")) return String.join(" ", "enabled", "threshold" ); if (phaseName.equals("jap.cgtagger")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.parity")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.pat")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.lvtagger")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.rdtagger")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.che")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.umt")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.lit")) return String.join(" ", "enabled" ); if (phaseName.equals("jap.aet")) return String.join(" ", "enabled", "kind" ); if (phaseName.equals("jap.dmt")) return String.join(" ", "enabled" ); if (phaseName.equals("gb")) return String.join(" ", "enabled" ); if (phaseName.equals("gb.a1")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("gb.cf")) return String.join(" ", "enabled" ); if (phaseName.equals("gb.a2")) return String.join(" ", "enabled", "only-stack-locals" ); if (phaseName.equals("gb.ule")) return String.join(" ", "enabled" ); if (phaseName.equals("gop")) return String.join(" ", "enabled" ); if (phaseName.equals("bb")) return String.join(" ", "enabled" ); if (phaseName.equals("bb.lso")) return String.join(" ", "enabled", "debug", "inter", "sl", "sl2", "sll", "sll2" ); if (phaseName.equals("bb.sco")) return String.join(" ", "enabled" ); if (phaseName.equals("bb.pho")) return String.join(" ", "enabled" ); if (phaseName.equals("bb.ule")) return String.join(" ", "enabled" ); if (phaseName.equals("bb.lp")) return String.join(" ", "enabled", "unsplit-original-locals" ); if (phaseName.equals("bb.ne")) return String.join(" ", "enabled" ); if (phaseName.equals("bop")) return String.join(" ", "enabled" ); if (phaseName.equals("tag")) return String.join(" ", "enabled" ); if (phaseName.equals("tag.ln")) return String.join(" ", "enabled" ); if (phaseName.equals("tag.an")) return String.join(" ", "enabled" ); if (phaseName.equals("tag.dep")) return String.join(" ", "enabled" ); if (phaseName.equals("tag.fieldrw")) return String.join(" ", "enabled" ); if (phaseName.equals("db")) return String.join(" ", "enabled", "source-is-javac" ); if (phaseName.equals("db.transformations")) return String.join(" ", "enabled" ); if (phaseName.equals("db.renamer")) return String.join(" ", "enabled" ); if (phaseName.equals("db.deobfuscate")) return String.join(" ", "enabled" ); if (phaseName.equals("db.force-recompile")) return String.join(" ", "enabled" ); // The default set of options is just enabled. return "enabled"; } public static String getDefaultOptionsForPhase(String phaseName) { if (phaseName.equals("jb")) return "" + "enabled:true " + "use-original-names:false " + "preserve-source-annotations:false " + "stabilize-local-names:false " + "model-lambdametafactory:true "; if (phaseName.equals("jb.dtr")) return "" + "enabled:true "; if (phaseName.equals("jb.ese")) return "" + "enabled:true "; if (phaseName.equals("jb.ls")) return "" + "enabled:true "; if (phaseName.equals("jb.sils")) return "" + "enabled:true "; if (phaseName.equals("jb.a")) return "" + "enabled:true " + "only-stack-locals:true "; if (phaseName.equals("jb.ule")) return "" + "enabled:true "; if (phaseName.equals("jb.tr")) return "" + "enabled:true " + "use-older-type-assigner:false " + "compare-type-assigners:false " + "ignore-nullpointer-dereferences:false "; if (phaseName.equals("jb.ulp")) return "" + "enabled:true " + "unsplit-original-locals:true "; if (phaseName.equals("jb.lns")) return "" + "enabled:true " + "only-stack-locals:false " + "sort-locals:false "; if (phaseName.equals("jb.cp")) return "" + "enabled:true " + "only-regular-locals:false " + "only-stack-locals:true "; if (phaseName.equals("jb.dae")) return "" + "enabled:true " + "only-stack-locals:true "; if (phaseName.equals("jb.cp-ule")) return "" + "enabled:true "; if (phaseName.equals("jb.lp")) return "" + "enabled:false " + "unsplit-original-locals:false "; if (phaseName.equals("jb.ne")) return "" + "enabled:true "; if (phaseName.equals("jb.uce")) return "" + "enabled:true " + "remove-unreachable-traps:true "; if (phaseName.equals("jb.tt")) return "" + "enabled:false "; if (phaseName.equals("jb.cbf")) return "" + "enabled:true "; if (phaseName.equals("jj")) return "" + "enabled:true " + "use-original-names:true "; if (phaseName.equals("jj.ls")) return "" + "enabled:false "; if (phaseName.equals("jj.sils")) return "" + "enabled:true "; if (phaseName.equals("jj.a")) return "" + "enabled:true " + "only-stack-locals:true "; if (phaseName.equals("jj.ule")) return "" + "enabled:true "; if (phaseName.equals("jj.tr")) return "" + "enabled:false "; if (phaseName.equals("jj.ulp")) return "" + "enabled:false " + "unsplit-original-locals:false "; if (phaseName.equals("jj.lns")) return "" + "enabled:true " + "only-stack-locals:false "; if (phaseName.equals("jj.cp")) return "" + "enabled:true " + "only-regular-locals:false " + "only-stack-locals:true "; if (phaseName.equals("jj.dae")) return "" + "enabled:true " + "only-stack-locals:true "; if (phaseName.equals("jj.cp-ule")) return "" + "enabled:true "; if (phaseName.equals("jj.lp")) return "" + "enabled:false " + "unsplit-original-locals:false "; if (phaseName.equals("jj.ne")) return "" + "enabled:true "; if (phaseName.equals("jj.uce")) return "" + "enabled:true "; if (phaseName.equals("wjpp")) return "" + "enabled:true "; if (phaseName.equals("wjpp.cimbt")) return "" + "enabled:false " + "verbose:false "; if (phaseName.equals("wspp")) return "" + "enabled:true "; if (phaseName.equals("cg")) return "" + "enabled:true " + "safe-forname:false " + "safe-newinstance:false " + "library:disabled " + "verbose:false " + "jdkver:3 " + "all-reachable:false " + "implicit-entry:true " + "trim-clinit:true " + "guards:ignore " + "types-for-invoke:false " + "resolve-all-abstract-invokes:false "; if (phaseName.equals("cg.cha")) return "" + "enabled:true " + "verbose:false " + "apponly:false "; if (phaseName.equals("cg.spark")) return "" + "enabled:false " + "verbose:false " + "ignore-types:false " + "force-gc:false " + "pre-jimplify:false " + "apponly:false " + "vta:false " + "rta:false " + "field-based:false " + "types-for-sites:false " + "merge-stringbuffer:true " + "string-constants:false " + "simulate-natives:true " + "empties-as-allocs:false " + "simple-edges-bidirectional:false " + "on-fly-cg:true " + "simplify-offline:false " + "simplify-sccs:false " + "ignore-types-for-sccs:false " + "propagator:worklist " + "set-impl:double " + "double-set-old:hybrid " + "double-set-new:hybrid " + "dump-html:false " + "dump-pag:false " + "dump-solution:false " + "topo-sort:false " + "dump-types:true " + "class-method-var:true " + "dump-answer:false " + "add-tags:false " + "set-mass:false " + "cs-demand:false " + "lazy-pts:true " + "traversal:75000 " + "passes:10 " + "geom-pta:false " + "geom-encoding:Geom " + "geom-encoding:Geom " + "geom-worklist:PQ " + "geom-worklist:PQ " + "geom-dump-verbose: " + "geom-verify-name: " + "geom-eval:0 " + "geom-trans:false " + "geom-frac-base:40 " + "geom-blocking:true " + "geom-runs:1 " + "geom-app-only:true "; if (phaseName.equals("cg.paddle")) return "" + "enabled:false " + "verbose:false " + "conf:ofcg " + "bdd:false " + "order:32 " + "profile:false " + "verbosegc:false " + "q:auto " + "backend:auto " + "bdd-nodes:0 " + "ignore-types:false " + "pre-jimplify:false " + "context:insens " + "k:2 " + "context-heap:false " + "rta:false " + "field-based:false " + "types-for-sites:false " + "merge-stringbuffer:true " + "string-constants:false " + "simulate-natives:true " + "global-nodes-in-natives:false " + "simple-edges-bidirectional:false " + "this-edges:false " + "precise-newinstance:true " + "propagator:auto " + "set-impl:double " + "double-set-old:hybrid " + "double-set-new:hybrid " + "context-counts:false " + "total-context-counts:false " + "method-context-counts:false " + "set-mass:false " + "number-nodes:true "; if (phaseName.equals("wstp")) return "" + "enabled:true "; if (phaseName.equals("wsop")) return "" + "enabled:false "; if (phaseName.equals("wjtp")) return "" + "enabled:true "; if (phaseName.equals("wjtp.mhp")) return "" + "enabled:false "; if (phaseName.equals("wjtp.tn")) return "" + "enabled:false " + "locking-scheme:medium-grained " + "avoid-deadlock:true " + "open-nesting:true " + "do-mhp:true " + "do-tlo:true " + "print-graph:false " + "print-table:false " + "print-debug:false "; if (phaseName.equals("wjtp.rdc")) return "" + "enabled:false "; if (phaseName.equals("wjop")) return "" + "enabled:false "; if (phaseName.equals("wjop.smb")) return "" + "enabled:false " + "insert-null-checks:true " + "insert-redundant-casts:true " + "allowed-modifier-changes:unsafe "; if (phaseName.equals("wjop.si")) return "" + "enabled:true " + "rerun-jb:true " + "insert-null-checks:true " + "insert-redundant-casts:true " + "allowed-modifier-changes:unsafe " + "expansion-factor:3 " + "max-container-size:5000 " + "max-inlinee-size:20 "; if (phaseName.equals("wjap")) return "" + "enabled:true "; if (phaseName.equals("wjap.ra")) return "" + "enabled:false "; if (phaseName.equals("wjap.umt")) return "" + "enabled:false "; if (phaseName.equals("wjap.uft")) return "" + "enabled:false "; if (phaseName.equals("wjap.tqt")) return "" + "enabled:false "; if (phaseName.equals("wjap.cgg")) return "" + "enabled:false " + "show-lib-meths:false "; if (phaseName.equals("wjap.purity")) return "" + "enabled:false " + "dump-summaries:true " + "dump-cg:false " + "dump-intra:false " + "print:true " + "annotate:true " + "verbose:false "; if (phaseName.equals("shimple")) return "" + "enabled:true " + "node-elim-opt:true " + "standard-local-names:false " + "extended:false " + "debug:false "; if (phaseName.equals("stp")) return "" + "enabled:true "; if (phaseName.equals("sop")) return "" + "enabled:false "; if (phaseName.equals("sop.cpf")) return "" + "enabled:true " + "prune-cfg:true "; if (phaseName.equals("jtp")) return "" + "enabled:true "; if (phaseName.equals("jop")) return "" + "enabled:false "; if (phaseName.equals("jop.cse")) return "" + "enabled:false " + "naive-side-effect:false "; if (phaseName.equals("jop.bcm")) return "" + "enabled:false " + "naive-side-effect:false "; if (phaseName.equals("jop.lcm")) return "" + "enabled:false " + "safety:safe " + "unroll:true " + "naive-side-effect:false "; if (phaseName.equals("jop.cp")) return "" + "enabled:true " + "only-regular-locals:false " + "only-stack-locals:false "; if (phaseName.equals("jop.cpf")) return "" + "enabled:true "; if (phaseName.equals("jop.cbf")) return "" + "enabled:true "; if (phaseName.equals("jop.dae")) return "" + "enabled:true " + "only-tag:false " + "only-stack-locals:false "; if (phaseName.equals("jop.nce")) return "" + "enabled:false "; if (phaseName.equals("jop.uce1")) return "" + "enabled:true " + "remove-unreachable-traps:false "; if (phaseName.equals("jop.ubf1")) return "" + "enabled:true "; if (phaseName.equals("jop.uce2")) return "" + "enabled:true " + "remove-unreachable-traps:false "; if (phaseName.equals("jop.ubf2")) return "" + "enabled:true "; if (phaseName.equals("jop.ule")) return "" + "enabled:true "; if (phaseName.equals("jap")) return "" + "enabled:true "; if (phaseName.equals("jap.npc")) return "" + "enabled:false " + "only-array-ref:false " + "profiling:false "; if (phaseName.equals("jap.npcolorer")) return "" + "enabled:false "; if (phaseName.equals("jap.abc")) return "" + "enabled:false " + "with-all:false " + "with-cse:false " + "with-arrayref:false " + "with-fieldref:false " + "with-classfield:false " + "with-rectarray:false " + "profiling:false " + "add-color-tags:false "; if (phaseName.equals("jap.profiling")) return "" + "enabled:false " + "notmainentry:false "; if (phaseName.equals("jap.sea")) return "" + "enabled:false " + "naive:false "; if (phaseName.equals("jap.fieldrw")) return "" + "enabled:false " + "threshold:100 "; if (phaseName.equals("jap.cgtagger")) return "" + "enabled:false "; if (phaseName.equals("jap.parity")) return "" + "enabled:false "; if (phaseName.equals("jap.pat")) return "" + "enabled:false "; if (phaseName.equals("jap.lvtagger")) return "" + "enabled:false "; if (phaseName.equals("jap.rdtagger")) return "" + "enabled:false "; if (phaseName.equals("jap.che")) return "" + "enabled:false "; if (phaseName.equals("jap.umt")) return "" + "enabled:false "; if (phaseName.equals("jap.lit")) return "" + "enabled:false "; if (phaseName.equals("jap.aet")) return "" + "enabled:false " + "kind:optimistic "; if (phaseName.equals("jap.dmt")) return "" + "enabled:false "; if (phaseName.equals("gb")) return "" + "enabled:true "; if (phaseName.equals("gb.a1")) return "" + "enabled:true " + "only-stack-locals:true "; if (phaseName.equals("gb.cf")) return "" + "enabled:true "; if (phaseName.equals("gb.a2")) return "" + "enabled:true " + "only-stack-locals:true "; if (phaseName.equals("gb.ule")) return "" + "enabled:true "; if (phaseName.equals("gop")) return "" + "enabled:false "; if (phaseName.equals("bb")) return "" + "enabled:true "; if (phaseName.equals("bb.lso")) return "" + "enabled:true " + "debug:false " + "inter:false " + "sl:true " + "sl2:false " + "sll:true " + "sll2:false "; if (phaseName.equals("bb.sco")) return "" + "enabled:true "; if (phaseName.equals("bb.pho")) return "" + "enabled:true "; if (phaseName.equals("bb.ule")) return "" + "enabled:true "; if (phaseName.equals("bb.lp")) return "" + "enabled:true " + "unsplit-original-locals:false "; if (phaseName.equals("bb.ne")) return "" + "enabled:true "; if (phaseName.equals("bop")) return "" + "enabled:false "; if (phaseName.equals("tag")) return "" + "enabled:true "; if (phaseName.equals("tag.ln")) return "" + "enabled:true "; if (phaseName.equals("tag.an")) return "" + "enabled:false "; if (phaseName.equals("tag.dep")) return "" + "enabled:false "; if (phaseName.equals("tag.fieldrw")) return "" + "enabled:false "; if (phaseName.equals("db")) return "" + "enabled:true " + "source-is-javac:true "; if (phaseName.equals("db.transformations")) return "" + "enabled:true "; if (phaseName.equals("db.renamer")) return "" + "enabled:false "; if (phaseName.equals("db.deobfuscate")) return "" + "enabled:true "; if (phaseName.equals("db.force-recompile")) return "" + "enabled:true "; // The default default value is enabled. return "enabled"; } public void warnForeignPhase(String phaseName) { if (false || phaseName.equals("jb") || phaseName.equals("jb.dtr") || phaseName.equals("jb.ese") || phaseName.equals("jb.ls") || phaseName.equals("jb.sils") || phaseName.equals("jb.a") || phaseName.equals("jb.ule") || phaseName.equals("jb.tr") || phaseName.equals("jb.ulp") || phaseName.equals("jb.lns") || phaseName.equals("jb.cp") || phaseName.equals("jb.dae") || phaseName.equals("jb.cp-ule") || phaseName.equals("jb.lp") || phaseName.equals("jb.ne") || phaseName.equals("jb.uce") || phaseName.equals("jb.tt") || phaseName.equals("jb.cbf") || phaseName.equals("jj") || phaseName.equals("jj.ls") || phaseName.equals("jj.sils") || phaseName.equals("jj.a") || phaseName.equals("jj.ule") || phaseName.equals("jj.tr") || phaseName.equals("jj.ulp") || phaseName.equals("jj.lns") || phaseName.equals("jj.cp") || phaseName.equals("jj.dae") || phaseName.equals("jj.cp-ule") || phaseName.equals("jj.lp") || phaseName.equals("jj.ne") || phaseName.equals("jj.uce") || phaseName.equals("wjpp") || phaseName.equals("wjpp.cimbt") || phaseName.equals("wspp") || phaseName.equals("cg") || phaseName.equals("cg.cha") || phaseName.equals("cg.spark") || phaseName.equals("cg.paddle") || phaseName.equals("wstp") || phaseName.equals("wsop") || phaseName.equals("wjtp") || phaseName.equals("wjtp.mhp") || phaseName.equals("wjtp.tn") || phaseName.equals("wjtp.rdc") || phaseName.equals("wjop") || phaseName.equals("wjop.smb") || phaseName.equals("wjop.si") || phaseName.equals("wjap") || phaseName.equals("wjap.ra") || phaseName.equals("wjap.umt") || phaseName.equals("wjap.uft") || phaseName.equals("wjap.tqt") || phaseName.equals("wjap.cgg") || phaseName.equals("wjap.purity") || phaseName.equals("shimple") || phaseName.equals("stp") || phaseName.equals("sop") || phaseName.equals("sop.cpf") || phaseName.equals("jtp") || phaseName.equals("jop") || phaseName.equals("jop.cse") || phaseName.equals("jop.bcm") || phaseName.equals("jop.lcm") || phaseName.equals("jop.cp") || phaseName.equals("jop.cpf") || phaseName.equals("jop.cbf") || phaseName.equals("jop.dae") || phaseName.equals("jop.nce") || phaseName.equals("jop.uce1") || phaseName.equals("jop.ubf1") || phaseName.equals("jop.uce2") || phaseName.equals("jop.ubf2") || phaseName.equals("jop.ule") || phaseName.equals("jap") || phaseName.equals("jap.npc") || phaseName.equals("jap.npcolorer") || phaseName.equals("jap.abc") || phaseName.equals("jap.profiling") || phaseName.equals("jap.sea") || phaseName.equals("jap.fieldrw") || phaseName.equals("jap.cgtagger") || phaseName.equals("jap.parity") || phaseName.equals("jap.pat") || phaseName.equals("jap.lvtagger") || phaseName.equals("jap.rdtagger") || phaseName.equals("jap.che") || phaseName.equals("jap.umt") || phaseName.equals("jap.lit") || phaseName.equals("jap.aet") || phaseName.equals("jap.dmt") || phaseName.equals("gb") || phaseName.equals("gb.a1") || phaseName.equals("gb.cf") || phaseName.equals("gb.a2") || phaseName.equals("gb.ule") || phaseName.equals("gop") || phaseName.equals("bb") || phaseName.equals("bb.lso") || phaseName.equals("bb.sco") || phaseName.equals("bb.pho") || phaseName.equals("bb.ule") || phaseName.equals("bb.lp") || phaseName.equals("bb.ne") || phaseName.equals("bop") || phaseName.equals("tag") || phaseName.equals("tag.ln") || phaseName.equals("tag.an") || phaseName.equals("tag.dep") || phaseName.equals("tag.fieldrw") || phaseName.equals("db") || phaseName.equals("db.transformations") || phaseName.equals("db.renamer") || phaseName.equals("db.deobfuscate") || phaseName.equals("db.force-recompile") ) return; G.v().out.println("Warning: Phase " + phaseName + " is not a standard Soot phase listed in XML files."); } public void warnNonexistentPhase() { if (!PackManager.v().hasPhase("jb")) G.v().out.println("Warning: Options exist for non-existent phase jb"); if (!PackManager.v().hasPhase("jb.dtr")) G.v().out.println("Warning: Options exist for non-existent phase jb.dtr"); if (!PackManager.v().hasPhase("jb.ese")) G.v().out.println("Warning: Options exist for non-existent phase jb.ese"); if (!PackManager.v().hasPhase("jb.ls")) G.v().out.println("Warning: Options exist for non-existent phase jb.ls"); if (!PackManager.v().hasPhase("jb.sils")) G.v().out.println("Warning: Options exist for non-existent phase jb.sils"); if (!PackManager.v().hasPhase("jb.a")) G.v().out.println("Warning: Options exist for non-existent phase jb.a"); if (!PackManager.v().hasPhase("jb.ule")) G.v().out.println("Warning: Options exist for non-existent phase jb.ule"); if (!PackManager.v().hasPhase("jb.tr")) G.v().out.println("Warning: Options exist for non-existent phase jb.tr"); if (!PackManager.v().hasPhase("jb.ulp")) G.v().out.println("Warning: Options exist for non-existent phase jb.ulp"); if (!PackManager.v().hasPhase("jb.lns")) G.v().out.println("Warning: Options exist for non-existent phase jb.lns"); if (!PackManager.v().hasPhase("jb.cp")) G.v().out.println("Warning: Options exist for non-existent phase jb.cp"); if (!PackManager.v().hasPhase("jb.dae")) G.v().out.println("Warning: Options exist for non-existent phase jb.dae"); if (!PackManager.v().hasPhase("jb.cp-ule")) G.v().out.println("Warning: Options exist for non-existent phase jb.cp-ule"); if (!PackManager.v().hasPhase("jb.lp")) G.v().out.println("Warning: Options exist for non-existent phase jb.lp"); if (!PackManager.v().hasPhase("jb.ne")) G.v().out.println("Warning: Options exist for non-existent phase jb.ne"); if (!PackManager.v().hasPhase("jb.uce")) G.v().out.println("Warning: Options exist for non-existent phase jb.uce"); if (!PackManager.v().hasPhase("jb.tt")) G.v().out.println("Warning: Options exist for non-existent phase jb.tt"); if (!PackManager.v().hasPhase("jb.cbf")) G.v().out.println("Warning: Options exist for non-existent phase jb.cbf"); if (!PackManager.v().hasPhase("jj")) G.v().out.println("Warning: Options exist for non-existent phase jj"); if (!PackManager.v().hasPhase("jj.ls")) G.v().out.println("Warning: Options exist for non-existent phase jj.ls"); if (!PackManager.v().hasPhase("jj.sils")) G.v().out.println("Warning: Options exist for non-existent phase jj.sils"); if (!PackManager.v().hasPhase("jj.a")) G.v().out.println("Warning: Options exist for non-existent phase jj.a"); if (!PackManager.v().hasPhase("jj.ule")) G.v().out.println("Warning: Options exist for non-existent phase jj.ule"); if (!PackManager.v().hasPhase("jj.tr")) G.v().out.println("Warning: Options exist for non-existent phase jj.tr"); if (!PackManager.v().hasPhase("jj.ulp")) G.v().out.println("Warning: Options exist for non-existent phase jj.ulp"); if (!PackManager.v().hasPhase("jj.lns")) G.v().out.println("Warning: Options exist for non-existent phase jj.lns"); if (!PackManager.v().hasPhase("jj.cp")) G.v().out.println("Warning: Options exist for non-existent phase jj.cp"); if (!PackManager.v().hasPhase("jj.dae")) G.v().out.println("Warning: Options exist for non-existent phase jj.dae"); if (!PackManager.v().hasPhase("jj.cp-ule")) G.v().out.println("Warning: Options exist for non-existent phase jj.cp-ule"); if (!PackManager.v().hasPhase("jj.lp")) G.v().out.println("Warning: Options exist for non-existent phase jj.lp"); if (!PackManager.v().hasPhase("jj.ne")) G.v().out.println("Warning: Options exist for non-existent phase jj.ne"); if (!PackManager.v().hasPhase("jj.uce")) G.v().out.println("Warning: Options exist for non-existent phase jj.uce"); if (!PackManager.v().hasPhase("wjpp")) G.v().out.println("Warning: Options exist for non-existent phase wjpp"); if (!PackManager.v().hasPhase("wjpp.cimbt")) G.v().out.println("Warning: Options exist for non-existent phase wjpp.cimbt"); if (!PackManager.v().hasPhase("wspp")) G.v().out.println("Warning: Options exist for non-existent phase wspp"); if (!PackManager.v().hasPhase("cg")) G.v().out.println("Warning: Options exist for non-existent phase cg"); if (!PackManager.v().hasPhase("cg.cha")) G.v().out.println("Warning: Options exist for non-existent phase cg.cha"); if (!PackManager.v().hasPhase("cg.spark")) G.v().out.println("Warning: Options exist for non-existent phase cg.spark"); if (!PackManager.v().hasPhase("cg.paddle")) G.v().out.println("Warning: Options exist for non-existent phase cg.paddle"); if (!PackManager.v().hasPhase("wstp")) G.v().out.println("Warning: Options exist for non-existent phase wstp"); if (!PackManager.v().hasPhase("wsop")) G.v().out.println("Warning: Options exist for non-existent phase wsop"); if (!PackManager.v().hasPhase("wjtp")) G.v().out.println("Warning: Options exist for non-existent phase wjtp"); if (!PackManager.v().hasPhase("wjtp.mhp")) G.v().out.println("Warning: Options exist for non-existent phase wjtp.mhp"); if (!PackManager.v().hasPhase("wjtp.tn")) G.v().out.println("Warning: Options exist for non-existent phase wjtp.tn"); if (!PackManager.v().hasPhase("wjtp.rdc")) G.v().out.println("Warning: Options exist for non-existent phase wjtp.rdc"); if (!PackManager.v().hasPhase("wjop")) G.v().out.println("Warning: Options exist for non-existent phase wjop"); if (!PackManager.v().hasPhase("wjop.smb")) G.v().out.println("Warning: Options exist for non-existent phase wjop.smb"); if (!PackManager.v().hasPhase("wjop.si")) G.v().out.println("Warning: Options exist for non-existent phase wjop.si"); if (!PackManager.v().hasPhase("wjap")) G.v().out.println("Warning: Options exist for non-existent phase wjap"); if (!PackManager.v().hasPhase("wjap.ra")) G.v().out.println("Warning: Options exist for non-existent phase wjap.ra"); if (!PackManager.v().hasPhase("wjap.umt")) G.v().out.println("Warning: Options exist for non-existent phase wjap.umt"); if (!PackManager.v().hasPhase("wjap.uft")) G.v().out.println("Warning: Options exist for non-existent phase wjap.uft"); if (!PackManager.v().hasPhase("wjap.tqt")) G.v().out.println("Warning: Options exist for non-existent phase wjap.tqt"); if (!PackManager.v().hasPhase("wjap.cgg")) G.v().out.println("Warning: Options exist for non-existent phase wjap.cgg"); if (!PackManager.v().hasPhase("wjap.purity")) G.v().out.println("Warning: Options exist for non-existent phase wjap.purity"); if (!PackManager.v().hasPhase("shimple")) G.v().out.println("Warning: Options exist for non-existent phase shimple"); if (!PackManager.v().hasPhase("stp")) G.v().out.println("Warning: Options exist for non-existent phase stp"); if (!PackManager.v().hasPhase("sop")) G.v().out.println("Warning: Options exist for non-existent phase sop"); if (!PackManager.v().hasPhase("sop.cpf")) G.v().out.println("Warning: Options exist for non-existent phase sop.cpf"); if (!PackManager.v().hasPhase("jtp")) G.v().out.println("Warning: Options exist for non-existent phase jtp"); if (!PackManager.v().hasPhase("jop")) G.v().out.println("Warning: Options exist for non-existent phase jop"); if (!PackManager.v().hasPhase("jop.cse")) G.v().out.println("Warning: Options exist for non-existent phase jop.cse"); if (!PackManager.v().hasPhase("jop.bcm")) G.v().out.println("Warning: Options exist for non-existent phase jop.bcm"); if (!PackManager.v().hasPhase("jop.lcm")) G.v().out.println("Warning: Options exist for non-existent phase jop.lcm"); if (!PackManager.v().hasPhase("jop.cp")) G.v().out.println("Warning: Options exist for non-existent phase jop.cp"); if (!PackManager.v().hasPhase("jop.cpf")) G.v().out.println("Warning: Options exist for non-existent phase jop.cpf"); if (!PackManager.v().hasPhase("jop.cbf")) G.v().out.println("Warning: Options exist for non-existent phase jop.cbf"); if (!PackManager.v().hasPhase("jop.dae")) G.v().out.println("Warning: Options exist for non-existent phase jop.dae"); if (!PackManager.v().hasPhase("jop.nce")) G.v().out.println("Warning: Options exist for non-existent phase jop.nce"); if (!PackManager.v().hasPhase("jop.uce1")) G.v().out.println("Warning: Options exist for non-existent phase jop.uce1"); if (!PackManager.v().hasPhase("jop.ubf1")) G.v().out.println("Warning: Options exist for non-existent phase jop.ubf1"); if (!PackManager.v().hasPhase("jop.uce2")) G.v().out.println("Warning: Options exist for non-existent phase jop.uce2"); if (!PackManager.v().hasPhase("jop.ubf2")) G.v().out.println("Warning: Options exist for non-existent phase jop.ubf2"); if (!PackManager.v().hasPhase("jop.ule")) G.v().out.println("Warning: Options exist for non-existent phase jop.ule"); if (!PackManager.v().hasPhase("jap")) G.v().out.println("Warning: Options exist for non-existent phase jap"); if (!PackManager.v().hasPhase("jap.npc")) G.v().out.println("Warning: Options exist for non-existent phase jap.npc"); if (!PackManager.v().hasPhase("jap.npcolorer")) G.v().out.println("Warning: Options exist for non-existent phase jap.npcolorer"); if (!PackManager.v().hasPhase("jap.abc")) G.v().out.println("Warning: Options exist for non-existent phase jap.abc"); if (!PackManager.v().hasPhase("jap.profiling")) G.v().out.println("Warning: Options exist for non-existent phase jap.profiling"); if (!PackManager.v().hasPhase("jap.sea")) G.v().out.println("Warning: Options exist for non-existent phase jap.sea"); if (!PackManager.v().hasPhase("jap.fieldrw")) G.v().out.println("Warning: Options exist for non-existent phase jap.fieldrw"); if (!PackManager.v().hasPhase("jap.cgtagger")) G.v().out.println("Warning: Options exist for non-existent phase jap.cgtagger"); if (!PackManager.v().hasPhase("jap.parity")) G.v().out.println("Warning: Options exist for non-existent phase jap.parity"); if (!PackManager.v().hasPhase("jap.pat")) G.v().out.println("Warning: Options exist for non-existent phase jap.pat"); if (!PackManager.v().hasPhase("jap.lvtagger")) G.v().out.println("Warning: Options exist for non-existent phase jap.lvtagger"); if (!PackManager.v().hasPhase("jap.rdtagger")) G.v().out.println("Warning: Options exist for non-existent phase jap.rdtagger"); if (!PackManager.v().hasPhase("jap.che")) G.v().out.println("Warning: Options exist for non-existent phase jap.che"); if (!PackManager.v().hasPhase("jap.umt")) G.v().out.println("Warning: Options exist for non-existent phase jap.umt"); if (!PackManager.v().hasPhase("jap.lit")) G.v().out.println("Warning: Options exist for non-existent phase jap.lit"); if (!PackManager.v().hasPhase("jap.aet")) G.v().out.println("Warning: Options exist for non-existent phase jap.aet"); if (!PackManager.v().hasPhase("jap.dmt")) G.v().out.println("Warning: Options exist for non-existent phase jap.dmt"); if (!PackManager.v().hasPhase("gb")) G.v().out.println("Warning: Options exist for non-existent phase gb"); if (!PackManager.v().hasPhase("gb.a1")) G.v().out.println("Warning: Options exist for non-existent phase gb.a1"); if (!PackManager.v().hasPhase("gb.cf")) G.v().out.println("Warning: Options exist for non-existent phase gb.cf"); if (!PackManager.v().hasPhase("gb.a2")) G.v().out.println("Warning: Options exist for non-existent phase gb.a2"); if (!PackManager.v().hasPhase("gb.ule")) G.v().out.println("Warning: Options exist for non-existent phase gb.ule"); if (!PackManager.v().hasPhase("gop")) G.v().out.println("Warning: Options exist for non-existent phase gop"); if (!PackManager.v().hasPhase("bb")) G.v().out.println("Warning: Options exist for non-existent phase bb"); if (!PackManager.v().hasPhase("bb.lso")) G.v().out.println("Warning: Options exist for non-existent phase bb.lso"); if (!PackManager.v().hasPhase("bb.sco")) G.v().out.println("Warning: Options exist for non-existent phase bb.sco"); if (!PackManager.v().hasPhase("bb.pho")) G.v().out.println("Warning: Options exist for non-existent phase bb.pho"); if (!PackManager.v().hasPhase("bb.ule")) G.v().out.println("Warning: Options exist for non-existent phase bb.ule"); if (!PackManager.v().hasPhase("bb.lp")) G.v().out.println("Warning: Options exist for non-existent phase bb.lp"); if (!PackManager.v().hasPhase("bb.ne")) G.v().out.println("Warning: Options exist for non-existent phase bb.ne"); if (!PackManager.v().hasPhase("bop")) G.v().out.println("Warning: Options exist for non-existent phase bop"); if (!PackManager.v().hasPhase("tag")) G.v().out.println("Warning: Options exist for non-existent phase tag"); if (!PackManager.v().hasPhase("tag.ln")) G.v().out.println("Warning: Options exist for non-existent phase tag.ln"); if (!PackManager.v().hasPhase("tag.an")) G.v().out.println("Warning: Options exist for non-existent phase tag.an"); if (!PackManager.v().hasPhase("tag.dep")) G.v().out.println("Warning: Options exist for non-existent phase tag.dep"); if (!PackManager.v().hasPhase("tag.fieldrw")) G.v().out.println("Warning: Options exist for non-existent phase tag.fieldrw"); if (!PackManager.v().hasPhase("db")) G.v().out.println("Warning: Options exist for non-existent phase db"); if (!PackManager.v().hasPhase("db.transformations")) G.v().out.println("Warning: Options exist for non-existent phase db.transformations"); if (!PackManager.v().hasPhase("db.renamer")) G.v().out.println("Warning: Options exist for non-existent phase db.renamer"); if (!PackManager.v().hasPhase("db.deobfuscate")) G.v().out.println("Warning: Options exist for non-existent phase db.deobfuscate"); if (!PackManager.v().hasPhase("db.force-recompile")) G.v().out.println("Warning: Options exist for non-existent phase db.force-recompile"); } }
233,409
47.891915
1,235
java
soot
soot-master/src/main/generated/options/soot/options/PaddleOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Paddle. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class PaddleOptions { private Map<String, String> options; public PaddleOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Verbose -- * Print detailed information about the execution of Paddle. * * When this option is set to true, Paddle prints detailed * information about its execution. */ public boolean verbose() { return soot.PhaseOptions.getBoolean(options, "verbose"); } /** * Use BDDs -- * Use BDD version of Paddle. * * Causes Paddle to use BDD versions of its components */ public boolean bdd() { return soot.PhaseOptions.getBoolean(options, "bdd"); } /** * Dynamic reordering * Allows the BDD package to perform dynamic variable ordering. */ public boolean dynamic_order() { return soot.PhaseOptions.getBoolean(options, "dynamic-order"); } /** * Profile -- * Profile BDDs using JeddProfiler. * * Turns on JeddProfiler for profiling BDD operations. */ public boolean profile() { return soot.PhaseOptions.getBoolean(options, "profile"); } /** * Verbose GC -- * Print memory usage at each BDD garbage collection. * * Print memory usage at each BDD garbage collection. */ public boolean verbosegc() { return soot.PhaseOptions.getBoolean(options, "verbosegc"); } /** * Ignore Types Entirely -- * Make Paddle completely ignore declared types of variables. * * When this option is set to true, all parts of Paddle completely * ignore declared types of variables and casts. */ public boolean ignore_types() { return soot.PhaseOptions.getBoolean(options, "ignore-types"); } /** * Pre Jimplify -- * Jimplify all methods before starting Paddle. * * When this option is set to true, Paddle converts all available * methods to Jimple before starting the points-to analysis. This * allows the Jimplification time to be separated from the * points-to time. However, it increases the total time and memory * requirement, because all methods are Jimplified, rather than * only those deemed reachable by the points-to analysis. */ public boolean pre_jimplify() { return soot.PhaseOptions.getBoolean(options, "pre-jimplify"); } /** * Context-sensitive Heap Locations -- * Treat allocation sites context-sensitively. * * When this option is set to true, the context-sensitivity level * that is set for the context-sensitive call graph and for pointer * variables is also used to model heap locations * context-sensitively. When this option is false, heap locations * are modelled context-insensitively regardless of the * context-sensitivity level. */ public boolean context_heap() { return soot.PhaseOptions.getBoolean(options, "context-heap"); } /** * RTA -- * Emulate Rapid Type Analysis. * * Setting RTA to true sets types-for-sites to true, and causes * Paddle to use a single points-to set for all variables, giving * Rapid Type Analysis. */ public boolean rta() { return soot.PhaseOptions.getBoolean(options, "rta"); } /** * Field Based -- * Use a field-based rather than field-sensitive representation. * * When this option is set to true, fields are represented by * variable (Green) nodes, and the object that the field belongs to * is ignored (all objects are lumped together), giving a * field-based analysis. Otherwise, fields are represented by field * reference (Red) nodes, and the objects that they belong to are * distinguished, giving a field-sensitive analysis. */ public boolean field_based() { return soot.PhaseOptions.getBoolean(options, "field-based"); } /** * Types For Sites -- * Represent objects by their actual type rather than allocation * site. * * When this option is set to true, types rather than allocation * sites are used as the elements of the points-to sets. */ public boolean types_for_sites() { return soot.PhaseOptions.getBoolean(options, "types-for-sites"); } /** * Merge String Buffer -- * Represent all StringBuffers as one object. * * When this option is set to true, all allocation sites creating * java.lang.StringBuffer objects are grouped together as a single * allocation site. Allocation sites creating a * java.lang.StringBuilder object are also grouped together as a * single allocation site. */ public boolean merge_stringbuffer() { return soot.PhaseOptions.getBoolean(options, "merge-stringbuffer"); } /** * Propagate All String Constants -- * Propagate all string constants, not just class names. * * When this option is set to false, Paddle only distinguishes * string constants that may be the name of a class loaded * dynamically using reflection, and all other string constants are * lumped together into a single string constant node. Setting this * option to true causes all string constants to be propagated * individually. */ public boolean string_constants() { return soot.PhaseOptions.getBoolean(options, "string-constants"); } /** * Simulate Natives -- * Simulate effects of native methods in standard class library. * * When this option is set to true, the effects of native methods * in the standard Java class library are simulated. */ public boolean simulate_natives() { return soot.PhaseOptions.getBoolean(options, "simulate-natives"); } /** * Global Nodes in Simulated Natives -- * Use global node to model variables in simulations of native * methods. * * The simulations of native methods such as System.arraycopy() use * temporary local variable nodes. Setting this switch to true * causes them to use global variable nodes instead, reducing * precision. The switch exists only to make it possible to measure * this effect on precision; there is no other practical reason to * set it to true. */ public boolean global_nodes_in_natives() { return soot.PhaseOptions.getBoolean(options, "global-nodes-in-natives"); } /** * Simple Edges Bidirectional -- * Equality-based analysis between variable nodes. * * When this option is set to true, all edges connecting variable * (Green) nodes are made bidirectional, as in Steensgaard's * analysis. */ public boolean simple_edges_bidirectional() { return soot.PhaseOptions.getBoolean(options, "simple-edges-bidirectional"); } /** * this Pointer Assignment Edge -- * Use pointer assignment edges to model this parameters. * * When constructing a call graph on-the-fly during points-to * analysis, Paddle normally propagates only those receivers that * cause a method to be invoked to the this pointer of the method. * When this option is set to true, however, Paddle instead models * flow of receivers as an assignnment edge from the receiver at * the call site to the this pointer of the method, reducing * precision. */ public boolean this_edges() { return soot.PhaseOptions.getBoolean(options, "this-edges"); } /** * Precise newInstance -- * Make newInstance only allocate objects of dynamic classes. * * Normally, newInstance() calls are treated as if they may return * an object of any type. Setting this option to true causes them * to be treated as if they return only objects of the type of some * dynamic class. */ public boolean precise_newinstance() { return soot.PhaseOptions.getBoolean(options, "precise-newinstance"); } /** * Print Context Counts -- * Print number of contexts for each method. * * Causes Paddle to print the number of contexts for each method * and call edge, and the number of equivalence classes of contexts * for each variable node. */ public boolean context_counts() { return soot.PhaseOptions.getBoolean(options, "context-counts"); } /** * Print Context Counts (Totals only) -- * Print total number of contexts. * * Causes Paddle to print the number of contexts and number of * context equivalence classes. */ public boolean total_context_counts() { return soot.PhaseOptions.getBoolean(options, "total-context-counts"); } /** * Method Context Counts (Totals only) -- * Print number of contexts for each method. * * Causes Paddle to print the number of contexts and number of * context equivalence classes split out by method. Requires * total-context-counts to also be turned on. */ public boolean method_context_counts() { return soot.PhaseOptions.getBoolean(options, "method-context-counts"); } /** * Calculate Set Mass -- * Calculate statistics about points-to set sizes. * * When this option is set to true, Paddle computes and prints * various cryptic statistics about the size of the points-to sets * computed. */ public boolean set_mass() { return soot.PhaseOptions.getBoolean(options, "set-mass"); } /** * Number nodes -- * Print node numbers in dumps. * * When printing debug information about nodes, this option causes * the node number of each node to be printed. */ public boolean number_nodes() { return soot.PhaseOptions.getBoolean(options, "number-nodes"); } /** * Variable ordering * Selects one of the BDD variable orderings hard-coded in Paddle. */ public int order() { return soot.PhaseOptions.getInt(options, "order"); } /** * BDD Nodes -- * Number of BDD nodes to allocate (0=unlimited). * * This option specifies the number of BDD nodes to be used by the * BDD backend. A value of 0 causes the backend to start with one * million nodes, and allocate more as required. A value other than * zero causes the backend to start with the specified size, and * prevents it from ever allocating any more nodes. */ public int bdd_nodes() { return soot.PhaseOptions.getInt(options, "bdd-nodes"); } /** * Context length (k) * The maximum length of call string or receiver object string used * as context. */ public int k() { return soot.PhaseOptions.getInt(options, "k"); } public static final int conf_ofcg = 1; public static final int conf_cha = 2; public static final int conf_cha_aot = 3; public static final int conf_ofcg_aot = 4; public static final int conf_cha_context_aot = 5; public static final int conf_ofcg_context_aot = 6; public static final int conf_cha_context = 7; public static final int conf_ofcg_context = 8; /** * Configuration -- * Select Paddle configuration. * * Selects the configuration of points-to analysis and call graph * construction to be used in Paddle. */ public int conf() { String s = soot.PhaseOptions.getString(options, "conf"); if (s == null || s.isEmpty()) return conf_ofcg; if (s.equalsIgnoreCase("ofcg")) return conf_ofcg; if (s.equalsIgnoreCase("cha")) return conf_cha; if (s.equalsIgnoreCase("cha-aot")) return conf_cha_aot; if (s.equalsIgnoreCase("ofcg-aot")) return conf_ofcg_aot; if (s.equalsIgnoreCase("cha-context-aot")) return conf_cha_context_aot; if (s.equalsIgnoreCase("ofcg-context-aot")) return conf_ofcg_context_aot; if (s.equalsIgnoreCase("cha-context")) return conf_cha_context; if (s.equalsIgnoreCase("ofcg-context")) return conf_ofcg_context; throw new RuntimeException(String.format("Invalid value %s of phase option conf", s)); } public static final int q_auto = 1; public static final int q_trad = 2; public static final int q_bdd = 3; public static final int q_debug = 4; public static final int q_trace = 5; public static final int q_numtrace = 6; /** * Worklist Implementation -- * Select queue implementation. * * Select the implementation of worklists to be used in Paddle. */ public int q() { String s = soot.PhaseOptions.getString(options, "q"); if (s == null || s.isEmpty()) return q_auto; if (s.equalsIgnoreCase("auto")) return q_auto; if (s.equalsIgnoreCase("trad")) return q_trad; if (s.equalsIgnoreCase("bdd")) return q_bdd; if (s.equalsIgnoreCase("debug")) return q_debug; if (s.equalsIgnoreCase("trace")) return q_trace; if (s.equalsIgnoreCase("numtrace")) return q_numtrace; throw new RuntimeException(String.format("Invalid value %s of phase option q", s)); } public static final int backend_auto = 1; public static final int backend_buddy = 2; public static final int backend_cudd = 3; public static final int backend_sable = 4; public static final int backend_javabdd = 5; public static final int backend_none = 6; /** * Backend -- * Select BDD backend. * * This option tells Paddle which implementation of BDDs to use. */ public int backend() { String s = soot.PhaseOptions.getString(options, "backend"); if (s == null || s.isEmpty()) return backend_auto; if (s.equalsIgnoreCase("auto")) return backend_auto; if (s.equalsIgnoreCase("buddy")) return backend_buddy; if (s.equalsIgnoreCase("cudd")) return backend_cudd; if (s.equalsIgnoreCase("sable")) return backend_sable; if (s.equalsIgnoreCase("javabdd")) return backend_javabdd; if (s.equalsIgnoreCase("none")) return backend_none; throw new RuntimeException(String.format("Invalid value %s of phase option backend", s)); } public static final int context_insens = 1; public static final int context_1cfa = 2; public static final int context_kcfa = 3; public static final int context_objsens = 4; public static final int context_kobjsens = 5; public static final int context_uniqkobjsens = 6; public static final int context_threadkobjsens = 7; /** * Context abstraction -- * Select context-sensitivity level. * * This option tells Paddle which level of context-sensitivity to * use in constructing the call graph. */ public int context() { String s = soot.PhaseOptions.getString(options, "context"); if (s == null || s.isEmpty()) return context_insens; if (s.equalsIgnoreCase("insens")) return context_insens; if (s.equalsIgnoreCase("1cfa")) return context_1cfa; if (s.equalsIgnoreCase("kcfa")) return context_kcfa; if (s.equalsIgnoreCase("objsens")) return context_objsens; if (s.equalsIgnoreCase("kobjsens")) return context_kobjsens; if (s.equalsIgnoreCase("uniqkobjsens")) return context_uniqkobjsens; if (s.equalsIgnoreCase("threadkobjsens")) return context_threadkobjsens; throw new RuntimeException(String.format("Invalid value %s of phase option context", s)); } public static final int propagator_auto = 1; public static final int propagator_iter = 2; public static final int propagator_worklist = 3; public static final int propagator_alias = 4; public static final int propagator_bdd = 5; public static final int propagator_incbdd = 6; /** * Propagator -- * Select propagation algorithm. * * This option tells Paddle which propagation algorithm to use. */ public int propagator() { String s = soot.PhaseOptions.getString(options, "propagator"); if (s == null || s.isEmpty()) return propagator_auto; if (s.equalsIgnoreCase("auto")) return propagator_auto; if (s.equalsIgnoreCase("iter")) return propagator_iter; if (s.equalsIgnoreCase("worklist")) return propagator_worklist; if (s.equalsIgnoreCase("alias")) return propagator_alias; if (s.equalsIgnoreCase("bdd")) return propagator_bdd; if (s.equalsIgnoreCase("incbdd")) return propagator_incbdd; throw new RuntimeException(String.format("Invalid value %s of phase option propagator", s)); } public static final int set_impl_hash = 1; public static final int set_impl_bit = 2; public static final int set_impl_hybrid = 3; public static final int set_impl_array = 4; public static final int set_impl_heintze = 5; public static final int set_impl_double = 6; /** * Set Implementation -- * Select points-to set implementation. * * Select an implementation of points-to sets for Paddle to use. */ public int set_impl() { String s = soot.PhaseOptions.getString(options, "set-impl"); if (s == null || s.isEmpty()) return set_impl_double; if (s.equalsIgnoreCase("hash")) return set_impl_hash; if (s.equalsIgnoreCase("bit")) return set_impl_bit; if (s.equalsIgnoreCase("hybrid")) return set_impl_hybrid; if (s.equalsIgnoreCase("array")) return set_impl_array; if (s.equalsIgnoreCase("heintze")) return set_impl_heintze; if (s.equalsIgnoreCase("double")) return set_impl_double; throw new RuntimeException(String.format("Invalid value %s of phase option set-impl", s)); } public static final int double_set_old_hash = 1; public static final int double_set_old_bit = 2; public static final int double_set_old_hybrid = 3; public static final int double_set_old_array = 4; public static final int double_set_old_heintze = 5; /** * Double Set Old -- * Select implementation of points-to set for old part of double * set. * * Select an implementation for sets of old objects in the double * points-to set implementation. This option has no effect unless * Set Implementation is set to double. */ public int double_set_old() { String s = soot.PhaseOptions.getString(options, "double-set-old"); if (s == null || s.isEmpty()) return double_set_old_hybrid; if (s.equalsIgnoreCase("hash")) return double_set_old_hash; if (s.equalsIgnoreCase("bit")) return double_set_old_bit; if (s.equalsIgnoreCase("hybrid")) return double_set_old_hybrid; if (s.equalsIgnoreCase("array")) return double_set_old_array; if (s.equalsIgnoreCase("heintze")) return double_set_old_heintze; throw new RuntimeException(String.format("Invalid value %s of phase option double-set-old", s)); } public static final int double_set_new_hash = 1; public static final int double_set_new_bit = 2; public static final int double_set_new_hybrid = 3; public static final int double_set_new_array = 4; public static final int double_set_new_heintze = 5; /** * Double Set New -- * Select implementation of points-to set for new part of double * set. * * Select an implementation for sets of new objects in the double * points-to set implementation. This option has no effect unless * Set Implementation is set to double. */ public int double_set_new() { String s = soot.PhaseOptions.getString(options, "double-set-new"); if (s == null || s.isEmpty()) return double_set_new_hybrid; if (s.equalsIgnoreCase("hash")) return double_set_new_hash; if (s.equalsIgnoreCase("bit")) return double_set_new_bit; if (s.equalsIgnoreCase("hybrid")) return double_set_new_hybrid; if (s.equalsIgnoreCase("array")) return double_set_new_array; if (s.equalsIgnoreCase("heintze")) return double_set_new_heintze; throw new RuntimeException(String.format("Invalid value %s of phase option double-set-new", s)); } }
22,161
33.35969
104
java
soot
soot-master/src/main/generated/options/soot/options/ProfilingOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Profiling Generator. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class ProfilingOptions { private Map<String, String> options; public ProfilingOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Not Main Entry -- * Instrument runBenchmark() instead of main(). * * Insert the calls to the MultiCounter at the beginning and end of * methods with the signature long runBenchmark(java.lang.String[]) * instead of the signature void main(java.lang.String[]). */ public boolean notmainentry() { return soot.PhaseOptions.getBoolean(options, "notmainentry"); } }
1,781
29.20339
88
java
soot
soot-master/src/main/generated/options/soot/options/PurityOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Purity Analysis [AM]. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class PurityOptions { private Map<String, String> options; public PurityOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Dump one .dot files for each method summary */ public boolean dump_summaries() { return soot.PhaseOptions.getBoolean(options, "dump-summaries"); } /** * Dump .dot call-graph annotated with method summaries (huge) */ public boolean dump_cg() { return soot.PhaseOptions.getBoolean(options, "dump-cg"); } /** * Dump one .dot for each intra-procedural method analysis (long) */ public boolean dump_intra() { return soot.PhaseOptions.getBoolean(options, "dump-intra"); } /** * Print analysis results */ public boolean print() { return soot.PhaseOptions.getBoolean(options, "print"); } /** * Annotate class files -- * Marks pure methods with a purity bytecode attribute. * */ public boolean annotate() { return soot.PhaseOptions.getBoolean(options, "annotate"); } /** * Be (quite) verbose */ public boolean verbose() { return soot.PhaseOptions.getBoolean(options, "verbose"); } }
2,428
25.692308
88
java
soot
soot-master/src/main/generated/options/soot/options/RenameDuplicatedClasses.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Rename duplicated classes. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class RenameDuplicatedClasses { private Map<String, String> options; public RenameDuplicatedClasses(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * FixedClassNames -- * Set for the fixed class names.. * * Use this parameter to set some class names unchangable even they * are duplicated. The fixed class name list cannot contain * duplicated class names. Using '-' to split multiple class names * (e.g., fcn:a.b.c-a.b.d). */ public String fixed_class_names() { return soot.PhaseOptions.getString(options, "fcn fixed-class-names"); } }
1,834
29.583333
88
java
soot
soot-master/src/main/generated/options/soot/options/SETOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Side Effect tagger. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class SETOptions { private Map<String, String> options; public SETOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Build naive dependence graph * When set to true, the dependence graph is built with a node for * each statement, without merging the nodes for equivalent * statements. This makes it possible to measure the effect of * merging nodes for equivalent statements on the size of the * dependence graph. */ public boolean naive() { return soot.PhaseOptions.getBoolean(options, "naive"); } }
1,794
29.423729
88
java
soot
soot-master/src/main/generated/options/soot/options/SIOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Static Inliner. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class SIOptions { private Map<String, String> options; public SIOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Reconstruct Jimple body after inlining * When a method with array parameters is inlined, its variables * may need to be assigned different types than they had in the * original method to produce compilable code. When this option is * set, Soot re-runs the Jimple Body pack on each method body which * has had another method inlined into it so that the typing * algorithm can reassign the types. */ public boolean rerun_jb() { return soot.PhaseOptions.getBoolean(options, "rerun-jb"); } /** * Insert Null Checks * Insert, before the inlined body of the target method, a check * that throws a NullPointerException if the receiver object is * null. This ensures that inlining will not eliminate exceptions * which would have occurred in its absence. */ public boolean insert_null_checks() { return soot.PhaseOptions.getBoolean(options, "insert-null-checks"); } /** * Insert Redundant Casts * Insert extra casts for the Java bytecode verifier. The verifier * may complain if the inlined method uses this and the declared * type of the receiver of the call being inlined is different from * the type implementing the target method being inlined. Say, for * example, that Singer is an interface declaring the sing() method * and that the call graph shows that all receiver objects at a * particular call site, singer.sing() (with singer declared as a * Singer) are in fact Bird objects ( Bird being a class that * implements Singer). The implementation of Bird.sing() may * perform operations on this which are only allowed on Birds, * rather than Singers. The Insert Redundant Casts option ensures * that this cannot lead to verification errors, by inserting a * cast of bird to the Bird type before inlining the body of * Bird.sing(). */ public boolean insert_redundant_casts() { return soot.PhaseOptions.getBoolean(options, "insert-redundant-casts"); } /** * Max Container Size * Determines the maximum number of Jimple statements for a * container method. If a method has more than this number of * Jimple statements, then no methods will be inlined into it. */ public int max_container_size() { return soot.PhaseOptions.getInt(options, "max-container-size"); } /** * Max Inlinee Size * Determines the maximum number of Jimple statements for an * inlinee method. If a method has more than this number of Jimple * statements, then it will not be inlined into other methods. */ public int max_inlinee_size() { return soot.PhaseOptions.getInt(options, "max-inlinee-size"); } /** * Expansion Factor * Determines the maximum allowed expansion of a method. Inlining * will cause the method to grow by a factor of no more than the * Expansion Factor. */ public float expansion_factor() { return soot.PhaseOptions.getFloat(options, "expansion-factor"); } public static final int allowed_modifier_changes_unsafe = 1; public static final int allowed_modifier_changes_safe = 2; public static final int allowed_modifier_changes_none = 3; /** * Allowed Modifier Changes * Specify which changes in visibility modifiers are allowed. */ public int allowed_modifier_changes() { String s = soot.PhaseOptions.getString(options, "allowed-modifier-changes"); if (s == null || s.isEmpty()) return allowed_modifier_changes_unsafe; if (s.equalsIgnoreCase("unsafe")) return allowed_modifier_changes_unsafe; if (s.equalsIgnoreCase("safe")) return allowed_modifier_changes_safe; if (s.equalsIgnoreCase("none")) return allowed_modifier_changes_none; throw new RuntimeException(String.format("Invalid value %s of phase option allowed-modifier-changes", s)); } }
5,390
36.17931
114
java
soot
soot-master/src/main/generated/options/soot/options/SMBOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Static Method Binder. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class SMBOptions { private Map<String, String> options; public SMBOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Insert Null Checks * Insert a check that, before invoking the static copy of the * target method, throws a NullPointerException if the receiver * object is null. This ensures that static method binding does not * eliminate exceptions which would have occurred in its absence. */ public boolean insert_null_checks() { return soot.PhaseOptions.getBoolean(options, "insert-null-checks"); } /** * Insert Redundant Casts * Insert extra casts for the Java bytecode verifier. If the target * method uses its this parameter, a reference to the receiver * object must be passed to the static copy of the target method. * The verifier may complain if the declared type of the receiver * parameter does not match the type implementing the target * method. Say, for example, that Singer is an interface declaring * the sing() method and that the call graph shows all receiver * objects at a particular call site, singer.sing() (with singer * declared as a Singer) are in fact Bird objects ( Bird being a * class that implements Singer). The virtual call singer.sing() is * effectively replaced with the static call * Bird.staticsing(singer). Bird.staticsing() may perform * operations on its parameter which are only allowed on Birds, * rather than Singers. The Insert Redundant Casts option inserts a * cast of singer to the Bird type, to prevent complaints from the * verifier. */ public boolean insert_redundant_casts() { return soot.PhaseOptions.getBoolean(options, "insert-redundant-casts"); } public static final int allowed_modifier_changes_unsafe = 1; public static final int allowed_modifier_changes_safe = 2; public static final int allowed_modifier_changes_none = 3; /** * Allowed Modifier Changes * Specify which changes in visibility modifiers are allowed. */ public int allowed_modifier_changes() { String s = soot.PhaseOptions.getString(options, "allowed-modifier-changes"); if (s == null || s.isEmpty()) return allowed_modifier_changes_unsafe; if (s.equalsIgnoreCase("unsafe")) return allowed_modifier_changes_unsafe; if (s.equalsIgnoreCase("safe")) return allowed_modifier_changes_safe; if (s.equalsIgnoreCase("none")) return allowed_modifier_changes_none; throw new RuntimeException(String.format("Invalid value %s of phase option allowed-modifier-changes", s)); } }
3,942
36.913462
114
java
soot
soot-master/src/main/generated/options/soot/options/ShimpleOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Shimple Control. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class ShimpleOptions { private Map<String, String> options; public ShimpleOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Shimple Node Elimination Optimizations -- * Node elimination optimizations. * * Perform some optimizations, such as dead code elimination and * local aggregation, before/after eliminating nodes. */ public boolean node_elim_opt() { return soot.PhaseOptions.getBoolean(options, "node-elim-opt"); } /** * Local Name Standardization -- * Uses naming scheme of the Local Name Standardizer.. * * If enabled, the Local Name Standardizer is applied whenever * Shimple creates new locals. Normally, Shimple will retain the * original local names as far as possible and use an underscore * notation to denote SSA subscripts. This transformation does not * otherwise affect Shimple behaviour. */ public boolean standard_local_names() { return soot.PhaseOptions.getBoolean(options, "standard-local-names"); } /** * Extended SSA (SSI) -- * Compute extended SSA (SSI) form. * * If enabled, Shimple will create extended SSA (SSI) form. */ public boolean extended() { return soot.PhaseOptions.getBoolean(options, "extended"); } /** * Debugging Output -- * Enables debugging output, if any. * * If enabled, Soot may print out warnings and messages useful for * debugging the Shimple module. Automatically enabled by the * global debug switch. */ public boolean debug() { return soot.PhaseOptions.getBoolean(options, "debug"); } }
2,894
29.797872
88
java
soot
soot-master/src/main/generated/options/soot/options/SparkOptions.java
package soot.options; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-2.1.html>. * #L% */ /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */ import java.util.*; /** Option parser for Spark. */ @javax.annotation.Generated(value = "Saxonica v3.0", comments = "from soot_options.xml") public class SparkOptions { private Map<String, String> options; public SparkOptions(Map<String, String> options) { this.options = options; } /** * Enabled */ public boolean enabled() { return soot.PhaseOptions.getBoolean(options, "enabled"); } /** * Verbose -- * Print detailed information about the execution of Spark. * * When this option is set to true, Spark prints detailed * information about its execution. */ public boolean verbose() { return soot.PhaseOptions.getBoolean(options, "verbose"); } /** * Ignore Types Entirely -- * Make Spark completely ignore declared types of variables. * * When this option is set to true, all parts of Spark completely * ignore declared types of variables and casts. */ public boolean ignore_types() { return soot.PhaseOptions.getBoolean(options, "ignore-types"); } /** * Force Garbage Collections -- * Force garbage collection for measuring memory usage. * * When this option is set to true, calls to System.gc() will be * made at various points to allow memory usage to be measured. */ public boolean force_gc() { return soot.PhaseOptions.getBoolean(options, "force-gc"); } /** * Pre Jimplify -- * Jimplify all methods before starting Spark. * * When this option is set to true, Spark converts all available * methods to Jimple before starting the points-to analysis. This * allows the Jimplification time to be separated from the * points-to time. However, it increases the total time and memory * requirement, because all methods are Jimplified, rather than * only those deemed reachable by the points-to analysis. */ public boolean pre_jimplify() { return soot.PhaseOptions.getBoolean(options, "pre-jimplify"); } /** * AppOnly -- * Consider only application classes. * * Setting this option to true causes Soot to only consider * application classes when building the callgraph. The resulting * callgraph will be inherently unsound. Still, this option can * make sense if performance optimization and memory reduction are * your primary goal. */ public boolean apponly() { return soot.PhaseOptions.getBoolean(options, "apponly"); } /** * VTA -- * Emulate Variable Type Analysis. * * Setting VTA to true has the effect of setting field-based, * types-for-sites, and simplify-sccs to true, and on-fly-cg to * false, to simulate Variable Type Analysis, described in our * OOPSLA 2000 paper. Note that the algorithm differs from the * original VTA in that it handles array elements more precisely. */ public boolean vta() { return soot.PhaseOptions.getBoolean(options, "vta"); } /** * RTA -- * Emulate Rapid Type Analysis. * * Setting RTA to true sets types-for-sites to true, and causes * Spark to use a single points-to set for all variables, giving * Rapid Type Analysis. */ public boolean rta() { return soot.PhaseOptions.getBoolean(options, "rta"); } /** * Field Based -- * Use a field-based rather than field-sensitive representation. * * When this option is set to true, fields are represented by * variable (Green) nodes, and the object that the field belongs to * is ignored (all objects are lumped together), giving a * field-based analysis. Otherwise, fields are represented by field * reference (Red) nodes, and the objects that they belong to are * distinguished, giving a field-sensitive analysis. */ public boolean field_based() { return soot.PhaseOptions.getBoolean(options, "field-based"); } /** * Types For Sites -- * Represent objects by their actual type rather than allocation * site. * * When this option is set to true, types rather than allocation * sites are used as the elements of the points-to sets. */ public boolean types_for_sites() { return soot.PhaseOptions.getBoolean(options, "types-for-sites"); } /** * Merge String Buffer -- * Represent all StringBuffers as one object. * * When this option is set to true, all allocation sites creating * java.lang.StringBuffer objects are grouped together as a single * allocation site. */ public boolean merge_stringbuffer() { return soot.PhaseOptions.getBoolean(options, "merge-stringbuffer"); } /** * Propagate All String Constants -- * Propagate all string constants, not just class names. * * When this option is set to false, Spark only distinguishes * string constants that may be the name of a class loaded * dynamically using reflection, and all other string constants are * lumped together into a single string constant node. Setting this * option to true causes all string constants to be propagated * individually. */ public boolean string_constants() { return soot.PhaseOptions.getBoolean(options, "string-constants"); } /** * Simulate Natives -- * Simulate effects of native methods in standard class library. * * When this option is set to true, the effects of native methods * in the standard Java class library are simulated. */ public boolean simulate_natives() { return soot.PhaseOptions.getBoolean(options, "simulate-natives"); } /** * Treat EMPTY as Alloc -- * Treat singletons for empty sets etc. as allocation sites. * * When this option is set to true, Spark treats references to * EMPTYSET, EMPTYMAP, and EMPTYLIST as allocation sites for * HashSet, HashMap and LinkedList objects respectively, and * references to Hashtable.emptyIterator as allocation sites for * Hashtable.EmptyIterator. This enables subsequent analyses to * differentiate different uses of Java's immutable empty * collections. */ public boolean empties_as_allocs() { return soot.PhaseOptions.getBoolean(options, "empties-as-allocs"); } /** * Simple Edges Bidirectional -- * Equality-based analysis between variable nodes. * * When this option is set to true, all edges connecting variable * (Green) nodes are made bidirectional, as in Steensgaard's * analysis. */ public boolean simple_edges_bidirectional() { return soot.PhaseOptions.getBoolean(options, "simple-edges-bidirectional"); } /** * On Fly Call Graph -- * Build call graph as receiver types become known. * * When this option is set to true, the call graph is computed * on-the-fly as points-to information is computed. Otherwise, an * initial CHA approximation to the call graph is used. */ public boolean on_fly_cg() { return soot.PhaseOptions.getBoolean(options, "on-fly-cg"); } /** * Simplify Offline -- * Collapse single-entry subgraphs of the PAG. * * When this option is set to true, variable (Green) nodes which * form single-entry subgraphs (so they must have the same * points-to set) are merged before propagation begins. */ public boolean simplify_offline() { return soot.PhaseOptions.getBoolean(options, "simplify-offline"); } /** * Simplify SCCs -- * Collapse strongly-connected components of the PAG. * * When this option is set to true, variable (Green) nodes which * form strongly-connected components (so they must have the same * points-to set) are merged before propagation begins. */ public boolean simplify_sccs() { return soot.PhaseOptions.getBoolean(options, "simplify-sccs"); } /** * Ignore Types For SCCs -- * Ignore declared types when determining node equivalence for SCCs. * * When this option is set to true, when collapsing * strongly-connected components, nodes forming SCCs are collapsed * regardless of their declared type. The collapsed SCC is given * the most general type of all the nodes in the component. When * this option is set to false, only edges connecting nodes of the * same type are considered when detecting SCCs. This option has no * effect unless simplify-sccs is true. */ public boolean ignore_types_for_sccs() { return soot.PhaseOptions.getBoolean(options, "ignore-types-for-sccs"); } /** * Dump HTML -- * Dump pointer assignment graph to HTML for debugging. * * When this option is set to true, a browseable HTML * representation of the pointer assignment graph is output to a * file called pag.jar after the analysis completes. Note that this * representation is typically very large. */ public boolean dump_html() { return soot.PhaseOptions.getBoolean(options, "dump-html"); } /** * Dump PAG -- * Dump pointer assignment graph for other solvers. * * When this option is set to true, a representation of the pointer * assignment graph suitable for processing with other solvers * (such as the BDD-based solver) is output before the analysis * begins. */ public boolean dump_pag() { return soot.PhaseOptions.getBoolean(options, "dump-pag"); } /** * Dump Solution -- * Dump final solution for comparison with other solvers. * * When this option is set to true, a representation of the * resulting points-to sets is dumped. The format is similar to * that of the Dump PAG option, and is therefore suitable for * comparison with the results of other solvers. */ public boolean dump_solution() { return soot.PhaseOptions.getBoolean(options, "dump-solution"); } /** * Topological Sort -- * Sort variable nodes in dump. * * When this option is set to true, the representation dumped by * the Dump PAG option is dumped with the variable (green) nodes in * (pseudo-)topological order. This option has no effect unless * Dump PAG is true. */ public boolean topo_sort() { return soot.PhaseOptions.getBoolean(options, "topo-sort"); } /** * Dump Types -- * Include declared types in dump. * * When this option is set to true, the representation dumped by * the Dump PAG option includes type information for all nodes. * This option has no effect unless Dump PAG is true. */ public boolean dump_types() { return soot.PhaseOptions.getBoolean(options, "dump-types"); } /** * Class Method Var -- * In dump, label variables by class and method. * * When this option is set to true, the representation dumped by * the Dump PAG option represents nodes by numbering each class, * method, and variable within the method separately, rather than * assigning a single integer to each node. This option has no * effect unless Dump PAG is true. Setting Class Method Var to true * has the effect of setting Topological Sort to false. */ public boolean class_method_var() { return soot.PhaseOptions.getBoolean(options, "class-method-var"); } /** * Dump Answer -- * Dump computed reaching types for comparison with other solvers. * * When this option is set to true, the computed reaching types for * each variable are dumped to a file, so that they can be compared * with the results of other analyses (such as the old VTA). */ public boolean dump_answer() { return soot.PhaseOptions.getBoolean(options, "dump-answer"); } /** * Add Tags -- * Output points-to results in tags for viewing with the Jimple. * * When this option is set to true, the results of the analysis are * encoded within tags and printed with the resulting Jimple code. */ public boolean add_tags() { return soot.PhaseOptions.getBoolean(options, "add-tags"); } /** * Calculate Set Mass -- * Calculate statistics about points-to set sizes. * * When this option is set to true, Spark computes and prints * various cryptic statistics about the size of the points-to sets * computed. */ public boolean set_mass() { return soot.PhaseOptions.getBoolean(options, "set-mass"); } /** * Demand-driven refinement-based context-sensitive points-to analysis -- * After running Spark, refine points-to sets on demand with * context information. * * When this option is set to true, Manu Sridharan's demand-driven, * refinement-based points-to analysis (PLDI 06) is applied after * Spark was run. */ public boolean cs_demand() { return soot.PhaseOptions.getBoolean(options, "cs-demand"); } /** * Create lazy points-to sets -- * Create lazy points-to sets that create context information only * when needed.. * * When this option is disabled, context information is computed * for every query to the reachingObjects method. When it is * enabled, a call to reachingObjects returns a lazy wrapper object * that contains a context-insensitive points-to set. This set is * then automatically refined with context information when * necessary, i.e. when we try to determine the intersection with * another points-to set and this intersection seems to be * non-empty. */ public boolean lazy_pts() { return soot.PhaseOptions.getBoolean(options, "lazy-pts"); } /** * Geometric, context-sensitive points-to analysis -- * This switch enables/disables the geometric analysis. * * This switch enables/disables the geometric analysis. */ public boolean geom_pta() { return soot.PhaseOptions.getBoolean(options, "geom-pta"); } /** * Transform to context-insensitive result -- * Transform to context-insensitive result. * * If you stick to working with SPARK, you can use this option to * transform the context sensitive result to insensitive result. * After the transformation, the context sensitive points-to quries * cannot be answered. */ public boolean geom_trans() { return soot.PhaseOptions.getBoolean(options, "geom-trans"); } /** * Blocking strategy for recursive calls -- * Enable blocking strategy for recursive calls. * * Blocking strategy is a 1CFA model for recursive calls. This * model significantly improves the precision. */ public boolean geom_blocking() { return soot.PhaseOptions.getBoolean(options, "geom-blocking"); } /** * Pointers processed by geomPTA -- * Processing pointers that impact pointers in application code * only. * * When this option is true, geomPTA only processes the pointers in * library functions ( java.*, sun.*, and etc.) that potentially * impact the points-to information of pointers in application * code, the pointers in application code, and the base pointers at * virtual callsites. */ public boolean geom_app_only() { return soot.PhaseOptions.getBoolean(options, "geom-app-only"); } /** * Maximal traversal -- * Make the analysis traverse at most this number of nodes per * query. * * Make the analysis traverse at most this number of nodes per * query. This quota is evenly shared between multiple passes (see * next option). */ public int traversal() { return soot.PhaseOptions.getInt(options, "traversal"); } /** * Maximal number of passes -- * Perform at most this number of refinement iterations. * * Perform at most this number of refinement iterations. Each * iteration traverses at most ( traverse / passes ) nodes. */ public int passes() { return soot.PhaseOptions.getInt(options, "passes"); } /** * Precision evaluation methodologies -- * Precision evaluation methodologies. * * We internally provide some precision evaluation methodologies * and classify the evaluation strength into three levels. If level * is 0, we do nothing. If level is 1, we report the statistical * information about the points-to result. If level is 2, we * perform the virtual callsite resolution, static cast safety and * all-pairs alias evaluations. */ public int geom_eval() { return soot.PhaseOptions.getInt(options, "geom-eval"); } /** * Fractional parameter -- * Fractional parameter for precision/performance trade-off. * * This option specifies the fractional parameter, which manually * balances the precision and the performance. Smaller value means * better performance and worse precision. */ public int geom_frac_base() { return soot.PhaseOptions.getInt(options, "geom-frac-base"); } /** * Iterations -- * Iterations of analysis. * * We can run multiple times of the geometric analysis to * continuously improve the analysis precision. */ public int geom_runs() { return soot.PhaseOptions.getInt(options, "geom-runs"); } /** * Verbose dump file -- * Filename for detailed execution log. * * If you want to save the geomPTA analysis information for future * analysis, please provide a file name. */ public String geom_dump_verbose() { return soot.PhaseOptions.getString(options, "geom-dump-verbose"); } /** * Verification file -- * Filename for verification file. * * If you want to compare the precision of the points-to results * with other solvers (e.g. Paddle), you can use the 'verify-file' * to specify the list of methods (soot method signature format) * that are reachable by that solver. During the internal * evaluations (see the option geom-eval), we only consider the * methods that are common to both solvers. */ public String geom_verify_name() { return soot.PhaseOptions.getString(options, "geom-verify-name"); } public static final int propagator_iter = 1; public static final int propagator_worklist = 2; public static final int propagator_cycle = 3; public static final int propagator_merge = 4; public static final int propagator_alias = 5; public static final int propagator_none = 6; /** * Propagator -- * Select propagation algorithm. * * This option tells Spark which propagation algorithm to use. */ public int propagator() { String s = soot.PhaseOptions.getString(options, "propagator"); if (s == null || s.isEmpty()) return propagator_worklist; if (s.equalsIgnoreCase("iter")) return propagator_iter; if (s.equalsIgnoreCase("worklist")) return propagator_worklist; if (s.equalsIgnoreCase("cycle")) return propagator_cycle; if (s.equalsIgnoreCase("merge")) return propagator_merge; if (s.equalsIgnoreCase("alias")) return propagator_alias; if (s.equalsIgnoreCase("none")) return propagator_none; throw new RuntimeException(String.format("Invalid value %s of phase option propagator", s)); } public static final int set_impl_hash = 1; public static final int set_impl_bit = 2; public static final int set_impl_hybrid = 3; public static final int set_impl_array = 4; public static final int set_impl_heintze = 5; public static final int set_impl_sharedlist = 6; public static final int set_impl_double = 7; /** * Set Implementation -- * Select points-to set implementation. * * Select an implementation of points-to sets for Spark to use. */ public int set_impl() { String s = soot.PhaseOptions.getString(options, "set-impl"); if (s == null || s.isEmpty()) return set_impl_double; if (s.equalsIgnoreCase("hash")) return set_impl_hash; if (s.equalsIgnoreCase("bit")) return set_impl_bit; if (s.equalsIgnoreCase("hybrid")) return set_impl_hybrid; if (s.equalsIgnoreCase("array")) return set_impl_array; if (s.equalsIgnoreCase("heintze")) return set_impl_heintze; if (s.equalsIgnoreCase("sharedlist")) return set_impl_sharedlist; if (s.equalsIgnoreCase("double")) return set_impl_double; throw new RuntimeException(String.format("Invalid value %s of phase option set-impl", s)); } public static final int double_set_old_hash = 1; public static final int double_set_old_bit = 2; public static final int double_set_old_hybrid = 3; public static final int double_set_old_array = 4; public static final int double_set_old_heintze = 5; public static final int double_set_old_sharedlist = 6; /** * Double Set Old -- * Select implementation of points-to set for old part of double * set. * * Select an implementation for sets of old objects in the double * points-to set implementation. This option has no effect unless * Set Implementation is set to double. */ public int double_set_old() { String s = soot.PhaseOptions.getString(options, "double-set-old"); if (s == null || s.isEmpty()) return double_set_old_hybrid; if (s.equalsIgnoreCase("hash")) return double_set_old_hash; if (s.equalsIgnoreCase("bit")) return double_set_old_bit; if (s.equalsIgnoreCase("hybrid")) return double_set_old_hybrid; if (s.equalsIgnoreCase("array")) return double_set_old_array; if (s.equalsIgnoreCase("heintze")) return double_set_old_heintze; if (s.equalsIgnoreCase("sharedlist")) return double_set_old_sharedlist; throw new RuntimeException(String.format("Invalid value %s of phase option double-set-old", s)); } public static final int double_set_new_hash = 1; public static final int double_set_new_bit = 2; public static final int double_set_new_hybrid = 3; public static final int double_set_new_array = 4; public static final int double_set_new_heintze = 5; public static final int double_set_new_sharedlist = 6; /** * Double Set New -- * Select implementation of points-to set for new part of double * set. * * Select an implementation for sets of new objects in the double * points-to set implementation. This option has no effect unless * Set Implementation is set to double. */ public int double_set_new() { String s = soot.PhaseOptions.getString(options, "double-set-new"); if (s == null || s.isEmpty()) return double_set_new_hybrid; if (s.equalsIgnoreCase("hash")) return double_set_new_hash; if (s.equalsIgnoreCase("bit")) return double_set_new_bit; if (s.equalsIgnoreCase("hybrid")) return double_set_new_hybrid; if (s.equalsIgnoreCase("array")) return double_set_new_array; if (s.equalsIgnoreCase("heintze")) return double_set_new_heintze; if (s.equalsIgnoreCase("sharedlist")) return double_set_new_sharedlist; throw new RuntimeException(String.format("Invalid value %s of phase option double-set-new", s)); } public static final int geom_encoding_Geom = 1; public static final int geom_encoding_HeapIns = 2; public static final int geom_encoding_PtIns = 3; /** * Encoding methodology used -- * Encoding methodology. * * This switch specifies the encoding methodology used in the * analysis. All possible options are: Geom, HeapIns, PtIns. The * efficiency order is (from slow to fast) Geom - HeapIns - PtIns, * but the precision order is the reverse. */ public int geom_encoding() { String s = soot.PhaseOptions.getString(options, "geom-encoding"); if (s == null || s.isEmpty()) return geom_encoding_Geom; if (s.equalsIgnoreCase("Geom")) return geom_encoding_Geom; if (s.equalsIgnoreCase("HeapIns")) return geom_encoding_HeapIns; if (s.equalsIgnoreCase("PtIns")) return geom_encoding_PtIns; throw new RuntimeException(String.format("Invalid value %s of phase option geom-encoding", s)); } public static final int geom_worklist_PQ = 1; public static final int geom_worklist_FIFO = 2; /** * Worklist type -- * Worklist type. * * Specifies the worklist used for selecting the next propagation * pointer. All possible options are: PQ, FIFO. They stand for the * priority queue (sorted by the last fire time and topology order) * and FIFO queue. */ public int geom_worklist() { String s = soot.PhaseOptions.getString(options, "geom-worklist"); if (s == null || s.isEmpty()) return geom_worklist_PQ; if (s.equalsIgnoreCase("PQ")) return geom_worklist_PQ; if (s.equalsIgnoreCase("FIFO")) return geom_worklist_FIFO; throw new RuntimeException(String.format("Invalid value %s of phase option geom-worklist", s)); } }
26,974
34.493421
104
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/analysis/Analysis.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.analysis; import soot.jimple.parser.node.*; public interface Analysis extends Switch { Object getIn(Node node); void setIn(Node node, Object o); Object getOut(Node node); void setOut(Node node, Object o); void caseStart(Start node); void caseAFile(AFile node); void caseAAbstractModifier(AAbstractModifier node); void caseAFinalModifier(AFinalModifier node); void caseANativeModifier(ANativeModifier node); void caseAPublicModifier(APublicModifier node); void caseAProtectedModifier(AProtectedModifier node); void caseAPrivateModifier(APrivateModifier node); void caseAStaticModifier(AStaticModifier node); void caseASynchronizedModifier(ASynchronizedModifier node); void caseATransientModifier(ATransientModifier node); void caseAVolatileModifier(AVolatileModifier node); void caseAStrictfpModifier(AStrictfpModifier node); void caseAEnumModifier(AEnumModifier node); void caseAAnnotationModifier(AAnnotationModifier node); void caseAClassFileType(AClassFileType node); void caseAInterfaceFileType(AInterfaceFileType node); void caseAExtendsClause(AExtendsClause node); void caseAImplementsClause(AImplementsClause node); void caseAFileBody(AFileBody node); void caseASingleNameList(ASingleNameList node); void caseAMultiNameList(AMultiNameList node); void caseAClassNameSingleClassNameList(AClassNameSingleClassNameList node); void caseAClassNameMultiClassNameList(AClassNameMultiClassNameList node); void caseAFieldMember(AFieldMember node); void caseAMethodMember(AMethodMember node); void caseAVoidType(AVoidType node); void caseANovoidType(ANovoidType node); void caseASingleParameterList(ASingleParameterList node); void caseAMultiParameterList(AMultiParameterList node); void caseAParameter(AParameter node); void caseAThrowsClause(AThrowsClause node); void caseABooleanBaseTypeNoName(ABooleanBaseTypeNoName node); void caseAByteBaseTypeNoName(AByteBaseTypeNoName node); void caseACharBaseTypeNoName(ACharBaseTypeNoName node); void caseAShortBaseTypeNoName(AShortBaseTypeNoName node); void caseAIntBaseTypeNoName(AIntBaseTypeNoName node); void caseALongBaseTypeNoName(ALongBaseTypeNoName node); void caseAFloatBaseTypeNoName(AFloatBaseTypeNoName node); void caseADoubleBaseTypeNoName(ADoubleBaseTypeNoName node); void caseANullBaseTypeNoName(ANullBaseTypeNoName node); void caseABooleanBaseType(ABooleanBaseType node); void caseAByteBaseType(AByteBaseType node); void caseACharBaseType(ACharBaseType node); void caseAShortBaseType(AShortBaseType node); void caseAIntBaseType(AIntBaseType node); void caseALongBaseType(ALongBaseType node); void caseAFloatBaseType(AFloatBaseType node); void caseADoubleBaseType(ADoubleBaseType node); void caseANullBaseType(ANullBaseType node); void caseAClassNameBaseType(AClassNameBaseType node); void caseABaseNonvoidType(ABaseNonvoidType node); void caseAQuotedNonvoidType(AQuotedNonvoidType node); void caseAIdentNonvoidType(AIdentNonvoidType node); void caseAFullIdentNonvoidType(AFullIdentNonvoidType node); void caseAArrayBrackets(AArrayBrackets node); void caseAEmptyMethodBody(AEmptyMethodBody node); void caseAFullMethodBody(AFullMethodBody node); void caseADeclaration(ADeclaration node); void caseAUnknownJimpleType(AUnknownJimpleType node); void caseANonvoidJimpleType(ANonvoidJimpleType node); void caseALocalName(ALocalName node); void caseASingleLocalNameList(ASingleLocalNameList node); void caseAMultiLocalNameList(AMultiLocalNameList node); void caseALabelStatement(ALabelStatement node); void caseABreakpointStatement(ABreakpointStatement node); void caseAEntermonitorStatement(AEntermonitorStatement node); void caseAExitmonitorStatement(AExitmonitorStatement node); void caseATableswitchStatement(ATableswitchStatement node); void caseALookupswitchStatement(ALookupswitchStatement node); void caseAIdentityStatement(AIdentityStatement node); void caseAIdentityNoTypeStatement(AIdentityNoTypeStatement node); void caseAAssignStatement(AAssignStatement node); void caseAIfStatement(AIfStatement node); void caseAGotoStatement(AGotoStatement node); void caseANopStatement(ANopStatement node); void caseARetStatement(ARetStatement node); void caseAReturnStatement(AReturnStatement node); void caseAThrowStatement(AThrowStatement node); void caseAInvokeStatement(AInvokeStatement node); void caseALabelName(ALabelName node); void caseACaseStmt(ACaseStmt node); void caseAConstantCaseLabel(AConstantCaseLabel node); void caseADefaultCaseLabel(ADefaultCaseLabel node); void caseAGotoStmt(AGotoStmt node); void caseACatchClause(ACatchClause node); void caseANewExpression(ANewExpression node); void caseACastExpression(ACastExpression node); void caseAInstanceofExpression(AInstanceofExpression node); void caseAInvokeExpression(AInvokeExpression node); void caseAReferenceExpression(AReferenceExpression node); void caseABinopExpression(ABinopExpression node); void caseAUnopExpression(AUnopExpression node); void caseAImmediateExpression(AImmediateExpression node); void caseASimpleNewExpr(ASimpleNewExpr node); void caseAArrayNewExpr(AArrayNewExpr node); void caseAMultiNewExpr(AMultiNewExpr node); void caseAArrayDescriptor(AArrayDescriptor node); void caseAReferenceVariable(AReferenceVariable node); void caseALocalVariable(ALocalVariable node); void caseABinopBoolExpr(ABinopBoolExpr node); void caseAUnopBoolExpr(AUnopBoolExpr node); void caseANonstaticInvokeExpr(ANonstaticInvokeExpr node); void caseAStaticInvokeExpr(AStaticInvokeExpr node); void caseADynamicInvokeExpr(ADynamicInvokeExpr node); void caseABinopExpr(ABinopExpr node); void caseAUnopExpr(AUnopExpr node); void caseASpecialNonstaticInvoke(ASpecialNonstaticInvoke node); void caseAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node); void caseAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node); void caseAUnnamedMethodSignature(AUnnamedMethodSignature node); void caseAMethodSignature(AMethodSignature node); void caseAArrayReference(AArrayReference node); void caseAFieldReference(AFieldReference node); void caseAIdentArrayRef(AIdentArrayRef node); void caseAQuotedArrayRef(AQuotedArrayRef node); void caseALocalFieldRef(ALocalFieldRef node); void caseASigFieldRef(ASigFieldRef node); void caseAFieldSignature(AFieldSignature node); void caseAFixedArrayDescriptor(AFixedArrayDescriptor node); void caseASingleArgList(ASingleArgList node); void caseAMultiArgList(AMultiArgList node); void caseALocalImmediate(ALocalImmediate node); void caseAConstantImmediate(AConstantImmediate node); void caseAIntegerConstant(AIntegerConstant node); void caseAFloatConstant(AFloatConstant node); void caseAStringConstant(AStringConstant node); void caseAClzzConstant(AClzzConstant node); void caseANullConstant(ANullConstant node); void caseAAndBinop(AAndBinop node); void caseAOrBinop(AOrBinop node); void caseAXorBinop(AXorBinop node); void caseAModBinop(AModBinop node); void caseACmpBinop(ACmpBinop node); void caseACmpgBinop(ACmpgBinop node); void caseACmplBinop(ACmplBinop node); void caseACmpeqBinop(ACmpeqBinop node); void caseACmpneBinop(ACmpneBinop node); void caseACmpgtBinop(ACmpgtBinop node); void caseACmpgeBinop(ACmpgeBinop node); void caseACmpltBinop(ACmpltBinop node); void caseACmpleBinop(ACmpleBinop node); void caseAShlBinop(AShlBinop node); void caseAShrBinop(AShrBinop node); void caseAUshrBinop(AUshrBinop node); void caseAPlusBinop(APlusBinop node); void caseAMinusBinop(AMinusBinop node); void caseAMultBinop(AMultBinop node); void caseADivBinop(ADivBinop node); void caseALengthofUnop(ALengthofUnop node); void caseANegUnop(ANegUnop node); void caseAQuotedClassName(AQuotedClassName node); void caseAIdentClassName(AIdentClassName node); void caseAFullIdentClassName(AFullIdentClassName node); void caseAQuotedName(AQuotedName node); void caseAIdentName(AIdentName node); void caseTIgnored(TIgnored node); void caseTAbstract(TAbstract node); void caseTFinal(TFinal node); void caseTNative(TNative node); void caseTPublic(TPublic node); void caseTProtected(TProtected node); void caseTPrivate(TPrivate node); void caseTStatic(TStatic node); void caseTSynchronized(TSynchronized node); void caseTTransient(TTransient node); void caseTVolatile(TVolatile node); void caseTStrictfp(TStrictfp node); void caseTEnum(TEnum node); void caseTAnnotation(TAnnotation node); void caseTClass(TClass node); void caseTInterface(TInterface node); void caseTVoid(TVoid node); void caseTBoolean(TBoolean node); void caseTByte(TByte node); void caseTShort(TShort node); void caseTChar(TChar node); void caseTInt(TInt node); void caseTLong(TLong node); void caseTFloat(TFloat node); void caseTDouble(TDouble node); void caseTNullType(TNullType node); void caseTUnknown(TUnknown node); void caseTExtends(TExtends node); void caseTImplements(TImplements node); void caseTBreakpoint(TBreakpoint node); void caseTCase(TCase node); void caseTCatch(TCatch node); void caseTCmp(TCmp node); void caseTCmpg(TCmpg node); void caseTCmpl(TCmpl node); void caseTDefault(TDefault node); void caseTEntermonitor(TEntermonitor node); void caseTExitmonitor(TExitmonitor node); void caseTGoto(TGoto node); void caseTIf(TIf node); void caseTInstanceof(TInstanceof node); void caseTInterfaceinvoke(TInterfaceinvoke node); void caseTLengthof(TLengthof node); void caseTLookupswitch(TLookupswitch node); void caseTNeg(TNeg node); void caseTNew(TNew node); void caseTNewarray(TNewarray node); void caseTNewmultiarray(TNewmultiarray node); void caseTNop(TNop node); void caseTRet(TRet node); void caseTReturn(TReturn node); void caseTSpecialinvoke(TSpecialinvoke node); void caseTStaticinvoke(TStaticinvoke node); void caseTDynamicinvoke(TDynamicinvoke node); void caseTTableswitch(TTableswitch node); void caseTThrow(TThrow node); void caseTThrows(TThrows node); void caseTVirtualinvoke(TVirtualinvoke node); void caseTNull(TNull node); void caseTFrom(TFrom node); void caseTTo(TTo node); void caseTWith(TWith node); void caseTCls(TCls node); void caseTComma(TComma node); void caseTLBrace(TLBrace node); void caseTRBrace(TRBrace node); void caseTSemicolon(TSemicolon node); void caseTLBracket(TLBracket node); void caseTRBracket(TRBracket node); void caseTLParen(TLParen node); void caseTRParen(TRParen node); void caseTColon(TColon node); void caseTDot(TDot node); void caseTQuote(TQuote node); void caseTColonEquals(TColonEquals node); void caseTEquals(TEquals node); void caseTAnd(TAnd node); void caseTOr(TOr node); void caseTXor(TXor node); void caseTMod(TMod node); void caseTCmpeq(TCmpeq node); void caseTCmpne(TCmpne node); void caseTCmpgt(TCmpgt node); void caseTCmpge(TCmpge node); void caseTCmplt(TCmplt node); void caseTCmple(TCmple node); void caseTShl(TShl node); void caseTShr(TShr node); void caseTUshr(TUshr node); void caseTPlus(TPlus node); void caseTMinus(TMinus node); void caseTMult(TMult node); void caseTDiv(TDiv node); void caseTQuotedName(TQuotedName node); void caseTFullIdentifier(TFullIdentifier node); void caseTIdentifier(TIdentifier node); void caseTAtIdentifier(TAtIdentifier node); void caseTBoolConstant(TBoolConstant node); void caseTIntegerConstant(TIntegerConstant node); void caseTFloatConstant(TFloatConstant node); void caseTStringConstant(TStringConstant node); void caseEOF(EOF node); }
12,283
43.832117
79
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/analysis/AnalysisAdapter.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.analysis; import java.util.*; import soot.jimple.parser.node.*; public class AnalysisAdapter implements Analysis { private Hashtable<Node,Object> in; private Hashtable<Node,Object> out; @Override public Object getIn(Node node) { if(this.in == null) { return null; } return this.in.get(node); } @Override public void setIn(Node node, Object o) { if(this.in == null) { this.in = new Hashtable<Node,Object>(1); } if(o != null) { this.in.put(node, o); } else { this.in.remove(node); } } @Override public Object getOut(Node node) { if(this.out == null) { return null; } return this.out.get(node); } @Override public void setOut(Node node, Object o) { if(this.out == null) { this.out = new Hashtable<Node,Object>(1); } if(o != null) { this.out.put(node, o); } else { this.out.remove(node); } } @Override public void caseStart(Start node) { defaultCase(node); } @Override public void caseAFile(AFile node) { defaultCase(node); } @Override public void caseAAbstractModifier(AAbstractModifier node) { defaultCase(node); } @Override public void caseAFinalModifier(AFinalModifier node) { defaultCase(node); } @Override public void caseANativeModifier(ANativeModifier node) { defaultCase(node); } @Override public void caseAPublicModifier(APublicModifier node) { defaultCase(node); } @Override public void caseAProtectedModifier(AProtectedModifier node) { defaultCase(node); } @Override public void caseAPrivateModifier(APrivateModifier node) { defaultCase(node); } @Override public void caseAStaticModifier(AStaticModifier node) { defaultCase(node); } @Override public void caseASynchronizedModifier(ASynchronizedModifier node) { defaultCase(node); } @Override public void caseATransientModifier(ATransientModifier node) { defaultCase(node); } @Override public void caseAVolatileModifier(AVolatileModifier node) { defaultCase(node); } @Override public void caseAStrictfpModifier(AStrictfpModifier node) { defaultCase(node); } @Override public void caseAEnumModifier(AEnumModifier node) { defaultCase(node); } @Override public void caseAAnnotationModifier(AAnnotationModifier node) { defaultCase(node); } @Override public void caseAClassFileType(AClassFileType node) { defaultCase(node); } @Override public void caseAInterfaceFileType(AInterfaceFileType node) { defaultCase(node); } @Override public void caseAExtendsClause(AExtendsClause node) { defaultCase(node); } @Override public void caseAImplementsClause(AImplementsClause node) { defaultCase(node); } @Override public void caseAFileBody(AFileBody node) { defaultCase(node); } @Override public void caseASingleNameList(ASingleNameList node) { defaultCase(node); } @Override public void caseAMultiNameList(AMultiNameList node) { defaultCase(node); } @Override public void caseAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { defaultCase(node); } @Override public void caseAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { defaultCase(node); } @Override public void caseAFieldMember(AFieldMember node) { defaultCase(node); } @Override public void caseAMethodMember(AMethodMember node) { defaultCase(node); } @Override public void caseAVoidType(AVoidType node) { defaultCase(node); } @Override public void caseANovoidType(ANovoidType node) { defaultCase(node); } @Override public void caseASingleParameterList(ASingleParameterList node) { defaultCase(node); } @Override public void caseAMultiParameterList(AMultiParameterList node) { defaultCase(node); } @Override public void caseAParameter(AParameter node) { defaultCase(node); } @Override public void caseAThrowsClause(AThrowsClause node) { defaultCase(node); } @Override public void caseABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { defaultCase(node); } @Override public void caseAByteBaseTypeNoName(AByteBaseTypeNoName node) { defaultCase(node); } @Override public void caseACharBaseTypeNoName(ACharBaseTypeNoName node) { defaultCase(node); } @Override public void caseAShortBaseTypeNoName(AShortBaseTypeNoName node) { defaultCase(node); } @Override public void caseAIntBaseTypeNoName(AIntBaseTypeNoName node) { defaultCase(node); } @Override public void caseALongBaseTypeNoName(ALongBaseTypeNoName node) { defaultCase(node); } @Override public void caseAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { defaultCase(node); } @Override public void caseADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { defaultCase(node); } @Override public void caseANullBaseTypeNoName(ANullBaseTypeNoName node) { defaultCase(node); } @Override public void caseABooleanBaseType(ABooleanBaseType node) { defaultCase(node); } @Override public void caseAByteBaseType(AByteBaseType node) { defaultCase(node); } @Override public void caseACharBaseType(ACharBaseType node) { defaultCase(node); } @Override public void caseAShortBaseType(AShortBaseType node) { defaultCase(node); } @Override public void caseAIntBaseType(AIntBaseType node) { defaultCase(node); } @Override public void caseALongBaseType(ALongBaseType node) { defaultCase(node); } @Override public void caseAFloatBaseType(AFloatBaseType node) { defaultCase(node); } @Override public void caseADoubleBaseType(ADoubleBaseType node) { defaultCase(node); } @Override public void caseANullBaseType(ANullBaseType node) { defaultCase(node); } @Override public void caseAClassNameBaseType(AClassNameBaseType node) { defaultCase(node); } @Override public void caseABaseNonvoidType(ABaseNonvoidType node) { defaultCase(node); } @Override public void caseAQuotedNonvoidType(AQuotedNonvoidType node) { defaultCase(node); } @Override public void caseAIdentNonvoidType(AIdentNonvoidType node) { defaultCase(node); } @Override public void caseAFullIdentNonvoidType(AFullIdentNonvoidType node) { defaultCase(node); } @Override public void caseAArrayBrackets(AArrayBrackets node) { defaultCase(node); } @Override public void caseAEmptyMethodBody(AEmptyMethodBody node) { defaultCase(node); } @Override public void caseAFullMethodBody(AFullMethodBody node) { defaultCase(node); } @Override public void caseADeclaration(ADeclaration node) { defaultCase(node); } @Override public void caseAUnknownJimpleType(AUnknownJimpleType node) { defaultCase(node); } @Override public void caseANonvoidJimpleType(ANonvoidJimpleType node) { defaultCase(node); } @Override public void caseALocalName(ALocalName node) { defaultCase(node); } @Override public void caseASingleLocalNameList(ASingleLocalNameList node) { defaultCase(node); } @Override public void caseAMultiLocalNameList(AMultiLocalNameList node) { defaultCase(node); } @Override public void caseALabelStatement(ALabelStatement node) { defaultCase(node); } @Override public void caseABreakpointStatement(ABreakpointStatement node) { defaultCase(node); } @Override public void caseAEntermonitorStatement(AEntermonitorStatement node) { defaultCase(node); } @Override public void caseAExitmonitorStatement(AExitmonitorStatement node) { defaultCase(node); } @Override public void caseATableswitchStatement(ATableswitchStatement node) { defaultCase(node); } @Override public void caseALookupswitchStatement(ALookupswitchStatement node) { defaultCase(node); } @Override public void caseAIdentityStatement(AIdentityStatement node) { defaultCase(node); } @Override public void caseAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { defaultCase(node); } @Override public void caseAAssignStatement(AAssignStatement node) { defaultCase(node); } @Override public void caseAIfStatement(AIfStatement node) { defaultCase(node); } @Override public void caseAGotoStatement(AGotoStatement node) { defaultCase(node); } @Override public void caseANopStatement(ANopStatement node) { defaultCase(node); } @Override public void caseARetStatement(ARetStatement node) { defaultCase(node); } @Override public void caseAReturnStatement(AReturnStatement node) { defaultCase(node); } @Override public void caseAThrowStatement(AThrowStatement node) { defaultCase(node); } @Override public void caseAInvokeStatement(AInvokeStatement node) { defaultCase(node); } @Override public void caseALabelName(ALabelName node) { defaultCase(node); } @Override public void caseACaseStmt(ACaseStmt node) { defaultCase(node); } @Override public void caseAConstantCaseLabel(AConstantCaseLabel node) { defaultCase(node); } @Override public void caseADefaultCaseLabel(ADefaultCaseLabel node) { defaultCase(node); } @Override public void caseAGotoStmt(AGotoStmt node) { defaultCase(node); } @Override public void caseACatchClause(ACatchClause node) { defaultCase(node); } @Override public void caseANewExpression(ANewExpression node) { defaultCase(node); } @Override public void caseACastExpression(ACastExpression node) { defaultCase(node); } @Override public void caseAInstanceofExpression(AInstanceofExpression node) { defaultCase(node); } @Override public void caseAInvokeExpression(AInvokeExpression node) { defaultCase(node); } @Override public void caseAReferenceExpression(AReferenceExpression node) { defaultCase(node); } @Override public void caseABinopExpression(ABinopExpression node) { defaultCase(node); } @Override public void caseAUnopExpression(AUnopExpression node) { defaultCase(node); } @Override public void caseAImmediateExpression(AImmediateExpression node) { defaultCase(node); } @Override public void caseASimpleNewExpr(ASimpleNewExpr node) { defaultCase(node); } @Override public void caseAArrayNewExpr(AArrayNewExpr node) { defaultCase(node); } @Override public void caseAMultiNewExpr(AMultiNewExpr node) { defaultCase(node); } @Override public void caseAArrayDescriptor(AArrayDescriptor node) { defaultCase(node); } @Override public void caseAReferenceVariable(AReferenceVariable node) { defaultCase(node); } @Override public void caseALocalVariable(ALocalVariable node) { defaultCase(node); } @Override public void caseABinopBoolExpr(ABinopBoolExpr node) { defaultCase(node); } @Override public void caseAUnopBoolExpr(AUnopBoolExpr node) { defaultCase(node); } @Override public void caseANonstaticInvokeExpr(ANonstaticInvokeExpr node) { defaultCase(node); } @Override public void caseAStaticInvokeExpr(AStaticInvokeExpr node) { defaultCase(node); } @Override public void caseADynamicInvokeExpr(ADynamicInvokeExpr node) { defaultCase(node); } @Override public void caseABinopExpr(ABinopExpr node) { defaultCase(node); } @Override public void caseAUnopExpr(AUnopExpr node) { defaultCase(node); } @Override public void caseASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { defaultCase(node); } @Override public void caseAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { defaultCase(node); } @Override public void caseAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { defaultCase(node); } @Override public void caseAUnnamedMethodSignature(AUnnamedMethodSignature node) { defaultCase(node); } @Override public void caseAMethodSignature(AMethodSignature node) { defaultCase(node); } @Override public void caseAArrayReference(AArrayReference node) { defaultCase(node); } @Override public void caseAFieldReference(AFieldReference node) { defaultCase(node); } @Override public void caseAIdentArrayRef(AIdentArrayRef node) { defaultCase(node); } @Override public void caseAQuotedArrayRef(AQuotedArrayRef node) { defaultCase(node); } @Override public void caseALocalFieldRef(ALocalFieldRef node) { defaultCase(node); } @Override public void caseASigFieldRef(ASigFieldRef node) { defaultCase(node); } @Override public void caseAFieldSignature(AFieldSignature node) { defaultCase(node); } @Override public void caseAFixedArrayDescriptor(AFixedArrayDescriptor node) { defaultCase(node); } @Override public void caseASingleArgList(ASingleArgList node) { defaultCase(node); } @Override public void caseAMultiArgList(AMultiArgList node) { defaultCase(node); } @Override public void caseALocalImmediate(ALocalImmediate node) { defaultCase(node); } @Override public void caseAConstantImmediate(AConstantImmediate node) { defaultCase(node); } @Override public void caseAIntegerConstant(AIntegerConstant node) { defaultCase(node); } @Override public void caseAFloatConstant(AFloatConstant node) { defaultCase(node); } @Override public void caseAStringConstant(AStringConstant node) { defaultCase(node); } @Override public void caseAClzzConstant(AClzzConstant node) { defaultCase(node); } @Override public void caseANullConstant(ANullConstant node) { defaultCase(node); } @Override public void caseAAndBinop(AAndBinop node) { defaultCase(node); } @Override public void caseAOrBinop(AOrBinop node) { defaultCase(node); } @Override public void caseAXorBinop(AXorBinop node) { defaultCase(node); } @Override public void caseAModBinop(AModBinop node) { defaultCase(node); } @Override public void caseACmpBinop(ACmpBinop node) { defaultCase(node); } @Override public void caseACmpgBinop(ACmpgBinop node) { defaultCase(node); } @Override public void caseACmplBinop(ACmplBinop node) { defaultCase(node); } @Override public void caseACmpeqBinop(ACmpeqBinop node) { defaultCase(node); } @Override public void caseACmpneBinop(ACmpneBinop node) { defaultCase(node); } @Override public void caseACmpgtBinop(ACmpgtBinop node) { defaultCase(node); } @Override public void caseACmpgeBinop(ACmpgeBinop node) { defaultCase(node); } @Override public void caseACmpltBinop(ACmpltBinop node) { defaultCase(node); } @Override public void caseACmpleBinop(ACmpleBinop node) { defaultCase(node); } @Override public void caseAShlBinop(AShlBinop node) { defaultCase(node); } @Override public void caseAShrBinop(AShrBinop node) { defaultCase(node); } @Override public void caseAUshrBinop(AUshrBinop node) { defaultCase(node); } @Override public void caseAPlusBinop(APlusBinop node) { defaultCase(node); } @Override public void caseAMinusBinop(AMinusBinop node) { defaultCase(node); } @Override public void caseAMultBinop(AMultBinop node) { defaultCase(node); } @Override public void caseADivBinop(ADivBinop node) { defaultCase(node); } @Override public void caseALengthofUnop(ALengthofUnop node) { defaultCase(node); } @Override public void caseANegUnop(ANegUnop node) { defaultCase(node); } @Override public void caseAQuotedClassName(AQuotedClassName node) { defaultCase(node); } @Override public void caseAIdentClassName(AIdentClassName node) { defaultCase(node); } @Override public void caseAFullIdentClassName(AFullIdentClassName node) { defaultCase(node); } @Override public void caseAQuotedName(AQuotedName node) { defaultCase(node); } @Override public void caseAIdentName(AIdentName node) { defaultCase(node); } @Override public void caseTIgnored(TIgnored node) { defaultCase(node); } @Override public void caseTAbstract(TAbstract node) { defaultCase(node); } @Override public void caseTFinal(TFinal node) { defaultCase(node); } @Override public void caseTNative(TNative node) { defaultCase(node); } @Override public void caseTPublic(TPublic node) { defaultCase(node); } @Override public void caseTProtected(TProtected node) { defaultCase(node); } @Override public void caseTPrivate(TPrivate node) { defaultCase(node); } @Override public void caseTStatic(TStatic node) { defaultCase(node); } @Override public void caseTSynchronized(TSynchronized node) { defaultCase(node); } @Override public void caseTTransient(TTransient node) { defaultCase(node); } @Override public void caseTVolatile(TVolatile node) { defaultCase(node); } @Override public void caseTStrictfp(TStrictfp node) { defaultCase(node); } @Override public void caseTEnum(TEnum node) { defaultCase(node); } @Override public void caseTAnnotation(TAnnotation node) { defaultCase(node); } @Override public void caseTClass(TClass node) { defaultCase(node); } @Override public void caseTInterface(TInterface node) { defaultCase(node); } @Override public void caseTVoid(TVoid node) { defaultCase(node); } @Override public void caseTBoolean(TBoolean node) { defaultCase(node); } @Override public void caseTByte(TByte node) { defaultCase(node); } @Override public void caseTShort(TShort node) { defaultCase(node); } @Override public void caseTChar(TChar node) { defaultCase(node); } @Override public void caseTInt(TInt node) { defaultCase(node); } @Override public void caseTLong(TLong node) { defaultCase(node); } @Override public void caseTFloat(TFloat node) { defaultCase(node); } @Override public void caseTDouble(TDouble node) { defaultCase(node); } @Override public void caseTNullType(TNullType node) { defaultCase(node); } @Override public void caseTUnknown(TUnknown node) { defaultCase(node); } @Override public void caseTExtends(TExtends node) { defaultCase(node); } @Override public void caseTImplements(TImplements node) { defaultCase(node); } @Override public void caseTBreakpoint(TBreakpoint node) { defaultCase(node); } @Override public void caseTCase(TCase node) { defaultCase(node); } @Override public void caseTCatch(TCatch node) { defaultCase(node); } @Override public void caseTCmp(TCmp node) { defaultCase(node); } @Override public void caseTCmpg(TCmpg node) { defaultCase(node); } @Override public void caseTCmpl(TCmpl node) { defaultCase(node); } @Override public void caseTDefault(TDefault node) { defaultCase(node); } @Override public void caseTEntermonitor(TEntermonitor node) { defaultCase(node); } @Override public void caseTExitmonitor(TExitmonitor node) { defaultCase(node); } @Override public void caseTGoto(TGoto node) { defaultCase(node); } @Override public void caseTIf(TIf node) { defaultCase(node); } @Override public void caseTInstanceof(TInstanceof node) { defaultCase(node); } @Override public void caseTInterfaceinvoke(TInterfaceinvoke node) { defaultCase(node); } @Override public void caseTLengthof(TLengthof node) { defaultCase(node); } @Override public void caseTLookupswitch(TLookupswitch node) { defaultCase(node); } @Override public void caseTNeg(TNeg node) { defaultCase(node); } @Override public void caseTNew(TNew node) { defaultCase(node); } @Override public void caseTNewarray(TNewarray node) { defaultCase(node); } @Override public void caseTNewmultiarray(TNewmultiarray node) { defaultCase(node); } @Override public void caseTNop(TNop node) { defaultCase(node); } @Override public void caseTRet(TRet node) { defaultCase(node); } @Override public void caseTReturn(TReturn node) { defaultCase(node); } @Override public void caseTSpecialinvoke(TSpecialinvoke node) { defaultCase(node); } @Override public void caseTStaticinvoke(TStaticinvoke node) { defaultCase(node); } @Override public void caseTDynamicinvoke(TDynamicinvoke node) { defaultCase(node); } @Override public void caseTTableswitch(TTableswitch node) { defaultCase(node); } @Override public void caseTThrow(TThrow node) { defaultCase(node); } @Override public void caseTThrows(TThrows node) { defaultCase(node); } @Override public void caseTVirtualinvoke(TVirtualinvoke node) { defaultCase(node); } @Override public void caseTNull(TNull node) { defaultCase(node); } @Override public void caseTFrom(TFrom node) { defaultCase(node); } @Override public void caseTTo(TTo node) { defaultCase(node); } @Override public void caseTWith(TWith node) { defaultCase(node); } @Override public void caseTCls(TCls node) { defaultCase(node); } @Override public void caseTComma(TComma node) { defaultCase(node); } @Override public void caseTLBrace(TLBrace node) { defaultCase(node); } @Override public void caseTRBrace(TRBrace node) { defaultCase(node); } @Override public void caseTSemicolon(TSemicolon node) { defaultCase(node); } @Override public void caseTLBracket(TLBracket node) { defaultCase(node); } @Override public void caseTRBracket(TRBracket node) { defaultCase(node); } @Override public void caseTLParen(TLParen node) { defaultCase(node); } @Override public void caseTRParen(TRParen node) { defaultCase(node); } @Override public void caseTColon(TColon node) { defaultCase(node); } @Override public void caseTDot(TDot node) { defaultCase(node); } @Override public void caseTQuote(TQuote node) { defaultCase(node); } @Override public void caseTColonEquals(TColonEquals node) { defaultCase(node); } @Override public void caseTEquals(TEquals node) { defaultCase(node); } @Override public void caseTAnd(TAnd node) { defaultCase(node); } @Override public void caseTOr(TOr node) { defaultCase(node); } @Override public void caseTXor(TXor node) { defaultCase(node); } @Override public void caseTMod(TMod node) { defaultCase(node); } @Override public void caseTCmpeq(TCmpeq node) { defaultCase(node); } @Override public void caseTCmpne(TCmpne node) { defaultCase(node); } @Override public void caseTCmpgt(TCmpgt node) { defaultCase(node); } @Override public void caseTCmpge(TCmpge node) { defaultCase(node); } @Override public void caseTCmplt(TCmplt node) { defaultCase(node); } @Override public void caseTCmple(TCmple node) { defaultCase(node); } @Override public void caseTShl(TShl node) { defaultCase(node); } @Override public void caseTShr(TShr node) { defaultCase(node); } @Override public void caseTUshr(TUshr node) { defaultCase(node); } @Override public void caseTPlus(TPlus node) { defaultCase(node); } @Override public void caseTMinus(TMinus node) { defaultCase(node); } @Override public void caseTMult(TMult node) { defaultCase(node); } @Override public void caseTDiv(TDiv node) { defaultCase(node); } @Override public void caseTQuotedName(TQuotedName node) { defaultCase(node); } @Override public void caseTFullIdentifier(TFullIdentifier node) { defaultCase(node); } @Override public void caseTIdentifier(TIdentifier node) { defaultCase(node); } @Override public void caseTAtIdentifier(TAtIdentifier node) { defaultCase(node); } @Override public void caseTBoolConstant(TBoolConstant node) { defaultCase(node); } @Override public void caseTIntegerConstant(TIntegerConstant node) { defaultCase(node); } @Override public void caseTFloatConstant(TFloatConstant node) { defaultCase(node); } @Override public void caseTStringConstant(TStringConstant node) { defaultCase(node); } @Override public void caseEOF(EOF node) { defaultCase(node); } public void defaultCase(@SuppressWarnings("unused") Node node) { // do nothing } }
28,814
16.743227
85
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/analysis/DepthFirstAdapter.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.analysis; import java.util.*; import soot.jimple.parser.node.*; public class DepthFirstAdapter extends AnalysisAdapter { public void inStart(Start node) { defaultIn(node); } public void outStart(Start node) { defaultOut(node); } public void defaultIn(@SuppressWarnings("unused") Node node) { // Do nothing } public void defaultOut(@SuppressWarnings("unused") Node node) { // Do nothing } @Override public void caseStart(Start node) { inStart(node); node.getPFile().apply(this); node.getEOF().apply(this); outStart(node); } public void inAFile(AFile node) { defaultIn(node); } public void outAFile(AFile node) { defaultOut(node); } @Override public void caseAFile(AFile node) { inAFile(node); { List<PModifier> copy = new ArrayList<PModifier>(node.getModifier()); for(PModifier e : copy) { e.apply(this); } } if(node.getFileType() != null) { node.getFileType().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getExtendsClause() != null) { node.getExtendsClause().apply(this); } if(node.getImplementsClause() != null) { node.getImplementsClause().apply(this); } if(node.getFileBody() != null) { node.getFileBody().apply(this); } outAFile(node); } public void inAAbstractModifier(AAbstractModifier node) { defaultIn(node); } public void outAAbstractModifier(AAbstractModifier node) { defaultOut(node); } @Override public void caseAAbstractModifier(AAbstractModifier node) { inAAbstractModifier(node); if(node.getAbstract() != null) { node.getAbstract().apply(this); } outAAbstractModifier(node); } public void inAFinalModifier(AFinalModifier node) { defaultIn(node); } public void outAFinalModifier(AFinalModifier node) { defaultOut(node); } @Override public void caseAFinalModifier(AFinalModifier node) { inAFinalModifier(node); if(node.getFinal() != null) { node.getFinal().apply(this); } outAFinalModifier(node); } public void inANativeModifier(ANativeModifier node) { defaultIn(node); } public void outANativeModifier(ANativeModifier node) { defaultOut(node); } @Override public void caseANativeModifier(ANativeModifier node) { inANativeModifier(node); if(node.getNative() != null) { node.getNative().apply(this); } outANativeModifier(node); } public void inAPublicModifier(APublicModifier node) { defaultIn(node); } public void outAPublicModifier(APublicModifier node) { defaultOut(node); } @Override public void caseAPublicModifier(APublicModifier node) { inAPublicModifier(node); if(node.getPublic() != null) { node.getPublic().apply(this); } outAPublicModifier(node); } public void inAProtectedModifier(AProtectedModifier node) { defaultIn(node); } public void outAProtectedModifier(AProtectedModifier node) { defaultOut(node); } @Override public void caseAProtectedModifier(AProtectedModifier node) { inAProtectedModifier(node); if(node.getProtected() != null) { node.getProtected().apply(this); } outAProtectedModifier(node); } public void inAPrivateModifier(APrivateModifier node) { defaultIn(node); } public void outAPrivateModifier(APrivateModifier node) { defaultOut(node); } @Override public void caseAPrivateModifier(APrivateModifier node) { inAPrivateModifier(node); if(node.getPrivate() != null) { node.getPrivate().apply(this); } outAPrivateModifier(node); } public void inAStaticModifier(AStaticModifier node) { defaultIn(node); } public void outAStaticModifier(AStaticModifier node) { defaultOut(node); } @Override public void caseAStaticModifier(AStaticModifier node) { inAStaticModifier(node); if(node.getStatic() != null) { node.getStatic().apply(this); } outAStaticModifier(node); } public void inASynchronizedModifier(ASynchronizedModifier node) { defaultIn(node); } public void outASynchronizedModifier(ASynchronizedModifier node) { defaultOut(node); } @Override public void caseASynchronizedModifier(ASynchronizedModifier node) { inASynchronizedModifier(node); if(node.getSynchronized() != null) { node.getSynchronized().apply(this); } outASynchronizedModifier(node); } public void inATransientModifier(ATransientModifier node) { defaultIn(node); } public void outATransientModifier(ATransientModifier node) { defaultOut(node); } @Override public void caseATransientModifier(ATransientModifier node) { inATransientModifier(node); if(node.getTransient() != null) { node.getTransient().apply(this); } outATransientModifier(node); } public void inAVolatileModifier(AVolatileModifier node) { defaultIn(node); } public void outAVolatileModifier(AVolatileModifier node) { defaultOut(node); } @Override public void caseAVolatileModifier(AVolatileModifier node) { inAVolatileModifier(node); if(node.getVolatile() != null) { node.getVolatile().apply(this); } outAVolatileModifier(node); } public void inAStrictfpModifier(AStrictfpModifier node) { defaultIn(node); } public void outAStrictfpModifier(AStrictfpModifier node) { defaultOut(node); } @Override public void caseAStrictfpModifier(AStrictfpModifier node) { inAStrictfpModifier(node); if(node.getStrictfp() != null) { node.getStrictfp().apply(this); } outAStrictfpModifier(node); } public void inAEnumModifier(AEnumModifier node) { defaultIn(node); } public void outAEnumModifier(AEnumModifier node) { defaultOut(node); } @Override public void caseAEnumModifier(AEnumModifier node) { inAEnumModifier(node); if(node.getEnum() != null) { node.getEnum().apply(this); } outAEnumModifier(node); } public void inAAnnotationModifier(AAnnotationModifier node) { defaultIn(node); } public void outAAnnotationModifier(AAnnotationModifier node) { defaultOut(node); } @Override public void caseAAnnotationModifier(AAnnotationModifier node) { inAAnnotationModifier(node); if(node.getAnnotation() != null) { node.getAnnotation().apply(this); } outAAnnotationModifier(node); } public void inAClassFileType(AClassFileType node) { defaultIn(node); } public void outAClassFileType(AClassFileType node) { defaultOut(node); } @Override public void caseAClassFileType(AClassFileType node) { inAClassFileType(node); if(node.getTheclass() != null) { node.getTheclass().apply(this); } outAClassFileType(node); } public void inAInterfaceFileType(AInterfaceFileType node) { defaultIn(node); } public void outAInterfaceFileType(AInterfaceFileType node) { defaultOut(node); } @Override public void caseAInterfaceFileType(AInterfaceFileType node) { inAInterfaceFileType(node); if(node.getInterface() != null) { node.getInterface().apply(this); } outAInterfaceFileType(node); } public void inAExtendsClause(AExtendsClause node) { defaultIn(node); } public void outAExtendsClause(AExtendsClause node) { defaultOut(node); } @Override public void caseAExtendsClause(AExtendsClause node) { inAExtendsClause(node); if(node.getExtends() != null) { node.getExtends().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } outAExtendsClause(node); } public void inAImplementsClause(AImplementsClause node) { defaultIn(node); } public void outAImplementsClause(AImplementsClause node) { defaultOut(node); } @Override public void caseAImplementsClause(AImplementsClause node) { inAImplementsClause(node); if(node.getImplements() != null) { node.getImplements().apply(this); } if(node.getClassNameList() != null) { node.getClassNameList().apply(this); } outAImplementsClause(node); } public void inAFileBody(AFileBody node) { defaultIn(node); } public void outAFileBody(AFileBody node) { defaultOut(node); } @Override public void caseAFileBody(AFileBody node) { inAFileBody(node); if(node.getLBrace() != null) { node.getLBrace().apply(this); } { List<PMember> copy = new ArrayList<PMember>(node.getMember()); for(PMember e : copy) { e.apply(this); } } if(node.getRBrace() != null) { node.getRBrace().apply(this); } outAFileBody(node); } public void inASingleNameList(ASingleNameList node) { defaultIn(node); } public void outASingleNameList(ASingleNameList node) { defaultOut(node); } @Override public void caseASingleNameList(ASingleNameList node) { inASingleNameList(node); if(node.getName() != null) { node.getName().apply(this); } outASingleNameList(node); } public void inAMultiNameList(AMultiNameList node) { defaultIn(node); } public void outAMultiNameList(AMultiNameList node) { defaultOut(node); } @Override public void caseAMultiNameList(AMultiNameList node) { inAMultiNameList(node); if(node.getName() != null) { node.getName().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getNameList() != null) { node.getNameList().apply(this); } outAMultiNameList(node); } public void inAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { defaultIn(node); } public void outAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { defaultOut(node); } @Override public void caseAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { inAClassNameSingleClassNameList(node); if(node.getClassName() != null) { node.getClassName().apply(this); } outAClassNameSingleClassNameList(node); } public void inAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { defaultIn(node); } public void outAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { defaultOut(node); } @Override public void caseAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { inAClassNameMultiClassNameList(node); if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getClassNameList() != null) { node.getClassNameList().apply(this); } outAClassNameMultiClassNameList(node); } public void inAFieldMember(AFieldMember node) { defaultIn(node); } public void outAFieldMember(AFieldMember node) { defaultOut(node); } @Override public void caseAFieldMember(AFieldMember node) { inAFieldMember(node); { List<PModifier> copy = new ArrayList<PModifier>(node.getModifier()); for(PModifier e : copy) { e.apply(this); } } if(node.getType() != null) { node.getType().apply(this); } if(node.getName() != null) { node.getName().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAFieldMember(node); } public void inAMethodMember(AMethodMember node) { defaultIn(node); } public void outAMethodMember(AMethodMember node) { defaultOut(node); } @Override public void caseAMethodMember(AMethodMember node) { inAMethodMember(node); { List<PModifier> copy = new ArrayList<PModifier>(node.getModifier()); for(PModifier e : copy) { e.apply(this); } } if(node.getType() != null) { node.getType().apply(this); } if(node.getName() != null) { node.getName().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getThrowsClause() != null) { node.getThrowsClause().apply(this); } if(node.getMethodBody() != null) { node.getMethodBody().apply(this); } outAMethodMember(node); } public void inAVoidType(AVoidType node) { defaultIn(node); } public void outAVoidType(AVoidType node) { defaultOut(node); } @Override public void caseAVoidType(AVoidType node) { inAVoidType(node); if(node.getVoid() != null) { node.getVoid().apply(this); } outAVoidType(node); } public void inANovoidType(ANovoidType node) { defaultIn(node); } public void outANovoidType(ANovoidType node) { defaultOut(node); } @Override public void caseANovoidType(ANovoidType node) { inANovoidType(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outANovoidType(node); } public void inASingleParameterList(ASingleParameterList node) { defaultIn(node); } public void outASingleParameterList(ASingleParameterList node) { defaultOut(node); } @Override public void caseASingleParameterList(ASingleParameterList node) { inASingleParameterList(node); if(node.getParameter() != null) { node.getParameter().apply(this); } outASingleParameterList(node); } public void inAMultiParameterList(AMultiParameterList node) { defaultIn(node); } public void outAMultiParameterList(AMultiParameterList node) { defaultOut(node); } @Override public void caseAMultiParameterList(AMultiParameterList node) { inAMultiParameterList(node); if(node.getParameter() != null) { node.getParameter().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } outAMultiParameterList(node); } public void inAParameter(AParameter node) { defaultIn(node); } public void outAParameter(AParameter node) { defaultOut(node); } @Override public void caseAParameter(AParameter node) { inAParameter(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outAParameter(node); } public void inAThrowsClause(AThrowsClause node) { defaultIn(node); } public void outAThrowsClause(AThrowsClause node) { defaultOut(node); } @Override public void caseAThrowsClause(AThrowsClause node) { inAThrowsClause(node); if(node.getThrows() != null) { node.getThrows().apply(this); } if(node.getClassNameList() != null) { node.getClassNameList().apply(this); } outAThrowsClause(node); } public void inABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { defaultIn(node); } public void outABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { defaultOut(node); } @Override public void caseABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { inABooleanBaseTypeNoName(node); if(node.getBoolean() != null) { node.getBoolean().apply(this); } outABooleanBaseTypeNoName(node); } public void inAByteBaseTypeNoName(AByteBaseTypeNoName node) { defaultIn(node); } public void outAByteBaseTypeNoName(AByteBaseTypeNoName node) { defaultOut(node); } @Override public void caseAByteBaseTypeNoName(AByteBaseTypeNoName node) { inAByteBaseTypeNoName(node); if(node.getByte() != null) { node.getByte().apply(this); } outAByteBaseTypeNoName(node); } public void inACharBaseTypeNoName(ACharBaseTypeNoName node) { defaultIn(node); } public void outACharBaseTypeNoName(ACharBaseTypeNoName node) { defaultOut(node); } @Override public void caseACharBaseTypeNoName(ACharBaseTypeNoName node) { inACharBaseTypeNoName(node); if(node.getChar() != null) { node.getChar().apply(this); } outACharBaseTypeNoName(node); } public void inAShortBaseTypeNoName(AShortBaseTypeNoName node) { defaultIn(node); } public void outAShortBaseTypeNoName(AShortBaseTypeNoName node) { defaultOut(node); } @Override public void caseAShortBaseTypeNoName(AShortBaseTypeNoName node) { inAShortBaseTypeNoName(node); if(node.getShort() != null) { node.getShort().apply(this); } outAShortBaseTypeNoName(node); } public void inAIntBaseTypeNoName(AIntBaseTypeNoName node) { defaultIn(node); } public void outAIntBaseTypeNoName(AIntBaseTypeNoName node) { defaultOut(node); } @Override public void caseAIntBaseTypeNoName(AIntBaseTypeNoName node) { inAIntBaseTypeNoName(node); if(node.getInt() != null) { node.getInt().apply(this); } outAIntBaseTypeNoName(node); } public void inALongBaseTypeNoName(ALongBaseTypeNoName node) { defaultIn(node); } public void outALongBaseTypeNoName(ALongBaseTypeNoName node) { defaultOut(node); } @Override public void caseALongBaseTypeNoName(ALongBaseTypeNoName node) { inALongBaseTypeNoName(node); if(node.getLong() != null) { node.getLong().apply(this); } outALongBaseTypeNoName(node); } public void inAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { defaultIn(node); } public void outAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { defaultOut(node); } @Override public void caseAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { inAFloatBaseTypeNoName(node); if(node.getFloat() != null) { node.getFloat().apply(this); } outAFloatBaseTypeNoName(node); } public void inADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { defaultIn(node); } public void outADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { defaultOut(node); } @Override public void caseADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { inADoubleBaseTypeNoName(node); if(node.getDouble() != null) { node.getDouble().apply(this); } outADoubleBaseTypeNoName(node); } public void inANullBaseTypeNoName(ANullBaseTypeNoName node) { defaultIn(node); } public void outANullBaseTypeNoName(ANullBaseTypeNoName node) { defaultOut(node); } @Override public void caseANullBaseTypeNoName(ANullBaseTypeNoName node) { inANullBaseTypeNoName(node); if(node.getNullType() != null) { node.getNullType().apply(this); } outANullBaseTypeNoName(node); } public void inABooleanBaseType(ABooleanBaseType node) { defaultIn(node); } public void outABooleanBaseType(ABooleanBaseType node) { defaultOut(node); } @Override public void caseABooleanBaseType(ABooleanBaseType node) { inABooleanBaseType(node); if(node.getBoolean() != null) { node.getBoolean().apply(this); } outABooleanBaseType(node); } public void inAByteBaseType(AByteBaseType node) { defaultIn(node); } public void outAByteBaseType(AByteBaseType node) { defaultOut(node); } @Override public void caseAByteBaseType(AByteBaseType node) { inAByteBaseType(node); if(node.getByte() != null) { node.getByte().apply(this); } outAByteBaseType(node); } public void inACharBaseType(ACharBaseType node) { defaultIn(node); } public void outACharBaseType(ACharBaseType node) { defaultOut(node); } @Override public void caseACharBaseType(ACharBaseType node) { inACharBaseType(node); if(node.getChar() != null) { node.getChar().apply(this); } outACharBaseType(node); } public void inAShortBaseType(AShortBaseType node) { defaultIn(node); } public void outAShortBaseType(AShortBaseType node) { defaultOut(node); } @Override public void caseAShortBaseType(AShortBaseType node) { inAShortBaseType(node); if(node.getShort() != null) { node.getShort().apply(this); } outAShortBaseType(node); } public void inAIntBaseType(AIntBaseType node) { defaultIn(node); } public void outAIntBaseType(AIntBaseType node) { defaultOut(node); } @Override public void caseAIntBaseType(AIntBaseType node) { inAIntBaseType(node); if(node.getInt() != null) { node.getInt().apply(this); } outAIntBaseType(node); } public void inALongBaseType(ALongBaseType node) { defaultIn(node); } public void outALongBaseType(ALongBaseType node) { defaultOut(node); } @Override public void caseALongBaseType(ALongBaseType node) { inALongBaseType(node); if(node.getLong() != null) { node.getLong().apply(this); } outALongBaseType(node); } public void inAFloatBaseType(AFloatBaseType node) { defaultIn(node); } public void outAFloatBaseType(AFloatBaseType node) { defaultOut(node); } @Override public void caseAFloatBaseType(AFloatBaseType node) { inAFloatBaseType(node); if(node.getFloat() != null) { node.getFloat().apply(this); } outAFloatBaseType(node); } public void inADoubleBaseType(ADoubleBaseType node) { defaultIn(node); } public void outADoubleBaseType(ADoubleBaseType node) { defaultOut(node); } @Override public void caseADoubleBaseType(ADoubleBaseType node) { inADoubleBaseType(node); if(node.getDouble() != null) { node.getDouble().apply(this); } outADoubleBaseType(node); } public void inANullBaseType(ANullBaseType node) { defaultIn(node); } public void outANullBaseType(ANullBaseType node) { defaultOut(node); } @Override public void caseANullBaseType(ANullBaseType node) { inANullBaseType(node); if(node.getNullType() != null) { node.getNullType().apply(this); } outANullBaseType(node); } public void inAClassNameBaseType(AClassNameBaseType node) { defaultIn(node); } public void outAClassNameBaseType(AClassNameBaseType node) { defaultOut(node); } @Override public void caseAClassNameBaseType(AClassNameBaseType node) { inAClassNameBaseType(node); if(node.getClassName() != null) { node.getClassName().apply(this); } outAClassNameBaseType(node); } public void inABaseNonvoidType(ABaseNonvoidType node) { defaultIn(node); } public void outABaseNonvoidType(ABaseNonvoidType node) { defaultOut(node); } @Override public void caseABaseNonvoidType(ABaseNonvoidType node) { inABaseNonvoidType(node); if(node.getBaseTypeNoName() != null) { node.getBaseTypeNoName().apply(this); } { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); for(PArrayBrackets e : copy) { e.apply(this); } } outABaseNonvoidType(node); } public void inAQuotedNonvoidType(AQuotedNonvoidType node) { defaultIn(node); } public void outAQuotedNonvoidType(AQuotedNonvoidType node) { defaultOut(node); } @Override public void caseAQuotedNonvoidType(AQuotedNonvoidType node) { inAQuotedNonvoidType(node); if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); for(PArrayBrackets e : copy) { e.apply(this); } } outAQuotedNonvoidType(node); } public void inAIdentNonvoidType(AIdentNonvoidType node) { defaultIn(node); } public void outAIdentNonvoidType(AIdentNonvoidType node) { defaultOut(node); } @Override public void caseAIdentNonvoidType(AIdentNonvoidType node) { inAIdentNonvoidType(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); for(PArrayBrackets e : copy) { e.apply(this); } } outAIdentNonvoidType(node); } public void inAFullIdentNonvoidType(AFullIdentNonvoidType node) { defaultIn(node); } public void outAFullIdentNonvoidType(AFullIdentNonvoidType node) { defaultOut(node); } @Override public void caseAFullIdentNonvoidType(AFullIdentNonvoidType node) { inAFullIdentNonvoidType(node); if(node.getFullIdentifier() != null) { node.getFullIdentifier().apply(this); } { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); for(PArrayBrackets e : copy) { e.apply(this); } } outAFullIdentNonvoidType(node); } public void inAArrayBrackets(AArrayBrackets node) { defaultIn(node); } public void outAArrayBrackets(AArrayBrackets node) { defaultOut(node); } @Override public void caseAArrayBrackets(AArrayBrackets node) { inAArrayBrackets(node); if(node.getLBracket() != null) { node.getLBracket().apply(this); } if(node.getRBracket() != null) { node.getRBracket().apply(this); } outAArrayBrackets(node); } public void inAEmptyMethodBody(AEmptyMethodBody node) { defaultIn(node); } public void outAEmptyMethodBody(AEmptyMethodBody node) { defaultOut(node); } @Override public void caseAEmptyMethodBody(AEmptyMethodBody node) { inAEmptyMethodBody(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAEmptyMethodBody(node); } public void inAFullMethodBody(AFullMethodBody node) { defaultIn(node); } public void outAFullMethodBody(AFullMethodBody node) { defaultOut(node); } @Override public void caseAFullMethodBody(AFullMethodBody node) { inAFullMethodBody(node); if(node.getLBrace() != null) { node.getLBrace().apply(this); } { List<PDeclaration> copy = new ArrayList<PDeclaration>(node.getDeclaration()); for(PDeclaration e : copy) { e.apply(this); } } { List<PStatement> copy = new ArrayList<PStatement>(node.getStatement()); for(PStatement e : copy) { e.apply(this); } } { List<PCatchClause> copy = new ArrayList<PCatchClause>(node.getCatchClause()); for(PCatchClause e : copy) { e.apply(this); } } if(node.getRBrace() != null) { node.getRBrace().apply(this); } outAFullMethodBody(node); } public void inADeclaration(ADeclaration node) { defaultIn(node); } public void outADeclaration(ADeclaration node) { defaultOut(node); } @Override public void caseADeclaration(ADeclaration node) { inADeclaration(node); if(node.getJimpleType() != null) { node.getJimpleType().apply(this); } if(node.getLocalNameList() != null) { node.getLocalNameList().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outADeclaration(node); } public void inAUnknownJimpleType(AUnknownJimpleType node) { defaultIn(node); } public void outAUnknownJimpleType(AUnknownJimpleType node) { defaultOut(node); } @Override public void caseAUnknownJimpleType(AUnknownJimpleType node) { inAUnknownJimpleType(node); if(node.getUnknown() != null) { node.getUnknown().apply(this); } outAUnknownJimpleType(node); } public void inANonvoidJimpleType(ANonvoidJimpleType node) { defaultIn(node); } public void outANonvoidJimpleType(ANonvoidJimpleType node) { defaultOut(node); } @Override public void caseANonvoidJimpleType(ANonvoidJimpleType node) { inANonvoidJimpleType(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outANonvoidJimpleType(node); } public void inALocalName(ALocalName node) { defaultIn(node); } public void outALocalName(ALocalName node) { defaultOut(node); } @Override public void caseALocalName(ALocalName node) { inALocalName(node); if(node.getName() != null) { node.getName().apply(this); } outALocalName(node); } public void inASingleLocalNameList(ASingleLocalNameList node) { defaultIn(node); } public void outASingleLocalNameList(ASingleLocalNameList node) { defaultOut(node); } @Override public void caseASingleLocalNameList(ASingleLocalNameList node) { inASingleLocalNameList(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } outASingleLocalNameList(node); } public void inAMultiLocalNameList(AMultiLocalNameList node) { defaultIn(node); } public void outAMultiLocalNameList(AMultiLocalNameList node) { defaultOut(node); } @Override public void caseAMultiLocalNameList(AMultiLocalNameList node) { inAMultiLocalNameList(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getLocalNameList() != null) { node.getLocalNameList().apply(this); } outAMultiLocalNameList(node); } public void inALabelStatement(ALabelStatement node) { defaultIn(node); } public void outALabelStatement(ALabelStatement node) { defaultOut(node); } @Override public void caseALabelStatement(ALabelStatement node) { inALabelStatement(node); if(node.getLabelName() != null) { node.getLabelName().apply(this); } if(node.getColon() != null) { node.getColon().apply(this); } outALabelStatement(node); } public void inABreakpointStatement(ABreakpointStatement node) { defaultIn(node); } public void outABreakpointStatement(ABreakpointStatement node) { defaultOut(node); } @Override public void caseABreakpointStatement(ABreakpointStatement node) { inABreakpointStatement(node); if(node.getBreakpoint() != null) { node.getBreakpoint().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outABreakpointStatement(node); } public void inAEntermonitorStatement(AEntermonitorStatement node) { defaultIn(node); } public void outAEntermonitorStatement(AEntermonitorStatement node) { defaultOut(node); } @Override public void caseAEntermonitorStatement(AEntermonitorStatement node) { inAEntermonitorStatement(node); if(node.getEntermonitor() != null) { node.getEntermonitor().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAEntermonitorStatement(node); } public void inAExitmonitorStatement(AExitmonitorStatement node) { defaultIn(node); } public void outAExitmonitorStatement(AExitmonitorStatement node) { defaultOut(node); } @Override public void caseAExitmonitorStatement(AExitmonitorStatement node) { inAExitmonitorStatement(node); if(node.getExitmonitor() != null) { node.getExitmonitor().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAExitmonitorStatement(node); } public void inATableswitchStatement(ATableswitchStatement node) { defaultIn(node); } public void outATableswitchStatement(ATableswitchStatement node) { defaultOut(node); } @Override public void caseATableswitchStatement(ATableswitchStatement node) { inATableswitchStatement(node); if(node.getTableswitch() != null) { node.getTableswitch().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getLBrace() != null) { node.getLBrace().apply(this); } { List<PCaseStmt> copy = new ArrayList<PCaseStmt>(node.getCaseStmt()); for(PCaseStmt e : copy) { e.apply(this); } } if(node.getRBrace() != null) { node.getRBrace().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outATableswitchStatement(node); } public void inALookupswitchStatement(ALookupswitchStatement node) { defaultIn(node); } public void outALookupswitchStatement(ALookupswitchStatement node) { defaultOut(node); } @Override public void caseALookupswitchStatement(ALookupswitchStatement node) { inALookupswitchStatement(node); if(node.getLookupswitch() != null) { node.getLookupswitch().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getLBrace() != null) { node.getLBrace().apply(this); } { List<PCaseStmt> copy = new ArrayList<PCaseStmt>(node.getCaseStmt()); for(PCaseStmt e : copy) { e.apply(this); } } if(node.getRBrace() != null) { node.getRBrace().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outALookupswitchStatement(node); } public void inAIdentityStatement(AIdentityStatement node) { defaultIn(node); } public void outAIdentityStatement(AIdentityStatement node) { defaultOut(node); } @Override public void caseAIdentityStatement(AIdentityStatement node) { inAIdentityStatement(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } if(node.getColonEquals() != null) { node.getColonEquals().apply(this); } if(node.getAtIdentifier() != null) { node.getAtIdentifier().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAIdentityStatement(node); } public void inAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { defaultIn(node); } public void outAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { defaultOut(node); } @Override public void caseAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { inAIdentityNoTypeStatement(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } if(node.getColonEquals() != null) { node.getColonEquals().apply(this); } if(node.getAtIdentifier() != null) { node.getAtIdentifier().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAIdentityNoTypeStatement(node); } public void inAAssignStatement(AAssignStatement node) { defaultIn(node); } public void outAAssignStatement(AAssignStatement node) { defaultOut(node); } @Override public void caseAAssignStatement(AAssignStatement node) { inAAssignStatement(node); if(node.getVariable() != null) { node.getVariable().apply(this); } if(node.getEquals() != null) { node.getEquals().apply(this); } if(node.getExpression() != null) { node.getExpression().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAAssignStatement(node); } public void inAIfStatement(AIfStatement node) { defaultIn(node); } public void outAIfStatement(AIfStatement node) { defaultOut(node); } @Override public void caseAIfStatement(AIfStatement node) { inAIfStatement(node); if(node.getIf() != null) { node.getIf().apply(this); } if(node.getBoolExpr() != null) { node.getBoolExpr().apply(this); } if(node.getGotoStmt() != null) { node.getGotoStmt().apply(this); } outAIfStatement(node); } public void inAGotoStatement(AGotoStatement node) { defaultIn(node); } public void outAGotoStatement(AGotoStatement node) { defaultOut(node); } @Override public void caseAGotoStatement(AGotoStatement node) { inAGotoStatement(node); if(node.getGotoStmt() != null) { node.getGotoStmt().apply(this); } outAGotoStatement(node); } public void inANopStatement(ANopStatement node) { defaultIn(node); } public void outANopStatement(ANopStatement node) { defaultOut(node); } @Override public void caseANopStatement(ANopStatement node) { inANopStatement(node); if(node.getNop() != null) { node.getNop().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outANopStatement(node); } public void inARetStatement(ARetStatement node) { defaultIn(node); } public void outARetStatement(ARetStatement node) { defaultOut(node); } @Override public void caseARetStatement(ARetStatement node) { inARetStatement(node); if(node.getRet() != null) { node.getRet().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outARetStatement(node); } public void inAReturnStatement(AReturnStatement node) { defaultIn(node); } public void outAReturnStatement(AReturnStatement node) { defaultOut(node); } @Override public void caseAReturnStatement(AReturnStatement node) { inAReturnStatement(node); if(node.getReturn() != null) { node.getReturn().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAReturnStatement(node); } public void inAThrowStatement(AThrowStatement node) { defaultIn(node); } public void outAThrowStatement(AThrowStatement node) { defaultOut(node); } @Override public void caseAThrowStatement(AThrowStatement node) { inAThrowStatement(node); if(node.getThrow() != null) { node.getThrow().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAThrowStatement(node); } public void inAInvokeStatement(AInvokeStatement node) { defaultIn(node); } public void outAInvokeStatement(AInvokeStatement node) { defaultOut(node); } @Override public void caseAInvokeStatement(AInvokeStatement node) { inAInvokeStatement(node); if(node.getInvokeExpr() != null) { node.getInvokeExpr().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAInvokeStatement(node); } public void inALabelName(ALabelName node) { defaultIn(node); } public void outALabelName(ALabelName node) { defaultOut(node); } @Override public void caseALabelName(ALabelName node) { inALabelName(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outALabelName(node); } public void inACaseStmt(ACaseStmt node) { defaultIn(node); } public void outACaseStmt(ACaseStmt node) { defaultOut(node); } @Override public void caseACaseStmt(ACaseStmt node) { inACaseStmt(node); if(node.getCaseLabel() != null) { node.getCaseLabel().apply(this); } if(node.getColon() != null) { node.getColon().apply(this); } if(node.getGotoStmt() != null) { node.getGotoStmt().apply(this); } outACaseStmt(node); } public void inAConstantCaseLabel(AConstantCaseLabel node) { defaultIn(node); } public void outAConstantCaseLabel(AConstantCaseLabel node) { defaultOut(node); } @Override public void caseAConstantCaseLabel(AConstantCaseLabel node) { inAConstantCaseLabel(node); if(node.getCase() != null) { node.getCase().apply(this); } if(node.getMinus() != null) { node.getMinus().apply(this); } if(node.getIntegerConstant() != null) { node.getIntegerConstant().apply(this); } outAConstantCaseLabel(node); } public void inADefaultCaseLabel(ADefaultCaseLabel node) { defaultIn(node); } public void outADefaultCaseLabel(ADefaultCaseLabel node) { defaultOut(node); } @Override public void caseADefaultCaseLabel(ADefaultCaseLabel node) { inADefaultCaseLabel(node); if(node.getDefault() != null) { node.getDefault().apply(this); } outADefaultCaseLabel(node); } public void inAGotoStmt(AGotoStmt node) { defaultIn(node); } public void outAGotoStmt(AGotoStmt node) { defaultOut(node); } @Override public void caseAGotoStmt(AGotoStmt node) { inAGotoStmt(node); if(node.getGoto() != null) { node.getGoto().apply(this); } if(node.getLabelName() != null) { node.getLabelName().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAGotoStmt(node); } public void inACatchClause(ACatchClause node) { defaultIn(node); } public void outACatchClause(ACatchClause node) { defaultOut(node); } @Override public void caseACatchClause(ACatchClause node) { inACatchClause(node); if(node.getCatch() != null) { node.getCatch().apply(this); } if(node.getName() != null) { node.getName().apply(this); } if(node.getFrom() != null) { node.getFrom().apply(this); } if(node.getFromLabel() != null) { node.getFromLabel().apply(this); } if(node.getTo() != null) { node.getTo().apply(this); } if(node.getToLabel() != null) { node.getToLabel().apply(this); } if(node.getWith() != null) { node.getWith().apply(this); } if(node.getWithLabel() != null) { node.getWithLabel().apply(this); } if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outACatchClause(node); } public void inANewExpression(ANewExpression node) { defaultIn(node); } public void outANewExpression(ANewExpression node) { defaultOut(node); } @Override public void caseANewExpression(ANewExpression node) { inANewExpression(node); if(node.getNewExpr() != null) { node.getNewExpr().apply(this); } outANewExpression(node); } public void inACastExpression(ACastExpression node) { defaultIn(node); } public void outACastExpression(ACastExpression node) { defaultOut(node); } @Override public void caseACastExpression(ACastExpression node) { inACastExpression(node); if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } outACastExpression(node); } public void inAInstanceofExpression(AInstanceofExpression node) { defaultIn(node); } public void outAInstanceofExpression(AInstanceofExpression node) { defaultOut(node); } @Override public void caseAInstanceofExpression(AInstanceofExpression node) { inAInstanceofExpression(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getInstanceof() != null) { node.getInstanceof().apply(this); } if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outAInstanceofExpression(node); } public void inAInvokeExpression(AInvokeExpression node) { defaultIn(node); } public void outAInvokeExpression(AInvokeExpression node) { defaultOut(node); } @Override public void caseAInvokeExpression(AInvokeExpression node) { inAInvokeExpression(node); if(node.getInvokeExpr() != null) { node.getInvokeExpr().apply(this); } outAInvokeExpression(node); } public void inAReferenceExpression(AReferenceExpression node) { defaultIn(node); } public void outAReferenceExpression(AReferenceExpression node) { defaultOut(node); } @Override public void caseAReferenceExpression(AReferenceExpression node) { inAReferenceExpression(node); if(node.getReference() != null) { node.getReference().apply(this); } outAReferenceExpression(node); } public void inABinopExpression(ABinopExpression node) { defaultIn(node); } public void outABinopExpression(ABinopExpression node) { defaultOut(node); } @Override public void caseABinopExpression(ABinopExpression node) { inABinopExpression(node); if(node.getBinopExpr() != null) { node.getBinopExpr().apply(this); } outABinopExpression(node); } public void inAUnopExpression(AUnopExpression node) { defaultIn(node); } public void outAUnopExpression(AUnopExpression node) { defaultOut(node); } @Override public void caseAUnopExpression(AUnopExpression node) { inAUnopExpression(node); if(node.getUnopExpr() != null) { node.getUnopExpr().apply(this); } outAUnopExpression(node); } public void inAImmediateExpression(AImmediateExpression node) { defaultIn(node); } public void outAImmediateExpression(AImmediateExpression node) { defaultOut(node); } @Override public void caseAImmediateExpression(AImmediateExpression node) { inAImmediateExpression(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } outAImmediateExpression(node); } public void inASimpleNewExpr(ASimpleNewExpr node) { defaultIn(node); } public void outASimpleNewExpr(ASimpleNewExpr node) { defaultOut(node); } @Override public void caseASimpleNewExpr(ASimpleNewExpr node) { inASimpleNewExpr(node); if(node.getNew() != null) { node.getNew().apply(this); } if(node.getBaseType() != null) { node.getBaseType().apply(this); } outASimpleNewExpr(node); } public void inAArrayNewExpr(AArrayNewExpr node) { defaultIn(node); } public void outAArrayNewExpr(AArrayNewExpr node) { defaultOut(node); } @Override public void caseAArrayNewExpr(AArrayNewExpr node) { inAArrayNewExpr(node); if(node.getNewarray() != null) { node.getNewarray().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getFixedArrayDescriptor() != null) { node.getFixedArrayDescriptor().apply(this); } outAArrayNewExpr(node); } public void inAMultiNewExpr(AMultiNewExpr node) { defaultIn(node); } public void outAMultiNewExpr(AMultiNewExpr node) { defaultOut(node); } @Override public void caseAMultiNewExpr(AMultiNewExpr node) { inAMultiNewExpr(node); if(node.getNewmultiarray() != null) { node.getNewmultiarray().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getBaseType() != null) { node.getBaseType().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } { List<PArrayDescriptor> copy = new ArrayList<PArrayDescriptor>(node.getArrayDescriptor()); for(PArrayDescriptor e : copy) { e.apply(this); } } outAMultiNewExpr(node); } public void inAArrayDescriptor(AArrayDescriptor node) { defaultIn(node); } public void outAArrayDescriptor(AArrayDescriptor node) { defaultOut(node); } @Override public void caseAArrayDescriptor(AArrayDescriptor node) { inAArrayDescriptor(node); if(node.getLBracket() != null) { node.getLBracket().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getRBracket() != null) { node.getRBracket().apply(this); } outAArrayDescriptor(node); } public void inAReferenceVariable(AReferenceVariable node) { defaultIn(node); } public void outAReferenceVariable(AReferenceVariable node) { defaultOut(node); } @Override public void caseAReferenceVariable(AReferenceVariable node) { inAReferenceVariable(node); if(node.getReference() != null) { node.getReference().apply(this); } outAReferenceVariable(node); } public void inALocalVariable(ALocalVariable node) { defaultIn(node); } public void outALocalVariable(ALocalVariable node) { defaultOut(node); } @Override public void caseALocalVariable(ALocalVariable node) { inALocalVariable(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } outALocalVariable(node); } public void inABinopBoolExpr(ABinopBoolExpr node) { defaultIn(node); } public void outABinopBoolExpr(ABinopBoolExpr node) { defaultOut(node); } @Override public void caseABinopBoolExpr(ABinopBoolExpr node) { inABinopBoolExpr(node); if(node.getBinopExpr() != null) { node.getBinopExpr().apply(this); } outABinopBoolExpr(node); } public void inAUnopBoolExpr(AUnopBoolExpr node) { defaultIn(node); } public void outAUnopBoolExpr(AUnopBoolExpr node) { defaultOut(node); } @Override public void caseAUnopBoolExpr(AUnopBoolExpr node) { inAUnopBoolExpr(node); if(node.getUnopExpr() != null) { node.getUnopExpr().apply(this); } outAUnopBoolExpr(node); } public void inANonstaticInvokeExpr(ANonstaticInvokeExpr node) { defaultIn(node); } public void outANonstaticInvokeExpr(ANonstaticInvokeExpr node) { defaultOut(node); } @Override public void caseANonstaticInvokeExpr(ANonstaticInvokeExpr node) { inANonstaticInvokeExpr(node); if(node.getNonstaticInvoke() != null) { node.getNonstaticInvoke().apply(this); } if(node.getLocalName() != null) { node.getLocalName().apply(this); } if(node.getDot() != null) { node.getDot().apply(this); } if(node.getMethodSignature() != null) { node.getMethodSignature().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getArgList() != null) { node.getArgList().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } outANonstaticInvokeExpr(node); } public void inAStaticInvokeExpr(AStaticInvokeExpr node) { defaultIn(node); } public void outAStaticInvokeExpr(AStaticInvokeExpr node) { defaultOut(node); } @Override public void caseAStaticInvokeExpr(AStaticInvokeExpr node) { inAStaticInvokeExpr(node); if(node.getStaticinvoke() != null) { node.getStaticinvoke().apply(this); } if(node.getMethodSignature() != null) { node.getMethodSignature().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getArgList() != null) { node.getArgList().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } outAStaticInvokeExpr(node); } public void inADynamicInvokeExpr(ADynamicInvokeExpr node) { defaultIn(node); } public void outADynamicInvokeExpr(ADynamicInvokeExpr node) { defaultOut(node); } @Override public void caseADynamicInvokeExpr(ADynamicInvokeExpr node) { inADynamicInvokeExpr(node); if(node.getDynamicinvoke() != null) { node.getDynamicinvoke().apply(this); } if(node.getStringConstant() != null) { node.getStringConstant().apply(this); } if(node.getDynmethod() != null) { node.getDynmethod().apply(this); } if(node.getFirstl() != null) { node.getFirstl().apply(this); } if(node.getDynargs() != null) { node.getDynargs().apply(this); } if(node.getFirstr() != null) { node.getFirstr().apply(this); } if(node.getBsm() != null) { node.getBsm().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getStaticargs() != null) { node.getStaticargs().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } outADynamicInvokeExpr(node); } public void inABinopExpr(ABinopExpr node) { defaultIn(node); } public void outABinopExpr(ABinopExpr node) { defaultOut(node); } @Override public void caseABinopExpr(ABinopExpr node) { inABinopExpr(node); if(node.getLeft() != null) { node.getLeft().apply(this); } if(node.getBinop() != null) { node.getBinop().apply(this); } if(node.getRight() != null) { node.getRight().apply(this); } outABinopExpr(node); } public void inAUnopExpr(AUnopExpr node) { defaultIn(node); } public void outAUnopExpr(AUnopExpr node) { defaultOut(node); } @Override public void caseAUnopExpr(AUnopExpr node) { inAUnopExpr(node); if(node.getUnop() != null) { node.getUnop().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } outAUnopExpr(node); } public void inASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { defaultIn(node); } public void outASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { defaultOut(node); } @Override public void caseASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { inASpecialNonstaticInvoke(node); if(node.getSpecialinvoke() != null) { node.getSpecialinvoke().apply(this); } outASpecialNonstaticInvoke(node); } public void inAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { defaultIn(node); } public void outAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { defaultOut(node); } @Override public void caseAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { inAVirtualNonstaticInvoke(node); if(node.getVirtualinvoke() != null) { node.getVirtualinvoke().apply(this); } outAVirtualNonstaticInvoke(node); } public void inAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { defaultIn(node); } public void outAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { defaultOut(node); } @Override public void caseAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { inAInterfaceNonstaticInvoke(node); if(node.getInterfaceinvoke() != null) { node.getInterfaceinvoke().apply(this); } outAInterfaceNonstaticInvoke(node); } public void inAUnnamedMethodSignature(AUnnamedMethodSignature node) { defaultIn(node); } public void outAUnnamedMethodSignature(AUnnamedMethodSignature node) { defaultOut(node); } @Override public void caseAUnnamedMethodSignature(AUnnamedMethodSignature node) { inAUnnamedMethodSignature(node); if(node.getCmplt() != null) { node.getCmplt().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } outAUnnamedMethodSignature(node); } public void inAMethodSignature(AMethodSignature node) { defaultIn(node); } public void outAMethodSignature(AMethodSignature node) { defaultOut(node); } @Override public void caseAMethodSignature(AMethodSignature node) { inAMethodSignature(node); if(node.getCmplt() != null) { node.getCmplt().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getFirst() != null) { node.getFirst().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getMethodName() != null) { node.getMethodName().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } outAMethodSignature(node); } public void inAArrayReference(AArrayReference node) { defaultIn(node); } public void outAArrayReference(AArrayReference node) { defaultOut(node); } @Override public void caseAArrayReference(AArrayReference node) { inAArrayReference(node); if(node.getArrayRef() != null) { node.getArrayRef().apply(this); } outAArrayReference(node); } public void inAFieldReference(AFieldReference node) { defaultIn(node); } public void outAFieldReference(AFieldReference node) { defaultOut(node); } @Override public void caseAFieldReference(AFieldReference node) { inAFieldReference(node); if(node.getFieldRef() != null) { node.getFieldRef().apply(this); } outAFieldReference(node); } public void inAIdentArrayRef(AIdentArrayRef node) { defaultIn(node); } public void outAIdentArrayRef(AIdentArrayRef node) { defaultOut(node); } @Override public void caseAIdentArrayRef(AIdentArrayRef node) { inAIdentArrayRef(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } if(node.getFixedArrayDescriptor() != null) { node.getFixedArrayDescriptor().apply(this); } outAIdentArrayRef(node); } public void inAQuotedArrayRef(AQuotedArrayRef node) { defaultIn(node); } public void outAQuotedArrayRef(AQuotedArrayRef node) { defaultOut(node); } @Override public void caseAQuotedArrayRef(AQuotedArrayRef node) { inAQuotedArrayRef(node); if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } if(node.getFixedArrayDescriptor() != null) { node.getFixedArrayDescriptor().apply(this); } outAQuotedArrayRef(node); } public void inALocalFieldRef(ALocalFieldRef node) { defaultIn(node); } public void outALocalFieldRef(ALocalFieldRef node) { defaultOut(node); } @Override public void caseALocalFieldRef(ALocalFieldRef node) { inALocalFieldRef(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } if(node.getDot() != null) { node.getDot().apply(this); } if(node.getFieldSignature() != null) { node.getFieldSignature().apply(this); } outALocalFieldRef(node); } public void inASigFieldRef(ASigFieldRef node) { defaultIn(node); } public void outASigFieldRef(ASigFieldRef node) { defaultOut(node); } @Override public void caseASigFieldRef(ASigFieldRef node) { inASigFieldRef(node); if(node.getFieldSignature() != null) { node.getFieldSignature().apply(this); } outASigFieldRef(node); } public void inAFieldSignature(AFieldSignature node) { defaultIn(node); } public void outAFieldSignature(AFieldSignature node) { defaultOut(node); } @Override public void caseAFieldSignature(AFieldSignature node) { inAFieldSignature(node); if(node.getCmplt() != null) { node.getCmplt().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getFirst() != null) { node.getFirst().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getFieldName() != null) { node.getFieldName().apply(this); } if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } outAFieldSignature(node); } public void inAFixedArrayDescriptor(AFixedArrayDescriptor node) { defaultIn(node); } public void outAFixedArrayDescriptor(AFixedArrayDescriptor node) { defaultOut(node); } @Override public void caseAFixedArrayDescriptor(AFixedArrayDescriptor node) { inAFixedArrayDescriptor(node); if(node.getLBracket() != null) { node.getLBracket().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getRBracket() != null) { node.getRBracket().apply(this); } outAFixedArrayDescriptor(node); } public void inASingleArgList(ASingleArgList node) { defaultIn(node); } public void outASingleArgList(ASingleArgList node) { defaultOut(node); } @Override public void caseASingleArgList(ASingleArgList node) { inASingleArgList(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } outASingleArgList(node); } public void inAMultiArgList(AMultiArgList node) { defaultIn(node); } public void outAMultiArgList(AMultiArgList node) { defaultOut(node); } @Override public void caseAMultiArgList(AMultiArgList node) { inAMultiArgList(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getArgList() != null) { node.getArgList().apply(this); } outAMultiArgList(node); } public void inALocalImmediate(ALocalImmediate node) { defaultIn(node); } public void outALocalImmediate(ALocalImmediate node) { defaultOut(node); } @Override public void caseALocalImmediate(ALocalImmediate node) { inALocalImmediate(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } outALocalImmediate(node); } public void inAConstantImmediate(AConstantImmediate node) { defaultIn(node); } public void outAConstantImmediate(AConstantImmediate node) { defaultOut(node); } @Override public void caseAConstantImmediate(AConstantImmediate node) { inAConstantImmediate(node); if(node.getConstant() != null) { node.getConstant().apply(this); } outAConstantImmediate(node); } public void inAIntegerConstant(AIntegerConstant node) { defaultIn(node); } public void outAIntegerConstant(AIntegerConstant node) { defaultOut(node); } @Override public void caseAIntegerConstant(AIntegerConstant node) { inAIntegerConstant(node); if(node.getMinus() != null) { node.getMinus().apply(this); } if(node.getIntegerConstant() != null) { node.getIntegerConstant().apply(this); } outAIntegerConstant(node); } public void inAFloatConstant(AFloatConstant node) { defaultIn(node); } public void outAFloatConstant(AFloatConstant node) { defaultOut(node); } @Override public void caseAFloatConstant(AFloatConstant node) { inAFloatConstant(node); if(node.getMinus() != null) { node.getMinus().apply(this); } if(node.getFloatConstant() != null) { node.getFloatConstant().apply(this); } outAFloatConstant(node); } public void inAStringConstant(AStringConstant node) { defaultIn(node); } public void outAStringConstant(AStringConstant node) { defaultOut(node); } @Override public void caseAStringConstant(AStringConstant node) { inAStringConstant(node); if(node.getStringConstant() != null) { node.getStringConstant().apply(this); } outAStringConstant(node); } public void inAClzzConstant(AClzzConstant node) { defaultIn(node); } public void outAClzzConstant(AClzzConstant node) { defaultOut(node); } @Override public void caseAClzzConstant(AClzzConstant node) { inAClzzConstant(node); if(node.getId() != null) { node.getId().apply(this); } if(node.getStringConstant() != null) { node.getStringConstant().apply(this); } outAClzzConstant(node); } public void inANullConstant(ANullConstant node) { defaultIn(node); } public void outANullConstant(ANullConstant node) { defaultOut(node); } @Override public void caseANullConstant(ANullConstant node) { inANullConstant(node); if(node.getNull() != null) { node.getNull().apply(this); } outANullConstant(node); } public void inAAndBinop(AAndBinop node) { defaultIn(node); } public void outAAndBinop(AAndBinop node) { defaultOut(node); } @Override public void caseAAndBinop(AAndBinop node) { inAAndBinop(node); if(node.getAnd() != null) { node.getAnd().apply(this); } outAAndBinop(node); } public void inAOrBinop(AOrBinop node) { defaultIn(node); } public void outAOrBinop(AOrBinop node) { defaultOut(node); } @Override public void caseAOrBinop(AOrBinop node) { inAOrBinop(node); if(node.getOr() != null) { node.getOr().apply(this); } outAOrBinop(node); } public void inAXorBinop(AXorBinop node) { defaultIn(node); } public void outAXorBinop(AXorBinop node) { defaultOut(node); } @Override public void caseAXorBinop(AXorBinop node) { inAXorBinop(node); if(node.getXor() != null) { node.getXor().apply(this); } outAXorBinop(node); } public void inAModBinop(AModBinop node) { defaultIn(node); } public void outAModBinop(AModBinop node) { defaultOut(node); } @Override public void caseAModBinop(AModBinop node) { inAModBinop(node); if(node.getMod() != null) { node.getMod().apply(this); } outAModBinop(node); } public void inACmpBinop(ACmpBinop node) { defaultIn(node); } public void outACmpBinop(ACmpBinop node) { defaultOut(node); } @Override public void caseACmpBinop(ACmpBinop node) { inACmpBinop(node); if(node.getCmp() != null) { node.getCmp().apply(this); } outACmpBinop(node); } public void inACmpgBinop(ACmpgBinop node) { defaultIn(node); } public void outACmpgBinop(ACmpgBinop node) { defaultOut(node); } @Override public void caseACmpgBinop(ACmpgBinop node) { inACmpgBinop(node); if(node.getCmpg() != null) { node.getCmpg().apply(this); } outACmpgBinop(node); } public void inACmplBinop(ACmplBinop node) { defaultIn(node); } public void outACmplBinop(ACmplBinop node) { defaultOut(node); } @Override public void caseACmplBinop(ACmplBinop node) { inACmplBinop(node); if(node.getCmpl() != null) { node.getCmpl().apply(this); } outACmplBinop(node); } public void inACmpeqBinop(ACmpeqBinop node) { defaultIn(node); } public void outACmpeqBinop(ACmpeqBinop node) { defaultOut(node); } @Override public void caseACmpeqBinop(ACmpeqBinop node) { inACmpeqBinop(node); if(node.getCmpeq() != null) { node.getCmpeq().apply(this); } outACmpeqBinop(node); } public void inACmpneBinop(ACmpneBinop node) { defaultIn(node); } public void outACmpneBinop(ACmpneBinop node) { defaultOut(node); } @Override public void caseACmpneBinop(ACmpneBinop node) { inACmpneBinop(node); if(node.getCmpne() != null) { node.getCmpne().apply(this); } outACmpneBinop(node); } public void inACmpgtBinop(ACmpgtBinop node) { defaultIn(node); } public void outACmpgtBinop(ACmpgtBinop node) { defaultOut(node); } @Override public void caseACmpgtBinop(ACmpgtBinop node) { inACmpgtBinop(node); if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } outACmpgtBinop(node); } public void inACmpgeBinop(ACmpgeBinop node) { defaultIn(node); } public void outACmpgeBinop(ACmpgeBinop node) { defaultOut(node); } @Override public void caseACmpgeBinop(ACmpgeBinop node) { inACmpgeBinop(node); if(node.getCmpge() != null) { node.getCmpge().apply(this); } outACmpgeBinop(node); } public void inACmpltBinop(ACmpltBinop node) { defaultIn(node); } public void outACmpltBinop(ACmpltBinop node) { defaultOut(node); } @Override public void caseACmpltBinop(ACmpltBinop node) { inACmpltBinop(node); if(node.getCmplt() != null) { node.getCmplt().apply(this); } outACmpltBinop(node); } public void inACmpleBinop(ACmpleBinop node) { defaultIn(node); } public void outACmpleBinop(ACmpleBinop node) { defaultOut(node); } @Override public void caseACmpleBinop(ACmpleBinop node) { inACmpleBinop(node); if(node.getCmple() != null) { node.getCmple().apply(this); } outACmpleBinop(node); } public void inAShlBinop(AShlBinop node) { defaultIn(node); } public void outAShlBinop(AShlBinop node) { defaultOut(node); } @Override public void caseAShlBinop(AShlBinop node) { inAShlBinop(node); if(node.getShl() != null) { node.getShl().apply(this); } outAShlBinop(node); } public void inAShrBinop(AShrBinop node) { defaultIn(node); } public void outAShrBinop(AShrBinop node) { defaultOut(node); } @Override public void caseAShrBinop(AShrBinop node) { inAShrBinop(node); if(node.getShr() != null) { node.getShr().apply(this); } outAShrBinop(node); } public void inAUshrBinop(AUshrBinop node) { defaultIn(node); } public void outAUshrBinop(AUshrBinop node) { defaultOut(node); } @Override public void caseAUshrBinop(AUshrBinop node) { inAUshrBinop(node); if(node.getUshr() != null) { node.getUshr().apply(this); } outAUshrBinop(node); } public void inAPlusBinop(APlusBinop node) { defaultIn(node); } public void outAPlusBinop(APlusBinop node) { defaultOut(node); } @Override public void caseAPlusBinop(APlusBinop node) { inAPlusBinop(node); if(node.getPlus() != null) { node.getPlus().apply(this); } outAPlusBinop(node); } public void inAMinusBinop(AMinusBinop node) { defaultIn(node); } public void outAMinusBinop(AMinusBinop node) { defaultOut(node); } @Override public void caseAMinusBinop(AMinusBinop node) { inAMinusBinop(node); if(node.getMinus() != null) { node.getMinus().apply(this); } outAMinusBinop(node); } public void inAMultBinop(AMultBinop node) { defaultIn(node); } public void outAMultBinop(AMultBinop node) { defaultOut(node); } @Override public void caseAMultBinop(AMultBinop node) { inAMultBinop(node); if(node.getMult() != null) { node.getMult().apply(this); } outAMultBinop(node); } public void inADivBinop(ADivBinop node) { defaultIn(node); } public void outADivBinop(ADivBinop node) { defaultOut(node); } @Override public void caseADivBinop(ADivBinop node) { inADivBinop(node); if(node.getDiv() != null) { node.getDiv().apply(this); } outADivBinop(node); } public void inALengthofUnop(ALengthofUnop node) { defaultIn(node); } public void outALengthofUnop(ALengthofUnop node) { defaultOut(node); } @Override public void caseALengthofUnop(ALengthofUnop node) { inALengthofUnop(node); if(node.getLengthof() != null) { node.getLengthof().apply(this); } outALengthofUnop(node); } public void inANegUnop(ANegUnop node) { defaultIn(node); } public void outANegUnop(ANegUnop node) { defaultOut(node); } @Override public void caseANegUnop(ANegUnop node) { inANegUnop(node); if(node.getNeg() != null) { node.getNeg().apply(this); } outANegUnop(node); } public void inAQuotedClassName(AQuotedClassName node) { defaultIn(node); } public void outAQuotedClassName(AQuotedClassName node) { defaultOut(node); } @Override public void caseAQuotedClassName(AQuotedClassName node) { inAQuotedClassName(node); if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } outAQuotedClassName(node); } public void inAIdentClassName(AIdentClassName node) { defaultIn(node); } public void outAIdentClassName(AIdentClassName node) { defaultOut(node); } @Override public void caseAIdentClassName(AIdentClassName node) { inAIdentClassName(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outAIdentClassName(node); } public void inAFullIdentClassName(AFullIdentClassName node) { defaultIn(node); } public void outAFullIdentClassName(AFullIdentClassName node) { defaultOut(node); } @Override public void caseAFullIdentClassName(AFullIdentClassName node) { inAFullIdentClassName(node); if(node.getFullIdentifier() != null) { node.getFullIdentifier().apply(this); } outAFullIdentClassName(node); } public void inAQuotedName(AQuotedName node) { defaultIn(node); } public void outAQuotedName(AQuotedName node) { defaultOut(node); } @Override public void caseAQuotedName(AQuotedName node) { inAQuotedName(node); if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } outAQuotedName(node); } public void inAIdentName(AIdentName node) { defaultIn(node); } public void outAIdentName(AIdentName node) { defaultOut(node); } @Override public void caseAIdentName(AIdentName node) { inAIdentName(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outAIdentName(node); } }
87,722
21.063129
101
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/analysis/ReversedDepthFirstAdapter.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.analysis; import java.util.*; import soot.jimple.parser.node.*; public class ReversedDepthFirstAdapter extends AnalysisAdapter { public void inStart(Start node) { defaultIn(node); } public void outStart(Start node) { defaultOut(node); } public void defaultIn(@SuppressWarnings("unused") Node node) { // Do nothing } public void defaultOut(@SuppressWarnings("unused") Node node) { // Do nothing } @Override public void caseStart(Start node) { inStart(node); node.getEOF().apply(this); node.getPFile().apply(this); outStart(node); } public void inAFile(AFile node) { defaultIn(node); } public void outAFile(AFile node) { defaultOut(node); } @Override public void caseAFile(AFile node) { inAFile(node); if(node.getFileBody() != null) { node.getFileBody().apply(this); } if(node.getImplementsClause() != null) { node.getImplementsClause().apply(this); } if(node.getExtendsClause() != null) { node.getExtendsClause().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getFileType() != null) { node.getFileType().apply(this); } { List<PModifier> copy = new ArrayList<PModifier>(node.getModifier()); Collections.reverse(copy); for(PModifier e : copy) { e.apply(this); } } outAFile(node); } public void inAAbstractModifier(AAbstractModifier node) { defaultIn(node); } public void outAAbstractModifier(AAbstractModifier node) { defaultOut(node); } @Override public void caseAAbstractModifier(AAbstractModifier node) { inAAbstractModifier(node); if(node.getAbstract() != null) { node.getAbstract().apply(this); } outAAbstractModifier(node); } public void inAFinalModifier(AFinalModifier node) { defaultIn(node); } public void outAFinalModifier(AFinalModifier node) { defaultOut(node); } @Override public void caseAFinalModifier(AFinalModifier node) { inAFinalModifier(node); if(node.getFinal() != null) { node.getFinal().apply(this); } outAFinalModifier(node); } public void inANativeModifier(ANativeModifier node) { defaultIn(node); } public void outANativeModifier(ANativeModifier node) { defaultOut(node); } @Override public void caseANativeModifier(ANativeModifier node) { inANativeModifier(node); if(node.getNative() != null) { node.getNative().apply(this); } outANativeModifier(node); } public void inAPublicModifier(APublicModifier node) { defaultIn(node); } public void outAPublicModifier(APublicModifier node) { defaultOut(node); } @Override public void caseAPublicModifier(APublicModifier node) { inAPublicModifier(node); if(node.getPublic() != null) { node.getPublic().apply(this); } outAPublicModifier(node); } public void inAProtectedModifier(AProtectedModifier node) { defaultIn(node); } public void outAProtectedModifier(AProtectedModifier node) { defaultOut(node); } @Override public void caseAProtectedModifier(AProtectedModifier node) { inAProtectedModifier(node); if(node.getProtected() != null) { node.getProtected().apply(this); } outAProtectedModifier(node); } public void inAPrivateModifier(APrivateModifier node) { defaultIn(node); } public void outAPrivateModifier(APrivateModifier node) { defaultOut(node); } @Override public void caseAPrivateModifier(APrivateModifier node) { inAPrivateModifier(node); if(node.getPrivate() != null) { node.getPrivate().apply(this); } outAPrivateModifier(node); } public void inAStaticModifier(AStaticModifier node) { defaultIn(node); } public void outAStaticModifier(AStaticModifier node) { defaultOut(node); } @Override public void caseAStaticModifier(AStaticModifier node) { inAStaticModifier(node); if(node.getStatic() != null) { node.getStatic().apply(this); } outAStaticModifier(node); } public void inASynchronizedModifier(ASynchronizedModifier node) { defaultIn(node); } public void outASynchronizedModifier(ASynchronizedModifier node) { defaultOut(node); } @Override public void caseASynchronizedModifier(ASynchronizedModifier node) { inASynchronizedModifier(node); if(node.getSynchronized() != null) { node.getSynchronized().apply(this); } outASynchronizedModifier(node); } public void inATransientModifier(ATransientModifier node) { defaultIn(node); } public void outATransientModifier(ATransientModifier node) { defaultOut(node); } @Override public void caseATransientModifier(ATransientModifier node) { inATransientModifier(node); if(node.getTransient() != null) { node.getTransient().apply(this); } outATransientModifier(node); } public void inAVolatileModifier(AVolatileModifier node) { defaultIn(node); } public void outAVolatileModifier(AVolatileModifier node) { defaultOut(node); } @Override public void caseAVolatileModifier(AVolatileModifier node) { inAVolatileModifier(node); if(node.getVolatile() != null) { node.getVolatile().apply(this); } outAVolatileModifier(node); } public void inAStrictfpModifier(AStrictfpModifier node) { defaultIn(node); } public void outAStrictfpModifier(AStrictfpModifier node) { defaultOut(node); } @Override public void caseAStrictfpModifier(AStrictfpModifier node) { inAStrictfpModifier(node); if(node.getStrictfp() != null) { node.getStrictfp().apply(this); } outAStrictfpModifier(node); } public void inAEnumModifier(AEnumModifier node) { defaultIn(node); } public void outAEnumModifier(AEnumModifier node) { defaultOut(node); } @Override public void caseAEnumModifier(AEnumModifier node) { inAEnumModifier(node); if(node.getEnum() != null) { node.getEnum().apply(this); } outAEnumModifier(node); } public void inAAnnotationModifier(AAnnotationModifier node) { defaultIn(node); } public void outAAnnotationModifier(AAnnotationModifier node) { defaultOut(node); } @Override public void caseAAnnotationModifier(AAnnotationModifier node) { inAAnnotationModifier(node); if(node.getAnnotation() != null) { node.getAnnotation().apply(this); } outAAnnotationModifier(node); } public void inAClassFileType(AClassFileType node) { defaultIn(node); } public void outAClassFileType(AClassFileType node) { defaultOut(node); } @Override public void caseAClassFileType(AClassFileType node) { inAClassFileType(node); if(node.getTheclass() != null) { node.getTheclass().apply(this); } outAClassFileType(node); } public void inAInterfaceFileType(AInterfaceFileType node) { defaultIn(node); } public void outAInterfaceFileType(AInterfaceFileType node) { defaultOut(node); } @Override public void caseAInterfaceFileType(AInterfaceFileType node) { inAInterfaceFileType(node); if(node.getInterface() != null) { node.getInterface().apply(this); } outAInterfaceFileType(node); } public void inAExtendsClause(AExtendsClause node) { defaultIn(node); } public void outAExtendsClause(AExtendsClause node) { defaultOut(node); } @Override public void caseAExtendsClause(AExtendsClause node) { inAExtendsClause(node); if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getExtends() != null) { node.getExtends().apply(this); } outAExtendsClause(node); } public void inAImplementsClause(AImplementsClause node) { defaultIn(node); } public void outAImplementsClause(AImplementsClause node) { defaultOut(node); } @Override public void caseAImplementsClause(AImplementsClause node) { inAImplementsClause(node); if(node.getClassNameList() != null) { node.getClassNameList().apply(this); } if(node.getImplements() != null) { node.getImplements().apply(this); } outAImplementsClause(node); } public void inAFileBody(AFileBody node) { defaultIn(node); } public void outAFileBody(AFileBody node) { defaultOut(node); } @Override public void caseAFileBody(AFileBody node) { inAFileBody(node); if(node.getRBrace() != null) { node.getRBrace().apply(this); } { List<PMember> copy = new ArrayList<PMember>(node.getMember()); Collections.reverse(copy); for(PMember e : copy) { e.apply(this); } } if(node.getLBrace() != null) { node.getLBrace().apply(this); } outAFileBody(node); } public void inASingleNameList(ASingleNameList node) { defaultIn(node); } public void outASingleNameList(ASingleNameList node) { defaultOut(node); } @Override public void caseASingleNameList(ASingleNameList node) { inASingleNameList(node); if(node.getName() != null) { node.getName().apply(this); } outASingleNameList(node); } public void inAMultiNameList(AMultiNameList node) { defaultIn(node); } public void outAMultiNameList(AMultiNameList node) { defaultOut(node); } @Override public void caseAMultiNameList(AMultiNameList node) { inAMultiNameList(node); if(node.getNameList() != null) { node.getNameList().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getName() != null) { node.getName().apply(this); } outAMultiNameList(node); } public void inAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { defaultIn(node); } public void outAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { defaultOut(node); } @Override public void caseAClassNameSingleClassNameList(AClassNameSingleClassNameList node) { inAClassNameSingleClassNameList(node); if(node.getClassName() != null) { node.getClassName().apply(this); } outAClassNameSingleClassNameList(node); } public void inAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { defaultIn(node); } public void outAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { defaultOut(node); } @Override public void caseAClassNameMultiClassNameList(AClassNameMultiClassNameList node) { inAClassNameMultiClassNameList(node); if(node.getClassNameList() != null) { node.getClassNameList().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } outAClassNameMultiClassNameList(node); } public void inAFieldMember(AFieldMember node) { defaultIn(node); } public void outAFieldMember(AFieldMember node) { defaultOut(node); } @Override public void caseAFieldMember(AFieldMember node) { inAFieldMember(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getName() != null) { node.getName().apply(this); } if(node.getType() != null) { node.getType().apply(this); } { List<PModifier> copy = new ArrayList<PModifier>(node.getModifier()); Collections.reverse(copy); for(PModifier e : copy) { e.apply(this); } } outAFieldMember(node); } public void inAMethodMember(AMethodMember node) { defaultIn(node); } public void outAMethodMember(AMethodMember node) { defaultOut(node); } @Override public void caseAMethodMember(AMethodMember node) { inAMethodMember(node); if(node.getMethodBody() != null) { node.getMethodBody().apply(this); } if(node.getThrowsClause() != null) { node.getThrowsClause().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getName() != null) { node.getName().apply(this); } if(node.getType() != null) { node.getType().apply(this); } { List<PModifier> copy = new ArrayList<PModifier>(node.getModifier()); Collections.reverse(copy); for(PModifier e : copy) { e.apply(this); } } outAMethodMember(node); } public void inAVoidType(AVoidType node) { defaultIn(node); } public void outAVoidType(AVoidType node) { defaultOut(node); } @Override public void caseAVoidType(AVoidType node) { inAVoidType(node); if(node.getVoid() != null) { node.getVoid().apply(this); } outAVoidType(node); } public void inANovoidType(ANovoidType node) { defaultIn(node); } public void outANovoidType(ANovoidType node) { defaultOut(node); } @Override public void caseANovoidType(ANovoidType node) { inANovoidType(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outANovoidType(node); } public void inASingleParameterList(ASingleParameterList node) { defaultIn(node); } public void outASingleParameterList(ASingleParameterList node) { defaultOut(node); } @Override public void caseASingleParameterList(ASingleParameterList node) { inASingleParameterList(node); if(node.getParameter() != null) { node.getParameter().apply(this); } outASingleParameterList(node); } public void inAMultiParameterList(AMultiParameterList node) { defaultIn(node); } public void outAMultiParameterList(AMultiParameterList node) { defaultOut(node); } @Override public void caseAMultiParameterList(AMultiParameterList node) { inAMultiParameterList(node); if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getParameter() != null) { node.getParameter().apply(this); } outAMultiParameterList(node); } public void inAParameter(AParameter node) { defaultIn(node); } public void outAParameter(AParameter node) { defaultOut(node); } @Override public void caseAParameter(AParameter node) { inAParameter(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outAParameter(node); } public void inAThrowsClause(AThrowsClause node) { defaultIn(node); } public void outAThrowsClause(AThrowsClause node) { defaultOut(node); } @Override public void caseAThrowsClause(AThrowsClause node) { inAThrowsClause(node); if(node.getClassNameList() != null) { node.getClassNameList().apply(this); } if(node.getThrows() != null) { node.getThrows().apply(this); } outAThrowsClause(node); } public void inABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { defaultIn(node); } public void outABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { defaultOut(node); } @Override public void caseABooleanBaseTypeNoName(ABooleanBaseTypeNoName node) { inABooleanBaseTypeNoName(node); if(node.getBoolean() != null) { node.getBoolean().apply(this); } outABooleanBaseTypeNoName(node); } public void inAByteBaseTypeNoName(AByteBaseTypeNoName node) { defaultIn(node); } public void outAByteBaseTypeNoName(AByteBaseTypeNoName node) { defaultOut(node); } @Override public void caseAByteBaseTypeNoName(AByteBaseTypeNoName node) { inAByteBaseTypeNoName(node); if(node.getByte() != null) { node.getByte().apply(this); } outAByteBaseTypeNoName(node); } public void inACharBaseTypeNoName(ACharBaseTypeNoName node) { defaultIn(node); } public void outACharBaseTypeNoName(ACharBaseTypeNoName node) { defaultOut(node); } @Override public void caseACharBaseTypeNoName(ACharBaseTypeNoName node) { inACharBaseTypeNoName(node); if(node.getChar() != null) { node.getChar().apply(this); } outACharBaseTypeNoName(node); } public void inAShortBaseTypeNoName(AShortBaseTypeNoName node) { defaultIn(node); } public void outAShortBaseTypeNoName(AShortBaseTypeNoName node) { defaultOut(node); } @Override public void caseAShortBaseTypeNoName(AShortBaseTypeNoName node) { inAShortBaseTypeNoName(node); if(node.getShort() != null) { node.getShort().apply(this); } outAShortBaseTypeNoName(node); } public void inAIntBaseTypeNoName(AIntBaseTypeNoName node) { defaultIn(node); } public void outAIntBaseTypeNoName(AIntBaseTypeNoName node) { defaultOut(node); } @Override public void caseAIntBaseTypeNoName(AIntBaseTypeNoName node) { inAIntBaseTypeNoName(node); if(node.getInt() != null) { node.getInt().apply(this); } outAIntBaseTypeNoName(node); } public void inALongBaseTypeNoName(ALongBaseTypeNoName node) { defaultIn(node); } public void outALongBaseTypeNoName(ALongBaseTypeNoName node) { defaultOut(node); } @Override public void caseALongBaseTypeNoName(ALongBaseTypeNoName node) { inALongBaseTypeNoName(node); if(node.getLong() != null) { node.getLong().apply(this); } outALongBaseTypeNoName(node); } public void inAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { defaultIn(node); } public void outAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { defaultOut(node); } @Override public void caseAFloatBaseTypeNoName(AFloatBaseTypeNoName node) { inAFloatBaseTypeNoName(node); if(node.getFloat() != null) { node.getFloat().apply(this); } outAFloatBaseTypeNoName(node); } public void inADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { defaultIn(node); } public void outADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { defaultOut(node); } @Override public void caseADoubleBaseTypeNoName(ADoubleBaseTypeNoName node) { inADoubleBaseTypeNoName(node); if(node.getDouble() != null) { node.getDouble().apply(this); } outADoubleBaseTypeNoName(node); } public void inANullBaseTypeNoName(ANullBaseTypeNoName node) { defaultIn(node); } public void outANullBaseTypeNoName(ANullBaseTypeNoName node) { defaultOut(node); } @Override public void caseANullBaseTypeNoName(ANullBaseTypeNoName node) { inANullBaseTypeNoName(node); if(node.getNullType() != null) { node.getNullType().apply(this); } outANullBaseTypeNoName(node); } public void inABooleanBaseType(ABooleanBaseType node) { defaultIn(node); } public void outABooleanBaseType(ABooleanBaseType node) { defaultOut(node); } @Override public void caseABooleanBaseType(ABooleanBaseType node) { inABooleanBaseType(node); if(node.getBoolean() != null) { node.getBoolean().apply(this); } outABooleanBaseType(node); } public void inAByteBaseType(AByteBaseType node) { defaultIn(node); } public void outAByteBaseType(AByteBaseType node) { defaultOut(node); } @Override public void caseAByteBaseType(AByteBaseType node) { inAByteBaseType(node); if(node.getByte() != null) { node.getByte().apply(this); } outAByteBaseType(node); } public void inACharBaseType(ACharBaseType node) { defaultIn(node); } public void outACharBaseType(ACharBaseType node) { defaultOut(node); } @Override public void caseACharBaseType(ACharBaseType node) { inACharBaseType(node); if(node.getChar() != null) { node.getChar().apply(this); } outACharBaseType(node); } public void inAShortBaseType(AShortBaseType node) { defaultIn(node); } public void outAShortBaseType(AShortBaseType node) { defaultOut(node); } @Override public void caseAShortBaseType(AShortBaseType node) { inAShortBaseType(node); if(node.getShort() != null) { node.getShort().apply(this); } outAShortBaseType(node); } public void inAIntBaseType(AIntBaseType node) { defaultIn(node); } public void outAIntBaseType(AIntBaseType node) { defaultOut(node); } @Override public void caseAIntBaseType(AIntBaseType node) { inAIntBaseType(node); if(node.getInt() != null) { node.getInt().apply(this); } outAIntBaseType(node); } public void inALongBaseType(ALongBaseType node) { defaultIn(node); } public void outALongBaseType(ALongBaseType node) { defaultOut(node); } @Override public void caseALongBaseType(ALongBaseType node) { inALongBaseType(node); if(node.getLong() != null) { node.getLong().apply(this); } outALongBaseType(node); } public void inAFloatBaseType(AFloatBaseType node) { defaultIn(node); } public void outAFloatBaseType(AFloatBaseType node) { defaultOut(node); } @Override public void caseAFloatBaseType(AFloatBaseType node) { inAFloatBaseType(node); if(node.getFloat() != null) { node.getFloat().apply(this); } outAFloatBaseType(node); } public void inADoubleBaseType(ADoubleBaseType node) { defaultIn(node); } public void outADoubleBaseType(ADoubleBaseType node) { defaultOut(node); } @Override public void caseADoubleBaseType(ADoubleBaseType node) { inADoubleBaseType(node); if(node.getDouble() != null) { node.getDouble().apply(this); } outADoubleBaseType(node); } public void inANullBaseType(ANullBaseType node) { defaultIn(node); } public void outANullBaseType(ANullBaseType node) { defaultOut(node); } @Override public void caseANullBaseType(ANullBaseType node) { inANullBaseType(node); if(node.getNullType() != null) { node.getNullType().apply(this); } outANullBaseType(node); } public void inAClassNameBaseType(AClassNameBaseType node) { defaultIn(node); } public void outAClassNameBaseType(AClassNameBaseType node) { defaultOut(node); } @Override public void caseAClassNameBaseType(AClassNameBaseType node) { inAClassNameBaseType(node); if(node.getClassName() != null) { node.getClassName().apply(this); } outAClassNameBaseType(node); } public void inABaseNonvoidType(ABaseNonvoidType node) { defaultIn(node); } public void outABaseNonvoidType(ABaseNonvoidType node) { defaultOut(node); } @Override public void caseABaseNonvoidType(ABaseNonvoidType node) { inABaseNonvoidType(node); { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); Collections.reverse(copy); for(PArrayBrackets e : copy) { e.apply(this); } } if(node.getBaseTypeNoName() != null) { node.getBaseTypeNoName().apply(this); } outABaseNonvoidType(node); } public void inAQuotedNonvoidType(AQuotedNonvoidType node) { defaultIn(node); } public void outAQuotedNonvoidType(AQuotedNonvoidType node) { defaultOut(node); } @Override public void caseAQuotedNonvoidType(AQuotedNonvoidType node) { inAQuotedNonvoidType(node); { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); Collections.reverse(copy); for(PArrayBrackets e : copy) { e.apply(this); } } if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } outAQuotedNonvoidType(node); } public void inAIdentNonvoidType(AIdentNonvoidType node) { defaultIn(node); } public void outAIdentNonvoidType(AIdentNonvoidType node) { defaultOut(node); } @Override public void caseAIdentNonvoidType(AIdentNonvoidType node) { inAIdentNonvoidType(node); { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); Collections.reverse(copy); for(PArrayBrackets e : copy) { e.apply(this); } } if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outAIdentNonvoidType(node); } public void inAFullIdentNonvoidType(AFullIdentNonvoidType node) { defaultIn(node); } public void outAFullIdentNonvoidType(AFullIdentNonvoidType node) { defaultOut(node); } @Override public void caseAFullIdentNonvoidType(AFullIdentNonvoidType node) { inAFullIdentNonvoidType(node); { List<PArrayBrackets> copy = new ArrayList<PArrayBrackets>(node.getArrayBrackets()); Collections.reverse(copy); for(PArrayBrackets e : copy) { e.apply(this); } } if(node.getFullIdentifier() != null) { node.getFullIdentifier().apply(this); } outAFullIdentNonvoidType(node); } public void inAArrayBrackets(AArrayBrackets node) { defaultIn(node); } public void outAArrayBrackets(AArrayBrackets node) { defaultOut(node); } @Override public void caseAArrayBrackets(AArrayBrackets node) { inAArrayBrackets(node); if(node.getRBracket() != null) { node.getRBracket().apply(this); } if(node.getLBracket() != null) { node.getLBracket().apply(this); } outAArrayBrackets(node); } public void inAEmptyMethodBody(AEmptyMethodBody node) { defaultIn(node); } public void outAEmptyMethodBody(AEmptyMethodBody node) { defaultOut(node); } @Override public void caseAEmptyMethodBody(AEmptyMethodBody node) { inAEmptyMethodBody(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } outAEmptyMethodBody(node); } public void inAFullMethodBody(AFullMethodBody node) { defaultIn(node); } public void outAFullMethodBody(AFullMethodBody node) { defaultOut(node); } @Override public void caseAFullMethodBody(AFullMethodBody node) { inAFullMethodBody(node); if(node.getRBrace() != null) { node.getRBrace().apply(this); } { List<PCatchClause> copy = new ArrayList<PCatchClause>(node.getCatchClause()); Collections.reverse(copy); for(PCatchClause e : copy) { e.apply(this); } } { List<PStatement> copy = new ArrayList<PStatement>(node.getStatement()); Collections.reverse(copy); for(PStatement e : copy) { e.apply(this); } } { List<PDeclaration> copy = new ArrayList<PDeclaration>(node.getDeclaration()); Collections.reverse(copy); for(PDeclaration e : copy) { e.apply(this); } } if(node.getLBrace() != null) { node.getLBrace().apply(this); } outAFullMethodBody(node); } public void inADeclaration(ADeclaration node) { defaultIn(node); } public void outADeclaration(ADeclaration node) { defaultOut(node); } @Override public void caseADeclaration(ADeclaration node) { inADeclaration(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getLocalNameList() != null) { node.getLocalNameList().apply(this); } if(node.getJimpleType() != null) { node.getJimpleType().apply(this); } outADeclaration(node); } public void inAUnknownJimpleType(AUnknownJimpleType node) { defaultIn(node); } public void outAUnknownJimpleType(AUnknownJimpleType node) { defaultOut(node); } @Override public void caseAUnknownJimpleType(AUnknownJimpleType node) { inAUnknownJimpleType(node); if(node.getUnknown() != null) { node.getUnknown().apply(this); } outAUnknownJimpleType(node); } public void inANonvoidJimpleType(ANonvoidJimpleType node) { defaultIn(node); } public void outANonvoidJimpleType(ANonvoidJimpleType node) { defaultOut(node); } @Override public void caseANonvoidJimpleType(ANonvoidJimpleType node) { inANonvoidJimpleType(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } outANonvoidJimpleType(node); } public void inALocalName(ALocalName node) { defaultIn(node); } public void outALocalName(ALocalName node) { defaultOut(node); } @Override public void caseALocalName(ALocalName node) { inALocalName(node); if(node.getName() != null) { node.getName().apply(this); } outALocalName(node); } public void inASingleLocalNameList(ASingleLocalNameList node) { defaultIn(node); } public void outASingleLocalNameList(ASingleLocalNameList node) { defaultOut(node); } @Override public void caseASingleLocalNameList(ASingleLocalNameList node) { inASingleLocalNameList(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } outASingleLocalNameList(node); } public void inAMultiLocalNameList(AMultiLocalNameList node) { defaultIn(node); } public void outAMultiLocalNameList(AMultiLocalNameList node) { defaultOut(node); } @Override public void caseAMultiLocalNameList(AMultiLocalNameList node) { inAMultiLocalNameList(node); if(node.getLocalNameList() != null) { node.getLocalNameList().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getLocalName() != null) { node.getLocalName().apply(this); } outAMultiLocalNameList(node); } public void inALabelStatement(ALabelStatement node) { defaultIn(node); } public void outALabelStatement(ALabelStatement node) { defaultOut(node); } @Override public void caseALabelStatement(ALabelStatement node) { inALabelStatement(node); if(node.getColon() != null) { node.getColon().apply(this); } if(node.getLabelName() != null) { node.getLabelName().apply(this); } outALabelStatement(node); } public void inABreakpointStatement(ABreakpointStatement node) { defaultIn(node); } public void outABreakpointStatement(ABreakpointStatement node) { defaultOut(node); } @Override public void caseABreakpointStatement(ABreakpointStatement node) { inABreakpointStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getBreakpoint() != null) { node.getBreakpoint().apply(this); } outABreakpointStatement(node); } public void inAEntermonitorStatement(AEntermonitorStatement node) { defaultIn(node); } public void outAEntermonitorStatement(AEntermonitorStatement node) { defaultOut(node); } @Override public void caseAEntermonitorStatement(AEntermonitorStatement node) { inAEntermonitorStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getEntermonitor() != null) { node.getEntermonitor().apply(this); } outAEntermonitorStatement(node); } public void inAExitmonitorStatement(AExitmonitorStatement node) { defaultIn(node); } public void outAExitmonitorStatement(AExitmonitorStatement node) { defaultOut(node); } @Override public void caseAExitmonitorStatement(AExitmonitorStatement node) { inAExitmonitorStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getExitmonitor() != null) { node.getExitmonitor().apply(this); } outAExitmonitorStatement(node); } public void inATableswitchStatement(ATableswitchStatement node) { defaultIn(node); } public void outATableswitchStatement(ATableswitchStatement node) { defaultOut(node); } @Override public void caseATableswitchStatement(ATableswitchStatement node) { inATableswitchStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getRBrace() != null) { node.getRBrace().apply(this); } { List<PCaseStmt> copy = new ArrayList<PCaseStmt>(node.getCaseStmt()); Collections.reverse(copy); for(PCaseStmt e : copy) { e.apply(this); } } if(node.getLBrace() != null) { node.getLBrace().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getTableswitch() != null) { node.getTableswitch().apply(this); } outATableswitchStatement(node); } public void inALookupswitchStatement(ALookupswitchStatement node) { defaultIn(node); } public void outALookupswitchStatement(ALookupswitchStatement node) { defaultOut(node); } @Override public void caseALookupswitchStatement(ALookupswitchStatement node) { inALookupswitchStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getRBrace() != null) { node.getRBrace().apply(this); } { List<PCaseStmt> copy = new ArrayList<PCaseStmt>(node.getCaseStmt()); Collections.reverse(copy); for(PCaseStmt e : copy) { e.apply(this); } } if(node.getLBrace() != null) { node.getLBrace().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getLookupswitch() != null) { node.getLookupswitch().apply(this); } outALookupswitchStatement(node); } public void inAIdentityStatement(AIdentityStatement node) { defaultIn(node); } public void outAIdentityStatement(AIdentityStatement node) { defaultOut(node); } @Override public void caseAIdentityStatement(AIdentityStatement node) { inAIdentityStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getAtIdentifier() != null) { node.getAtIdentifier().apply(this); } if(node.getColonEquals() != null) { node.getColonEquals().apply(this); } if(node.getLocalName() != null) { node.getLocalName().apply(this); } outAIdentityStatement(node); } public void inAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { defaultIn(node); } public void outAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { defaultOut(node); } @Override public void caseAIdentityNoTypeStatement(AIdentityNoTypeStatement node) { inAIdentityNoTypeStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getAtIdentifier() != null) { node.getAtIdentifier().apply(this); } if(node.getColonEquals() != null) { node.getColonEquals().apply(this); } if(node.getLocalName() != null) { node.getLocalName().apply(this); } outAIdentityNoTypeStatement(node); } public void inAAssignStatement(AAssignStatement node) { defaultIn(node); } public void outAAssignStatement(AAssignStatement node) { defaultOut(node); } @Override public void caseAAssignStatement(AAssignStatement node) { inAAssignStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getExpression() != null) { node.getExpression().apply(this); } if(node.getEquals() != null) { node.getEquals().apply(this); } if(node.getVariable() != null) { node.getVariable().apply(this); } outAAssignStatement(node); } public void inAIfStatement(AIfStatement node) { defaultIn(node); } public void outAIfStatement(AIfStatement node) { defaultOut(node); } @Override public void caseAIfStatement(AIfStatement node) { inAIfStatement(node); if(node.getGotoStmt() != null) { node.getGotoStmt().apply(this); } if(node.getBoolExpr() != null) { node.getBoolExpr().apply(this); } if(node.getIf() != null) { node.getIf().apply(this); } outAIfStatement(node); } public void inAGotoStatement(AGotoStatement node) { defaultIn(node); } public void outAGotoStatement(AGotoStatement node) { defaultOut(node); } @Override public void caseAGotoStatement(AGotoStatement node) { inAGotoStatement(node); if(node.getGotoStmt() != null) { node.getGotoStmt().apply(this); } outAGotoStatement(node); } public void inANopStatement(ANopStatement node) { defaultIn(node); } public void outANopStatement(ANopStatement node) { defaultOut(node); } @Override public void caseANopStatement(ANopStatement node) { inANopStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getNop() != null) { node.getNop().apply(this); } outANopStatement(node); } public void inARetStatement(ARetStatement node) { defaultIn(node); } public void outARetStatement(ARetStatement node) { defaultOut(node); } @Override public void caseARetStatement(ARetStatement node) { inARetStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getRet() != null) { node.getRet().apply(this); } outARetStatement(node); } public void inAReturnStatement(AReturnStatement node) { defaultIn(node); } public void outAReturnStatement(AReturnStatement node) { defaultOut(node); } @Override public void caseAReturnStatement(AReturnStatement node) { inAReturnStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getReturn() != null) { node.getReturn().apply(this); } outAReturnStatement(node); } public void inAThrowStatement(AThrowStatement node) { defaultIn(node); } public void outAThrowStatement(AThrowStatement node) { defaultOut(node); } @Override public void caseAThrowStatement(AThrowStatement node) { inAThrowStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getThrow() != null) { node.getThrow().apply(this); } outAThrowStatement(node); } public void inAInvokeStatement(AInvokeStatement node) { defaultIn(node); } public void outAInvokeStatement(AInvokeStatement node) { defaultOut(node); } @Override public void caseAInvokeStatement(AInvokeStatement node) { inAInvokeStatement(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getInvokeExpr() != null) { node.getInvokeExpr().apply(this); } outAInvokeStatement(node); } public void inALabelName(ALabelName node) { defaultIn(node); } public void outALabelName(ALabelName node) { defaultOut(node); } @Override public void caseALabelName(ALabelName node) { inALabelName(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outALabelName(node); } public void inACaseStmt(ACaseStmt node) { defaultIn(node); } public void outACaseStmt(ACaseStmt node) { defaultOut(node); } @Override public void caseACaseStmt(ACaseStmt node) { inACaseStmt(node); if(node.getGotoStmt() != null) { node.getGotoStmt().apply(this); } if(node.getColon() != null) { node.getColon().apply(this); } if(node.getCaseLabel() != null) { node.getCaseLabel().apply(this); } outACaseStmt(node); } public void inAConstantCaseLabel(AConstantCaseLabel node) { defaultIn(node); } public void outAConstantCaseLabel(AConstantCaseLabel node) { defaultOut(node); } @Override public void caseAConstantCaseLabel(AConstantCaseLabel node) { inAConstantCaseLabel(node); if(node.getIntegerConstant() != null) { node.getIntegerConstant().apply(this); } if(node.getMinus() != null) { node.getMinus().apply(this); } if(node.getCase() != null) { node.getCase().apply(this); } outAConstantCaseLabel(node); } public void inADefaultCaseLabel(ADefaultCaseLabel node) { defaultIn(node); } public void outADefaultCaseLabel(ADefaultCaseLabel node) { defaultOut(node); } @Override public void caseADefaultCaseLabel(ADefaultCaseLabel node) { inADefaultCaseLabel(node); if(node.getDefault() != null) { node.getDefault().apply(this); } outADefaultCaseLabel(node); } public void inAGotoStmt(AGotoStmt node) { defaultIn(node); } public void outAGotoStmt(AGotoStmt node) { defaultOut(node); } @Override public void caseAGotoStmt(AGotoStmt node) { inAGotoStmt(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getLabelName() != null) { node.getLabelName().apply(this); } if(node.getGoto() != null) { node.getGoto().apply(this); } outAGotoStmt(node); } public void inACatchClause(ACatchClause node) { defaultIn(node); } public void outACatchClause(ACatchClause node) { defaultOut(node); } @Override public void caseACatchClause(ACatchClause node) { inACatchClause(node); if(node.getSemicolon() != null) { node.getSemicolon().apply(this); } if(node.getWithLabel() != null) { node.getWithLabel().apply(this); } if(node.getWith() != null) { node.getWith().apply(this); } if(node.getToLabel() != null) { node.getToLabel().apply(this); } if(node.getTo() != null) { node.getTo().apply(this); } if(node.getFromLabel() != null) { node.getFromLabel().apply(this); } if(node.getFrom() != null) { node.getFrom().apply(this); } if(node.getName() != null) { node.getName().apply(this); } if(node.getCatch() != null) { node.getCatch().apply(this); } outACatchClause(node); } public void inANewExpression(ANewExpression node) { defaultIn(node); } public void outANewExpression(ANewExpression node) { defaultOut(node); } @Override public void caseANewExpression(ANewExpression node) { inANewExpression(node); if(node.getNewExpr() != null) { node.getNewExpr().apply(this); } outANewExpression(node); } public void inACastExpression(ACastExpression node) { defaultIn(node); } public void outACastExpression(ACastExpression node) { defaultOut(node); } @Override public void caseACastExpression(ACastExpression node) { inACastExpression(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } outACastExpression(node); } public void inAInstanceofExpression(AInstanceofExpression node) { defaultIn(node); } public void outAInstanceofExpression(AInstanceofExpression node) { defaultOut(node); } @Override public void caseAInstanceofExpression(AInstanceofExpression node) { inAInstanceofExpression(node); if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } if(node.getInstanceof() != null) { node.getInstanceof().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } outAInstanceofExpression(node); } public void inAInvokeExpression(AInvokeExpression node) { defaultIn(node); } public void outAInvokeExpression(AInvokeExpression node) { defaultOut(node); } @Override public void caseAInvokeExpression(AInvokeExpression node) { inAInvokeExpression(node); if(node.getInvokeExpr() != null) { node.getInvokeExpr().apply(this); } outAInvokeExpression(node); } public void inAReferenceExpression(AReferenceExpression node) { defaultIn(node); } public void outAReferenceExpression(AReferenceExpression node) { defaultOut(node); } @Override public void caseAReferenceExpression(AReferenceExpression node) { inAReferenceExpression(node); if(node.getReference() != null) { node.getReference().apply(this); } outAReferenceExpression(node); } public void inABinopExpression(ABinopExpression node) { defaultIn(node); } public void outABinopExpression(ABinopExpression node) { defaultOut(node); } @Override public void caseABinopExpression(ABinopExpression node) { inABinopExpression(node); if(node.getBinopExpr() != null) { node.getBinopExpr().apply(this); } outABinopExpression(node); } public void inAUnopExpression(AUnopExpression node) { defaultIn(node); } public void outAUnopExpression(AUnopExpression node) { defaultOut(node); } @Override public void caseAUnopExpression(AUnopExpression node) { inAUnopExpression(node); if(node.getUnopExpr() != null) { node.getUnopExpr().apply(this); } outAUnopExpression(node); } public void inAImmediateExpression(AImmediateExpression node) { defaultIn(node); } public void outAImmediateExpression(AImmediateExpression node) { defaultOut(node); } @Override public void caseAImmediateExpression(AImmediateExpression node) { inAImmediateExpression(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } outAImmediateExpression(node); } public void inASimpleNewExpr(ASimpleNewExpr node) { defaultIn(node); } public void outASimpleNewExpr(ASimpleNewExpr node) { defaultOut(node); } @Override public void caseASimpleNewExpr(ASimpleNewExpr node) { inASimpleNewExpr(node); if(node.getBaseType() != null) { node.getBaseType().apply(this); } if(node.getNew() != null) { node.getNew().apply(this); } outASimpleNewExpr(node); } public void inAArrayNewExpr(AArrayNewExpr node) { defaultIn(node); } public void outAArrayNewExpr(AArrayNewExpr node) { defaultOut(node); } @Override public void caseAArrayNewExpr(AArrayNewExpr node) { inAArrayNewExpr(node); if(node.getFixedArrayDescriptor() != null) { node.getFixedArrayDescriptor().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getNonvoidType() != null) { node.getNonvoidType().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getNewarray() != null) { node.getNewarray().apply(this); } outAArrayNewExpr(node); } public void inAMultiNewExpr(AMultiNewExpr node) { defaultIn(node); } public void outAMultiNewExpr(AMultiNewExpr node) { defaultOut(node); } @Override public void caseAMultiNewExpr(AMultiNewExpr node) { inAMultiNewExpr(node); { List<PArrayDescriptor> copy = new ArrayList<PArrayDescriptor>(node.getArrayDescriptor()); Collections.reverse(copy); for(PArrayDescriptor e : copy) { e.apply(this); } } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getBaseType() != null) { node.getBaseType().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getNewmultiarray() != null) { node.getNewmultiarray().apply(this); } outAMultiNewExpr(node); } public void inAArrayDescriptor(AArrayDescriptor node) { defaultIn(node); } public void outAArrayDescriptor(AArrayDescriptor node) { defaultOut(node); } @Override public void caseAArrayDescriptor(AArrayDescriptor node) { inAArrayDescriptor(node); if(node.getRBracket() != null) { node.getRBracket().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getLBracket() != null) { node.getLBracket().apply(this); } outAArrayDescriptor(node); } public void inAReferenceVariable(AReferenceVariable node) { defaultIn(node); } public void outAReferenceVariable(AReferenceVariable node) { defaultOut(node); } @Override public void caseAReferenceVariable(AReferenceVariable node) { inAReferenceVariable(node); if(node.getReference() != null) { node.getReference().apply(this); } outAReferenceVariable(node); } public void inALocalVariable(ALocalVariable node) { defaultIn(node); } public void outALocalVariable(ALocalVariable node) { defaultOut(node); } @Override public void caseALocalVariable(ALocalVariable node) { inALocalVariable(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } outALocalVariable(node); } public void inABinopBoolExpr(ABinopBoolExpr node) { defaultIn(node); } public void outABinopBoolExpr(ABinopBoolExpr node) { defaultOut(node); } @Override public void caseABinopBoolExpr(ABinopBoolExpr node) { inABinopBoolExpr(node); if(node.getBinopExpr() != null) { node.getBinopExpr().apply(this); } outABinopBoolExpr(node); } public void inAUnopBoolExpr(AUnopBoolExpr node) { defaultIn(node); } public void outAUnopBoolExpr(AUnopBoolExpr node) { defaultOut(node); } @Override public void caseAUnopBoolExpr(AUnopBoolExpr node) { inAUnopBoolExpr(node); if(node.getUnopExpr() != null) { node.getUnopExpr().apply(this); } outAUnopBoolExpr(node); } public void inANonstaticInvokeExpr(ANonstaticInvokeExpr node) { defaultIn(node); } public void outANonstaticInvokeExpr(ANonstaticInvokeExpr node) { defaultOut(node); } @Override public void caseANonstaticInvokeExpr(ANonstaticInvokeExpr node) { inANonstaticInvokeExpr(node); if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getArgList() != null) { node.getArgList().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getMethodSignature() != null) { node.getMethodSignature().apply(this); } if(node.getDot() != null) { node.getDot().apply(this); } if(node.getLocalName() != null) { node.getLocalName().apply(this); } if(node.getNonstaticInvoke() != null) { node.getNonstaticInvoke().apply(this); } outANonstaticInvokeExpr(node); } public void inAStaticInvokeExpr(AStaticInvokeExpr node) { defaultIn(node); } public void outAStaticInvokeExpr(AStaticInvokeExpr node) { defaultOut(node); } @Override public void caseAStaticInvokeExpr(AStaticInvokeExpr node) { inAStaticInvokeExpr(node); if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getArgList() != null) { node.getArgList().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getMethodSignature() != null) { node.getMethodSignature().apply(this); } if(node.getStaticinvoke() != null) { node.getStaticinvoke().apply(this); } outAStaticInvokeExpr(node); } public void inADynamicInvokeExpr(ADynamicInvokeExpr node) { defaultIn(node); } public void outADynamicInvokeExpr(ADynamicInvokeExpr node) { defaultOut(node); } @Override public void caseADynamicInvokeExpr(ADynamicInvokeExpr node) { inADynamicInvokeExpr(node); if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getStaticargs() != null) { node.getStaticargs().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getBsm() != null) { node.getBsm().apply(this); } if(node.getFirstr() != null) { node.getFirstr().apply(this); } if(node.getDynargs() != null) { node.getDynargs().apply(this); } if(node.getFirstl() != null) { node.getFirstl().apply(this); } if(node.getDynmethod() != null) { node.getDynmethod().apply(this); } if(node.getStringConstant() != null) { node.getStringConstant().apply(this); } if(node.getDynamicinvoke() != null) { node.getDynamicinvoke().apply(this); } outADynamicInvokeExpr(node); } public void inABinopExpr(ABinopExpr node) { defaultIn(node); } public void outABinopExpr(ABinopExpr node) { defaultOut(node); } @Override public void caseABinopExpr(ABinopExpr node) { inABinopExpr(node); if(node.getRight() != null) { node.getRight().apply(this); } if(node.getBinop() != null) { node.getBinop().apply(this); } if(node.getLeft() != null) { node.getLeft().apply(this); } outABinopExpr(node); } public void inAUnopExpr(AUnopExpr node) { defaultIn(node); } public void outAUnopExpr(AUnopExpr node) { defaultOut(node); } @Override public void caseAUnopExpr(AUnopExpr node) { inAUnopExpr(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getUnop() != null) { node.getUnop().apply(this); } outAUnopExpr(node); } public void inASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { defaultIn(node); } public void outASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { defaultOut(node); } @Override public void caseASpecialNonstaticInvoke(ASpecialNonstaticInvoke node) { inASpecialNonstaticInvoke(node); if(node.getSpecialinvoke() != null) { node.getSpecialinvoke().apply(this); } outASpecialNonstaticInvoke(node); } public void inAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { defaultIn(node); } public void outAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { defaultOut(node); } @Override public void caseAVirtualNonstaticInvoke(AVirtualNonstaticInvoke node) { inAVirtualNonstaticInvoke(node); if(node.getVirtualinvoke() != null) { node.getVirtualinvoke().apply(this); } outAVirtualNonstaticInvoke(node); } public void inAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { defaultIn(node); } public void outAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { defaultOut(node); } @Override public void caseAInterfaceNonstaticInvoke(AInterfaceNonstaticInvoke node) { inAInterfaceNonstaticInvoke(node); if(node.getInterfaceinvoke() != null) { node.getInterfaceinvoke().apply(this); } outAInterfaceNonstaticInvoke(node); } public void inAUnnamedMethodSignature(AUnnamedMethodSignature node) { defaultIn(node); } public void outAUnnamedMethodSignature(AUnnamedMethodSignature node) { defaultOut(node); } @Override public void caseAUnnamedMethodSignature(AUnnamedMethodSignature node) { inAUnnamedMethodSignature(node); if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getCmplt() != null) { node.getCmplt().apply(this); } outAUnnamedMethodSignature(node); } public void inAMethodSignature(AMethodSignature node) { defaultIn(node); } public void outAMethodSignature(AMethodSignature node) { defaultOut(node); } @Override public void caseAMethodSignature(AMethodSignature node) { inAMethodSignature(node); if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } if(node.getRParen() != null) { node.getRParen().apply(this); } if(node.getParameterList() != null) { node.getParameterList().apply(this); } if(node.getLParen() != null) { node.getLParen().apply(this); } if(node.getMethodName() != null) { node.getMethodName().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getFirst() != null) { node.getFirst().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getCmplt() != null) { node.getCmplt().apply(this); } outAMethodSignature(node); } public void inAArrayReference(AArrayReference node) { defaultIn(node); } public void outAArrayReference(AArrayReference node) { defaultOut(node); } @Override public void caseAArrayReference(AArrayReference node) { inAArrayReference(node); if(node.getArrayRef() != null) { node.getArrayRef().apply(this); } outAArrayReference(node); } public void inAFieldReference(AFieldReference node) { defaultIn(node); } public void outAFieldReference(AFieldReference node) { defaultOut(node); } @Override public void caseAFieldReference(AFieldReference node) { inAFieldReference(node); if(node.getFieldRef() != null) { node.getFieldRef().apply(this); } outAFieldReference(node); } public void inAIdentArrayRef(AIdentArrayRef node) { defaultIn(node); } public void outAIdentArrayRef(AIdentArrayRef node) { defaultOut(node); } @Override public void caseAIdentArrayRef(AIdentArrayRef node) { inAIdentArrayRef(node); if(node.getFixedArrayDescriptor() != null) { node.getFixedArrayDescriptor().apply(this); } if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outAIdentArrayRef(node); } public void inAQuotedArrayRef(AQuotedArrayRef node) { defaultIn(node); } public void outAQuotedArrayRef(AQuotedArrayRef node) { defaultOut(node); } @Override public void caseAQuotedArrayRef(AQuotedArrayRef node) { inAQuotedArrayRef(node); if(node.getFixedArrayDescriptor() != null) { node.getFixedArrayDescriptor().apply(this); } if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } outAQuotedArrayRef(node); } public void inALocalFieldRef(ALocalFieldRef node) { defaultIn(node); } public void outALocalFieldRef(ALocalFieldRef node) { defaultOut(node); } @Override public void caseALocalFieldRef(ALocalFieldRef node) { inALocalFieldRef(node); if(node.getFieldSignature() != null) { node.getFieldSignature().apply(this); } if(node.getDot() != null) { node.getDot().apply(this); } if(node.getLocalName() != null) { node.getLocalName().apply(this); } outALocalFieldRef(node); } public void inASigFieldRef(ASigFieldRef node) { defaultIn(node); } public void outASigFieldRef(ASigFieldRef node) { defaultOut(node); } @Override public void caseASigFieldRef(ASigFieldRef node) { inASigFieldRef(node); if(node.getFieldSignature() != null) { node.getFieldSignature().apply(this); } outASigFieldRef(node); } public void inAFieldSignature(AFieldSignature node) { defaultIn(node); } public void outAFieldSignature(AFieldSignature node) { defaultOut(node); } @Override public void caseAFieldSignature(AFieldSignature node) { inAFieldSignature(node); if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } if(node.getFieldName() != null) { node.getFieldName().apply(this); } if(node.getType() != null) { node.getType().apply(this); } if(node.getFirst() != null) { node.getFirst().apply(this); } if(node.getClassName() != null) { node.getClassName().apply(this); } if(node.getCmplt() != null) { node.getCmplt().apply(this); } outAFieldSignature(node); } public void inAFixedArrayDescriptor(AFixedArrayDescriptor node) { defaultIn(node); } public void outAFixedArrayDescriptor(AFixedArrayDescriptor node) { defaultOut(node); } @Override public void caseAFixedArrayDescriptor(AFixedArrayDescriptor node) { inAFixedArrayDescriptor(node); if(node.getRBracket() != null) { node.getRBracket().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } if(node.getLBracket() != null) { node.getLBracket().apply(this); } outAFixedArrayDescriptor(node); } public void inASingleArgList(ASingleArgList node) { defaultIn(node); } public void outASingleArgList(ASingleArgList node) { defaultOut(node); } @Override public void caseASingleArgList(ASingleArgList node) { inASingleArgList(node); if(node.getImmediate() != null) { node.getImmediate().apply(this); } outASingleArgList(node); } public void inAMultiArgList(AMultiArgList node) { defaultIn(node); } public void outAMultiArgList(AMultiArgList node) { defaultOut(node); } @Override public void caseAMultiArgList(AMultiArgList node) { inAMultiArgList(node); if(node.getArgList() != null) { node.getArgList().apply(this); } if(node.getComma() != null) { node.getComma().apply(this); } if(node.getImmediate() != null) { node.getImmediate().apply(this); } outAMultiArgList(node); } public void inALocalImmediate(ALocalImmediate node) { defaultIn(node); } public void outALocalImmediate(ALocalImmediate node) { defaultOut(node); } @Override public void caseALocalImmediate(ALocalImmediate node) { inALocalImmediate(node); if(node.getLocalName() != null) { node.getLocalName().apply(this); } outALocalImmediate(node); } public void inAConstantImmediate(AConstantImmediate node) { defaultIn(node); } public void outAConstantImmediate(AConstantImmediate node) { defaultOut(node); } @Override public void caseAConstantImmediate(AConstantImmediate node) { inAConstantImmediate(node); if(node.getConstant() != null) { node.getConstant().apply(this); } outAConstantImmediate(node); } public void inAIntegerConstant(AIntegerConstant node) { defaultIn(node); } public void outAIntegerConstant(AIntegerConstant node) { defaultOut(node); } @Override public void caseAIntegerConstant(AIntegerConstant node) { inAIntegerConstant(node); if(node.getIntegerConstant() != null) { node.getIntegerConstant().apply(this); } if(node.getMinus() != null) { node.getMinus().apply(this); } outAIntegerConstant(node); } public void inAFloatConstant(AFloatConstant node) { defaultIn(node); } public void outAFloatConstant(AFloatConstant node) { defaultOut(node); } @Override public void caseAFloatConstant(AFloatConstant node) { inAFloatConstant(node); if(node.getFloatConstant() != null) { node.getFloatConstant().apply(this); } if(node.getMinus() != null) { node.getMinus().apply(this); } outAFloatConstant(node); } public void inAStringConstant(AStringConstant node) { defaultIn(node); } public void outAStringConstant(AStringConstant node) { defaultOut(node); } @Override public void caseAStringConstant(AStringConstant node) { inAStringConstant(node); if(node.getStringConstant() != null) { node.getStringConstant().apply(this); } outAStringConstant(node); } public void inAClzzConstant(AClzzConstant node) { defaultIn(node); } public void outAClzzConstant(AClzzConstant node) { defaultOut(node); } @Override public void caseAClzzConstant(AClzzConstant node) { inAClzzConstant(node); if(node.getStringConstant() != null) { node.getStringConstant().apply(this); } if(node.getId() != null) { node.getId().apply(this); } outAClzzConstant(node); } public void inANullConstant(ANullConstant node) { defaultIn(node); } public void outANullConstant(ANullConstant node) { defaultOut(node); } @Override public void caseANullConstant(ANullConstant node) { inANullConstant(node); if(node.getNull() != null) { node.getNull().apply(this); } outANullConstant(node); } public void inAAndBinop(AAndBinop node) { defaultIn(node); } public void outAAndBinop(AAndBinop node) { defaultOut(node); } @Override public void caseAAndBinop(AAndBinop node) { inAAndBinop(node); if(node.getAnd() != null) { node.getAnd().apply(this); } outAAndBinop(node); } public void inAOrBinop(AOrBinop node) { defaultIn(node); } public void outAOrBinop(AOrBinop node) { defaultOut(node); } @Override public void caseAOrBinop(AOrBinop node) { inAOrBinop(node); if(node.getOr() != null) { node.getOr().apply(this); } outAOrBinop(node); } public void inAXorBinop(AXorBinop node) { defaultIn(node); } public void outAXorBinop(AXorBinop node) { defaultOut(node); } @Override public void caseAXorBinop(AXorBinop node) { inAXorBinop(node); if(node.getXor() != null) { node.getXor().apply(this); } outAXorBinop(node); } public void inAModBinop(AModBinop node) { defaultIn(node); } public void outAModBinop(AModBinop node) { defaultOut(node); } @Override public void caseAModBinop(AModBinop node) { inAModBinop(node); if(node.getMod() != null) { node.getMod().apply(this); } outAModBinop(node); } public void inACmpBinop(ACmpBinop node) { defaultIn(node); } public void outACmpBinop(ACmpBinop node) { defaultOut(node); } @Override public void caseACmpBinop(ACmpBinop node) { inACmpBinop(node); if(node.getCmp() != null) { node.getCmp().apply(this); } outACmpBinop(node); } public void inACmpgBinop(ACmpgBinop node) { defaultIn(node); } public void outACmpgBinop(ACmpgBinop node) { defaultOut(node); } @Override public void caseACmpgBinop(ACmpgBinop node) { inACmpgBinop(node); if(node.getCmpg() != null) { node.getCmpg().apply(this); } outACmpgBinop(node); } public void inACmplBinop(ACmplBinop node) { defaultIn(node); } public void outACmplBinop(ACmplBinop node) { defaultOut(node); } @Override public void caseACmplBinop(ACmplBinop node) { inACmplBinop(node); if(node.getCmpl() != null) { node.getCmpl().apply(this); } outACmplBinop(node); } public void inACmpeqBinop(ACmpeqBinop node) { defaultIn(node); } public void outACmpeqBinop(ACmpeqBinop node) { defaultOut(node); } @Override public void caseACmpeqBinop(ACmpeqBinop node) { inACmpeqBinop(node); if(node.getCmpeq() != null) { node.getCmpeq().apply(this); } outACmpeqBinop(node); } public void inACmpneBinop(ACmpneBinop node) { defaultIn(node); } public void outACmpneBinop(ACmpneBinop node) { defaultOut(node); } @Override public void caseACmpneBinop(ACmpneBinop node) { inACmpneBinop(node); if(node.getCmpne() != null) { node.getCmpne().apply(this); } outACmpneBinop(node); } public void inACmpgtBinop(ACmpgtBinop node) { defaultIn(node); } public void outACmpgtBinop(ACmpgtBinop node) { defaultOut(node); } @Override public void caseACmpgtBinop(ACmpgtBinop node) { inACmpgtBinop(node); if(node.getCmpgt() != null) { node.getCmpgt().apply(this); } outACmpgtBinop(node); } public void inACmpgeBinop(ACmpgeBinop node) { defaultIn(node); } public void outACmpgeBinop(ACmpgeBinop node) { defaultOut(node); } @Override public void caseACmpgeBinop(ACmpgeBinop node) { inACmpgeBinop(node); if(node.getCmpge() != null) { node.getCmpge().apply(this); } outACmpgeBinop(node); } public void inACmpltBinop(ACmpltBinop node) { defaultIn(node); } public void outACmpltBinop(ACmpltBinop node) { defaultOut(node); } @Override public void caseACmpltBinop(ACmpltBinop node) { inACmpltBinop(node); if(node.getCmplt() != null) { node.getCmplt().apply(this); } outACmpltBinop(node); } public void inACmpleBinop(ACmpleBinop node) { defaultIn(node); } public void outACmpleBinop(ACmpleBinop node) { defaultOut(node); } @Override public void caseACmpleBinop(ACmpleBinop node) { inACmpleBinop(node); if(node.getCmple() != null) { node.getCmple().apply(this); } outACmpleBinop(node); } public void inAShlBinop(AShlBinop node) { defaultIn(node); } public void outAShlBinop(AShlBinop node) { defaultOut(node); } @Override public void caseAShlBinop(AShlBinop node) { inAShlBinop(node); if(node.getShl() != null) { node.getShl().apply(this); } outAShlBinop(node); } public void inAShrBinop(AShrBinop node) { defaultIn(node); } public void outAShrBinop(AShrBinop node) { defaultOut(node); } @Override public void caseAShrBinop(AShrBinop node) { inAShrBinop(node); if(node.getShr() != null) { node.getShr().apply(this); } outAShrBinop(node); } public void inAUshrBinop(AUshrBinop node) { defaultIn(node); } public void outAUshrBinop(AUshrBinop node) { defaultOut(node); } @Override public void caseAUshrBinop(AUshrBinop node) { inAUshrBinop(node); if(node.getUshr() != null) { node.getUshr().apply(this); } outAUshrBinop(node); } public void inAPlusBinop(APlusBinop node) { defaultIn(node); } public void outAPlusBinop(APlusBinop node) { defaultOut(node); } @Override public void caseAPlusBinop(APlusBinop node) { inAPlusBinop(node); if(node.getPlus() != null) { node.getPlus().apply(this); } outAPlusBinop(node); } public void inAMinusBinop(AMinusBinop node) { defaultIn(node); } public void outAMinusBinop(AMinusBinop node) { defaultOut(node); } @Override public void caseAMinusBinop(AMinusBinop node) { inAMinusBinop(node); if(node.getMinus() != null) { node.getMinus().apply(this); } outAMinusBinop(node); } public void inAMultBinop(AMultBinop node) { defaultIn(node); } public void outAMultBinop(AMultBinop node) { defaultOut(node); } @Override public void caseAMultBinop(AMultBinop node) { inAMultBinop(node); if(node.getMult() != null) { node.getMult().apply(this); } outAMultBinop(node); } public void inADivBinop(ADivBinop node) { defaultIn(node); } public void outADivBinop(ADivBinop node) { defaultOut(node); } @Override public void caseADivBinop(ADivBinop node) { inADivBinop(node); if(node.getDiv() != null) { node.getDiv().apply(this); } outADivBinop(node); } public void inALengthofUnop(ALengthofUnop node) { defaultIn(node); } public void outALengthofUnop(ALengthofUnop node) { defaultOut(node); } @Override public void caseALengthofUnop(ALengthofUnop node) { inALengthofUnop(node); if(node.getLengthof() != null) { node.getLengthof().apply(this); } outALengthofUnop(node); } public void inANegUnop(ANegUnop node) { defaultIn(node); } public void outANegUnop(ANegUnop node) { defaultOut(node); } @Override public void caseANegUnop(ANegUnop node) { inANegUnop(node); if(node.getNeg() != null) { node.getNeg().apply(this); } outANegUnop(node); } public void inAQuotedClassName(AQuotedClassName node) { defaultIn(node); } public void outAQuotedClassName(AQuotedClassName node) { defaultOut(node); } @Override public void caseAQuotedClassName(AQuotedClassName node) { inAQuotedClassName(node); if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } outAQuotedClassName(node); } public void inAIdentClassName(AIdentClassName node) { defaultIn(node); } public void outAIdentClassName(AIdentClassName node) { defaultOut(node); } @Override public void caseAIdentClassName(AIdentClassName node) { inAIdentClassName(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outAIdentClassName(node); } public void inAFullIdentClassName(AFullIdentClassName node) { defaultIn(node); } public void outAFullIdentClassName(AFullIdentClassName node) { defaultOut(node); } @Override public void caseAFullIdentClassName(AFullIdentClassName node) { inAFullIdentClassName(node); if(node.getFullIdentifier() != null) { node.getFullIdentifier().apply(this); } outAFullIdentClassName(node); } public void inAQuotedName(AQuotedName node) { defaultIn(node); } public void outAQuotedName(AQuotedName node) { defaultOut(node); } @Override public void caseAQuotedName(AQuotedName node) { inAQuotedName(node); if(node.getQuotedName() != null) { node.getQuotedName().apply(this); } outAQuotedName(node); } public void inAIdentName(AIdentName node) { defaultIn(node); } public void outAIdentName(AIdentName node) { defaultOut(node); } @Override public void caseAIdentName(AIdentName node) { inAIdentName(node); if(node.getIdentifier() != null) { node.getIdentifier().apply(this); } outAIdentName(node); } }
88,276
21.124561
101
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/lexer/Lexer.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.lexer; import java.io.*; import soot.jimple.parser.node.*; @SuppressWarnings("nls") public class Lexer { protected Token token; protected State state = State.INITIAL; private PushbackReader in; private int line; private int pos; private boolean cr; private boolean eof; private final StringBuffer text = new StringBuffer(); @SuppressWarnings("unused") protected void filter() throws LexerException, IOException { // Do nothing } public Lexer(@SuppressWarnings("hiding") PushbackReader in) { this.in = in; } public Token peek() throws LexerException, IOException { while(this.token == null) { this.token = getToken(); filter(); } return this.token; } public Token next() throws LexerException, IOException { while(this.token == null) { this.token = getToken(); filter(); } Token result = this.token; this.token = null; return result; } protected Token getToken() throws IOException, LexerException { int dfa_state = 0; int start_pos = this.pos; int start_line = this.line; int accept_state = -1; int accept_token = -1; int accept_length = -1; int accept_pos = -1; int accept_line = -1; @SuppressWarnings("hiding") int[][][] gotoTable = Lexer.gotoTable[this.state.id()]; @SuppressWarnings("hiding") int[] accept = Lexer.accept[this.state.id()]; this.text.setLength(0); while(true) { int c = getChar(); if(c != -1) { switch(c) { case 10: if(this.cr) { this.cr = false; } else { this.line++; this.pos = 0; } break; case 13: this.line++; this.pos = 0; this.cr = true; break; default: this.pos++; this.cr = false; break; } this.text.append((char) c); do { int oldState = (dfa_state < -1) ? (-2 -dfa_state) : dfa_state; dfa_state = -1; int[][] tmp1 = gotoTable[oldState]; int low = 0; int high = tmp1.length - 1; while(low <= high) { // int middle = (low + high) / 2; int middle = (low + high) >>> 1; int[] tmp2 = tmp1[middle]; if(c < tmp2[0]) { high = middle - 1; } else if(c > tmp2[1]) { low = middle + 1; } else { dfa_state = tmp2[2]; break; } } }while(dfa_state < -1); } else { dfa_state = -1; } if(dfa_state >= 0) { if(accept[dfa_state] != -1) { accept_state = dfa_state; accept_token = accept[dfa_state]; accept_length = this.text.length(); accept_pos = this.pos; accept_line = this.line; } } else { if(accept_state != -1) { switch(accept_token) { case 0: { @SuppressWarnings("hiding") Token token = new0( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 1: { @SuppressWarnings("hiding") Token token = new1( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 2: { @SuppressWarnings("hiding") Token token = new2( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 3: { @SuppressWarnings("hiding") Token token = new3( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 4: { @SuppressWarnings("hiding") Token token = new4( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 5: { @SuppressWarnings("hiding") Token token = new5( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 6: { @SuppressWarnings("hiding") Token token = new6( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 7: { @SuppressWarnings("hiding") Token token = new7( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 8: { @SuppressWarnings("hiding") Token token = new8( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 9: { @SuppressWarnings("hiding") Token token = new9( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 10: { @SuppressWarnings("hiding") Token token = new10( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 11: { @SuppressWarnings("hiding") Token token = new11( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 12: { @SuppressWarnings("hiding") Token token = new12( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 13: { @SuppressWarnings("hiding") Token token = new13( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 14: { @SuppressWarnings("hiding") Token token = new14( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 15: { @SuppressWarnings("hiding") Token token = new15( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 16: { @SuppressWarnings("hiding") Token token = new16( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 17: { @SuppressWarnings("hiding") Token token = new17( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 18: { @SuppressWarnings("hiding") Token token = new18( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 19: { @SuppressWarnings("hiding") Token token = new19( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 20: { @SuppressWarnings("hiding") Token token = new20( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 21: { @SuppressWarnings("hiding") Token token = new21( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 22: { @SuppressWarnings("hiding") Token token = new22( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 23: { @SuppressWarnings("hiding") Token token = new23( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 24: { @SuppressWarnings("hiding") Token token = new24( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 25: { @SuppressWarnings("hiding") Token token = new25( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 26: { @SuppressWarnings("hiding") Token token = new26( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 27: { @SuppressWarnings("hiding") Token token = new27( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 28: { @SuppressWarnings("hiding") Token token = new28( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 29: { @SuppressWarnings("hiding") Token token = new29( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 30: { @SuppressWarnings("hiding") Token token = new30( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 31: { @SuppressWarnings("hiding") Token token = new31( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 32: { @SuppressWarnings("hiding") Token token = new32( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 33: { @SuppressWarnings("hiding") Token token = new33( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 34: { @SuppressWarnings("hiding") Token token = new34( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 35: { @SuppressWarnings("hiding") Token token = new35( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 36: { @SuppressWarnings("hiding") Token token = new36( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 37: { @SuppressWarnings("hiding") Token token = new37( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 38: { @SuppressWarnings("hiding") Token token = new38( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 39: { @SuppressWarnings("hiding") Token token = new39( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 40: { @SuppressWarnings("hiding") Token token = new40( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 41: { @SuppressWarnings("hiding") Token token = new41( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 42: { @SuppressWarnings("hiding") Token token = new42( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 43: { @SuppressWarnings("hiding") Token token = new43( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 44: { @SuppressWarnings("hiding") Token token = new44( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 45: { @SuppressWarnings("hiding") Token token = new45( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 46: { @SuppressWarnings("hiding") Token token = new46( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 47: { @SuppressWarnings("hiding") Token token = new47( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 48: { @SuppressWarnings("hiding") Token token = new48( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 49: { @SuppressWarnings("hiding") Token token = new49( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 50: { @SuppressWarnings("hiding") Token token = new50( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 51: { @SuppressWarnings("hiding") Token token = new51( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 52: { @SuppressWarnings("hiding") Token token = new52( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 53: { @SuppressWarnings("hiding") Token token = new53( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 54: { @SuppressWarnings("hiding") Token token = new54( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 55: { @SuppressWarnings("hiding") Token token = new55( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 56: { @SuppressWarnings("hiding") Token token = new56( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 57: { @SuppressWarnings("hiding") Token token = new57( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 58: { @SuppressWarnings("hiding") Token token = new58( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 59: { @SuppressWarnings("hiding") Token token = new59( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 60: { @SuppressWarnings("hiding") Token token = new60( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 61: { @SuppressWarnings("hiding") Token token = new61( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 62: { @SuppressWarnings("hiding") Token token = new62( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 63: { @SuppressWarnings("hiding") Token token = new63( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 64: { @SuppressWarnings("hiding") Token token = new64( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 65: { @SuppressWarnings("hiding") Token token = new65( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 66: { @SuppressWarnings("hiding") Token token = new66( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 67: { @SuppressWarnings("hiding") Token token = new67( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 68: { @SuppressWarnings("hiding") Token token = new68( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 69: { @SuppressWarnings("hiding") Token token = new69( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 70: { @SuppressWarnings("hiding") Token token = new70( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 71: { @SuppressWarnings("hiding") Token token = new71( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 72: { @SuppressWarnings("hiding") Token token = new72( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 73: { @SuppressWarnings("hiding") Token token = new73( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 74: { @SuppressWarnings("hiding") Token token = new74( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 75: { @SuppressWarnings("hiding") Token token = new75( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 76: { @SuppressWarnings("hiding") Token token = new76( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 77: { @SuppressWarnings("hiding") Token token = new77( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 78: { @SuppressWarnings("hiding") Token token = new78( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 79: { @SuppressWarnings("hiding") Token token = new79( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 80: { @SuppressWarnings("hiding") Token token = new80( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 81: { @SuppressWarnings("hiding") Token token = new81( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 82: { @SuppressWarnings("hiding") Token token = new82( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 83: { @SuppressWarnings("hiding") Token token = new83( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 84: { @SuppressWarnings("hiding") Token token = new84( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 85: { @SuppressWarnings("hiding") Token token = new85( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 86: { @SuppressWarnings("hiding") Token token = new86( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 87: { @SuppressWarnings("hiding") Token token = new87( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 88: { @SuppressWarnings("hiding") Token token = new88( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 89: { @SuppressWarnings("hiding") Token token = new89( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 90: { @SuppressWarnings("hiding") Token token = new90( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 91: { @SuppressWarnings("hiding") Token token = new91( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 92: { @SuppressWarnings("hiding") Token token = new92( start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 93: { @SuppressWarnings("hiding") Token token = new93( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 94: { @SuppressWarnings("hiding") Token token = new94( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 95: { @SuppressWarnings("hiding") Token token = new95( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 96: { @SuppressWarnings("hiding") Token token = new96( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 97: { @SuppressWarnings("hiding") Token token = new97( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 98: { @SuppressWarnings("hiding") Token token = new98( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 99: { @SuppressWarnings("hiding") Token token = new99( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } case 100: { @SuppressWarnings("hiding") Token token = new100( getText(accept_length), start_line + 1, start_pos + 1); pushBack(accept_length); this.pos = accept_pos; this.line = accept_line; return token; } } } else { if(this.text.length() > 0) { throw new LexerException( "[" + (start_line + 1) + "," + (start_pos + 1) + "]" + " Unknown token: " + this.text); } @SuppressWarnings("hiding") EOF token = new EOF( start_line + 1, start_pos + 1); return token; } } } } Token new0(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TIgnored(text, line, pos); } Token new1(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TAbstract(line, pos); } Token new2(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFinal(line, pos); } Token new3(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNative(line, pos); } Token new4(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TPublic(line, pos); } Token new5(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TProtected(line, pos); } Token new6(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TPrivate(line, pos); } Token new7(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TStatic(line, pos); } Token new8(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TSynchronized(line, pos); } Token new9(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TTransient(line, pos); } Token new10(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TVolatile(line, pos); } Token new11(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TStrictfp(line, pos); } Token new12(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TEnum(line, pos); } Token new13(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TAnnotation(line, pos); } Token new14(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TClass(line, pos); } Token new15(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TInterface(line, pos); } Token new16(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TVoid(line, pos); } Token new17(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TBoolean(line, pos); } Token new18(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TByte(line, pos); } Token new19(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TShort(line, pos); } Token new20(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TChar(line, pos); } Token new21(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TInt(line, pos); } Token new22(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLong(line, pos); } Token new23(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFloat(line, pos); } Token new24(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDouble(line, pos); } Token new25(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNullType(line, pos); } Token new26(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TUnknown(line, pos); } Token new27(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TExtends(line, pos); } Token new28(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TImplements(line, pos); } Token new29(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TBreakpoint(line, pos); } Token new30(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCase(line, pos); } Token new31(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCatch(line, pos); } Token new32(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmp(line, pos); } Token new33(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmpg(line, pos); } Token new34(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmpl(line, pos); } Token new35(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDefault(line, pos); } Token new36(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TEntermonitor(line, pos); } Token new37(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TExitmonitor(line, pos); } Token new38(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TGoto(line, pos); } Token new39(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TIf(line, pos); } Token new40(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TInstanceof(line, pos); } Token new41(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TInterfaceinvoke(line, pos); } Token new42(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLengthof(line, pos); } Token new43(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLookupswitch(line, pos); } Token new44(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNeg(line, pos); } Token new45(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNew(line, pos); } Token new46(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNewarray(line, pos); } Token new47(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNewmultiarray(line, pos); } Token new48(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNop(line, pos); } Token new49(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRet(line, pos); } Token new50(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TReturn(line, pos); } Token new51(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TSpecialinvoke(line, pos); } Token new52(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TStaticinvoke(line, pos); } Token new53(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDynamicinvoke(line, pos); } Token new54(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TTableswitch(line, pos); } Token new55(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TThrow(line, pos); } Token new56(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TThrows(line, pos); } Token new57(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TVirtualinvoke(line, pos); } Token new58(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNull(line, pos); } Token new59(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFrom(line, pos); } Token new60(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TTo(line, pos); } Token new61(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TWith(line, pos); } Token new62(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCls(line, pos); } Token new63(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TComma(line, pos); } Token new64(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLBrace(line, pos); } Token new65(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRBrace(line, pos); } Token new66(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TSemicolon(line, pos); } Token new67(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLBracket(line, pos); } Token new68(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRBracket(line, pos); } Token new69(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLParen(line, pos); } Token new70(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRParen(line, pos); } Token new71(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TColon(line, pos); } Token new72(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDot(line, pos); } Token new73(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TQuote(line, pos); } Token new74(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TColonEquals(line, pos); } Token new75(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TEquals(line, pos); } Token new76(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TAnd(line, pos); } Token new77(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TOr(line, pos); } Token new78(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TXor(line, pos); } Token new79(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TMod(line, pos); } Token new80(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmpeq(line, pos); } Token new81(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmpne(line, pos); } Token new82(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmpgt(line, pos); } Token new83(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmpge(line, pos); } Token new84(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmplt(line, pos); } Token new85(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TCmple(line, pos); } Token new86(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TShl(line, pos); } Token new87(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TShr(line, pos); } Token new88(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TUshr(line, pos); } Token new89(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TPlus(line, pos); } Token new90(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TMinus(line, pos); } Token new91(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TMult(line, pos); } Token new92(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDiv(line, pos); } Token new93(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TQuotedName(text, line, pos); } Token new94(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFullIdentifier(text, line, pos); } Token new95(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TIdentifier(text, line, pos); } Token new96(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TAtIdentifier(text, line, pos); } Token new97(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TBoolConstant(text, line, pos); } Token new98(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TIntegerConstant(text, line, pos); } Token new99(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFloatConstant(text, line, pos); } Token new100(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TStringConstant(text, line, pos); } private int getChar() throws IOException { if(this.eof) { return -1; } int result = this.in.read(); if(result == -1) { this.eof = true; } return result; } private void pushBack(int acceptLength) throws IOException { int length = this.text.length(); for(int i = length - 1; i >= acceptLength; i--) { this.eof = false; this.in.unread(this.text.charAt(i)); } } protected void unread(@SuppressWarnings("hiding") Token token) throws IOException { @SuppressWarnings("hiding") String text = token.getText(); int length = text.length(); for(int i = length - 1; i >= 0; i--) { this.eof = false; this.in.unread(text.charAt(i)); } this.pos = token.getPos() - 1; this.line = token.getLine() - 1; } private String getText(int acceptLength) { StringBuffer s = new StringBuffer(acceptLength); for(int i = 0; i < acceptLength; i++) { s.append(this.text.charAt(i)); } return s.toString(); } private static int[][][][] gotoTable; /* { { // INITIAL {{9, 9, 1}, {10, 10, 2}, {13, 13, 3}, {32, 32, 4}, {33, 33, 5}, {34, 34, 6}, {35, 35, 7}, {36, 36, 8}, {37, 37, 9}, {38, 38, 10}, {39, 39, 11}, {40, 40, 12}, {41, 41, 13}, {42, 42, 14}, {43, 43, 15}, {44, 44, 16}, {45, 45, 17}, {46, 46, 18}, {47, 47, 19}, {48, 48, 20}, {49, 57, 21}, {58, 58, 22}, {59, 59, 23}, {60, 60, 24}, {61, 61, 25}, {62, 62, 26}, {64, 64, 27}, {65, 90, 28}, {91, 91, 29}, {92, 92, 30}, {93, 93, 31}, {94, 94, 32}, {95, 95, 33}, {97, 97, 34}, {98, 98, 35}, {99, 99, 36}, {100, 100, 37}, {101, 101, 38}, {102, 102, 39}, {103, 103, 40}, {104, 104, 41}, {105, 105, 42}, {106, 107, 41}, {108, 108, 43}, {109, 109, 41}, {110, 110, 44}, {111, 111, 41}, {112, 112, 45}, {113, 113, 41}, {114, 114, 46}, {115, 115, 47}, {116, 116, 48}, {117, 117, 49}, {118, 118, 50}, {119, 119, 51}, {120, 122, 41}, {123, 123, 52}, {124, 124, 53}, {125, 125, 54}, }, {{9, 32, -2}, {47, 47, 55}, }, {{9, 47, -3}, }, {{9, 47, -3}, }, {{9, 47, -3}, }, {{61, 61, 56}, }, {{0, 33, 57}, {34, 34, 58}, {35, 91, 59}, {92, 92, 60}, {93, 127, 61}, }, {{45, 45, 62}, {73, 73, 63}, {78, 78, 64}, }, {{36, 36, 65}, {39, 39, 66}, {45, 45, 67}, {46, 46, 68}, {48, 57, 69}, {65, 90, 70}, {92, 92, 71}, {95, 95, 72}, {97, 122, 73}, }, {}, {}, {{0, 9, 74}, {11, 12, 74}, {14, 35, 74}, {36, 36, 75}, {37, 38, 74}, {39, 39, 66}, {40, 44, 74}, {45, 45, 76}, {46, 46, 77}, {47, 47, 74}, {48, 57, 78}, {58, 64, 74}, {65, 90, 79}, {91, 91, 74}, {92, 92, 80}, {93, 94, 74}, {95, 95, 81}, {96, 96, 74}, {97, 122, 82}, {123, 65535, 74}, }, {}, {}, {}, {}, {}, {}, {}, {{42, 42, 83}, {47, 47, 84}, }, {{46, 46, 85}, {48, 55, 86}, {56, 57, 21}, {76, 76, 87}, {88, 88, 88}, {120, 120, 89}, }, {{46, 46, 85}, {48, 57, 21}, {76, 76, 87}, }, {{61, 61, 90}, }, {}, {{60, 60, 91}, {61, 61, 92}, {99, 99, 93}, {105, 105, 94}, }, {{61, 61, 95}, }, {{61, 61, 96}, {62, 62, 97}, }, {{99, 99, 98}, {112, 112, 99}, {116, 116, 100}, }, {{36, 122, -10}, }, {}, {{32, 32, 101}, {34, 34, 102}, {35, 35, 103}, {39, 39, 104}, {46, 46, 105}, {92, 92, 106}, {98, 98, 107}, {102, 102, 108}, {110, 110, 109}, {114, 114, 110}, {116, 116, 111}, {117, 117, 112}, }, {}, {}, {{36, 122, -10}, }, {{36, 95, -10}, {97, 97, 73}, {98, 98, 113}, {99, 109, 73}, {110, 110, 114}, {111, 122, 73}, }, {{36, 95, -10}, {97, 110, 73}, {111, 111, 115}, {112, 113, 73}, {114, 114, 116}, {115, 120, 73}, {121, 121, 117}, {122, 122, 73}, }, {{36, 95, -10}, {97, 97, 118}, {98, 103, 73}, {104, 104, 119}, {105, 107, 73}, {108, 108, 120}, {109, 109, 121}, {110, 122, 73}, }, {{36, 95, -10}, {97, 100, 73}, {101, 101, 122}, {102, 110, 73}, {111, 111, 123}, {112, 120, 73}, {121, 121, 124}, {122, 122, 73}, }, {{36, 95, -10}, {97, 109, 73}, {110, 110, 125}, {111, 119, 73}, {120, 120, 126}, {121, 122, 73}, }, {{36, 95, -10}, {97, 97, 127}, {98, 104, 73}, {105, 105, 128}, {106, 107, 73}, {108, 108, 129}, {109, 113, 73}, {114, 114, 130}, {115, 122, 73}, }, {{36, 110, -37}, {111, 111, 131}, {112, 122, 73}, }, {{36, 122, -10}, }, {{36, 95, -10}, {97, 101, 73}, {102, 102, 132}, {103, 108, 73}, {109, 109, 133}, {110, 110, 134}, {111, 122, 73}, }, {{36, 100, -39}, {101, 101, 135}, {102, 110, 73}, {111, 111, 136}, {112, 122, 73}, }, {{36, 95, -10}, {97, 97, 137}, {98, 100, 73}, {101, 101, 138}, {102, 110, 73}, {111, 111, 139}, {112, 116, 73}, {117, 117, 140}, {118, 122, 73}, }, {{36, 95, -10}, {97, 113, 73}, {114, 114, 141}, {115, 116, 73}, {117, 117, 142}, {118, 122, 73}, }, {{36, 100, -39}, {101, 101, 143}, {102, 122, 73}, }, {{36, 95, -10}, {97, 103, 73}, {104, 104, 144}, {105, 111, 73}, {112, 112, 145}, {113, 115, 73}, {116, 116, 146}, {117, 120, 73}, {121, 121, 147}, {122, 122, 73}, }, {{36, 95, -10}, {97, 97, 148}, {98, 103, 73}, {104, 104, 149}, {105, 110, 73}, {111, 111, 150}, {112, 113, 73}, {114, 114, 151}, {115, 122, 73}, }, {{36, 109, -40}, {110, 110, 152}, {111, 122, 73}, }, {{36, 95, -10}, {97, 104, 73}, {105, 105, 153}, {106, 110, 73}, {111, 111, 154}, {112, 122, 73}, }, {{36, 104, -52}, {105, 105, 155}, {106, 122, 73}, }, {}, {}, {}, {{42, 47, -21}, }, {}, {{0, 127, -8}, }, {}, {{0, 127, -8}, }, {{32, 32, 156}, {34, 34, 157}, {35, 35, 158}, {39, 39, 159}, {46, 46, 160}, {92, 92, 161}, {98, 98, 162}, {102, 102, 163}, {110, 110, 164}, {114, 114, 165}, {116, 116, 166}, {117, 117, 167}, }, {{0, 127, -8}, }, {{73, 73, 63}, }, {{110, 110, 168}, }, {{97, 97, 169}, }, {{36, 122, -10}, }, {{46, 46, 68}, }, {{36, 122, -10}, }, {{36, 36, 170}, {39, 39, 171}, {65, 90, 172}, {92, 92, 173}, {95, 95, 174}, {97, 122, 175}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{32, 32, 176}, {34, 34, 177}, {35, 35, 178}, {39, 39, 179}, {46, 46, 180}, {92, 92, 181}, {98, 98, 182}, {102, 102, 183}, {110, 110, 184}, {114, 114, 185}, {116, 116, 186}, {117, 117, 187}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{0, 12, -13}, {14, 38, 74}, {39, 39, 188}, {40, 65535, 74}, }, {{0, 38, -13}, {39, 39, 189}, {40, 65535, -13}, }, {{0, 65535, -77}, }, {{0, 35, -13}, {36, 36, 190}, {37, 38, 74}, {39, 39, 191}, {40, 64, 74}, {65, 90, 192}, {91, 91, 74}, {92, 92, 193}, {93, 94, 74}, {95, 95, 194}, {96, 96, 74}, {97, 122, 195}, {123, 65535, 74}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 12, -13}, {14, 31, 74}, {32, 32, 196}, {33, 33, 74}, {34, 34, 197}, {35, 35, 198}, {36, 38, 74}, {39, 39, 199}, {40, 45, 74}, {46, 46, 200}, {47, 91, 74}, {92, 92, 201}, {93, 97, 74}, {98, 98, 202}, {99, 101, 74}, {102, 102, 203}, {103, 109, 74}, {110, 110, 204}, {111, 113, 74}, {114, 114, 205}, {115, 115, 74}, {116, 116, 206}, {117, 117, 207}, {118, 65535, 74}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 41, 208}, {42, 42, 209}, {43, 65535, 208}, }, {{0, 8, 210}, {9, 9, 211}, {10, 10, 2}, {11, 12, 210}, {13, 13, 3}, {14, 31, 210}, {32, 32, 212}, {33, 46, 210}, {47, 47, 213}, {48, 65535, 210}, }, {{48, 57, 214}, }, {{46, 76, -22}, }, {}, {{48, 57, 215}, {65, 70, 216}, {97, 102, 217}, }, {{48, 102, -90}, }, {}, {}, {}, {{108, 108, 218}, }, {{110, 110, 219}, }, {}, {}, {{62, 62, 220}, }, {{97, 97, 221}, }, {{97, 97, 222}, }, {{104, 104, 223}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{48, 57, 224}, {65, 70, 225}, {97, 102, 226}, }, {{36, 95, -10}, {97, 114, 73}, {115, 115, 227}, {116, 122, 73}, }, {{36, 109, -40}, {110, 110, 228}, {111, 122, 73}, }, {{36, 110, -37}, {111, 111, 229}, {112, 122, 73}, }, {{36, 100, -39}, {101, 101, 230}, {102, 122, 73}, }, {{36, 95, -10}, {97, 115, 73}, {116, 116, 231}, {117, 122, 73}, }, {{36, 114, -115}, {115, 115, 232}, {116, 116, 233}, {117, 122, 73}, }, {{36, 95, -10}, {97, 97, 234}, {98, 122, 73}, }, {{36, 95, -10}, {97, 97, 235}, {98, 114, 73}, {115, 115, 236}, {116, 122, 73}, }, {{36, 95, -10}, {97, 111, 73}, {112, 112, 237}, {113, 122, 73}, }, {{36, 101, -44}, {102, 102, 238}, {103, 122, 73}, }, {{36, 95, -10}, {97, 116, 73}, {117, 117, 239}, {118, 122, 73}, }, {{36, 109, -40}, {110, 110, 240}, {111, 122, 73}, }, {{36, 115, -119}, {116, 116, 241}, {117, 117, 242}, {118, 122, 73}, }, {{36, 104, -52}, {105, 105, 243}, {106, 115, 73}, {116, 116, 244}, {117, 122, 73}, }, {{36, 95, -10}, {97, 107, 73}, {108, 108, 245}, {109, 122, 73}, }, {{36, 109, -40}, {110, 110, 246}, {111, 122, 73}, }, {{36, 110, -37}, {111, 111, 247}, {112, 122, 73}, }, {{36, 110, -37}, {111, 111, 248}, {112, 122, 73}, }, {{36, 115, -119}, {116, 116, 249}, {117, 122, 73}, }, {{36, 122, -10}, }, {{36, 111, -123}, {112, 112, 250}, {113, 122, 73}, }, {{36, 114, -115}, {115, 115, 251}, {116, 116, 252}, {117, 122, 73}, }, {{36, 109, -40}, {110, 110, 253}, {111, 122, 73}, }, {{36, 109, -40}, {110, 110, 254}, {111, 111, 255}, {112, 122, 73}, }, {{36, 115, -119}, {116, 116, 256}, {117, 122, 73}, }, {{36, 95, -10}, {97, 102, 73}, {103, 103, 257}, {104, 118, 73}, {119, 119, 258}, {120, 122, 73}, }, {{36, 111, -123}, {112, 112, 259}, {113, 122, 73}, }, {{36, 107, -129}, {108, 108, 260}, {109, 122, 73}, }, {{36, 104, -52}, {105, 105, 261}, {106, 110, 73}, {111, 111, 262}, {112, 122, 73}, }, {{36, 97, -36}, {98, 98, 263}, {99, 122, 73}, }, {{36, 115, -119}, {116, 116, 264}, {117, 122, 73}, }, {{36, 110, -37}, {111, 111, 265}, {112, 122, 73}, }, {{36, 100, -39}, {101, 101, 266}, {102, 122, 73}, }, {{36, 95, -10}, {97, 97, 267}, {98, 113, 73}, {114, 114, 268}, {115, 122, 73}, }, {{36, 109, -40}, {110, 110, 269}, {111, 122, 73}, }, {{36, 97, -36}, {98, 98, 270}, {99, 122, 73}, }, {{36, 113, -47}, {114, 114, 271}, {115, 122, 73}, }, {{36, 122, -10}, }, {{36, 95, -10}, {97, 97, 272}, {98, 116, 73}, {117, 117, 273}, {118, 122, 73}, }, {{36, 95, -10}, {97, 106, 73}, {107, 107, 274}, {108, 122, 73}, }, {{36, 113, -47}, {114, 114, 275}, {115, 122, 73}, }, {{36, 104, -52}, {105, 105, 276}, {106, 107, 73}, {108, 108, 277}, {109, 122, 73}, }, {{36, 115, -119}, {116, 116, 278}, {117, 122, 73}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{48, 57, 279}, {65, 70, 280}, {97, 102, 281}, }, {{102, 102, 282}, }, {{78, 78, 283}, }, {{36, 36, 284}, {39, 39, 285}, {45, 45, 286}, {46, 46, 68}, {48, 57, 287}, {65, 90, 288}, {92, 92, 289}, {95, 95, 290}, {97, 122, 291}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{32, 32, 292}, {34, 34, 293}, {35, 35, 294}, {39, 39, 295}, {46, 46, 296}, {92, 92, 297}, {98, 98, 298}, {102, 102, 299}, {110, 110, 300}, {114, 114, 301}, {116, 116, 302}, {117, 117, 303}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{48, 57, 304}, {65, 70, 305}, {97, 102, 306}, }, {}, {{46, 46, 68}, }, {{0, 35, -13}, {36, 36, 307}, {37, 38, 74}, {39, 39, 308}, {40, 44, 74}, {45, 45, 309}, {46, 47, -13}, {48, 57, 310}, {58, 64, 74}, {65, 90, 311}, {91, 91, 74}, {92, 92, 312}, {93, 94, 74}, {95, 95, 313}, {96, 96, 74}, {97, 122, 314}, {123, 65535, 74}, }, {{36, 122, -172}, }, {{0, 65535, -192}, }, {{0, 31, -82}, {32, 32, 315}, {33, 33, 74}, {34, 34, 316}, {35, 35, 317}, {36, 38, 74}, {39, 39, 318}, {40, 45, 74}, {46, 46, 319}, {47, 91, 74}, {92, 92, 320}, {93, 97, 74}, {98, 98, 321}, {99, 101, 74}, {102, 102, 322}, {103, 109, 74}, {110, 110, 323}, {111, 113, 74}, {114, 114, 324}, {115, 115, 74}, {116, 116, 325}, {117, 117, 326}, {118, 65535, 74}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{36, 36, 327}, {39, 39, 66}, {45, 45, 328}, {46, 46, 68}, {48, 57, 329}, {65, 90, 330}, {92, 92, 331}, {95, 95, 332}, {97, 122, 333}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 39, -76}, {40, 47, 74}, {48, 57, 334}, {58, 64, 74}, {65, 70, 335}, {71, 96, 74}, {97, 102, 336}, {103, 65535, 74}, }, {{0, 65535, -85}, }, {{0, 41, 337}, {42, 42, 209}, {43, 46, 337}, {47, 47, 338}, {48, 65535, 337}, }, {{0, 65535, -86}, }, {{0, 65535, -86}, }, {{0, 65535, -86}, }, {{0, 32, -86}, {33, 41, 210}, {42, 42, 339}, {43, 46, 210}, {47, 47, 340}, {48, 65535, 210}, }, {{48, 57, 214}, {69, 69, 341}, {70, 70, 342}, {101, 101, 343}, {102, 102, 344}, }, {{48, 70, -90}, {76, 76, 87}, {97, 102, 217}, }, {{48, 102, -217}, }, {{48, 102, -217}, }, {{105, 105, 345}, }, {{105, 105, 346}, }, {}, {{117, 117, 347}, }, {{114, 114, 348}, }, {{105, 105, 349}, }, {{48, 57, 350}, {65, 70, 351}, {97, 102, 352}, }, {{48, 102, -226}, }, {{48, 102, -226}, }, {{36, 115, -119}, {116, 116, 353}, {117, 122, 73}, }, {{36, 110, -37}, {111, 111, 354}, {112, 122, 73}, }, {{36, 107, -129}, {108, 108, 355}, {109, 122, 73}, }, {{36, 95, -10}, {97, 97, 356}, {98, 122, 73}, }, {{36, 100, -39}, {101, 101, 357}, {102, 122, 73}, }, {{36, 100, -39}, {101, 101, 358}, {102, 122, 73}, }, {{36, 95, -10}, {97, 98, 73}, {99, 99, 359}, {100, 122, 73}, }, {{36, 113, -47}, {114, 114, 360}, {115, 122, 73}, }, {{36, 114, -115}, {115, 115, 361}, {116, 122, 73}, }, {{36, 122, -10}, }, {{36, 102, -140}, {103, 103, 362}, {104, 107, 73}, {108, 108, 363}, {109, 122, 73}, }, {{36, 95, -10}, {97, 97, 364}, {98, 122, 73}, }, {{36, 97, -36}, {98, 98, 365}, {99, 122, 73}, }, {{36, 95, -10}, {97, 97, 366}, {98, 122, 73}, }, {{36, 100, -39}, {101, 101, 367}, {102, 122, 73}, }, {{36, 95, -10}, {97, 108, 73}, {109, 109, 368}, {110, 122, 73}, }, {{36, 115, -119}, {116, 116, 369}, {117, 122, 73}, }, {{36, 100, -39}, {101, 101, 370}, {102, 122, 73}, }, {{36, 114, -115}, {115, 115, 371}, {116, 122, 73}, }, {{36, 95, -10}, {97, 97, 372}, {98, 122, 73}, }, {{36, 95, -10}, {97, 97, 373}, {98, 122, 73}, }, {{36, 108, -244}, {109, 109, 374}, {110, 122, 73}, }, {{36, 110, -37}, {111, 111, 375}, {112, 122, 73}, }, {{36, 107, -129}, {108, 108, 376}, {109, 122, 73}, }, {{36, 115, -119}, {116, 116, 377}, {117, 122, 73}, }, {{36, 100, -39}, {101, 101, 378}, {102, 122, 73}, }, {{36, 102, -140}, {103, 103, 379}, {104, 122, 73}, }, {{36, 102, -140}, {103, 103, 380}, {104, 122, 73}, }, {{36, 106, -154}, {107, 107, 381}, {108, 122, 73}, }, {{36, 104, -52}, {105, 105, 382}, {106, 122, 73}, }, {{36, 122, -10}, }, {{36, 95, -10}, {97, 97, 383}, {98, 108, 73}, {109, 109, 384}, {110, 122, 73}, }, {{36, 122, -10}, }, {{36, 107, -129}, {108, 108, 385}, {109, 122, 73}, }, {{36, 95, -10}, {97, 117, 73}, {118, 118, 386}, {119, 122, 73}, }, {{36, 115, -119}, {116, 116, 387}, {117, 122, 73}, }, {{36, 107, -129}, {108, 108, 388}, {109, 122, 73}, }, {{36, 116, -125}, {117, 117, 389}, {118, 122, 73}, }, {{36, 113, -47}, {114, 114, 390}, {115, 122, 73}, }, {{36, 98, -235}, {99, 99, 391}, {100, 122, 73}, }, {{36, 115, -119}, {116, 116, 392}, {117, 122, 73}, }, {{36, 104, -52}, {105, 105, 393}, {106, 122, 73}, }, {{36, 98, -235}, {99, 99, 394}, {100, 122, 73}, }, {{36, 107, -129}, {108, 108, 395}, {109, 122, 73}, }, {{36, 110, -37}, {111, 111, 396}, {112, 122, 73}, }, {{36, 109, -40}, {110, 110, 397}, {111, 122, 73}, }, {{36, 100, -39}, {101, 101, 398}, {102, 122, 73}, }, {{36, 109, -40}, {110, 110, 399}, {111, 122, 73}, }, {{36, 115, -119}, {116, 116, 400}, {117, 122, 73}, }, {{36, 95, -10}, {97, 99, 73}, {100, 100, 401}, {101, 122, 73}, }, {{36, 95, -10}, {97, 97, 402}, {98, 122, 73}, }, {{36, 103, -49}, {104, 104, 403}, {105, 122, 73}, }, {{48, 57, 404}, {65, 70, 405}, {97, 102, 406}, }, {{48, 102, -281}, }, {{48, 102, -281}, }, {{105, 105, 407}, }, {{70, 70, 408}, {102, 102, 409}, }, {{36, 122, -172}, }, {{46, 46, 68}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{32, 32, 410}, {34, 34, 411}, {35, 35, 412}, {39, 39, 413}, {46, 46, 414}, {92, 92, 415}, {98, 98, 416}, {102, 102, 417}, {110, 110, 418}, {114, 114, 419}, {116, 116, 420}, {117, 117, 421}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{48, 57, 422}, {65, 70, 423}, {97, 102, 424}, }, {{48, 57, 425}, {65, 70, 426}, {97, 102, 427}, }, {{48, 102, -306}, }, {{48, 102, -306}, }, {{0, 65535, -192}, }, {{46, 46, 68}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 31, -82}, {32, 32, 428}, {33, 33, 74}, {34, 34, 429}, {35, 35, 430}, {36, 38, 74}, {39, 39, 431}, {40, 45, 74}, {46, 46, 432}, {47, 91, 74}, {92, 92, 433}, {93, 97, 74}, {98, 98, 434}, {99, 101, 74}, {102, 102, 435}, {103, 109, 74}, {110, 110, 436}, {111, 113, 74}, {114, 114, 437}, {115, 115, 74}, {116, 116, 438}, {117, 117, 439}, {118, 65535, 74}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{36, 122, -172}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 47, -209}, {48, 57, 440}, {58, 64, 74}, {65, 70, 441}, {71, 96, 74}, {97, 102, 442}, {103, 65535, 74}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{32, 32, 443}, {34, 34, 444}, {35, 35, 445}, {39, 39, 446}, {46, 46, 447}, {92, 92, 448}, {98, 98, 449}, {102, 102, 450}, {110, 110, 451}, {114, 114, 452}, {116, 116, 453}, {117, 117, 454}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{0, 47, -209}, {48, 57, 455}, {58, 64, 74}, {65, 70, 456}, {71, 96, 74}, {97, 102, 457}, {103, 65535, 74}, }, {{0, 65535, -336}, }, {{0, 65535, -336}, }, {{0, 41, 458}, {42, 42, 459}, {43, 65535, 458}, }, {{9, 47, -3}, }, {{0, 8, 460}, {9, 9, 461}, {10, 10, 462}, {11, 12, 460}, {13, 13, 463}, {14, 31, 460}, {32, 32, 464}, {33, 41, 460}, {42, 42, 465}, {43, 46, 460}, {47, 47, 466}, {48, 65535, 460}, }, {{0, 65535, -215}, }, {{43, 43, 467}, {45, 45, 468}, {48, 57, 469}, }, {}, {{43, 57, -343}, }, {}, {{110, 110, 470}, }, {{116, 116, 471}, }, {{103, 103, 472}, }, {{97, 97, 473}, }, {{115, 115, 474}, }, {{48, 57, 475}, {65, 70, 476}, {97, 102, 477}, }, {{48, 102, -352}, }, {{48, 102, -352}, }, {{36, 113, -47}, {114, 114, 478}, {115, 122, 73}, }, {{36, 115, -119}, {116, 116, 479}, {117, 122, 73}, }, {{36, 100, -39}, {101, 101, 480}, {102, 122, 73}, }, {{36, 106, -154}, {107, 107, 481}, {108, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 103, -49}, {104, 104, 482}, {105, 122, 73}, }, {{36, 122, -10}, }, {{36, 114, -115}, {115, 115, 483}, {116, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 116, -125}, {117, 117, 484}, {118, 122, 73}, }, {{36, 107, -129}, {108, 108, 485}, {109, 122, 73}, }, {{36, 108, -244}, {109, 109, 486}, {110, 122, 73}, }, {{36, 113, -47}, {114, 114, 487}, {115, 122, 73}, }, {{36, 122, -10}, }, {{36, 108, -244}, {109, 109, 488}, {110, 122, 73}, }, {{36, 109, -40}, {110, 110, 489}, {111, 122, 73}, }, {{36, 100, -39}, {101, 101, 490}, {102, 122, 73}, }, {{36, 107, -129}, {108, 108, 491}, {109, 122, 73}, }, {{36, 115, -119}, {116, 116, 492}, {117, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 100, -39}, {101, 101, 493}, {102, 122, 73}, }, {{36, 95, -10}, {97, 97, 494}, {98, 122, 73}, }, {{36, 113, -47}, {114, 114, 495}, {115, 122, 73}, }, {{36, 115, -119}, {116, 116, 496}, {117, 122, 73}, }, {{36, 122, -10}, }, {{36, 116, -125}, {117, 117, 497}, {118, 122, 73}, }, {{36, 117, -263}, {118, 118, 498}, {119, 122, 73}, }, {{36, 113, -47}, {114, 114, 499}, {115, 122, 73}, }, {{36, 116, -125}, {117, 117, 500}, {118, 122, 73}, }, {{36, 92, -10}, {95, 95, 501}, {97, 122, 73}, }, {{36, 95, -10}, {97, 97, 502}, {98, 122, 73}, }, {{36, 100, -39}, {101, 101, 503}, {102, 122, 73}, }, {{36, 104, -52}, {105, 105, 504}, {106, 122, 73}, }, {{36, 113, -47}, {114, 114, 505}, {115, 122, 73}, }, {{36, 115, -119}, {116, 116, 506}, {117, 122, 73}, }, {{36, 104, -52}, {105, 105, 507}, {106, 122, 73}, }, {{36, 104, -52}, {105, 105, 508}, {106, 122, 73}, }, {{36, 98, -235}, {99, 99, 509}, {100, 122, 73}, }, {{36, 103, -49}, {104, 104, 510}, {105, 122, 73}, }, {{36, 100, -39}, {101, 101, 511}, {102, 122, 73}, }, {{36, 95, -10}, {97, 118, 73}, {119, 119, 512}, {120, 122, 73}, }, {{36, 114, -115}, {115, 115, 513}, {116, 122, 73}, }, {{36, 122, -10}, }, {{36, 110, -37}, {111, 111, 514}, {112, 122, 73}, }, {{36, 116, -125}, {117, 117, 515}, {118, 122, 73}, }, {{36, 122, -10}, }, {{36, 115, -119}, {116, 116, 516}, {117, 122, 73}, }, {{36, 122, -10}, }, {{48, 57, 517}, {65, 70, 518}, {97, 102, 519}, }, {{48, 102, -406}, }, {{48, 102, -406}, }, {{110, 110, 520}, }, {}, {}, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{48, 57, 521}, {65, 70, 522}, {97, 102, 523}, }, {{48, 57, 524}, {65, 70, 525}, {97, 102, 526}, }, {{48, 102, -424}, }, {{48, 102, -424}, }, {{48, 57, 527}, {65, 70, 528}, {97, 102, 529}, }, {{48, 102, -427}, }, {{48, 102, -427}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{36, 122, -172}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 47, -209}, {48, 57, 530}, {58, 64, 74}, {65, 70, 531}, {71, 96, 74}, {97, 102, 532}, {103, 65535, 74}, }, {{0, 47, -209}, {48, 57, 533}, {58, 64, 74}, {65, 70, 534}, {71, 96, 74}, {97, 102, 535}, {103, 65535, 74}, }, {{0, 65535, -442}, }, {{0, 65535, -442}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{48, 57, 536}, {65, 70, 537}, {97, 102, 538}, }, {{0, 47, -209}, {48, 57, 539}, {58, 64, 74}, {65, 70, 540}, {71, 96, 74}, {97, 102, 541}, {103, 65535, 74}, }, {{0, 65535, -457}, }, {{0, 65535, -457}, }, {{0, 65535, -339}, }, {{0, 41, 337}, {42, 42, 459}, {43, 65535, -211}, }, {{0, 65535, -341}, }, {{0, 65535, -341}, }, {{0, 8, 208}, {9, 9, 542}, {10, 10, 462}, {11, 12, 208}, {13, 13, 463}, {14, 31, 208}, {32, 32, 543}, {33, 41, 208}, {42, 42, 209}, {43, 46, 208}, {47, 47, 544}, {48, 65535, 208}, }, {{0, 65535, -464}, }, {{0, 65535, -341}, }, {{0, 8, 545}, {9, 9, 546}, {10, 10, 547}, {11, 12, 545}, {13, 13, 548}, {14, 31, 545}, {32, 32, 549}, {33, 41, 545}, {42, 42, 465}, {43, 46, 545}, {47, 47, 550}, {48, 65535, 545}, }, {{0, 41, -341}, {42, 42, 551}, {43, 46, 460}, {47, 47, 552}, {48, 65535, 460}, }, {{48, 57, 469}, }, {{48, 57, 469}, }, {{48, 57, 469}, {70, 70, 342}, {102, 102, 344}, }, {{105, 105, 553}, }, {{62, 62, 554}, }, {{104, 104, 555}, }, {{109, 109, 556}, }, {{58, 58, 557}, }, {{48, 57, 558}, {65, 70, 559}, {97, 102, 560}, }, {{48, 102, -477}, }, {{48, 102, -477}, }, {{36, 95, -10}, {97, 97, 561}, {98, 122, 73}, }, {{36, 95, -10}, {97, 97, 562}, {98, 122, 73}, }, {{36, 95, -10}, {97, 97, 563}, {98, 122, 73}, }, {{36, 111, -123}, {112, 112, 564}, {113, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 107, -129}, {108, 108, 565}, {109, 122, 73}, }, {{36, 100, -39}, {101, 101, 566}, {102, 122, 73}, }, {{36, 104, -52}, {105, 105, 567}, {106, 122, 73}, }, {{36, 108, -244}, {109, 109, 568}, {110, 122, 73}, }, {{36, 110, -37}, {111, 111, 569}, {112, 122, 73}, }, {{36, 99, -278}, {100, 100, 570}, {101, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 108, -244}, {109, 109, 571}, {110, 122, 73}, }, {{36, 109, -40}, {110, 110, 572}, {111, 122, 73}, }, {{36, 101, -44}, {102, 102, 573}, {103, 122, 73}, }, {{36, 103, -49}, {104, 104, 574}, {105, 122, 73}, }, {{36, 111, -123}, {112, 112, 575}, {113, 122, 73}, }, {{36, 100, -39}, {101, 101, 576}, {102, 122, 73}, }, {{36, 113, -47}, {114, 114, 577}, {115, 122, 73}, }, {{36, 107, -129}, {108, 108, 578}, {109, 122, 73}, }, {{36, 115, -119}, {116, 116, 579}, {117, 122, 73}, }, {{36, 115, -119}, {116, 116, 580}, {117, 122, 73}, }, {{36, 98, -235}, {99, 99, 581}, {100, 122, 73}, }, {{36, 98, -235}, {99, 99, 582}, {100, 122, 73}, }, {{36, 109, -40}, {110, 110, 583}, {111, 122, 73}, }, {{36, 122, -10}, }, {{36, 95, -10}, {97, 97, 584}, {98, 122, 73}, }, {{36, 98, -235}, {99, 99, 585}, {100, 122, 73}, }, {{36, 115, -119}, {116, 116, 586}, {117, 122, 73}, }, {{36, 113, -47}, {114, 114, 587}, {115, 122, 73}, }, {{36, 114, -115}, {115, 115, 588}, {116, 122, 73}, }, {{36, 114, -115}, {115, 115, 589}, {116, 122, 73}, }, {{36, 104, -52}, {105, 105, 590}, {106, 122, 73}, }, {{36, 118, -398}, {119, 119, 591}, {120, 122, 73}, }, {{36, 95, -10}, {97, 97, 592}, {98, 122, 73}, }, {{36, 104, -52}, {105, 105, 593}, {106, 122, 73}, }, {{48, 57, 594}, {65, 70, 595}, {97, 102, 596}, }, {{48, 102, -519}, }, {{48, 102, -519}, }, {{105, 105, 597}, }, {{48, 57, 598}, {65, 70, 599}, {97, 102, 600}, }, {{48, 102, -523}, }, {{48, 102, -523}, }, {{48, 57, 601}, {65, 70, 602}, {97, 102, 603}, }, {{48, 102, -526}, }, {{48, 102, -526}, }, {{48, 57, 604}, {65, 70, 605}, {97, 102, 606}, }, {{48, 102, -529}, }, {{48, 102, -529}, }, {{0, 47, -209}, {48, 57, 607}, {58, 64, 74}, {65, 70, 608}, {71, 96, 74}, {97, 102, 609}, {103, 65535, 74}, }, {{0, 65535, -532}, }, {{0, 65535, -532}, }, {{0, 47, -209}, {48, 57, 610}, {58, 64, 74}, {65, 70, 611}, {71, 96, 74}, {97, 102, 612}, {103, 65535, 74}, }, {{0, 65535, -535}, }, {{0, 65535, -535}, }, {{48, 57, 613}, {65, 70, 614}, {97, 102, 615}, }, {{48, 102, -538}, }, {{48, 102, -538}, }, {{0, 47, -209}, {48, 57, 616}, {58, 64, 74}, {65, 70, 617}, {71, 96, 74}, {97, 102, 618}, {103, 65535, 74}, }, {{0, 65535, -541}, }, {{0, 65535, -541}, }, {{0, 65535, -464}, }, {{0, 65535, -464}, }, {{0, 41, 208}, {42, 42, 619}, {43, 46, 208}, {47, 47, 620}, {48, 65535, 208}, }, {{0, 8, 621}, {9, 9, 622}, {10, 10, 623}, {11, 12, 621}, {13, 13, 624}, {14, 31, 621}, {32, 32, 625}, {33, 41, 621}, {42, 42, 626}, {43, 46, 621}, {47, 47, 627}, {48, 65535, 621}, }, {{0, 65535, -547}, }, {{0, 8, 458}, {9, 9, 628}, {10, 10, 623}, {11, 12, 458}, {13, 13, 624}, {14, 31, 458}, {32, 32, 629}, {33, 41, 458}, {42, 42, 459}, {43, 46, 458}, {47, 47, 630}, {48, 65535, 458}, }, {{0, 65535, -549}, }, {{0, 65535, -547}, }, {{0, 65535, -215}, }, {{0, 8, 631}, {9, 9, 632}, {10, 10, 633}, {11, 12, 631}, {13, 13, 634}, {14, 31, 631}, {32, 32, 635}, {33, 41, 631}, {42, 42, 465}, {43, 46, 631}, {47, 47, 636}, {48, 65535, 631}, }, {{0, 65535, -468}, }, {{116, 116, 637}, }, {}, {{116, 116, 638}, }, {{101, 101, 639}, }, {}, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 98, -235}, {99, 99, 640}, {100, 122, 73}, }, {{36, 115, -119}, {116, 116, 641}, {117, 122, 73}, }, {{36, 109, -40}, {110, 110, 642}, {111, 122, 73}, }, {{36, 110, -37}, {111, 111, 643}, {112, 122, 73}, }, {{36, 115, -119}, {116, 116, 644}, {117, 122, 73}, }, {{36, 122, -10}, }, {{36, 98, -235}, {99, 99, 645}, {100, 122, 73}, }, {{36, 110, -37}, {111, 111, 646}, {112, 122, 73}, }, {{36, 109, -40}, {110, 110, 647}, {111, 122, 73}, }, {{36, 114, -115}, {115, 115, 648}, {116, 122, 73}, }, {{36, 100, -39}, {101, 101, 649}, {102, 122, 73}, }, {{36, 98, -235}, {99, 99, 650}, {100, 122, 73}, }, {{36, 95, -10}, {97, 97, 651}, {98, 122, 73}, }, {{36, 110, -37}, {111, 111, 652}, {112, 122, 73}, }, {{36, 114, -115}, {115, 115, 653}, {116, 122, 73}, }, {{36, 122, -10}, }, {{36, 95, -10}, {97, 97, 654}, {98, 122, 73}, }, {{36, 115, -119}, {116, 116, 655}, {117, 122, 73}, }, {{36, 95, -10}, {97, 120, 73}, {121, 121, 656}, {122, 122, 73}, }, {{36, 100, -39}, {101, 101, 657}, {102, 122, 73}, }, {{36, 115, -119}, {116, 116, 658}, {117, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 107, -129}, {108, 108, 659}, {109, 122, 73}, }, {{36, 104, -52}, {105, 105, 660}, {106, 122, 73}, }, {{36, 101, -44}, {102, 102, 661}, {103, 122, 73}, }, {{36, 110, -37}, {111, 111, 662}, {112, 122, 73}, }, {{36, 118, -398}, {119, 119, 663}, {120, 122, 73}, }, {{36, 122, -10}, }, {{36, 100, -39}, {101, 101, 664}, {102, 122, 73}, }, {{36, 109, -40}, {110, 110, 665}, {111, 122, 73}, }, {{36, 107, -129}, {108, 108, 666}, {109, 122, 73}, }, {{36, 107, -129}, {108, 108, 667}, {109, 122, 73}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{0, 127, -8}, }, {{116, 116, 668}, }, {{48, 57, 669}, {65, 70, 670}, {97, 102, 671}, }, {{48, 102, -600}, }, {{48, 102, -600}, }, {{48, 57, 672}, {65, 70, 673}, {97, 102, 674}, }, {{48, 102, -603}, }, {{48, 102, -603}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{0, 47, -209}, {48, 57, 675}, {58, 64, 74}, {65, 70, 676}, {71, 96, 74}, {97, 102, 677}, {103, 65535, 74}, }, {{0, 65535, -609}, }, {{0, 65535, -609}, }, {{0, 47, -209}, {48, 57, 678}, {58, 64, 74}, {65, 70, 679}, {71, 96, 74}, {97, 102, 680}, {103, 65535, 74}, }, {{0, 65535, -612}, }, {{0, 65535, -612}, }, {{48, 57, 681}, {65, 70, 682}, {97, 102, 683}, }, {{48, 102, -615}, }, {{48, 102, -615}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 65535, -77}, }, {{0, 41, 684}, {42, 42, 209}, {43, 46, 684}, {47, 47, 685}, {48, 65535, 684}, }, {{0, 65535, -341}, }, {{0, 65535, -547}, }, {{0, 65535, -547}, }, {{0, 65535, -549}, }, {{0, 65535, -549}, }, {{0, 65535, -547}, }, {{0, 41, -467}, {42, 42, 626}, {43, 65535, -467}, }, {{0, 41, -547}, {42, 42, 686}, {43, 46, 621}, {47, 47, 687}, {48, 65535, 621}, }, {{0, 65535, -549}, }, {{0, 65535, -549}, }, {{0, 41, 458}, {42, 42, 688}, {43, 46, 458}, {47, 47, 689}, {48, 65535, 458}, }, {{0, 8, 690}, {9, 9, 691}, {10, 10, 692}, {11, 12, 690}, {13, 13, 693}, {14, 31, 690}, {32, 32, 694}, {33, 41, 690}, {42, 42, 695}, {43, 46, 690}, {47, 47, 696}, {48, 65535, 690}, }, {{0, 65535, -633}, }, {{0, 8, 697}, {9, 9, 698}, {10, 10, 692}, {11, 12, 697}, {13, 13, 693}, {14, 31, 697}, {32, 32, 699}, {33, 41, 697}, {42, 42, 700}, {43, 46, 697}, {47, 47, 701}, {48, 65535, 697}, }, {{0, 65535, -635}, }, {{0, 65535, -633}, }, {{0, 65535, -468}, }, {{62, 62, 702}, }, {{101, 101, 703}, }, {{116, 116, 704}, }, {{36, 115, -119}, {116, 116, 705}, {117, 122, 73}, }, {{36, 104, -52}, {105, 105, 706}, {106, 122, 73}, }, {{36, 122, -10}, }, {{36, 104, -52}, {105, 105, 707}, {106, 122, 73}, }, {{36, 122, -10}, }, {{36, 104, -52}, {105, 105, 708}, {106, 122, 73}, }, {{36, 109, -40}, {110, 110, 709}, {111, 122, 73}, }, {{36, 104, -52}, {105, 105, 710}, {106, 122, 73}, }, {{36, 122, -10}, }, {{36, 109, -40}, {110, 110, 711}, {111, 122, 73}, }, {{36, 100, -39}, {101, 101, 712}, {102, 122, 73}, }, {{36, 98, -235}, {99, 99, 713}, {100, 122, 73}, }, {{36, 101, -44}, {102, 102, 714}, {103, 122, 73}, }, {{36, 118, -398}, {119, 119, 715}, {120, 122, 73}, }, {{36, 120, -581}, {121, 121, 716}, {122, 122, 73}, }, {{36, 104, -52}, {105, 105, 717}, {106, 122, 73}, }, {{36, 111, -123}, {112, 112, 718}, {113, 122, 73}, }, {{36, 122, -10}, }, {{36, 100, -39}, {101, 101, 719}, {102, 122, 73}, }, {{36, 104, -52}, {105, 105, 720}, {106, 122, 73}, }, {{36, 109, -40}, {110, 110, 721}, {111, 122, 73}, }, {{36, 111, -123}, {112, 112, 722}, {113, 122, 73}, }, {{36, 109, -40}, {110, 110, 723}, {111, 122, 73}, }, {{36, 104, -52}, {105, 105, 724}, {106, 122, 73}, }, {{36, 109, -40}, {110, 110, 725}, {111, 122, 73}, }, {{36, 122, -10}, }, {{36, 104, -52}, {105, 105, 726}, {106, 122, 73}, }, {{36, 100, -39}, {101, 101, 727}, {102, 122, 73}, }, {{121, 121, 728}, }, {{48, 57, 729}, {65, 70, 730}, {97, 102, 731}, }, {{48, 102, -671}, }, {{48, 102, -671}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{0, 47, -209}, {48, 57, 732}, {58, 64, 74}, {65, 70, 733}, {71, 96, 74}, {97, 102, 734}, {103, 65535, 74}, }, {{0, 65535, -677}, }, {{0, 65535, -677}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{48, 57, 735}, {65, 70, 736}, {97, 102, 737}, }, {{48, 102, -683}, }, {{48, 102, -683}, }, {{0, 41, 697}, {42, 42, 700}, {43, 65535, 697}, }, {{0, 65535, -464}, }, {{0, 41, -553}, {42, 42, 695}, {43, 65535, -553}, }, {{0, 65535, -629}, }, {{0, 41, 684}, {42, 42, 700}, {43, 65535, -621}, }, {{0, 65535, -547}, }, {{0, 65535, -633}, }, {{0, 65535, -633}, }, {{0, 65535, -635}, }, {{0, 65535, -635}, }, {{0, 65535, -633}, }, {{0, 41, -467}, {42, 42, 695}, {43, 65535, -467}, }, {{0, 41, -633}, {42, 42, 738}, {43, 46, 690}, {47, 47, 739}, {48, 65535, 690}, }, {{0, 65535, -686}, }, {{0, 65535, -635}, }, {{0, 65535, -635}, }, {{0, 41, 337}, {42, 42, 700}, {43, 65535, -211}, }, {{0, 41, 697}, {42, 42, 740}, {43, 46, 697}, {47, 47, 741}, {48, 65535, 697}, }, {}, {{120, 120, 742}, }, {{101, 101, 743}, }, {{36, 122, -10}, }, {{36, 110, -37}, {111, 111, 744}, {112, 122, 73}, }, {{36, 109, -40}, {110, 110, 745}, {111, 122, 73}, }, {{36, 109, -40}, {110, 110, 746}, {111, 122, 73}, }, {{36, 104, -52}, {105, 105, 747}, {106, 122, 73}, }, {{36, 115, -119}, {116, 116, 748}, {117, 122, 73}, }, {{36, 115, -119}, {116, 116, 749}, {117, 122, 73}, }, {{36, 110, -37}, {111, 111, 750}, {112, 122, 73}, }, {{36, 100, -39}, {101, 101, 751}, {102, 122, 73}, }, {{36, 122, -10}, }, {{36, 104, -52}, {105, 105, 752}, {106, 122, 73}, }, {{36, 122, -10}, }, {{36, 95, -10}, {97, 97, 753}, {98, 122, 73}, }, {{36, 100, -39}, {101, 101, 754}, {102, 122, 73}, }, {{36, 99, -278}, {100, 100, 755}, {101, 122, 73}, }, {{36, 109, -40}, {110, 110, 756}, {111, 122, 73}, }, {{36, 117, -263}, {118, 118, 757}, {119, 122, 73}, }, {{36, 122, -10}, }, {{36, 104, -52}, {105, 105, 758}, {106, 122, 73}, }, {{36, 115, -119}, {116, 116, 759}, {117, 122, 73}, }, {{36, 115, -119}, {116, 116, 760}, {117, 122, 73}, }, {{36, 109, -40}, {110, 110, 761}, {111, 122, 73}, }, {{36, 122, -10}, }, {{70, 102, -285}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{36, 122, -172}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{0, 65535, -192}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{36, 122, -201}, }, {{0, 65535, -688}, }, {{0, 65535, -698}, }, {{0, 65535, -690}, }, {{0, 65535, -633}, }, {{99, 99, 762}, }, {{114, 114, 763}, }, {{36, 109, -40}, {110, 110, 764}, {111, 122, 73}, }, {{36, 115, -119}, {116, 116, 765}, {117, 122, 73}, }, {{36, 117, -263}, {118, 118, 766}, {119, 122, 73}, }, {{36, 115, -119}, {116, 116, 767}, {117, 122, 73}, }, {{36, 110, -37}, {111, 111, 768}, {112, 122, 73}, }, {{36, 114, -115}, {115, 115, 769}, {116, 122, 73}, }, {{36, 101, -44}, {102, 102, 770}, {103, 122, 73}, }, {{36, 104, -52}, {105, 105, 771}, {106, 122, 73}, }, {{36, 115, -119}, {116, 116, 772}, {117, 122, 73}, }, {{36, 113, -47}, {114, 114, 773}, {115, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 117, -263}, {118, 118, 774}, {119, 122, 73}, }, {{36, 110, -37}, {111, 111, 775}, {112, 122, 73}, }, {{36, 95, -10}, {97, 121, 73}, {122, 122, 776}, }, {{36, 98, -235}, {99, 99, 777}, {100, 122, 73}, }, {{36, 122, -10}, }, {{36, 117, -263}, {118, 118, 778}, {119, 122, 73}, }, {{101, 101, 779}, }, {{48, 57, 780}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 110, -37}, {111, 111, 781}, {112, 122, 73}, }, {{36, 110, -37}, {111, 111, 782}, {112, 122, 73}, }, {{36, 113, -47}, {114, 114, 783}, {115, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 109, -40}, {110, 110, 784}, {111, 122, 73}, }, {{36, 98, -235}, {99, 99, 785}, {100, 122, 73}, }, {{36, 113, -47}, {114, 114, 786}, {115, 122, 73}, }, {{36, 110, -37}, {111, 111, 787}, {112, 122, 73}, }, {{36, 106, -154}, {107, 107, 788}, {108, 122, 73}, }, {{36, 100, -39}, {101, 101, 789}, {102, 122, 73}, }, {{36, 103, -49}, {104, 104, 790}, {105, 122, 73}, }, {{36, 110, -37}, {111, 111, 791}, {112, 122, 73}, }, {{112, 112, 792}, }, {{48, 57, 780}, {58, 58, 793}, }, {{36, 106, -154}, {107, 107, 794}, {108, 122, 73}, }, {{36, 113, -47}, {114, 114, 795}, {115, 122, 73}, }, {{36, 122, -10}, }, {{36, 117, -263}, {118, 118, 796}, {119, 122, 73}, }, {{36, 103, -49}, {104, 104, 797}, {105, 122, 73}, }, {{36, 95, -10}, {97, 97, 798}, {98, 122, 73}, }, {{36, 106, -154}, {107, 107, 799}, {108, 122, 73}, }, {{36, 100, -39}, {101, 101, 800}, {102, 122, 73}, }, {{36, 99, -278}, {100, 100, 801}, {101, 122, 73}, }, {{36, 122, -10}, }, {{36, 106, -154}, {107, 107, 802}, {108, 122, 73}, }, {{116, 116, 803}, }, {}, {{36, 100, -39}, {101, 101, 804}, {102, 122, 73}, }, {{36, 122, -10}, }, {{36, 110, -37}, {111, 111, 805}, {112, 122, 73}, }, {{36, 122, -10}, }, {{36, 120, -581}, {121, 121, 806}, {122, 122, 73}, }, {{36, 100, -39}, {101, 101, 807}, {102, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 100, -39}, {101, 101, 808}, {102, 122, 73}, }, {{105, 105, 809}, }, {{36, 122, -10}, }, {{36, 106, -154}, {107, 107, 810}, {108, 122, 73}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{36, 122, -10}, }, {{111, 111, 811}, }, {{36, 100, -39}, {101, 101, 812}, {102, 122, 73}, }, {{110, 110, 813}, }, {{36, 122, -10}, }, {}, } };*/ private static int[][] accept; /* { // INITIAL {-1, 0, 0, 0, 0, -1, -1, -1, 95, 79, 76, 73, 69, 70, 91, 89, 63, 90, 72, 92, 98, 98, 71, 66, 84, 75, 82, -1, 95, 67, -1, 68, 78, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 64, 77, 65, -1, 81, -1, 100, -1, -1, -1, -1, -1, -1, 95, -1, 95, -1, 95, 95, -1, 95, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 98, 98, -1, -1, 74, 86, 85, -1, -1, 80, 83, 87, -1, -1, -1, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, -1, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 39, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 60, 95, 95, 95, 95, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, 94, 94, -1, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, -1, 93, 93, 94, 93, 94, -1, 94, 94, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 99, 98, 98, 98, -1, -1, 88, -1, -1, -1, -1, -1, -1, 95, 95, 95, 95, 95, 95, 95, 95, 95, 62, 32, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 21, 95, 95, 95, 95, 44, 45, 48, 95, 95, 95, 95, 49, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, -1, -1, -1, -1, 99, 94, 94, 94, 94, 94, -1, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, -1, -1, -1, -1, 94, 93, 94, 94, 94, -1, 94, 94, 94, 94, 94, 93, 94, 94, 94, 94, 94, 94, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, -1, 99, -1, 99, -1, -1, -1, -1, -1, -1, -1, -1, 95, 95, 95, 95, 18, 30, 95, 20, 95, 33, 34, 95, 95, 95, 95, 12, 95, 95, 95, 95, 95, 59, 38, 95, 95, 95, 95, 22, 95, 95, 95, 95, 58, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 16, 95, 61, -1, -1, -1, -1, 99, 99, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, -1, -1, -1, -1, -1, -1, -1, 94, 94, 94, 93, 94, 94, 94, 94, 94, 94, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, -1, -1, 99, -1, -1, -1, -1, -1, -1, -1, -1, 95, 95, 95, 95, 31, 14, 95, 95, 95, 95, 95, 95, 95, 2, 23, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 19, 95, 95, 95, 95, 95, 55, 95, 95, 95, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 95, -1, -1, 96, 95, 95, 95, 95, 95, 95, 95, 95, 24, 95, 95, 95, 95, 95, 95, 95, 95, 95, 3, 95, 95, 95, 95, 95, 4, 50, 95, 7, 95, 95, 95, 56, 95, 95, 95, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 95, 95, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, -1, -1, 95, 95, 17, 95, 35, 95, 95, 95, 27, 95, 95, 95, 95, 95, 95, 95, 95, 6, 95, 95, 95, 95, 95, 95, 95, 26, 95, 95, -1, -1, -1, -1, 94, 94, 94, -1, -1, -1, 94, 94, 94, -1, -1, -1, -1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, -1, 95, -1, -1, 1, 95, 95, 95, 95, 95, 95, 95, 95, 42, 95, 46, 95, 95, 95, 95, 95, 11, 95, 95, 95, 95, 10, 99, 94, 94, 94, 94, 94, 94, -1, -1, -1, 0, 0, -1, 0, -1, -1, 95, 95, 95, 95, 95, 95, 95, 15, 95, 95, 25, 5, 95, 95, 95, 95, 9, 95, -1, -1, 13, 29, 95, 95, 95, 28, 40, 95, 95, 95, 95, 95, 95, 95, 95, -1, -1, 95, 95, 37, 95, 95, 95, 95, 95, 95, 54, 95, -1, 96, 95, 36, 95, 43, 95, 95, 52, 8, 95, -1, 53, 95, 47, 51, 57, -1, 95, -1, 41, 96, }, };*/ public static class State { public final static State INITIAL = new State(0); private int id; private State(@SuppressWarnings("hiding") int id) { this.id = id; } public int id() { return this.id; } } static { try { DataInputStream s = new DataInputStream( new BufferedInputStream( Lexer.class.getResourceAsStream("/lexer.dat"))); // read gotoTable int length = s.readInt(); gotoTable = new int[length][][][]; for(int i = 0; i < gotoTable.length; i++) { length = s.readInt(); gotoTable[i] = new int[length][][]; for(int j = 0; j < gotoTable[i].length; j++) { length = s.readInt(); gotoTable[i][j] = new int[length][3]; for(int k = 0; k < gotoTable[i][j].length; k++) { for(int l = 0; l < 3; l++) { gotoTable[i][j][k][l] = s.readInt(); } } } } // read accept length = s.readInt(); accept = new int[length][]; for(int i = 0; i < accept.length; i++) { length = s.readInt(); accept[i] = new int[length]; for(int j = 0; j < accept[i].length; j++) { accept[i][j] = s.readInt(); } } s.close(); } catch(Exception e) { throw new RuntimeException("The file \"lexer.dat\" is either missing or corrupted."); } } }
116,098
50.622499
3,198
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/lexer/LexerException.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.lexer; @SuppressWarnings("serial") public class LexerException extends Exception { public LexerException(String message) { super(message); } }
260
19.076923
67
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AAbstractModifier.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AAbstractModifier extends PModifier { private TAbstract _abstract_; public AAbstractModifier() { // Constructor } public AAbstractModifier( @SuppressWarnings("hiding") TAbstract _abstract_) { // Constructor setAbstract(_abstract_); } @Override public Object clone() { return new AAbstractModifier( cloneNode(this._abstract_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAAbstractModifier(this); } public TAbstract getAbstract() { return this._abstract_; } public void setAbstract(TAbstract node) { if(this._abstract_ != null) { this._abstract_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._abstract_ = node; } @Override public String toString() { return "" + toString(this._abstract_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._abstract_ == child) { this._abstract_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._abstract_ == oldChild) { setAbstract((TAbstract) newChild); return; } throw new RuntimeException("Not a child."); } }
1,924
19.052083
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AAndBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AAndBinop extends PBinop { private TAnd _and_; public AAndBinop() { // Constructor } public AAndBinop( @SuppressWarnings("hiding") TAnd _and_) { // Constructor setAnd(_and_); } @Override public Object clone() { return new AAndBinop( cloneNode(this._and_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAAndBinop(this); } public TAnd getAnd() { return this._and_; } public void setAnd(TAnd node) { if(this._and_ != null) { this._and_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._and_ = node; } @Override public String toString() { return "" + toString(this._and_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._and_ == child) { this._and_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._and_ == oldChild) { setAnd((TAnd) newChild); return; } throw new RuntimeException("Not a child."); } }
1,776
17.510417
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AAnnotationModifier.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AAnnotationModifier extends PModifier { private TAnnotation _annotation_; public AAnnotationModifier() { // Constructor } public AAnnotationModifier( @SuppressWarnings("hiding") TAnnotation _annotation_) { // Constructor setAnnotation(_annotation_); } @Override public Object clone() { return new AAnnotationModifier( cloneNode(this._annotation_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAAnnotationModifier(this); } public TAnnotation getAnnotation() { return this._annotation_; } public void setAnnotation(TAnnotation node) { if(this._annotation_ != null) { this._annotation_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._annotation_ = node; } @Override public String toString() { return "" + toString(this._annotation_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._annotation_ == child) { this._annotation_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._annotation_ == oldChild) { setAnnotation((TAnnotation) newChild); return; } throw new RuntimeException("Not a child."); } }
1,976
19.59375
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AArrayBrackets.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AArrayBrackets extends PArrayBrackets { private TLBracket _lBracket_; private TRBracket _rBracket_; public AArrayBrackets() { // Constructor } public AArrayBrackets( @SuppressWarnings("hiding") TLBracket _lBracket_, @SuppressWarnings("hiding") TRBracket _rBracket_) { // Constructor setLBracket(_lBracket_); setRBracket(_rBracket_); } @Override public Object clone() { return new AArrayBrackets( cloneNode(this._lBracket_), cloneNode(this._rBracket_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAArrayBrackets(this); } public TLBracket getLBracket() { return this._lBracket_; } public void setLBracket(TLBracket node) { if(this._lBracket_ != null) { this._lBracket_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._lBracket_ = node; } public TRBracket getRBracket() { return this._rBracket_; } public void setRBracket(TRBracket node) { if(this._rBracket_ != null) { this._rBracket_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._rBracket_ = node; } @Override public String toString() { return "" + toString(this._lBracket_) + toString(this._rBracket_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._lBracket_ == child) { this._lBracket_ = null; return; } if(this._rBracket_ == child) { this._rBracket_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._lBracket_ == oldChild) { setLBracket((TLBracket) newChild); return; } if(this._rBracket_ == oldChild) { setRBracket((TRBracket) newChild); return; } throw new RuntimeException("Not a child."); } }
2,823
19.316547
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AArrayDescriptor.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AArrayDescriptor extends PArrayDescriptor { private TLBracket _lBracket_; private PImmediate _immediate_; private TRBracket _rBracket_; public AArrayDescriptor() { // Constructor } public AArrayDescriptor( @SuppressWarnings("hiding") TLBracket _lBracket_, @SuppressWarnings("hiding") PImmediate _immediate_, @SuppressWarnings("hiding") TRBracket _rBracket_) { // Constructor setLBracket(_lBracket_); setImmediate(_immediate_); setRBracket(_rBracket_); } @Override public Object clone() { return new AArrayDescriptor( cloneNode(this._lBracket_), cloneNode(this._immediate_), cloneNode(this._rBracket_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAArrayDescriptor(this); } public TLBracket getLBracket() { return this._lBracket_; } public void setLBracket(TLBracket node) { if(this._lBracket_ != null) { this._lBracket_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._lBracket_ = node; } public PImmediate getImmediate() { return this._immediate_; } public void setImmediate(PImmediate node) { if(this._immediate_ != null) { this._immediate_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._immediate_ = node; } public TRBracket getRBracket() { return this._rBracket_; } public void setRBracket(TRBracket node) { if(this._rBracket_ != null) { this._rBracket_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._rBracket_ = node; } @Override public String toString() { return "" + toString(this._lBracket_) + toString(this._immediate_) + toString(this._rBracket_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._lBracket_ == child) { this._lBracket_ = null; return; } if(this._immediate_ == child) { this._immediate_ = null; return; } if(this._rBracket_ == child) { this._rBracket_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._lBracket_ == oldChild) { setLBracket((TLBracket) newChild); return; } if(this._immediate_ == oldChild) { setImmediate((PImmediate) newChild); return; } if(this._rBracket_ == oldChild) { setRBracket((TRBracket) newChild); return; } throw new RuntimeException("Not a child."); } }
3,765
19.692308
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AArrayNewExpr.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AArrayNewExpr extends PNewExpr { private TNewarray _newarray_; private TLParen _lParen_; private PNonvoidType _nonvoidType_; private TRParen _rParen_; private PFixedArrayDescriptor _fixedArrayDescriptor_; public AArrayNewExpr() { // Constructor } public AArrayNewExpr( @SuppressWarnings("hiding") TNewarray _newarray_, @SuppressWarnings("hiding") TLParen _lParen_, @SuppressWarnings("hiding") PNonvoidType _nonvoidType_, @SuppressWarnings("hiding") TRParen _rParen_, @SuppressWarnings("hiding") PFixedArrayDescriptor _fixedArrayDescriptor_) { // Constructor setNewarray(_newarray_); setLParen(_lParen_); setNonvoidType(_nonvoidType_); setRParen(_rParen_); setFixedArrayDescriptor(_fixedArrayDescriptor_); } @Override public Object clone() { return new AArrayNewExpr( cloneNode(this._newarray_), cloneNode(this._lParen_), cloneNode(this._nonvoidType_), cloneNode(this._rParen_), cloneNode(this._fixedArrayDescriptor_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAArrayNewExpr(this); } public TNewarray getNewarray() { return this._newarray_; } public void setNewarray(TNewarray node) { if(this._newarray_ != null) { this._newarray_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._newarray_ = node; } public TLParen getLParen() { return this._lParen_; } public void setLParen(TLParen node) { if(this._lParen_ != null) { this._lParen_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._lParen_ = node; } public PNonvoidType getNonvoidType() { return this._nonvoidType_; } public void setNonvoidType(PNonvoidType node) { if(this._nonvoidType_ != null) { this._nonvoidType_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._nonvoidType_ = node; } public TRParen getRParen() { return this._rParen_; } public void setRParen(TRParen node) { if(this._rParen_ != null) { this._rParen_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._rParen_ = node; } public PFixedArrayDescriptor getFixedArrayDescriptor() { return this._fixedArrayDescriptor_; } public void setFixedArrayDescriptor(PFixedArrayDescriptor node) { if(this._fixedArrayDescriptor_ != null) { this._fixedArrayDescriptor_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._fixedArrayDescriptor_ = node; } @Override public String toString() { return "" + toString(this._newarray_) + toString(this._lParen_) + toString(this._nonvoidType_) + toString(this._rParen_) + toString(this._fixedArrayDescriptor_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._newarray_ == child) { this._newarray_ = null; return; } if(this._lParen_ == child) { this._lParen_ = null; return; } if(this._nonvoidType_ == child) { this._nonvoidType_ = null; return; } if(this._rParen_ == child) { this._rParen_ = null; return; } if(this._fixedArrayDescriptor_ == child) { this._fixedArrayDescriptor_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._newarray_ == oldChild) { setNewarray((TNewarray) newChild); return; } if(this._lParen_ == oldChild) { setLParen((TLParen) newChild); return; } if(this._nonvoidType_ == oldChild) { setNonvoidType((PNonvoidType) newChild); return; } if(this._rParen_ == oldChild) { setRParen((TRParen) newChild); return; } if(this._fixedArrayDescriptor_ == oldChild) { setFixedArrayDescriptor((PFixedArrayDescriptor) newChild); return; } throw new RuntimeException("Not a child."); } }
5,770
20.533582
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AArrayReference.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AArrayReference extends PReference { private PArrayRef _arrayRef_; public AArrayReference() { // Constructor } public AArrayReference( @SuppressWarnings("hiding") PArrayRef _arrayRef_) { // Constructor setArrayRef(_arrayRef_); } @Override public Object clone() { return new AArrayReference( cloneNode(this._arrayRef_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAArrayReference(this); } public PArrayRef getArrayRef() { return this._arrayRef_; } public void setArrayRef(PArrayRef node) { if(this._arrayRef_ != null) { this._arrayRef_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._arrayRef_ = node; } @Override public String toString() { return "" + toString(this._arrayRef_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._arrayRef_ == child) { this._arrayRef_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._arrayRef_ == oldChild) { setArrayRef((PArrayRef) newChild); return; } throw new RuntimeException("Not a child."); } }
1,915
18.958333
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AAssignStatement.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AAssignStatement extends PStatement { private PVariable _variable_; private TEquals _equals_; private PExpression _expression_; private TSemicolon _semicolon_; public AAssignStatement() { // Constructor } public AAssignStatement( @SuppressWarnings("hiding") PVariable _variable_, @SuppressWarnings("hiding") TEquals _equals_, @SuppressWarnings("hiding") PExpression _expression_, @SuppressWarnings("hiding") TSemicolon _semicolon_) { // Constructor setVariable(_variable_); setEquals(_equals_); setExpression(_expression_); setSemicolon(_semicolon_); } @Override public Object clone() { return new AAssignStatement( cloneNode(this._variable_), cloneNode(this._equals_), cloneNode(this._expression_), cloneNode(this._semicolon_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAAssignStatement(this); } public PVariable getVariable() { return this._variable_; } public void setVariable(PVariable node) { if(this._variable_ != null) { this._variable_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._variable_ = node; } public TEquals getEquals() { return this._equals_; } public void setEquals(TEquals node) { if(this._equals_ != null) { this._equals_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._equals_ = node; } public PExpression getExpression() { return this._expression_; } public void setExpression(PExpression node) { if(this._expression_ != null) { this._expression_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._expression_ = node; } public TSemicolon getSemicolon() { return this._semicolon_; } public void setSemicolon(TSemicolon node) { if(this._semicolon_ != null) { this._semicolon_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._semicolon_ = node; } @Override public String toString() { return "" + toString(this._variable_) + toString(this._equals_) + toString(this._expression_) + toString(this._semicolon_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._variable_ == child) { this._variable_ = null; return; } if(this._equals_ == child) { this._equals_ = null; return; } if(this._expression_ == child) { this._expression_ = null; return; } if(this._semicolon_ == child) { this._semicolon_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._variable_ == oldChild) { setVariable((PVariable) newChild); return; } if(this._equals_ == oldChild) { setEquals((TEquals) newChild); return; } if(this._expression_ == oldChild) { setExpression((PExpression) newChild); return; } if(this._semicolon_ == oldChild) { setSemicolon((TSemicolon) newChild); return; } throw new RuntimeException("Not a child."); } }
4,668
19.751111
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABaseNonvoidType.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import java.util.*; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABaseNonvoidType extends PNonvoidType { private PBaseTypeNoName _baseTypeNoName_; private final LinkedList<PArrayBrackets> _arrayBrackets_ = new LinkedList<PArrayBrackets>(); public ABaseNonvoidType() { // Constructor } public ABaseNonvoidType( @SuppressWarnings("hiding") PBaseTypeNoName _baseTypeNoName_, @SuppressWarnings("hiding") List<?> _arrayBrackets_) { // Constructor setBaseTypeNoName(_baseTypeNoName_); setArrayBrackets(_arrayBrackets_); } @Override public Object clone() { return new ABaseNonvoidType( cloneNode(this._baseTypeNoName_), cloneList(this._arrayBrackets_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABaseNonvoidType(this); } public PBaseTypeNoName getBaseTypeNoName() { return this._baseTypeNoName_; } public void setBaseTypeNoName(PBaseTypeNoName node) { if(this._baseTypeNoName_ != null) { this._baseTypeNoName_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._baseTypeNoName_ = node; } public LinkedList<PArrayBrackets> getArrayBrackets() { return this._arrayBrackets_; } public void setArrayBrackets(List<?> list) { for(PArrayBrackets e : this._arrayBrackets_) { e.parent(null); } this._arrayBrackets_.clear(); for(Object obj_e : list) { PArrayBrackets e = (PArrayBrackets) obj_e; if(e.parent() != null) { e.parent().removeChild(e); } e.parent(this); this._arrayBrackets_.add(e); } } @Override public String toString() { return "" + toString(this._baseTypeNoName_) + toString(this._arrayBrackets_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._baseTypeNoName_ == child) { this._baseTypeNoName_ = null; return; } if(this._arrayBrackets_.remove(child)) { return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._baseTypeNoName_ == oldChild) { setBaseTypeNoName((PBaseTypeNoName) newChild); return; } for(ListIterator<PArrayBrackets> i = this._arrayBrackets_.listIterator(); i.hasNext();) { if(i.next() == oldChild) { if(newChild != null) { i.set((PArrayBrackets) newChild); newChild.parent(this); oldChild.parent(null); return; } i.remove(); oldChild.parent(null); return; } } throw new RuntimeException("Not a child."); } }
3,554
22.388158
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABinopBoolExpr.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABinopBoolExpr extends PBoolExpr { private PBinopExpr _binopExpr_; public ABinopBoolExpr() { // Constructor } public ABinopBoolExpr( @SuppressWarnings("hiding") PBinopExpr _binopExpr_) { // Constructor setBinopExpr(_binopExpr_); } @Override public Object clone() { return new ABinopBoolExpr( cloneNode(this._binopExpr_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABinopBoolExpr(this); } public PBinopExpr getBinopExpr() { return this._binopExpr_; } public void setBinopExpr(PBinopExpr node) { if(this._binopExpr_ != null) { this._binopExpr_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._binopExpr_ = node; } @Override public String toString() { return "" + toString(this._binopExpr_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._binopExpr_ == child) { this._binopExpr_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._binopExpr_ == oldChild) { setBinopExpr((PBinopExpr) newChild); return; } throw new RuntimeException("Not a child."); } }
1,930
19.114583
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABinopExpr.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABinopExpr extends PBinopExpr { private PImmediate _left_; private PBinop _binop_; private PImmediate _right_; public ABinopExpr() { // Constructor } public ABinopExpr( @SuppressWarnings("hiding") PImmediate _left_, @SuppressWarnings("hiding") PBinop _binop_, @SuppressWarnings("hiding") PImmediate _right_) { // Constructor setLeft(_left_); setBinop(_binop_); setRight(_right_); } @Override public Object clone() { return new ABinopExpr( cloneNode(this._left_), cloneNode(this._binop_), cloneNode(this._right_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABinopExpr(this); } public PImmediate getLeft() { return this._left_; } public void setLeft(PImmediate node) { if(this._left_ != null) { this._left_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._left_ = node; } public PBinop getBinop() { return this._binop_; } public void setBinop(PBinop node) { if(this._binop_ != null) { this._binop_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._binop_ = node; } public PImmediate getRight() { return this._right_; } public void setRight(PImmediate node) { if(this._right_ != null) { this._right_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._right_ = node; } @Override public String toString() { return "" + toString(this._left_) + toString(this._binop_) + toString(this._right_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._left_ == child) { this._left_ = null; return; } if(this._binop_ == child) { this._binop_ = null; return; } if(this._right_ == child) { this._right_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._left_ == oldChild) { setLeft((PImmediate) newChild); return; } if(this._binop_ == oldChild) { setBinop((PBinop) newChild); return; } if(this._right_ == oldChild) { setRight((PImmediate) newChild); return; } throw new RuntimeException("Not a child."); } }
3,543
18.472527
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABinopExpression.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABinopExpression extends PExpression { private PBinopExpr _binopExpr_; public ABinopExpression() { // Constructor } public ABinopExpression( @SuppressWarnings("hiding") PBinopExpr _binopExpr_) { // Constructor setBinopExpr(_binopExpr_); } @Override public Object clone() { return new ABinopExpression( cloneNode(this._binopExpr_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABinopExpression(this); } public PBinopExpr getBinopExpr() { return this._binopExpr_; } public void setBinopExpr(PBinopExpr node) { if(this._binopExpr_ != null) { this._binopExpr_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._binopExpr_ = node; } @Override public String toString() { return "" + toString(this._binopExpr_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._binopExpr_ == child) { this._binopExpr_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._binopExpr_ == oldChild) { setBinopExpr((PBinopExpr) newChild); return; } throw new RuntimeException("Not a child."); } }
1,942
19.239583
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABooleanBaseType.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABooleanBaseType extends PBaseType { private TBoolean _boolean_; public ABooleanBaseType() { // Constructor } public ABooleanBaseType( @SuppressWarnings("hiding") TBoolean _boolean_) { // Constructor setBoolean(_boolean_); } @Override public Object clone() { return new ABooleanBaseType( cloneNode(this._boolean_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABooleanBaseType(this); } public TBoolean getBoolean() { return this._boolean_; } public void setBoolean(TBoolean node) { if(this._boolean_ != null) { this._boolean_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._boolean_ = node; } @Override public String toString() { return "" + toString(this._boolean_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._boolean_ == child) { this._boolean_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._boolean_ == oldChild) { setBoolean((TBoolean) newChild); return; } throw new RuntimeException("Not a child."); } }
1,898
18.78125
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABooleanBaseTypeNoName.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABooleanBaseTypeNoName extends PBaseTypeNoName { private TBoolean _boolean_; public ABooleanBaseTypeNoName() { // Constructor } public ABooleanBaseTypeNoName( @SuppressWarnings("hiding") TBoolean _boolean_) { // Constructor setBoolean(_boolean_); } @Override public Object clone() { return new ABooleanBaseTypeNoName( cloneNode(this._boolean_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABooleanBaseTypeNoName(this); } public TBoolean getBoolean() { return this._boolean_; } public void setBoolean(TBoolean node) { if(this._boolean_ != null) { this._boolean_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._boolean_ = node; } @Override public String toString() { return "" + toString(this._boolean_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._boolean_ == child) { this._boolean_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._boolean_ == oldChild) { setBoolean((TBoolean) newChild); return; } throw new RuntimeException("Not a child."); } }
1,934
19.15625
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ABreakpointStatement.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ABreakpointStatement extends PStatement { private TBreakpoint _breakpoint_; private TSemicolon _semicolon_; public ABreakpointStatement() { // Constructor } public ABreakpointStatement( @SuppressWarnings("hiding") TBreakpoint _breakpoint_, @SuppressWarnings("hiding") TSemicolon _semicolon_) { // Constructor setBreakpoint(_breakpoint_); setSemicolon(_semicolon_); } @Override public Object clone() { return new ABreakpointStatement( cloneNode(this._breakpoint_), cloneNode(this._semicolon_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseABreakpointStatement(this); } public TBreakpoint getBreakpoint() { return this._breakpoint_; } public void setBreakpoint(TBreakpoint node) { if(this._breakpoint_ != null) { this._breakpoint_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._breakpoint_ = node; } public TSemicolon getSemicolon() { return this._semicolon_; } public void setSemicolon(TSemicolon node) { if(this._semicolon_ != null) { this._semicolon_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._semicolon_ = node; } @Override public String toString() { return "" + toString(this._breakpoint_) + toString(this._semicolon_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._breakpoint_ == child) { this._breakpoint_ = null; return; } if(this._semicolon_ == child) { this._semicolon_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._breakpoint_ == oldChild) { setBreakpoint((TBreakpoint) newChild); return; } if(this._semicolon_ == oldChild) { setSemicolon((TSemicolon) newChild); return; } throw new RuntimeException("Not a child."); } }
2,912
19.956835
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AByteBaseType.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AByteBaseType extends PBaseType { private TByte _byte_; public AByteBaseType() { // Constructor } public AByteBaseType( @SuppressWarnings("hiding") TByte _byte_) { // Constructor setByte(_byte_); } @Override public Object clone() { return new AByteBaseType( cloneNode(this._byte_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAByteBaseType(this); } public TByte getByte() { return this._byte_; } public void setByte(TByte node) { if(this._byte_ != null) { this._byte_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._byte_ = node; } @Override public String toString() { return "" + toString(this._byte_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._byte_ == child) { this._byte_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._byte_ == oldChild) { setByte((TByte) newChild); return; } throw new RuntimeException("Not a child."); } }
1,820
17.96875
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AByteBaseTypeNoName.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AByteBaseTypeNoName extends PBaseTypeNoName { private TByte _byte_; public AByteBaseTypeNoName() { // Constructor } public AByteBaseTypeNoName( @SuppressWarnings("hiding") TByte _byte_) { // Constructor setByte(_byte_); } @Override public Object clone() { return new AByteBaseTypeNoName( cloneNode(this._byte_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAByteBaseTypeNoName(this); } public TByte getByte() { return this._byte_; } public void setByte(TByte node) { if(this._byte_ != null) { this._byte_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._byte_ = node; } @Override public String toString() { return "" + toString(this._byte_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._byte_ == child) { this._byte_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._byte_ == oldChild) { setByte((TByte) newChild); return; } throw new RuntimeException("Not a child."); } }
1,856
18.34375
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACaseStmt.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACaseStmt extends PCaseStmt { private PCaseLabel _caseLabel_; private TColon _colon_; private PGotoStmt _gotoStmt_; public ACaseStmt() { // Constructor } public ACaseStmt( @SuppressWarnings("hiding") PCaseLabel _caseLabel_, @SuppressWarnings("hiding") TColon _colon_, @SuppressWarnings("hiding") PGotoStmt _gotoStmt_) { // Constructor setCaseLabel(_caseLabel_); setColon(_colon_); setGotoStmt(_gotoStmt_); } @Override public Object clone() { return new ACaseStmt( cloneNode(this._caseLabel_), cloneNode(this._colon_), cloneNode(this._gotoStmt_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACaseStmt(this); } public PCaseLabel getCaseLabel() { return this._caseLabel_; } public void setCaseLabel(PCaseLabel node) { if(this._caseLabel_ != null) { this._caseLabel_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._caseLabel_ = node; } public TColon getColon() { return this._colon_; } public void setColon(TColon node) { if(this._colon_ != null) { this._colon_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._colon_ = node; } public PGotoStmt getGotoStmt() { return this._gotoStmt_; } public void setGotoStmt(PGotoStmt node) { if(this._gotoStmt_ != null) { this._gotoStmt_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._gotoStmt_ = node; } @Override public String toString() { return "" + toString(this._caseLabel_) + toString(this._colon_) + toString(this._gotoStmt_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._caseLabel_ == child) { this._caseLabel_ = null; return; } if(this._colon_ == child) { this._colon_ = null; return; } if(this._gotoStmt_ == child) { this._gotoStmt_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._caseLabel_ == oldChild) { setCaseLabel((PCaseLabel) newChild); return; } if(this._colon_ == oldChild) { setColon((TColon) newChild); return; } if(this._gotoStmt_ == oldChild) { setGotoStmt((PGotoStmt) newChild); return; } throw new RuntimeException("Not a child."); } }
3,660
19.115385
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACastExpression.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACastExpression extends PExpression { private TLParen _lParen_; private PNonvoidType _nonvoidType_; private TRParen _rParen_; private PImmediate _immediate_; public ACastExpression() { // Constructor } public ACastExpression( @SuppressWarnings("hiding") TLParen _lParen_, @SuppressWarnings("hiding") PNonvoidType _nonvoidType_, @SuppressWarnings("hiding") TRParen _rParen_, @SuppressWarnings("hiding") PImmediate _immediate_) { // Constructor setLParen(_lParen_); setNonvoidType(_nonvoidType_); setRParen(_rParen_); setImmediate(_immediate_); } @Override public Object clone() { return new ACastExpression( cloneNode(this._lParen_), cloneNode(this._nonvoidType_), cloneNode(this._rParen_), cloneNode(this._immediate_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACastExpression(this); } public TLParen getLParen() { return this._lParen_; } public void setLParen(TLParen node) { if(this._lParen_ != null) { this._lParen_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._lParen_ = node; } public PNonvoidType getNonvoidType() { return this._nonvoidType_; } public void setNonvoidType(PNonvoidType node) { if(this._nonvoidType_ != null) { this._nonvoidType_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._nonvoidType_ = node; } public TRParen getRParen() { return this._rParen_; } public void setRParen(TRParen node) { if(this._rParen_ != null) { this._rParen_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._rParen_ = node; } public PImmediate getImmediate() { return this._immediate_; } public void setImmediate(PImmediate node) { if(this._immediate_ != null) { this._immediate_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._immediate_ = node; } @Override public String toString() { return "" + toString(this._lParen_) + toString(this._nonvoidType_) + toString(this._rParen_) + toString(this._immediate_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._lParen_ == child) { this._lParen_ = null; return; } if(this._nonvoidType_ == child) { this._nonvoidType_ = null; return; } if(this._rParen_ == child) { this._rParen_ = null; return; } if(this._immediate_ == child) { this._immediate_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._lParen_ == oldChild) { setLParen((TLParen) newChild); return; } if(this._nonvoidType_ == oldChild) { setNonvoidType((PNonvoidType) newChild); return; } if(this._rParen_ == oldChild) { setRParen((TRParen) newChild); return; } if(this._immediate_ == oldChild) { setImmediate((PImmediate) newChild); return; } throw new RuntimeException("Not a child."); } }
4,643
19.64
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACatchClause.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACatchClause extends PCatchClause { private TCatch _catch_; private PClassName _name_; private TFrom _from_; private PLabelName _fromLabel_; private TTo _to_; private PLabelName _toLabel_; private TWith _with_; private PLabelName _withLabel_; private TSemicolon _semicolon_; public ACatchClause() { // Constructor } public ACatchClause( @SuppressWarnings("hiding") TCatch _catch_, @SuppressWarnings("hiding") PClassName _name_, @SuppressWarnings("hiding") TFrom _from_, @SuppressWarnings("hiding") PLabelName _fromLabel_, @SuppressWarnings("hiding") TTo _to_, @SuppressWarnings("hiding") PLabelName _toLabel_, @SuppressWarnings("hiding") TWith _with_, @SuppressWarnings("hiding") PLabelName _withLabel_, @SuppressWarnings("hiding") TSemicolon _semicolon_) { // Constructor setCatch(_catch_); setName(_name_); setFrom(_from_); setFromLabel(_fromLabel_); setTo(_to_); setToLabel(_toLabel_); setWith(_with_); setWithLabel(_withLabel_); setSemicolon(_semicolon_); } @Override public Object clone() { return new ACatchClause( cloneNode(this._catch_), cloneNode(this._name_), cloneNode(this._from_), cloneNode(this._fromLabel_), cloneNode(this._to_), cloneNode(this._toLabel_), cloneNode(this._with_), cloneNode(this._withLabel_), cloneNode(this._semicolon_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACatchClause(this); } public TCatch getCatch() { return this._catch_; } public void setCatch(TCatch node) { if(this._catch_ != null) { this._catch_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._catch_ = node; } public PClassName getName() { return this._name_; } public void setName(PClassName node) { if(this._name_ != null) { this._name_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._name_ = node; } public TFrom getFrom() { return this._from_; } public void setFrom(TFrom node) { if(this._from_ != null) { this._from_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._from_ = node; } public PLabelName getFromLabel() { return this._fromLabel_; } public void setFromLabel(PLabelName node) { if(this._fromLabel_ != null) { this._fromLabel_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._fromLabel_ = node; } public TTo getTo() { return this._to_; } public void setTo(TTo node) { if(this._to_ != null) { this._to_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._to_ = node; } public PLabelName getToLabel() { return this._toLabel_; } public void setToLabel(PLabelName node) { if(this._toLabel_ != null) { this._toLabel_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._toLabel_ = node; } public TWith getWith() { return this._with_; } public void setWith(TWith node) { if(this._with_ != null) { this._with_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._with_ = node; } public PLabelName getWithLabel() { return this._withLabel_; } public void setWithLabel(PLabelName node) { if(this._withLabel_ != null) { this._withLabel_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._withLabel_ = node; } public TSemicolon getSemicolon() { return this._semicolon_; } public void setSemicolon(TSemicolon node) { if(this._semicolon_ != null) { this._semicolon_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._semicolon_ = node; } @Override public String toString() { return "" + toString(this._catch_) + toString(this._name_) + toString(this._from_) + toString(this._fromLabel_) + toString(this._to_) + toString(this._toLabel_) + toString(this._with_) + toString(this._withLabel_) + toString(this._semicolon_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._catch_ == child) { this._catch_ = null; return; } if(this._name_ == child) { this._name_ = null; return; } if(this._from_ == child) { this._from_ = null; return; } if(this._fromLabel_ == child) { this._fromLabel_ = null; return; } if(this._to_ == child) { this._to_ = null; return; } if(this._toLabel_ == child) { this._toLabel_ = null; return; } if(this._with_ == child) { this._with_ = null; return; } if(this._withLabel_ == child) { this._withLabel_ = null; return; } if(this._semicolon_ == child) { this._semicolon_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._catch_ == oldChild) { setCatch((TCatch) newChild); return; } if(this._name_ == oldChild) { setName((PClassName) newChild); return; } if(this._from_ == oldChild) { setFrom((TFrom) newChild); return; } if(this._fromLabel_ == oldChild) { setFromLabel((PLabelName) newChild); return; } if(this._to_ == oldChild) { setTo((TTo) newChild); return; } if(this._toLabel_ == oldChild) { setToLabel((PLabelName) newChild); return; } if(this._with_ == oldChild) { setWith((TWith) newChild); return; } if(this._withLabel_ == oldChild) { setWithLabel((PLabelName) newChild); return; } if(this._semicolon_ == oldChild) { setSemicolon((TSemicolon) newChild); return; } throw new RuntimeException("Not a child."); } }
8,810
19.025
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACharBaseType.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACharBaseType extends PBaseType { private TChar _char_; public ACharBaseType() { // Constructor } public ACharBaseType( @SuppressWarnings("hiding") TChar _char_) { // Constructor setChar(_char_); } @Override public Object clone() { return new ACharBaseType( cloneNode(this._char_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACharBaseType(this); } public TChar getChar() { return this._char_; } public void setChar(TChar node) { if(this._char_ != null) { this._char_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._char_ = node; } @Override public String toString() { return "" + toString(this._char_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._char_ == child) { this._char_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._char_ == oldChild) { setChar((TChar) newChild); return; } throw new RuntimeException("Not a child."); } }
1,820
17.96875
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACharBaseTypeNoName.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACharBaseTypeNoName extends PBaseTypeNoName { private TChar _char_; public ACharBaseTypeNoName() { // Constructor } public ACharBaseTypeNoName( @SuppressWarnings("hiding") TChar _char_) { // Constructor setChar(_char_); } @Override public Object clone() { return new ACharBaseTypeNoName( cloneNode(this._char_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACharBaseTypeNoName(this); } public TChar getChar() { return this._char_; } public void setChar(TChar node) { if(this._char_ != null) { this._char_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._char_ = node; } @Override public String toString() { return "" + toString(this._char_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._char_ == child) { this._char_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._char_ == oldChild) { setChar((TChar) newChild); return; } throw new RuntimeException("Not a child."); } }
1,856
18.34375
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AClassFileType.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AClassFileType extends PFileType { private TClass _theclass_; public AClassFileType() { // Constructor } public AClassFileType( @SuppressWarnings("hiding") TClass _theclass_) { // Constructor setTheclass(_theclass_); } @Override public Object clone() { return new AClassFileType( cloneNode(this._theclass_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAClassFileType(this); } public TClass getTheclass() { return this._theclass_; } public void setTheclass(TClass node) { if(this._theclass_ != null) { this._theclass_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._theclass_ = node; } @Override public String toString() { return "" + toString(this._theclass_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._theclass_ == child) { this._theclass_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._theclass_ == oldChild) { setTheclass((TClass) newChild); return; } throw new RuntimeException("Not a child."); } }
1,894
18.739583
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AClassNameBaseType.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AClassNameBaseType extends PBaseType { private PClassName _className_; public AClassNameBaseType() { // Constructor } public AClassNameBaseType( @SuppressWarnings("hiding") PClassName _className_) { // Constructor setClassName(_className_); } @Override public Object clone() { return new AClassNameBaseType( cloneNode(this._className_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAClassNameBaseType(this); } public PClassName getClassName() { return this._className_; } public void setClassName(PClassName node) { if(this._className_ != null) { this._className_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._className_ = node; } @Override public String toString() { return "" + toString(this._className_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._className_ == child) { this._className_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._className_ == oldChild) { setClassName((PClassName) newChild); return; } throw new RuntimeException("Not a child."); } }
1,950
19.322917
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AClassNameMultiClassNameList.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AClassNameMultiClassNameList extends PClassNameList { private PClassName _className_; private TComma _comma_; private PClassNameList _classNameList_; public AClassNameMultiClassNameList() { // Constructor } public AClassNameMultiClassNameList( @SuppressWarnings("hiding") PClassName _className_, @SuppressWarnings("hiding") TComma _comma_, @SuppressWarnings("hiding") PClassNameList _classNameList_) { // Constructor setClassName(_className_); setComma(_comma_); setClassNameList(_classNameList_); } @Override public Object clone() { return new AClassNameMultiClassNameList( cloneNode(this._className_), cloneNode(this._comma_), cloneNode(this._classNameList_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAClassNameMultiClassNameList(this); } public PClassName getClassName() { return this._className_; } public void setClassName(PClassName node) { if(this._className_ != null) { this._className_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._className_ = node; } public TComma getComma() { return this._comma_; } public void setComma(TComma node) { if(this._comma_ != null) { this._comma_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._comma_ = node; } public PClassNameList getClassNameList() { return this._classNameList_; } public void setClassNameList(PClassNameList node) { if(this._classNameList_ != null) { this._classNameList_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._classNameList_ = node; } @Override public String toString() { return "" + toString(this._className_) + toString(this._comma_) + toString(this._classNameList_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._className_ == child) { this._className_ = null; return; } if(this._comma_ == child) { this._comma_ = null; return; } if(this._classNameList_ == child) { this._classNameList_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._className_ == oldChild) { setClassName((PClassName) newChild); return; } if(this._comma_ == oldChild) { setComma((TComma) newChild); return; } if(this._classNameList_ == oldChild) { setClassNameList((PClassNameList) newChild); return; } throw new RuntimeException("Not a child."); } }
3,865
20.241758
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AClassNameSingleClassNameList.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AClassNameSingleClassNameList extends PClassNameList { private PClassName _className_; public AClassNameSingleClassNameList() { // Constructor } public AClassNameSingleClassNameList( @SuppressWarnings("hiding") PClassName _className_) { // Constructor setClassName(_className_); } @Override public Object clone() { return new AClassNameSingleClassNameList( cloneNode(this._className_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAClassNameSingleClassNameList(this); } public PClassName getClassName() { return this._className_; } public void setClassName(PClassName node) { if(this._className_ != null) { this._className_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._className_ = node; } @Override public String toString() { return "" + toString(this._className_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._className_ == child) { this._className_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._className_ == oldChild) { setClassName((PClassName) newChild); return; } throw new RuntimeException("Not a child."); } }
2,010
19.947917
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/AClzzConstant.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class AClzzConstant extends PConstant { private TClass _id_; private TStringConstant _stringConstant_; public AClzzConstant() { // Constructor } public AClzzConstant( @SuppressWarnings("hiding") TClass _id_, @SuppressWarnings("hiding") TStringConstant _stringConstant_) { // Constructor setId(_id_); setStringConstant(_stringConstant_); } @Override public Object clone() { return new AClzzConstant( cloneNode(this._id_), cloneNode(this._stringConstant_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseAClzzConstant(this); } public TClass getId() { return this._id_; } public void setId(TClass node) { if(this._id_ != null) { this._id_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._id_ = node; } public TStringConstant getStringConstant() { return this._stringConstant_; } public void setStringConstant(TStringConstant node) { if(this._stringConstant_ != null) { this._stringConstant_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._stringConstant_ = node; } @Override public String toString() { return "" + toString(this._id_) + toString(this._stringConstant_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._id_ == child) { this._id_ = null; return; } if(this._stringConstant_ == child) { this._stringConstant_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._id_ == oldChild) { setId((TClass) newChild); return; } if(this._stringConstant_ == oldChild) { setStringConstant((TStringConstant) newChild); return; } throw new RuntimeException("Not a child."); } }
2,828
19.352518
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACmpBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACmpBinop extends PBinop { private TCmp _cmp_; public ACmpBinop() { // Constructor } public ACmpBinop( @SuppressWarnings("hiding") TCmp _cmp_) { // Constructor setCmp(_cmp_); } @Override public Object clone() { return new ACmpBinop( cloneNode(this._cmp_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACmpBinop(this); } public TCmp getCmp() { return this._cmp_; } public void setCmp(TCmp node) { if(this._cmp_ != null) { this._cmp_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._cmp_ = node; } @Override public String toString() { return "" + toString(this._cmp_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._cmp_ == child) { this._cmp_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._cmp_ == oldChild) { setCmp((TCmp) newChild); return; } throw new RuntimeException("Not a child."); } }
1,776
17.510417
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACmpeqBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACmpeqBinop extends PBinop { private TCmpeq _cmpeq_; public ACmpeqBinop() { // Constructor } public ACmpeqBinop( @SuppressWarnings("hiding") TCmpeq _cmpeq_) { // Constructor setCmpeq(_cmpeq_); } @Override public Object clone() { return new ACmpeqBinop( cloneNode(this._cmpeq_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACmpeqBinop(this); } public TCmpeq getCmpeq() { return this._cmpeq_; } public void setCmpeq(TCmpeq node) { if(this._cmpeq_ != null) { this._cmpeq_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._cmpeq_ = node; } @Override public String toString() { return "" + toString(this._cmpeq_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._cmpeq_ == child) { this._cmpeq_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._cmpeq_ == oldChild) { setCmpeq((TCmpeq) newChild); return; } throw new RuntimeException("Not a child."); } }
1,828
18.052083
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACmpgBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACmpgBinop extends PBinop { private TCmpg _cmpg_; public ACmpgBinop() { // Constructor } public ACmpgBinop( @SuppressWarnings("hiding") TCmpg _cmpg_) { // Constructor setCmpg(_cmpg_); } @Override public Object clone() { return new ACmpgBinop( cloneNode(this._cmpg_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACmpgBinop(this); } public TCmpg getCmpg() { return this._cmpg_; } public void setCmpg(TCmpg node) { if(this._cmpg_ != null) { this._cmpg_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._cmpg_ = node; } @Override public String toString() { return "" + toString(this._cmpg_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._cmpg_ == child) { this._cmpg_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._cmpg_ == oldChild) { setCmpg((TCmpg) newChild); return; } throw new RuntimeException("Not a child."); } }
1,802
17.78125
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACmpgeBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACmpgeBinop extends PBinop { private TCmpge _cmpge_; public ACmpgeBinop() { // Constructor } public ACmpgeBinop( @SuppressWarnings("hiding") TCmpge _cmpge_) { // Constructor setCmpge(_cmpge_); } @Override public Object clone() { return new ACmpgeBinop( cloneNode(this._cmpge_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACmpgeBinop(this); } public TCmpge getCmpge() { return this._cmpge_; } public void setCmpge(TCmpge node) { if(this._cmpge_ != null) { this._cmpge_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._cmpge_ = node; } @Override public String toString() { return "" + toString(this._cmpge_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._cmpge_ == child) { this._cmpge_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._cmpge_ == oldChild) { setCmpge((TCmpge) newChild); return; } throw new RuntimeException("Not a child."); } }
1,828
18.052083
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACmpgtBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACmpgtBinop extends PBinop { private TCmpgt _cmpgt_; public ACmpgtBinop() { // Constructor } public ACmpgtBinop( @SuppressWarnings("hiding") TCmpgt _cmpgt_) { // Constructor setCmpgt(_cmpgt_); } @Override public Object clone() { return new ACmpgtBinop( cloneNode(this._cmpgt_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACmpgtBinop(this); } public TCmpgt getCmpgt() { return this._cmpgt_; } public void setCmpgt(TCmpgt node) { if(this._cmpgt_ != null) { this._cmpgt_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._cmpgt_ = node; } @Override public String toString() { return "" + toString(this._cmpgt_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._cmpgt_ == child) { this._cmpgt_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._cmpgt_ == oldChild) { setCmpgt((TCmpgt) newChild); return; } throw new RuntimeException("Not a child."); } }
1,828
18.052083
107
java
soot
soot-master/src/main/generated/sablecc/soot/jimple/parser/node/ACmplBinop.java
/* This file was generated by SableCC (http://www.sablecc.org/). */ package soot.jimple.parser.node; import soot.jimple.parser.analysis.*; @SuppressWarnings("nls") public final class ACmplBinop extends PBinop { private TCmpl _cmpl_; public ACmplBinop() { // Constructor } public ACmplBinop( @SuppressWarnings("hiding") TCmpl _cmpl_) { // Constructor setCmpl(_cmpl_); } @Override public Object clone() { return new ACmplBinop( cloneNode(this._cmpl_)); } @Override public void apply(Switch sw) { ((Analysis) sw).caseACmplBinop(this); } public TCmpl getCmpl() { return this._cmpl_; } public void setCmpl(TCmpl node) { if(this._cmpl_ != null) { this._cmpl_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._cmpl_ = node; } @Override public String toString() { return "" + toString(this._cmpl_); } @Override void removeChild(@SuppressWarnings("unused") Node child) { // Remove child if(this._cmpl_ == child) { this._cmpl_ = null; return; } throw new RuntimeException("Not a child."); } @Override void replaceChild(@SuppressWarnings("unused") Node oldChild, @SuppressWarnings("unused") Node newChild) { // Replace child if(this._cmpl_ == oldChild) { setCmpl((TCmpl) newChild); return; } throw new RuntimeException("Not a child."); } }
1,802
17.78125
107
java