public class ASTNode<T extends ASTNode> extends Symbol implements Cloneable, Iterable<T>
| Modifier and Type | Field and Description |
|---|---|
protected ASTNode[] |
children |
static boolean |
generatedWithCacheCycle |
static boolean |
generatedWithCircularEnabled |
static boolean |
generatedWithComponentCheck |
boolean |
in$Circle |
boolean |
is$Final |
protected int |
numChildren |
protected ASTNode |
parent |
protected static String |
PRIMITIVE_PACKAGE_NAME |
protected static ASTNode$State |
state |
| Constructor and Description |
|---|
ASTNode() |
getColumn, getEnd, getId, getLine, getStart, makePositionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected static final String PRIMITIVE_PACKAGE_NAME
public static final boolean generatedWithCircularEnabled
public static final boolean generatedWithCacheCycle
public static final boolean generatedWithComponentCheck
protected static ASTNode$State state
public boolean in$Circle
public boolean is$Final
protected int numChildren
protected ASTNode parent
protected ASTNode[] children
public void flushCache()
public void flushCollectionCache()
public ASTNode<T> clone() throws CloneNotSupportedException
clone in class SymbolCloneNotSupportedExceptionpublic ASTNode<T> fullCopy()
public void accessControl()
protected void collectExceptions(Collection c, ASTNode target)
public void collectBranches(Collection c)
public int varChildIndex(Block b)
public int varChildIndex(TypeDecl t)
public void definiteAssignment()
protected boolean checkDUeverywhere(Variable v)
protected boolean isDescendantTo(ASTNode node)
protected String sourceFile()
public ASTNode setStart(int i)
public int start()
public ASTNode setEnd(int i)
public int end()
public String location()
public String errorPrefix()
public String warningPrefix()
public void error(String s)
public void warning(String s)
public void exceptionHandling()
protected boolean reachedException(TypeDecl type)
public static Collection removeInstanceMethods(Collection c)
protected static void putSimpleSetElement(HashMap map, Object key, Object value)
public void nameCheck()
public Options options()
public void toString(StringBuffer s)
public String dumpTree()
public void dumpTree(StringBuffer s, int j)
public String dumpTreeNoRewrite()
protected void dumpTreeNoRewrite(StringBuffer s, int indent)
public void typeCheck()
public void clearLocations()
protected void transformEnumConstructors()
protected void checkEnum(EnumDecl enumDecl)
public void flushCaches()
public void transformation()
public void jimplify1phase1()
public void jimplify1phase2()
public void jimplify2()
public void jimplify2(Body b)
protected Stmt newLabel()
public void addAttributes()
public ASTNode cloneSubtree()
public void checkWarnings()
public void collectTypesToHierarchy(Collection<Type> set)
public void collectTypesToSignatures(Collection<Type> set)
public void init$Children()
public final ASTNode$State state()
public boolean in$Circle()
public void in$Circle(boolean b)
public boolean is$Final()
public void is$Final(boolean b)
public T getChild(int i)
public int getIndexOfChild(ASTNode node)
public void addChild(T node)
public final T getChildNoTransform(int i)
This method does not invoke AST transformations.
protected int numChildren()
public int getNumChild()
public final int getNumChildNoTransform()
This method does not invoke AST transformations.
public void setChild(ASTNode node, int i)
public void insertChild(ASTNode node, int i)
public void removeChild(int i)
public ASTNode getParent()
public void setParent(ASTNode node)
protected boolean duringImplicitConstructor()
protected boolean duringBoundNames()
protected boolean duringNameResolution()
protected boolean duringSyntacticClassification()
protected boolean duringAnonymousClasses()
protected boolean duringVariableDeclarationTransformation()
protected boolean duringLiterals()
protected boolean duringDU()
protected boolean duringAnnotations()
protected boolean duringEnums()
protected boolean duringGenericTypeVariables()
public boolean mayHaveRewrite()
public void collectErrors()
public int lineNumber()
public String indent()
public String extractIndent()
public boolean addsIndentationLevel()
public String dumpString()
public boolean usesTypeVariable()
public boolean isStringAdd()
public boolean definesLabel()
public CompilationUnit compilationUnit()
public ASTNode rewriteTo()
public ConstructorDecl Define_ConstructorDecl_constructorDecl(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_componentType(ASTNode caller, ASTNode child)
public LabeledStmt Define_LabeledStmt_lookupLabel(ASTNode caller, ASTNode child, String name)
public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v)
public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v)
public TypeDecl Define_TypeDecl_typeException(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeRuntimeException(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeNullPointerException(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeThrowable(ASTNode caller, ASTNode child)
public boolean Define_boolean_handlesException(ASTNode caller, ASTNode child, TypeDecl exceptionType)
public Collection Define_Collection_lookupConstructor(ASTNode caller, ASTNode child)
public Collection Define_Collection_lookupSuperConstructor(ASTNode caller, ASTNode child)
public Collection Define_Collection_lookupMethod(ASTNode caller, ASTNode child, String name)
public TypeDecl Define_TypeDecl_typeObject(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeCloneable(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeSerializable(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeBoolean(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeDouble(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeString(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_unknownType(ASTNode caller, ASTNode child)
public boolean Define_boolean_hasPackage(ASTNode caller, ASTNode child, String packageName)
public TypeDecl Define_TypeDecl_lookupType(ASTNode caller, ASTNode child, String packageName, String typeName)
public SimpleSet Define_SimpleSet_lookupType(ASTNode caller, ASTNode child, String name)
public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name)
public boolean Define_boolean_mayBeProtected(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayBePrivate(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayBeAbstract(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayBeVolatile(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayBeTransient(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayBeStrictfp(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayBeSynchronized(ASTNode caller, ASTNode child)
public ASTNode Define_ASTNode_enclosingBlock(ASTNode caller, ASTNode child)
public VariableScope Define_VariableScope_outerScope(ASTNode caller, ASTNode child)
public boolean Define_boolean_insideSwitch(ASTNode caller, ASTNode child)
public String Define_String_typeDeclIndent(ASTNode caller, ASTNode child)
public Variable Define_Variable_unknownField(ASTNode caller, ASTNode child)
public MethodDecl Define_MethodDecl_unknownMethod(ASTNode caller, ASTNode child)
public ConstructorDecl Define_ConstructorDecl_unknownConstructor(ASTNode caller, ASTNode child)
public BodyDecl Define_BodyDecl_enclosingBodyDecl(ASTNode caller, ASTNode child)
public boolean Define_boolean_isMemberType(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_switchType(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_returnType(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_enclosingInstance(ASTNode caller, ASTNode child)
public boolean Define_boolean_inExplicitConstructorInvocation(ASTNode caller, ASTNode child)
public boolean Define_boolean_inStaticContext(ASTNode caller, ASTNode child)
public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child)
public boolean Define_boolean_isMethodParameter(ASTNode caller, ASTNode child)
public boolean Define_boolean_isConstructorParameter(ASTNode caller, ASTNode child)
public boolean Define_boolean_isExceptionHandlerParameter(ASTNode caller, ASTNode child)
public boolean Define_boolean_mayUseAnnotationTarget(ASTNode caller, ASTNode child, String name)
public ElementValue Define_ElementValue_lookupElementTypeValue(ASTNode caller, ASTNode child, String name)
public boolean Define_boolean_withinSuppressWarnings(ASTNode caller, ASTNode child, String s)
public boolean Define_boolean_withinDeprecatedAnnotation(ASTNode caller, ASTNode child)
public Annotation Define_Annotation_lookupAnnotation(ASTNode caller, ASTNode child, TypeDecl typeDecl)
public TypeDecl Define_TypeDecl_enclosingAnnotationDecl(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_assignConvertedType(ASTNode caller, ASTNode child)
public boolean Define_boolean_inExtendsOrImplements(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_typeWildcard(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_lookupWildcardExtends(ASTNode caller, ASTNode child, TypeDecl typeDecl)
public TypeDecl Define_TypeDecl_lookupWildcardSuper(ASTNode caller, ASTNode child, TypeDecl typeDecl)
public LUBType Define_LUBType_lookupLUBType(ASTNode caller, ASTNode child, Collection bounds)
public GLBType Define_GLBType_lookupGLBType(ASTNode caller, ASTNode child, ArrayList bounds)
public TypeDecl Define_TypeDecl_genericDecl(ASTNode caller, ASTNode child)
public boolean Define_boolean_variableArityValid(ASTNode caller, ASTNode child)
public TypeDecl Define_TypeDecl_expectedType(ASTNode caller, ASTNode child)
public Stmt Define_soot_jimple_Stmt_condition_false_label(ASTNode caller, ASTNode child)
public Stmt Define_soot_jimple_Stmt_condition_true_label(ASTNode caller, ASTNode child)
public boolean Define_boolean_enclosedByExceptionHandler(ASTNode caller, ASTNode child)
public ArrayList Define_ArrayList_exceptionRanges(ASTNode caller, ASTNode child)
public boolean Define_boolean_isCatchParam(ASTNode caller, ASTNode child)
public CatchClause Define_CatchClause_catchClause(ASTNode caller, ASTNode child)
public boolean Define_boolean_resourcePreviouslyDeclared(ASTNode caller, ASTNode child, String name)
public ClassInstanceExpr Define_ClassInstanceExpr_getClassInstanceExpr(ASTNode caller, ASTNode child)
public boolean Define_boolean_isAnonymousDecl(ASTNode caller, ASTNode child)
public boolean Define_boolean_isExplicitGenericConstructorAccess(ASTNode caller, ASTNode child)
public CompilationUnit Define_CompilationUnit_compilationUnit(ASTNode caller, ASTNode child)
public SimpleSet Define_SimpleSet_allImportedTypes(ASTNode caller, ASTNode child, String name)
public TypeDecl Define_TypeDecl_enclosingType(ASTNode caller, ASTNode child)
public boolean Define_boolean_isNestedType(ASTNode caller, ASTNode child)
public boolean Define_boolean_isLocalClass(ASTNode caller, ASTNode child)
public boolean Define_boolean_inhModifiedInScope(ASTNode caller, ASTNode child, Variable var)
public boolean Define_boolean_reachableCatchClause(ASTNode caller, ASTNode child, TypeDecl exceptionType)
public Collection<TypeDecl> Define_Collection_TypeDecl__caughtExceptions(ASTNode caller, ASTNode child)
Copyright © 2020 Soot OSS. All rights reserved.