Package soot.JastAddJ
Class ParInterfaceDecl
- java.lang.Object
-
- beaver.Symbol
-
- soot.JastAddJ.ASTNode<ASTNode>
-
- soot.JastAddJ.TypeDecl
-
- soot.JastAddJ.ReferenceType
-
- soot.JastAddJ.InterfaceDecl
-
- soot.JastAddJ.ParInterfaceDecl
-
- All Implemented Interfaces:
Cloneable,Iterable<ASTNode>,Iterator,MemberSubstitutor,Parameterization,ParTypeDecl,SimpleSet,VariableScope
- Direct Known Subclasses:
RawInterfaceDecl
public class ParInterfaceDecl extends InterfaceDecl implements Cloneable, ParTypeDecl, MemberSubstitutor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface soot.JastAddJ.SimpleSet
SimpleSet.SimpleSetImpl
-
-
Field Summary
-
Fields inherited from class soot.JastAddJ.InterfaceDecl
ancestorMethods_String_values, castingConversionTo_TypeDecl_values, implementedInterfaces_computed, implementedInterfaces_value, isCircular_computed, isCircular_initialized, isCircular_value, isCircular_visited, isStatic_computed, isStatic_value, memberFields_String_values, memberFieldsMap_computed, memberFieldsMap_value, memberTypes_String_values, methodsSignatureMap_computed, methodsSignatureMap_value, sootClass_computed, sootClass_value
-
Fields inherited from class soot.JastAddJ.ReferenceType
jvmName_computed, jvmName_value, narrowingConversionTo_TypeDecl_values, unboxed_computed, unboxed_value
-
Fields inherited from class soot.JastAddJ.TypeDecl
accessibleFrom_TypeDecl_values, accessibleFromExtend_TypeDecl_values, accessibleFromPackage_String_values, accessorCounter, anonymousIndex, arrayType_computed, arrayType_value, boxed_computed, boxed_value, clinit, componentType_computed, componentType_value, containedIn_TypeDecl_values, createEnumArray_TypeDecl_values, createEnumIndex_EnumConstant_values, createEnumMethod_TypeDecl_values, dimension_computed, dimension_value, elementType_computed, elementType_value, enclosingVariables_computed, enclosingVariables_value, getSootClassDecl_computed, getSootClassDecl_value, getSootField_String_TypeDecl_values, getSootType_computed, getSootType_value, hasAbstract_computed, hasAbstract_value, IDend, IDstart, inExplicitConstructorInvocation_computed, inExplicitConstructorInvocation_value, innerClassesAttributeEntries_computed, innerClassesAttributeEntries_value, inStaticContext_computed, inStaticContext_value, isAnonymous_computed, isAnonymous_value, isCheckedException_computed, isCheckedException_value, isDAbefore_Variable_values, isDUbefore_Variable_values, isException_computed, isException_value, isIterable_computed, isIterable_value, isObject_computed, isObject_value, isPublic_computed, isPublic_value, isString_computed, isString_value, isUncheckedException_computed, isUncheckedException_value, localFieldsMap_computed, localFieldsMap_value, lookupMethod_String_values, lookupType_String_values, lookupVariable_String_values, mayCatch_TypeDecl_values, methodInvocationConversionTo_TypeDecl_values, methodsNameMap_computed, methodsNameMap_value, needsClinit_computed, needsClinit_value, packageName_computed, packageName_value, tokenString_ID, typeError_computed, typeError_value, typeException_computed, typeException_value, typeObject_computed, typeObject_value, typeRuntimeException_computed, typeRuntimeException_value, uniqueIndex_computed, uniqueIndex_value, unknownType_computed, unknownType_value, unqualifiedLookupMethod_String_values
-
Fields inherited from class soot.JastAddJ.ASTNode
children, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, in$Circle, is$Final, numChildren, parent, PRIMITIVE_PACKAGE_NAME, state
-
-
Constructor Summary
Constructors Constructor Description ParInterfaceDecl()ParInterfaceDecl(Modifiers p0, Symbol p1, List<Access> p2)ParInterfaceDecl(Modifiers p0, String p1, List<Access> p2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArgument(Access node)Append an element to the Argument list.voidaddArgumentNoTransform(Access node)voidaddBodyDecl(BodyDecl node)Append an element to the BodyDecl list.voidaddBodyDeclNoTransform(BodyDecl node)voidaddSuperInterfaceId(Access node)Append an element to the SuperInterfaceId list.voidaddSuperInterfaceIdNoTransform(Access node)ParInterfaceDeclclone()voidcollectErrors()The collectErrors method is refined so that it calls the checkWarnings method on each ASTNode to report unchecked warnings.Collectionconstructors()ParInterfaceDeclcopy()AccesscreateQualifiedAccess()NameTypeDefine_NameType_nameType(ASTNode caller, ASTNode child)TypeDeclDefine_TypeDecl_genericDecl(ASTNode caller, ASTNode child)TypeDeclerasure()voidflushCache()voidflushCollectionCache()ParInterfaceDeclfullCopy()Create a deep copy of the AST subtree at this node.StringfullName()TypeDeclgenericDecl()AccessgetArgument(int i)Retrieves the element at indexiin the Argument list..List<Access>getArgumentList()Retrieves the Argument list.List<Access>getArgumentListNoTransform()Retrieves the Argument list.List<Access>getArguments()Retrieves the Argument list.List<Access>getArgumentsNoTransform()Retrieves the Argument list.BodyDeclgetBodyDecl(int i)Retrieves the element at indexiin the BodyDecl list..ListgetBodyDeclList()Retrieves the BodyDecl list.protected intgetBodyDeclListChildPosition()Retrieves the child position of the BodyDecl list.List<BodyDecl>getBodyDeclListNoTransform()Retrieves the BodyDecl list.List<BodyDecl>getBodyDecls()Retrieves the BodyDecl list.List<BodyDecl>getBodyDeclsNoTransform()Retrieves the BodyDecl list.StringgetID()Retrieves the value for the lexeme ID.ModifiersgetModifiers()Retrieves the Modifiers child.ModifiersgetModifiersNoTransform()Retrieves the Modifiers child.intgetNumArgument()Retrieves the number of children in the Argument list.intgetNumArgumentNoTransform()Retrieves the number of children in the Argument list.intgetNumBodyDecl()Retrieves the number of children in the BodyDecl list.intgetNumBodyDeclNoTransform()Retrieves the number of children in the BodyDecl list.intgetNumSuperInterfaceId()Retrieves the number of children in the SuperInterfaceId list.intgetNumSuperInterfaceIdNoTransform()Retrieves the number of children in the SuperInterfaceId list.AccessgetSuperInterfaceId(int i)Retrieves the element at indexiin the SuperInterfaceId list..ListgetSuperInterfaceIdList()Retrieves the SuperInterfaceId list.protected intgetSuperInterfaceIdListChildPosition()Retrieves the child position of the SuperInterfaceId list.List<Access>getSuperInterfaceIdListNoTransform()Retrieves the SuperInterfaceId list.List<Access>getSuperInterfaceIds()Retrieves the SuperInterfaceId list.List<Access>getSuperInterfaceIdsNoTransform()Retrieves the SuperInterfaceId list.TypeDeclhostType()voidinit$Children()Initializes the child array to the correct size.booleaninstanceOf(TypeDecl type)booleaninvolvesTypeParameters()booleanisParameterizedType()booleanisRawType()booleanisReifiable()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.SimpleSetlocalFields(String name)HashMaplocalMethodsSignatureMap()SimpleSetlocalTypeDecls(String name)booleanmayHaveRewrite()StringnameWithArgs()protected intnumChildren()intnumTypeParameter()TypeDecloriginal()ASTNoderewriteTo()booleansameArgument(ParTypeDecl decl)booleansameSignature(ArrayList list)booleansameSignature(Access a)booleansameStructure(TypeDecl t)voidsetArgument(Access node, int i)Replaces the Argument list element at indexiwith the new nodenode.voidsetArgumentList(List<Access> list)Replaces the Argument list.voidsetBodyDecl(BodyDecl node, int i)Replaces the BodyDecl list element at indexiwith the new nodenode.voidsetBodyDeclList(List<BodyDecl> list)Replaces the BodyDecl list.voidsetID(Symbol symbol)JastAdd-internal setter for lexeme ID using the Beaver parser.voidsetID(String value)Replaces the lexeme ID.voidsetModifiers(Modifiers node)Replaces the Modifiers child.voidsetSuperInterfaceId(Access node, int i)Replaces the SuperInterfaceId list element at indexiwith the new nodenode.voidsetSuperInterfaceIdList(List<Access> list)Replaces the SuperInterfaceId list.TypeDeclsourceTypeDecl()Accesssubstitute(Parameterization parTypeDecl)TypeDeclsubstitute(TypeVariable typeVariable)booleansubtype(TypeDecl type)booleansupertypeClassDecl(ClassDecl type)booleansupertypeGenericClassDecl(GenericClassDecl type)booleansupertypeGenericInterfaceDecl(GenericInterfaceDecl type)booleansupertypeParClassDecl(ParClassDecl type)booleansupertypeParInterfaceDecl(ParInterfaceDecl type)booleansupertypeRawClassDecl(RawClassDecl type)booleansupertypeRawInterfaceDecl(RawInterfaceDecl type)voidtransformation()StringtypeName()TypeVariabletypeParameter(int index)CollectionunimplementedMethods()booleanusesTypeVariable()-
Methods inherited from class soot.JastAddJ.InterfaceDecl
accessControl, ancestorMethods, bridgeCandidates, castingConversionTo, checkModifiers, createStaticClassField, createStaticClassMethod, Define_boolean_inExtendsOrImplements, Define_boolean_withinDeprecatedAnnotation, Define_boolean_withinSuppressWarnings, Define_TypeDecl_hostType, implementedInterfaces, isAbstract, isCircular, isInterfaceDecl, isStatic, isSupertypeOfArrayDecl, isSupertypeOfClassDecl, isSupertypeOfInterfaceDecl, jimplify1phase2, lookupSuperConstructor, makeGeneric, memberFields, memberFieldsMap, memberTypes, methodHolder, methodsSignatureMap, nameCheck, sootClass, sootTypeModifiers, substitutedInterfaceDecl, superinterfacesIterator, supertypeArrayDecl, supertypeInterfaceDecl, toString, typeDescriptor, unknownMethod
-
Methods inherited from class soot.JastAddJ.ReferenceType
binaryNumericPromotion, emitCastTo, isBoolean, isIntegralType, isNumericType, isPrimitive, isReferenceType, isSupertypeOfNullType, isValidAnnotationMethodReturnType, jvmName, narrowingConversionTo, referenceClassFieldName, stringPromotion, supertypeNullType, typeBoolean, typeByte, typeChar, typeDouble, typeFloat, typeInt, typeLong, typeShort, unaryNumericPromotion, unboxed, unboxingConversionTo, wideningConversionTo
-
Methods inherited from class soot.JastAddJ.TypeDecl
accessibleFrom, accessibleFromExtend, accessibleFromPackage, add, add, addAccessor, addAttributes, addConstructor, addEnclosingVariables, addMemberClass, addMemberField, addMemberMethod, addNestedType, addsIndentationLevel, addUsedNestedType, allMethodsAbstract, andBitwise, annotation, arrayType, assignableToInt, assignConversionTo, asWildcardExtends, asWildcardSuper, bitNot, boxed, boxingConversionTo, cast, commensurateWith, compilationUnit, componentType, containedIn, contains, createAssertionsDisabled, createBoundAccess, createEnumArray, createEnumIndex, createEnumMethod, declaredBeforeUse, declaredBeforeUse, Define_boolean_enclosedByExceptionHandler, Define_boolean_insideLoop, Define_boolean_insideSwitch, Define_boolean_inStaticContext, Define_boolean_isAnonymous, Define_boolean_isDAbefore, Define_boolean_isDest, Define_boolean_isDUbefore, Define_boolean_isLocalClass, Define_boolean_isNestedType, Define_boolean_isSource, Define_boolean_mayBeAbstract, Define_boolean_mayBeFinal, Define_boolean_mayBeNative, Define_boolean_mayBePrivate, Define_boolean_mayBeProtected, Define_boolean_mayBePublic, Define_boolean_mayBeStatic, Define_boolean_mayBeStrictfp, Define_boolean_mayBeSynchronized, Define_boolean_mayBeTransient, Define_boolean_mayBeVolatile, Define_boolean_mayUseAnnotationTarget, Define_boolean_reportUnreachable, Define_Collection_lookupConstructor, Define_Collection_lookupMethod, Define_Collection_lookupSuperConstructor, Define_SimpleSet_lookupType, Define_SimpleSet_lookupVariable, Define_String_methodHost, Define_TypeDecl_componentType, Define_TypeDecl_enclosingInstance, Define_TypeDecl_enclosingType, Define_TypeDecl_returnType, Define_VariableScope_outerScope, dimension, div, dumpString, elementType, emitBoxingOperation, emitCastTo, emitUnboxingOperation, enclosedBy, encloses, enclosing, enclosingBlock, enclosingBodyDecl, enclosingInstance, enclosingType, enclosingVariables, eqIsTrue, fieldsIterator, findSingleVariable, getAccessor, getAccessorSource, getSootClassDecl, getSootField, getSootType, hasAbstract, hasAnnotationSafeVarargs, hasAnnotationSuppressWarnings, hasEnclosingTypeDecl, hasField, hasMethod, hasNext, hasPackage, hasType, hostPackage, identityConversionTo, inExplicitConstructorInvocation, innerClassesAttributeEntries, inStaticContext, isAnnotationDecl, isAnonymous, isAnonymousInNonStaticContext, isArrayDecl, isByte, isChar, isCheckedException, isClassDecl, isDAbefore, isDeprecated, isDouble, isDUbefore, isEmpty, isEnumDecl, isException, isFinal, isFloat, isGenericType, isInnerClass, isInnerType, isInnerTypeOf, isInt, isIterable, isLocalClass, isLong, isMemberType, isNestedType, isNull, isObject, isPrimitiveType, isPrivate, isProtected, isPublic, isShort, isSingleton, isSingleton, isStrictfp, isString, isSupertypeOfPrimitiveType, isSupertypeOfVoidType, isSynthetic, isTopLevelType, isTypeVariable, isUnboxedPrimitive, isUncheckedConversionTo, isUncheckedException, isUnknown, isVoid, isWildcard, iterator, jimplify2, jimplify2clinit, leIsTrue, localFieldsMap, localMethodsIterator, localMethodsSignature, lookupConstructor, lookupGLBType, lookupLUBType, lookupMethod, lookupType, lookupType, lookupVariable, lookupWildcardExtends, lookupWildcardSuper, lshift, ltIsTrue, mayAccess, mayAccess, mayCatch, memberMethods, methodInvocationConversionTo, methodsIterator, methodsNameMap, methodsSignature, methodWithArgs, minus, mod, mul, name, needsClinit, needsEnclosing, needsSuperEnclosing, nestedTypes, next, nextAnonymousIndex, orBitwise, packageName, plus, ppBodyDecls, primitiveClassName, questionColon, refined_TypeHierarchyCheck_TypeDecl_typeCheck, remove, rshift, size, sootRef, sourceNameWithoutPath, stringConversion, sub, substituteParameterType, substituteReturnType, superEnclosing, supertypeClassDeclSubstituted, supertypeGenericClassDeclSubstituted, supertypeGenericInterfaceDeclSubstituted, supertypeGLBType, supertypeInterfaceDeclSubstituted, supertypeLUBType, supertypePrimitiveType, supertypeTypeVariable, supertypeVoidType, supertypeWildcard, supertypeWildcardExtends, supertypeWildcardSuper, topLevelType, typeCheck, typeCloneable, typeError, typeException, typeObject, typeRuntimeException, typeSerializable, typeVoid, typeWildcard, uniqueIndex, unknownType, unqualifiedLookupMethod, urshift, usedNestedTypes, variableSize, withinBodyThatSubclasses, withinDeprecatedAnnotation, withinSuppressWarnings, xorBitwise
-
Methods inherited from class soot.JastAddJ.ASTNode
addChild, asImmediate, asLocal, asLocal, asRValue, beginExceptionRange, branchTarget, checkDUeverywhere, checkEnum, checkUncheckedConversion, checkWarnings, clearLocations, cloneSubtree, collectBranches, collectEnclosingVariables, collectExceptions, collectFinally, collectTypesToHierarchy, collectTypesToSignatures, Define_Annotation_lookupAnnotation, Define_ArrayList_exceptionRanges, Define_ASTNode_enclosingBlock, Define_BodyDecl_enclosingBodyDecl, Define_boolean_handlesException, Define_boolean_hasPackage, Define_boolean_inExplicitConstructorInvocation, Define_boolean_inhModifiedInScope, Define_boolean_isAnonymousDecl, Define_boolean_isCatchParam, Define_boolean_isConstructorParameter, Define_boolean_isExceptionHandlerParameter, Define_boolean_isExplicitGenericConstructorAccess, Define_boolean_isIncOrDec, Define_boolean_isMemberType, Define_boolean_isMethodParameter, Define_boolean_reachable, Define_boolean_reachableCatchClause, Define_boolean_resourcePreviouslyDeclared, Define_boolean_variableArityValid, Define_Case_bind, Define_CatchClause_catchClause, Define_ClassInstanceExpr_getClassInstanceExpr, Define_Collection_TypeDecl__caughtExceptions, Define_CompilationUnit_compilationUnit, Define_ConstructorDecl_constructorDecl, Define_ConstructorDecl_unknownConstructor, Define_ElementValue_lookupElementTypeValue, Define_Expr_nestedScope, Define_GLBType_lookupGLBType, Define_int_localNum, Define_LabeledStmt_lookupLabel, Define_LUBType_lookupLUBType, Define_MethodDecl_unknownMethod, Define_SimpleSet_allImportedTypes, Define_soot_jimple_Stmt_condition_false_label, Define_soot_jimple_Stmt_condition_true_label, Define_String_hostPackage, Define_String_packageName, Define_String_typeDeclIndent, Define_TypeDecl_assignConvertedType, Define_TypeDecl_declType, Define_TypeDecl_enclosingAnnotationDecl, Define_TypeDecl_expectedType, 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, 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, lineNumber, location, newLabel, options, putSimpleSetElement, reachedException, removeChild, removeInstanceMethods, removeInstanceVariables, replace, setChild, setEnd, setLocation, setParent, setStart, sourceFile, start, state, toString, transformEnumConstructors, unassignedEverywhere, varChildIndex, varChildIndex, warning, warningPrefix, with
-
Methods inherited from class beaver.Symbol
getColumn, getEnd, getId, getLine, getStart, makePosition
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
involvesTypeParameters_visited
protected int involvesTypeParameters_visited
-
involvesTypeParameters_computed
protected boolean involvesTypeParameters_computed
-
involvesTypeParameters_initialized
protected boolean involvesTypeParameters_initialized
-
involvesTypeParameters_value
protected boolean involvesTypeParameters_value
-
erasure_computed
protected boolean erasure_computed
-
erasure_value
protected TypeDecl erasure_value
-
getSuperInterfaceIdList_computed
protected boolean getSuperInterfaceIdList_computed
-
getSuperInterfaceIdList_value
protected List getSuperInterfaceIdList_value
-
getBodyDeclList_computed
protected boolean getBodyDeclList_computed
-
getBodyDeclList_value
protected List getBodyDeclList_value
-
subtype_TypeDecl_values
protected Map subtype_TypeDecl_values
-
sameStructure_TypeDecl_values
protected Map sameStructure_TypeDecl_values
-
instanceOf_TypeDecl_values
protected Map instanceOf_TypeDecl_values
-
sameSignature_ArrayList_values
protected Map sameSignature_ArrayList_values
-
usesTypeVariable_visited
protected int usesTypeVariable_visited
-
usesTypeVariable_computed
protected boolean usesTypeVariable_computed
-
usesTypeVariable_initialized
protected boolean usesTypeVariable_initialized
-
usesTypeVariable_value
protected boolean usesTypeVariable_value
-
sourceTypeDecl_computed
protected boolean sourceTypeDecl_computed
-
sourceTypeDecl_value
protected TypeDecl sourceTypeDecl_value
-
fullName_computed
protected boolean fullName_computed
-
fullName_value
protected String fullName_value
-
typeName_computed
protected boolean typeName_computed
-
typeName_value
protected String typeName_value
-
unimplementedMethods_computed
protected boolean unimplementedMethods_computed
-
unimplementedMethods_value
protected Collection unimplementedMethods_value
-
localMethodsSignatureMap_computed
protected boolean localMethodsSignatureMap_computed
-
localMethodsSignatureMap_value
protected HashMap localMethodsSignatureMap_value
-
localFields_String_values
protected Map localFields_String_values
-
localTypeDecls_String_values
protected Map localTypeDecls_String_values
-
constructors_computed
protected boolean constructors_computed
-
constructors_value
protected Collection constructors_value
-
genericDecl_computed
protected boolean genericDecl_computed
-
genericDecl_value
protected TypeDecl genericDecl_value
-
-
Method Detail
-
flushCache
public void flushCache()
- Overrides:
flushCachein classInterfaceDecl
-
flushCollectionCache
public void flushCollectionCache()
- Overrides:
flushCollectionCachein classInterfaceDecl
-
clone
public ParInterfaceDecl clone() throws CloneNotSupportedException
- Overrides:
clonein classInterfaceDecl- Throws:
CloneNotSupportedException
-
copy
public ParInterfaceDecl copy()
- Overrides:
copyin classInterfaceDecl
-
fullCopy
public ParInterfaceDecl fullCopy()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.- Overrides:
fullCopyin classInterfaceDecl- Returns:
- dangling copy of the subtree at this node
-
collectErrors
public void collectErrors()
Description copied from class:ASTNodeThe collectErrors method is refined so that it calls the checkWarnings method on each ASTNode to report unchecked warnings.- Overrides:
collectErrorsin classASTNode<ASTNode>
-
substitute
public TypeDecl substitute(TypeVariable typeVariable)
- Specified by:
substitutein interfaceMemberSubstitutor- Specified by:
substitutein interfaceParameterization- Specified by:
substitutein interfaceParTypeDecl- Overrides:
substitutein classTypeDecl
-
numTypeParameter
public int numTypeParameter()
- Specified by:
numTypeParameterin interfaceParTypeDecl
-
typeParameter
public TypeVariable typeParameter(int index)
- Specified by:
typeParameterin interfaceParTypeDecl
-
substitute
public Access substitute(Parameterization parTypeDecl)
- Specified by:
substitutein interfaceParTypeDecl- Overrides:
substitutein classTypeDecl
-
createQualifiedAccess
public Access createQualifiedAccess()
- Specified by:
createQualifiedAccessin interfaceParTypeDecl- Overrides:
createQualifiedAccessin classTypeDecl
-
transformation
public void transformation()
- Specified by:
transformationin interfaceParTypeDecl- Overrides:
transformationin classTypeDecl
-
init$Children
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.- Overrides:
init$Childrenin classInterfaceDecl
-
numChildren
protected int numChildren()
- Overrides:
numChildrenin classInterfaceDecl
-
mayHaveRewrite
public boolean mayHaveRewrite()
- Overrides:
mayHaveRewritein classInterfaceDecl
-
setModifiers
public void setModifiers(Modifiers node)
Replaces the Modifiers child.- Overrides:
setModifiersin classInterfaceDecl- Parameters:
node- The new node to replace the Modifiers child.
-
getModifiers
public Modifiers getModifiers()
Retrieves the Modifiers child.- Overrides:
getModifiersin classInterfaceDecl- Returns:
- The current node used as the Modifiers child.
-
getModifiersNoTransform
public Modifiers getModifiersNoTransform()
Retrieves the Modifiers child.This method does not invoke AST transformations.
- Overrides:
getModifiersNoTransformin classInterfaceDecl- Returns:
- The current node used as the Modifiers child.
-
setID
public void setID(String value)
Replaces the lexeme ID.- Overrides:
setIDin classInterfaceDecl- Parameters:
value- The new value for the lexeme ID.
-
setID
public void setID(Symbol symbol)
JastAdd-internal setter for lexeme ID using the Beaver parser.- Overrides:
setIDin classInterfaceDecl
-
getID
public String getID()
Retrieves the value for the lexeme ID.- Overrides:
getIDin classInterfaceDecl- Returns:
- The value for the lexeme ID.
-
setArgumentList
public void setArgumentList(List<Access> list)
Replaces the Argument list.- Parameters:
list- The new list node to be used as the Argument list.
-
getNumArgument
public int getNumArgument()
Retrieves the number of children in the Argument list.- Specified by:
getNumArgumentin interfaceParTypeDecl- Returns:
- Number of children in the Argument list.
-
getNumArgumentNoTransform
public int getNumArgumentNoTransform()
Retrieves the number of children in the Argument list. Calling this method will not trigger rewrites..- Returns:
- Number of children in the Argument list.
-
getArgument
public Access getArgument(int i)
Retrieves the element at indexiin the Argument list..- Specified by:
getArgumentin interfaceParTypeDecl- Parameters:
i- Index of the element to return.- Returns:
- The element at position
iin the Argument list.
-
addArgument
public void addArgument(Access node)
Append an element to the Argument list.- Parameters:
node- The element to append to the Argument list.
-
addArgumentNoTransform
public void addArgumentNoTransform(Access node)
-
setArgument
public void setArgument(Access node, int i)
Replaces the Argument list element at indexiwith the new nodenode.- Parameters:
node- The new node to replace the old list element.i- The list index of the node to be replaced.
-
getArguments
public List<Access> getArguments()
Retrieves the Argument list.- Returns:
- The node representing the Argument list.
-
getArgumentsNoTransform
public List<Access> getArgumentsNoTransform()
Retrieves the Argument list.This method does not invoke AST transformations.
- Returns:
- The node representing the Argument list.
-
getArgumentList
public List<Access> getArgumentList()
Retrieves the Argument list.- Returns:
- The node representing the Argument list.
-
getArgumentListNoTransform
public List<Access> getArgumentListNoTransform()
Retrieves the Argument list.This method does not invoke AST transformations.
- Returns:
- The node representing the Argument list.
-
setSuperInterfaceIdList
public void setSuperInterfaceIdList(List<Access> list)
Replaces the SuperInterfaceId list.- Overrides:
setSuperInterfaceIdListin classInterfaceDecl- Parameters:
list- The new list node to be used as the SuperInterfaceId list.
-
getNumSuperInterfaceId
public int getNumSuperInterfaceId()
Retrieves the number of children in the SuperInterfaceId list.- Overrides:
getNumSuperInterfaceIdin classInterfaceDecl- Returns:
- Number of children in the SuperInterfaceId list.
-
getNumSuperInterfaceIdNoTransform
public int getNumSuperInterfaceIdNoTransform()
Retrieves the number of children in the SuperInterfaceId list. Calling this method will not trigger rewrites..- Overrides:
getNumSuperInterfaceIdNoTransformin classInterfaceDecl- Returns:
- Number of children in the SuperInterfaceId list.
-
getSuperInterfaceId
public Access getSuperInterfaceId(int i)
Retrieves the element at indexiin the SuperInterfaceId list..- Overrides:
getSuperInterfaceIdin classInterfaceDecl- Parameters:
i- Index of the element to return.- Returns:
- The element at position
iin the SuperInterfaceId list.
-
addSuperInterfaceId
public void addSuperInterfaceId(Access node)
Append an element to the SuperInterfaceId list.- Overrides:
addSuperInterfaceIdin classInterfaceDecl- Parameters:
node- The element to append to the SuperInterfaceId list.
-
addSuperInterfaceIdNoTransform
public void addSuperInterfaceIdNoTransform(Access node)
- Overrides:
addSuperInterfaceIdNoTransformin classInterfaceDecl
-
setSuperInterfaceId
public void setSuperInterfaceId(Access node, int i)
Replaces the SuperInterfaceId list element at indexiwith the new nodenode.- Overrides:
setSuperInterfaceIdin classInterfaceDecl- Parameters:
node- The new node to replace the old list element.i- The list index of the node to be replaced.
-
getSuperInterfaceIds
public List<Access> getSuperInterfaceIds()
Retrieves the SuperInterfaceId list.- Overrides:
getSuperInterfaceIdsin classInterfaceDecl- Returns:
- The node representing the SuperInterfaceId list.
-
getSuperInterfaceIdsNoTransform
public List<Access> getSuperInterfaceIdsNoTransform()
Retrieves the SuperInterfaceId list.This method does not invoke AST transformations.
- Overrides:
getSuperInterfaceIdsNoTransformin classInterfaceDecl- Returns:
- The node representing the SuperInterfaceId list.
-
getSuperInterfaceIdListNoTransform
public List<Access> getSuperInterfaceIdListNoTransform()
Retrieves the SuperInterfaceId list.This method does not invoke AST transformations.
- Overrides:
getSuperInterfaceIdListNoTransformin classInterfaceDecl- Returns:
- The node representing the SuperInterfaceId list.
-
getSuperInterfaceIdListChildPosition
protected int getSuperInterfaceIdListChildPosition()
Retrieves the child position of the SuperInterfaceId list.- Returns:
- The the child position of the SuperInterfaceId list.
-
setBodyDeclList
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.- Overrides:
setBodyDeclListin classInterfaceDecl- Parameters:
list- The new list node to be used as the BodyDecl list.
-
getNumBodyDecl
public int getNumBodyDecl()
Retrieves the number of children in the BodyDecl list.- Overrides:
getNumBodyDeclin classInterfaceDecl- Returns:
- Number of children in the BodyDecl list.
-
getNumBodyDeclNoTransform
public int getNumBodyDeclNoTransform()
Retrieves the number of children in the BodyDecl list. Calling this method will not trigger rewrites..- Overrides:
getNumBodyDeclNoTransformin classInterfaceDecl- Returns:
- Number of children in the BodyDecl list.
-
getBodyDecl
public BodyDecl getBodyDecl(int i)
Retrieves the element at indexiin the BodyDecl list..- Overrides:
getBodyDeclin classInterfaceDecl- Parameters:
i- Index of the element to return.- Returns:
- The element at position
iin the BodyDecl list.
-
addBodyDecl
public void addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.- Specified by:
addBodyDeclin interfaceMemberSubstitutor- Overrides:
addBodyDeclin classInterfaceDecl- Parameters:
node- The element to append to the BodyDecl list.
-
addBodyDeclNoTransform
public void addBodyDeclNoTransform(BodyDecl node)
- Overrides:
addBodyDeclNoTransformin classInterfaceDecl
-
setBodyDecl
public void setBodyDecl(BodyDecl node, int i)
Replaces the BodyDecl list element at indexiwith the new nodenode.- Overrides:
setBodyDeclin classInterfaceDecl- Parameters:
node- The new node to replace the old list element.i- The list index of the node to be replaced.
-
getBodyDecls
public List<BodyDecl> getBodyDecls()
Retrieves the BodyDecl list.- Overrides:
getBodyDeclsin classInterfaceDecl- Returns:
- The node representing the BodyDecl list.
-
getBodyDeclsNoTransform
public List<BodyDecl> getBodyDeclsNoTransform()
Retrieves the BodyDecl list.This method does not invoke AST transformations.
- Overrides:
getBodyDeclsNoTransformin classInterfaceDecl- Returns:
- The node representing the BodyDecl list.
-
getBodyDeclListNoTransform
public List<BodyDecl> getBodyDeclListNoTransform()
Retrieves the BodyDecl list.This method does not invoke AST transformations.
- Overrides:
getBodyDeclListNoTransformin classInterfaceDecl- Returns:
- The node representing the BodyDecl list.
-
getBodyDeclListChildPosition
protected int getBodyDeclListChildPosition()
Retrieves the child position of the BodyDecl list.- Returns:
- The the child position of the BodyDecl list.
-
involvesTypeParameters
public boolean involvesTypeParameters()
- Overrides:
involvesTypeParametersin classTypeDecl
-
isRawType
public boolean isRawType()
- Specified by:
isRawTypein interfaceParameterization- Specified by:
isRawTypein interfaceParTypeDecl- Overrides:
isRawTypein classTypeDecl
-
getSuperInterfaceIdList
public List getSuperInterfaceIdList()
Description copied from class:InterfaceDeclRetrieves the SuperInterfaceId list.- Overrides:
getSuperInterfaceIdListin classInterfaceDecl- Returns:
- The node representing the SuperInterfaceId list.
-
getBodyDeclList
public List getBodyDeclList()
Description copied from class:InterfaceDeclRetrieves the BodyDecl list.- Overrides:
getBodyDeclListin classInterfaceDecl- Returns:
- The node representing the BodyDecl list.
-
supertypeGenericClassDecl
public boolean supertypeGenericClassDecl(GenericClassDecl type)
- Overrides:
supertypeGenericClassDeclin classTypeDecl
-
supertypeGenericInterfaceDecl
public boolean supertypeGenericInterfaceDecl(GenericInterfaceDecl type)
- Overrides:
supertypeGenericInterfaceDeclin classTypeDecl
-
supertypeClassDecl
public boolean supertypeClassDecl(ClassDecl type)
- Overrides:
supertypeClassDeclin classInterfaceDecl
-
subtype
public boolean subtype(TypeDecl type)
- Overrides:
subtypein classInterfaceDecl
-
supertypeRawClassDecl
public boolean supertypeRawClassDecl(RawClassDecl type)
- Overrides:
supertypeRawClassDeclin classTypeDecl
-
supertypeRawInterfaceDecl
public boolean supertypeRawInterfaceDecl(RawInterfaceDecl type)
- Overrides:
supertypeRawInterfaceDeclin classTypeDecl
-
sameStructure
public boolean sameStructure(TypeDecl t)
- Overrides:
sameStructurein classTypeDecl
-
supertypeParClassDecl
public boolean supertypeParClassDecl(ParClassDecl type)
- Overrides:
supertypeParClassDeclin classTypeDecl
-
supertypeParInterfaceDecl
public boolean supertypeParInterfaceDecl(ParInterfaceDecl type)
- Overrides:
supertypeParInterfaceDeclin classTypeDecl
-
instanceOf
public boolean instanceOf(TypeDecl type)
- Overrides:
instanceOfin classInterfaceDecl
-
isReifiable
public boolean isReifiable()
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.- Overrides:
isReifiablein classTypeDecl- See Also:
- "JLSv3 §4.7"
-
isParameterizedType
public boolean isParameterizedType()
- Specified by:
isParameterizedTypein interfaceParTypeDecl- Overrides:
isParameterizedTypein classTypeDecl
-
sameArgument
public boolean sameArgument(ParTypeDecl decl)
- Specified by:
sameArgumentin interfaceParTypeDecl
-
sameSignature
public boolean sameSignature(Access a)
- Specified by:
sameSignaturein interfaceParTypeDecl- Overrides:
sameSignaturein classTypeDecl
-
sameSignature
public boolean sameSignature(ArrayList list)
- Specified by:
sameSignaturein interfaceParTypeDecl
-
usesTypeVariable
public boolean usesTypeVariable()
- Overrides:
usesTypeVariablein classTypeDecl
-
original
public TypeDecl original()
- Specified by:
originalin interfaceMemberSubstitutor- Overrides:
originalin classTypeDecl
-
sourceTypeDecl
public TypeDecl sourceTypeDecl()
- Overrides:
sourceTypeDeclin classTypeDecl
-
typeName
public String typeName()
- Specified by:
typeNamein interfaceParTypeDecl- Overrides:
typeNamein classTypeDecl
-
nameWithArgs
public String nameWithArgs()
- Specified by:
nameWithArgsin interfaceParTypeDecl
-
unimplementedMethods
public Collection unimplementedMethods()
- Overrides:
unimplementedMethodsin classTypeDecl
-
localMethodsSignatureMap
public HashMap localMethodsSignatureMap()
- Specified by:
localMethodsSignatureMapin interfaceMemberSubstitutor- Specified by:
localMethodsSignatureMapin interfaceParTypeDecl- Overrides:
localMethodsSignatureMapin classTypeDecl
-
localFields
public SimpleSet localFields(String name)
- Specified by:
localFieldsin interfaceMemberSubstitutor- Specified by:
localFieldsin interfaceParTypeDecl- Overrides:
localFieldsin classTypeDecl
-
localTypeDecls
public SimpleSet localTypeDecls(String name)
- Specified by:
localTypeDeclsin interfaceMemberSubstitutor- Overrides:
localTypeDeclsin classTypeDecl
-
constructors
public Collection constructors()
- Specified by:
constructorsin interfaceMemberSubstitutor- Overrides:
constructorsin classTypeDecl
-
genericDecl
public TypeDecl genericDecl()
- Specified by:
genericDeclin interfaceParTypeDecl
-
Define_NameType_nameType
public NameType Define_NameType_nameType(ASTNode caller, ASTNode child)
- Overrides:
Define_NameType_nameTypein classInterfaceDecl
-
Define_TypeDecl_genericDecl
public TypeDecl Define_TypeDecl_genericDecl(ASTNode caller, ASTNode child)
- Overrides:
Define_TypeDecl_genericDeclin classASTNode<ASTNode>
-
rewriteTo
public ASTNode rewriteTo()
- Overrides:
rewriteToin classInterfaceDecl
-
-