public class ConstructorDecl extends BodyDecl implements Cloneable
isDAbefore_Variable_values, isDUbefore_Variable_values, lookupVariable_String_values, typeThrowable_computed, typeThrowable_valuechildren, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, in$Circle, is$Final, numChildren, parent, PRIMITIVE_PACKAGE_NAME, state| Constructor and Description |
|---|
ConstructorDecl() |
ConstructorDecl(Modifiers p0,
String p1,
List<ParameterDeclaration> p2,
List<Access> p3,
Opt<Stmt> p4,
Block p5) |
ConstructorDecl(Modifiers p0,
Symbol p1,
List<ParameterDeclaration> p2,
List<Access> p3,
Opt<Stmt> p4,
Block p5) |
addsIndentationLevel, checkWarnings, collectFinally, declaresType, Define_ArrayList_exceptionRanges, Define_BodyDecl_enclosingBodyDecl, Define_boolean_resourcePreviouslyDeclared, Define_String_typeDeclIndent, generate, hostPackage, hostType, isDAbefore, isDUbefore, isEnumConstant, lookupMethod, lookupType, lookupType, lookupVariable, nameType, type, typeThrowable, visibleTypeParametersaccessControl, addChild, asImmediate, asLocal, asLocal, asRValue, beginExceptionRange, branchTarget, checkDUeverywhere, checkEnum, checkUncheckedConversion, clearLocations, cloneSubtree, collectBranches, collectEnclosingVariables, collectErrors, collectExceptions, collectTypesToHierarchy, collectTypesToSignatures, compilationUnit, Define_Annotation_lookupAnnotation, Define_boolean_hasPackage, Define_boolean_inExtendsOrImplements, Define_boolean_insideLoop, Define_boolean_insideSwitch, Define_boolean_isAnonymous, Define_boolean_isAnonymousDecl, Define_boolean_isDest, Define_boolean_isExplicitGenericConstructorAccess, Define_boolean_isIncOrDec, Define_boolean_isLocalClass, Define_boolean_isMemberType, Define_boolean_isNestedType, Define_boolean_isSource, Define_boolean_mayBeAbstract, Define_boolean_mayBeFinal, Define_boolean_mayBeNative, Define_boolean_mayBeStatic, Define_boolean_mayBeStrictfp, Define_boolean_mayBeSynchronized, Define_boolean_mayBeTransient, Define_boolean_mayBeVolatile, Define_boolean_reachableCatchClause, Define_boolean_reportUnreachable, Define_boolean_withinDeprecatedAnnotation, Define_boolean_withinSuppressWarnings, Define_Case_bind, Define_CatchClause_catchClause, Define_ClassInstanceExpr_getClassInstanceExpr, Define_Collection_lookupConstructor, Define_Collection_lookupSuperConstructor, Define_Collection_TypeDecl__caughtExceptions, Define_CompilationUnit_compilationUnit, Define_ConstructorDecl_constructorDecl, Define_ConstructorDecl_unknownConstructor, Define_ElementValue_lookupElementTypeValue, Define_Expr_nestedScope, Define_GLBType_lookupGLBType, Define_LabeledStmt_lookupLabel, Define_LUBType_lookupLUBType, Define_MethodDecl_unknownMethod, Define_SimpleSet_allImportedTypes, Define_SimpleSet_lookupType, Define_soot_jimple_Stmt_condition_false_label, Define_soot_jimple_Stmt_condition_true_label, Define_String_hostPackage, Define_String_methodHost, Define_String_packageName, Define_TypeDecl_assignConvertedType, Define_TypeDecl_componentType, Define_TypeDecl_declType, Define_TypeDecl_enclosingAnnotationDecl, Define_TypeDecl_enclosingType, Define_TypeDecl_expectedType, Define_TypeDecl_genericDecl, Define_TypeDecl_hostType, Define_TypeDecl_lookupType, Define_TypeDecl_lookupWildcardExtends, Define_TypeDecl_lookupWildcardSuper, Define_TypeDecl_returnType, Define_TypeDecl_superType, Define_TypeDecl_switchType, Define_TypeDecl_typeBoolean, Define_TypeDecl_typeByte, Define_TypeDecl_typeChar, Define_TypeDecl_typeCloneable, Define_TypeDecl_typeDouble, Define_TypeDecl_typeError, Define_TypeDecl_typeException, Define_TypeDecl_typeFloat, Define_TypeDecl_typeInt, Define_TypeDecl_typeLong, Define_TypeDecl_typeNull, Define_TypeDecl_typeNullPointerException, Define_TypeDecl_typeObject, Define_TypeDecl_typeRuntimeException, Define_TypeDecl_typeSerializable, Define_TypeDecl_typeShort, Define_TypeDecl_typeString, Define_TypeDecl_typeThrowable, Define_TypeDecl_typeVoid, Define_TypeDecl_typeWildcard, Define_TypeDecl_unknownType, Define_Variable_unknownField, Define_VariableScope_outerScope, definesLabel, definiteAssignment, dumpString, dumpTree, dumpTree, dumpTreeNoRewrite, dumpTreeNoRewrite, duringAnnotations, duringAnonymousClasses, duringBoundNames, duringDU, duringEnums, duringGenericTypeVariables, duringImplicitConstructor, duringLiterals, duringNameResolution, duringSyntacticClassification, duringVariableDeclarationTransformation, emitConstant, end, endExceptionRange, error, errorPrefix, exceptionHandling, extractIndent, extractSingleType, flushCaches, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getNumChildNoTransform, getParent, in$Circle, in$Circle, indent, insertChild, is$Final, is$Final, isDescendantTo, isStringAdd, iterator, jimplify1phase1, jimplify2, lineNumber, location, newLabel, options, putSimpleSetElement, reachedException, removeChild, removeInstanceMethods, removeInstanceVariables, replace, setChild, setEnd, setLocation, setParent, setStart, sourceFile, start, state, toString, unassignedEverywhere, usesTypeVariable, varChildIndex, varChildIndex, warning, warningPrefix, withgetColumn, getEnd, getId, getLine, getStart, makePositionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected boolean addEnclosingVariables
public SootMethod sootMethod
protected String tokenString_ID
public int IDstart
public int IDend
protected Map accessibleFrom_TypeDecl_values
protected Map isDAafter_Variable_values
protected Map isDUafter_Variable_values
protected Map throwsException_TypeDecl_values
protected boolean name_computed
protected String name_value
protected boolean signature_computed
protected String signature_value
protected Map sameSignature_ConstructorDecl_values
protected Map moreSpecificThan_ConstructorDecl_values
protected Map parameterDeclaration_String_values
protected Map circularThisInvocation_ConstructorDecl_values
protected boolean sourceConstructorDecl_computed
protected ConstructorDecl sourceConstructorDecl_value
protected boolean sootMethod_computed
protected SootMethod sootMethod_value
protected boolean sootRef_computed
protected SootMethodRef sootRef_value
protected boolean localNumOfFirstParameter_computed
protected int localNumOfFirstParameter_value
protected boolean offsetFirstEnclosingVariable_computed
protected int offsetFirstEnclosingVariable_value
protected Map handlesException_TypeDecl_values
public ConstructorDecl()
public ConstructorDecl(Modifiers p0, String p1, List<ParameterDeclaration> p2, List<Access> p3, Opt<Stmt> p4, Block p5)
public void flushCache()
flushCache in class BodyDeclpublic void flushCollectionCache()
flushCollectionCache in class BodyDeclpublic ConstructorDecl clone() throws CloneNotSupportedException
clone in class BodyDeclCloneNotSupportedExceptionpublic ConstructorDecl copy()
public ConstructorDecl fullCopy()
public boolean applicable(List argList)
public void setDefaultConstructor()
public void checkModifiers()
public void toString(StringBuffer s)
protected void transformEnumConstructors()
transformEnumConstructors in class ASTNode<ASTNode>public BodyDecl substitutedBodyDecl(Parameterization parTypeDecl)
substitutedBodyDecl in class BodyDeclpublic void addEnclosingVariables()
public ConstructorDecl createAccessor()
protected List createAccessorParameters()
protected TypeDecl createAnonymousJavaTypeDecl()
public void transformation()
transformation in class ASTNode<ASTNode>public void jimplify1phase2()
jimplify1phase2 in class BodyDeclpublic void addAttributes()
addAttributes in class ASTNode<ASTNode>public void addRuntimeVisibleParameterAnnotationsAttribute(Collection c)
public void addRuntimeInvisibleParameterAnnotationsAttribute(Collection c)
public void addSourceLevelParameterAnnotationsAttribute(Collection c)
public void init$Children()
init$Children in class BodyDeclprotected int numChildren()
numChildren in class BodyDeclpublic boolean mayHaveRewrite()
mayHaveRewrite in class BodyDeclpublic void setModifiers(Modifiers node)
node - The new node to replace the Modifiers child.public Modifiers getModifiers()
public Modifiers getModifiersNoTransform()
This method does not invoke AST transformations.
public void setID(String value)
value - The new value for the lexeme ID.public void setID(Symbol symbol)
public String getID()
public void setParameterList(List<ParameterDeclaration> list)
list - The new list node to be used as the Parameter list.public int getNumParameter()
public int getNumParameterNoTransform()
public ParameterDeclaration getParameter(int i)
i in the Parameter list..i - Index of the element to return.i in the Parameter list.public void addParameter(ParameterDeclaration node)
node - The element to append to the Parameter list.public void addParameterNoTransform(ParameterDeclaration node)
public void setParameter(ParameterDeclaration node, int i)
i with the new node
node.node - The new node to replace the old list element.i - The list index of the node to be replaced.public List<ParameterDeclaration> getParameters()
public List<ParameterDeclaration> getParametersNoTransform()
This method does not invoke AST transformations.
public List<ParameterDeclaration> getParameterList()
public List<ParameterDeclaration> getParameterListNoTransform()
This method does not invoke AST transformations.
public void setExceptionList(List<Access> list)
list - The new list node to be used as the Exception list.public int getNumException()
public int getNumExceptionNoTransform()
public Access getException(int i)
i in the Exception list..i - Index of the element to return.i in the Exception list.public void addException(Access node)
node - The element to append to the Exception list.public void addExceptionNoTransform(Access node)
public void setException(Access node, int i)
i with the new node
node.node - The new node to replace the old list element.i - The list index of the node to be replaced.public List<Access> getExceptions()
public List<Access> getExceptionsNoTransform()
This method does not invoke AST transformations.
public List<Access> getExceptionList()
public List<Access> getExceptionListNoTransform()
This method does not invoke AST transformations.
public void setConstructorInvocationOpt(Opt<Stmt> opt)
Opt node containing the child ConstructorInvocation, not the
actual child!opt - The new node to be used as the optional node for the
ConstructorInvocation child.public boolean hasConstructorInvocation()
true if the optional ConstructorInvocation child exists,
false if it does not.public Stmt getConstructorInvocation()
null otherwise.public void setConstructorInvocation(Stmt node)
node - The new node to be used as the ConstructorInvocation child.public Opt<Stmt> getConstructorInvocationOptNoTransform()
Opt node containing the child ConstructorInvocation, not the
actual child!
This method does not invoke AST transformations.
public void setBlock(Block node)
node - The new node to replace the Block child.public Block getBlock()
public Block getBlockNoTransform()
This method does not invoke AST transformations.
public boolean accessibleFrom(TypeDecl type)
public boolean throwsException(TypeDecl exceptionType)
public String name()
public String signature()
public boolean sameSignature(ConstructorDecl c)
public boolean moreSpecificThan(ConstructorDecl m)
public boolean isDefaultConstructor()
public boolean isSynthetic()
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean circularThisInvocation(ConstructorDecl decl)
public TypeDecl type()
public boolean hasAnnotationSuppressWarnings(String s)
hasAnnotationSuppressWarnings in class BodyDeclpublic boolean isDeprecated()
isDeprecated in class BodyDeclpublic ConstructorDecl sourceConstructorDecl()
public boolean applicableBySubtyping(List argList)
public boolean applicableByMethodInvocationConversion(List argList)
public boolean applicableVariableArity(List argList)
public boolean potentiallyApplicable(List argList)
public int arity()
public boolean isVariableArity()
public ParameterDeclaration lastParameter()
public boolean needsEnclosing()
public boolean needsSuperEnclosing()
public TypeDecl enclosing()
public TypeDecl superEnclosing()
public int sootTypeModifiers()
public SootMethod sootMethod()
public SootMethodRef sootRef()
public int localNumOfFirstParameter()
public int offsetFirstEnclosingVariable()
public ConstructorDecl erasedConstructor()
public boolean hasAnnotationSafeVarargs()
hasAnnotationSafeVarargs in class BodyDeclpublic boolean hasIllegalAnnotationSafeVarargs()
hasIllegalAnnotationSafeVarargs in class BodyDeclpublic boolean handlesException(TypeDecl exceptionType)
public TypeDecl unknownType()
public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v)
Define_boolean_isDAbefore in class ASTNode<ASTNode>public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v)
Define_boolean_isDUbefore in class ASTNode<ASTNode>public boolean Define_boolean_handlesException(ASTNode caller, ASTNode child, TypeDecl exceptionType)
Define_boolean_handlesException in class ASTNode<ASTNode>public Collection Define_Collection_lookupMethod(ASTNode caller, ASTNode child, String name)
Define_Collection_lookupMethod in class ASTNode<ASTNode>public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller, ASTNode child, String name)
Define_SimpleSet_lookupVariable in class ASTNode<ASTNode>public boolean Define_boolean_mayBePublic(ASTNode caller, ASTNode child)
Define_boolean_mayBePublic in class ASTNode<ASTNode>public boolean Define_boolean_mayBeProtected(ASTNode caller, ASTNode child)
Define_boolean_mayBeProtected in class ASTNode<ASTNode>public boolean Define_boolean_mayBePrivate(ASTNode caller, ASTNode child)
Define_boolean_mayBePrivate in class ASTNode<ASTNode>public ASTNode Define_ASTNode_enclosingBlock(ASTNode caller, ASTNode child)
Define_ASTNode_enclosingBlock in class ASTNode<ASTNode>public NameType Define_NameType_nameType(ASTNode caller, ASTNode child)
Define_NameType_nameType in class ASTNode<ASTNode>public TypeDecl Define_TypeDecl_enclosingInstance(ASTNode caller, ASTNode child)
Define_TypeDecl_enclosingInstance in class ASTNode<ASTNode>public boolean Define_boolean_inExplicitConstructorInvocation(ASTNode caller, ASTNode child)
Define_boolean_inExplicitConstructorInvocation in class ASTNode<ASTNode>public boolean Define_boolean_inStaticContext(ASTNode caller, ASTNode child)
Define_boolean_inStaticContext in class ASTNode<ASTNode>public boolean Define_boolean_reachable(ASTNode caller, ASTNode child)
Define_boolean_reachable in class ASTNode<ASTNode>public boolean Define_boolean_isMethodParameter(ASTNode caller, ASTNode child)
Define_boolean_isMethodParameter in class ASTNode<ASTNode>public boolean Define_boolean_isConstructorParameter(ASTNode caller, ASTNode child)
Define_boolean_isConstructorParameter in class ASTNode<ASTNode>public boolean Define_boolean_isExceptionHandlerParameter(ASTNode caller, ASTNode child)
Define_boolean_isExceptionHandlerParameter in class ASTNode<ASTNode>public boolean Define_boolean_mayUseAnnotationTarget(ASTNode caller, ASTNode child, String name)
Define_boolean_mayUseAnnotationTarget in class ASTNode<ASTNode>public boolean Define_boolean_variableArityValid(ASTNode caller, ASTNode child)
Define_boolean_variableArityValid in class ASTNode<ASTNode>public int Define_int_localNum(ASTNode caller, ASTNode child)
Define_int_localNum in class ASTNode<ASTNode>public boolean Define_boolean_enclosedByExceptionHandler(ASTNode caller, ASTNode child)
Define_boolean_enclosedByExceptionHandler in class ASTNode<ASTNode>public boolean Define_boolean_inhModifiedInScope(ASTNode caller, ASTNode child, Variable var)
Define_boolean_inhModifiedInScope in class ASTNode<ASTNode>public boolean Define_boolean_isCatchParam(ASTNode caller, ASTNode child)
Define_boolean_isCatchParam in class ASTNode<ASTNode>Copyright © 2020 Soot OSS. All rights reserved.