public class MethodDecl extends MemberDecl implements Cloneable, SimpleSet, Iterator
SimpleSet.SimpleSetImplisDAafter_Variable_values, isDAbefore_Variable_values, isDUafter_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 |
|---|
MethodDecl() |
MethodDecl(Modifiers p0,
Access p1,
String p2,
List<ParameterDeclaration> p3,
List<Access> p4,
Opt<Block> p5) |
MethodDecl(Modifiers p0,
Access p1,
Symbol p2,
List<ParameterDeclaration> p3,
List<Access> p4,
Opt<Block> p5) |
isConstantaddsIndentationLevel, collectFinally, declaresType, Define_ArrayList_exceptionRanges, Define_BodyDecl_enclosingBodyDecl, Define_boolean_resourcePreviouslyDeclared, Define_String_typeDeclIndent, generate, hostPackage, hostType, isDAafter, isDAbefore, isDUafter, isDUbefore, isEnumConstant, lookupMethod, lookupType, lookupType, lookupVariable, nameType, type, typeThrowableaccessControl, 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_inExplicitConstructorInvocation, 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_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_lookupMethod, 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_enclosingInstance, Define_TypeDecl_enclosingType, Define_TypeDecl_expectedType, Define_TypeDecl_genericDecl, Define_TypeDecl_hostType, Define_TypeDecl_lookupType, Define_TypeDecl_lookupWildcardExtends, Define_TypeDecl_lookupWildcardSuper, 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, 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, jimplify1phase1, jimplify2, location, newLabel, options, putSimpleSetElement, reachedException, removeChild, removeInstanceMethods, removeInstanceVariables, replace, setChild, setEnd, setLocation, setParent, setStart, sourceFile, start, state, toString, transformEnumConstructors, unassignedEverywhere, varChildIndex, varChildIndex, warning, warningPrefix, withgetColumn, getEnd, getId, getLine, getStart, makePositionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingforEach, spliteratorpublic SootMethod sootMethod
protected String tokenString_ID
public int IDstart
public int IDend
protected Map accessibleFrom_TypeDecl_values
protected Map throwsException_TypeDecl_values
protected boolean signature_computed
protected String signature_value
protected Map moreSpecificThan_MethodDecl_values
protected Map overrides_MethodDecl_values
protected Map hides_MethodDecl_values
protected Map parameterDeclaration_String_values
protected boolean type_computed
protected TypeDecl type_value
protected boolean usesTypeVariable_computed
protected boolean usesTypeVariable_value
protected boolean sourceMethodDecl_computed
protected MethodDecl sourceMethodDecl_value
protected boolean sootMethod_computed
protected SootMethod sootMethod_value
protected boolean sootRef_computed
protected SootMethodRef sootRef_value
protected boolean offsetBeforeParameters_computed
protected int offsetBeforeParameters_value
protected boolean offsetAfterParameters_computed
protected int offsetAfterParameters_value
protected Map handlesException_TypeDecl_values
public MethodDecl()
public MethodDecl(Modifiers p0, Access p1, String p2, List<ParameterDeclaration> p3, List<Access> p4, Opt<Block> p5)
public void flushCache()
flushCache in class MemberDeclpublic void flushCollectionCache()
flushCollectionCache in class MemberDeclpublic MethodDecl clone() throws CloneNotSupportedException
clone in class MemberDeclCloneNotSupportedExceptionpublic MethodDecl copy()
public MethodDecl fullCopy()
public boolean isSingleton()
isSingleton in interface SimpleSetpublic boolean isSingleton(Object o)
isSingleton in interface SimpleSetpublic Iterator iterator()
public void toString(StringBuffer s)
public BodyDecl substitutedBodyDecl(Parameterization parTypeDecl)
substitutedBodyDecl in class BodyDeclpublic Opt substituteBody(Parameterization parTypeDecl)
public MethodDecl createAccessor(TypeDecl methodQualifier)
public MethodDecl createSuperAccessor(TypeDecl methodQualifier)
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 transformation()
transformation in class ASTNode<ASTNode>public void checkWarnings()
checkWarnings in class BodyDeclpublic void init$Children()
init$Children in class MemberDeclprotected int numChildren()
numChildren in class MemberDeclpublic boolean mayHaveRewrite()
mayHaveRewrite in class MemberDeclpublic 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 setTypeAccess(Access node)
node - The new node to replace the TypeAccess child.public Access getTypeAccess()
public Access getTypeAccessNoTransform()
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 setBlockOpt(Opt<Block> opt)
Opt
node containing the child Block, not the actual child!opt - The new node to be used as the optional node for the Block
child.public boolean hasBlock()
true if the optional Block child exists, false if
it does not.public Block getBlock()
null otherwise.public void setBlock(Block node)
node - The new node to be used as the Block child.public Opt<Block> getBlockOptNoTransform()
Opt node
containing the child Block, not the actual child!
This method does not invoke AST transformations.
public void checkModifiers()
checkModifiers in class MemberDeclpublic boolean accessibleFrom(TypeDecl type)
public int lineNumber()
lineNumber in class ASTNode<ASTNode>public boolean throwsException(TypeDecl exceptionType)
public String name()
public String signature()
public boolean sameSignature(MethodDecl m)
public boolean moreSpecificThan(MethodDecl m)
public boolean overrides(MethodDecl m)
public boolean hides(MethodDecl m)
public boolean isSynthetic()
isSynthetic in class MemberDeclpublic boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isAbstract()
public boolean isStatic()
isStatic in class MemberDeclpublic boolean isFinal()
public boolean isSynchronized()
public boolean isNative()
public boolean isStrictfp()
public String dumpString()
dumpString in class ASTNode<ASTNode>public TypeDecl type()
public boolean mayOverrideReturn(MethodDecl m)
public boolean annotationMethodOverride()
public boolean hasAnnotationSuppressWarnings(String s)
hasAnnotationSuppressWarnings in class BodyDeclpublic boolean isDeprecated()
isDeprecated in class BodyDeclpublic boolean usesTypeVariable()
usesTypeVariable in class ASTNode<ASTNode>public MethodDecl sourceMethodDecl()
public boolean visibleTypeParameters()
visibleTypeParameters in class BodyDeclpublic int arity()
public boolean isVariableArity()
public ParameterDeclaration lastParameter()
public int sootTypeModifiers()
public SootMethod sootMethod()
public SootMethodRef sootRef()
public int offsetBeforeParameters()
public int offsetAfterParameters()
public MethodDecl erasedMethod()
public boolean hasAnnotationSafeVarargs()
hasAnnotationSafeVarargs in class BodyDeclpublic boolean hasIllegalAnnotationSafeVarargs()
hasIllegalAnnotationSafeVarargs in class BodyDeclpublic boolean suppressWarnings(String type)
public boolean handlesException(TypeDecl exceptionType)
public MethodDecl unknownMethod()
public TypeDecl typeObject()
public boolean withinSuppressWarnings(String s)
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 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 boolean Define_boolean_mayBeAbstract(ASTNode caller, ASTNode child)
Define_boolean_mayBeAbstract in class ASTNode<ASTNode>public boolean Define_boolean_mayBeStatic(ASTNode caller, ASTNode child)
Define_boolean_mayBeStatic in class ASTNode<ASTNode>public boolean Define_boolean_mayBeFinal(ASTNode caller, ASTNode child)
Define_boolean_mayBeFinal in class ASTNode<ASTNode>public boolean Define_boolean_mayBeSynchronized(ASTNode caller, ASTNode child)
Define_boolean_mayBeSynchronized in class ASTNode<ASTNode>public boolean Define_boolean_mayBeNative(ASTNode caller, ASTNode child)
Define_boolean_mayBeNative in class ASTNode<ASTNode>public boolean Define_boolean_mayBeStrictfp(ASTNode caller, ASTNode child)
Define_boolean_mayBeStrictfp 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_returnType(ASTNode caller, ASTNode child)
Define_TypeDecl_returnType 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>public ASTNode rewriteTo()
rewriteTo in class MemberDeclCopyright © 2020 Soot OSS. All rights reserved.