Package soot.JastAddJ
Class ClassDecl
- java.lang.Object
-
- beaver.Symbol
-
- soot.JastAddJ.ASTNode<ASTNode>
-
- soot.JastAddJ.TypeDecl
-
- soot.JastAddJ.ReferenceType
-
- soot.JastAddJ.ClassDecl
-
- Direct Known Subclasses:
AnonymousDecl
,ArrayDecl
,ClassDeclSubstituted
,EnumDecl
,GenericClassDecl
,ParClassDecl
,UnknownType
public class ClassDecl extends ReferenceType implements Cloneable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface soot.JastAddJ.SimpleSet
SimpleSet.SimpleSetImpl
-
-
Field Summary
-
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, constructors_computed, constructors_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, erasure_computed, erasure_value, fullName_computed, fullName_value, getSootClassDecl_computed, getSootClassDecl_value, getSootField_String_TypeDecl_values, getSootType_computed, getSootType_value, IDend, IDstart, inExplicitConstructorInvocation_computed, inExplicitConstructorInvocation_value, innerClassesAttributeEntries_computed, innerClassesAttributeEntries_value, inStaticContext_computed, inStaticContext_value, involvesTypeParameters_computed, involvesTypeParameters_initialized, involvesTypeParameters_value, involvesTypeParameters_visited, isAnonymous_computed, isAnonymous_value, isCheckedException_computed, isCheckedException_value, isDAbefore_Variable_values, isDUbefore_Variable_values, isException_computed, isException_value, isIterable_computed, isIterable_value, isPublic_computed, isPublic_value, isStatic_computed, isStatic_value, isUncheckedException_computed, isUncheckedException_value, localFields_String_values, localFieldsMap_computed, localFieldsMap_value, localMethodsSignatureMap_computed, localMethodsSignatureMap_value, localTypeDecls_String_values, 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, sameStructure_TypeDecl_values, sourceTypeDecl_computed, sourceTypeDecl_value, tokenString_ID, typeError_computed, typeError_value, typeException_computed, typeException_value, typeName_computed, typeName_value, typeObject_computed, typeObject_value, typeRuntimeException_computed, typeRuntimeException_value, uniqueIndex_computed, uniqueIndex_value, unknownType_computed, unknownType_value, unqualifiedLookupMethod_String_values, usesTypeVariable_computed, usesTypeVariable_initialized, usesTypeVariable_value, usesTypeVariable_visited
-
Fields inherited from class soot.JastAddJ.ASTNode
children, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, in$Circle, is$Final, numChildren, parent, PRIMITIVE_PACKAGE_NAME, state
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accessControl()
Constant
add(Constant c1, Constant c2)
void
addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.void
addBodyDeclNoTransform(BodyDecl node)
void
addImplements(Access node)
Append an element to the Implements list.void
addImplementsNoTransform(Access node)
SimpleSet
ancestorMethods(String signature)
Annotation
annotation(TypeDecl typeDecl)
SimpleSet
bridgeCandidates(String signature)
Constant
cast(Constant c)
boolean
castingConversionTo(TypeDecl type)
void
checkModifiers()
ClassDecl
clone()
ClassDecl
copy()
boolean
Define_boolean_inExtendsOrImplements(ASTNode caller, ASTNode child)
boolean
Define_boolean_mayBeFinal(ASTNode caller, ASTNode child)
boolean
Define_boolean_withinDeprecatedAnnotation(ASTNode caller, ASTNode child)
boolean
Define_boolean_withinSuppressWarnings(ASTNode caller, ASTNode child, String s)
NameType
Define_NameType_nameType(ASTNode caller, ASTNode child)
TypeDecl
Define_TypeDecl_hostType(ASTNode caller, ASTNode child)
boolean
eqIsTrue(Expr left, Expr right)
void
exceptionHandling()
void
flushCache()
void
flushCollectionCache()
ClassDecl
fullCopy()
Create a deep copy of the AST subtree at this node.BodyDecl
getBodyDecl(int i)
Retrieves the element at indexi
in the BodyDecl list..List<BodyDecl>
getBodyDeclList()
Retrieves the BodyDecl list.List<BodyDecl>
getBodyDeclListNoTransform()
Retrieves the BodyDecl list.List<BodyDecl>
getBodyDecls()
Retrieves the BodyDecl list.List<BodyDecl>
getBodyDeclsNoTransform()
Retrieves the BodyDecl list.String
getID()
Retrieves the value for the lexeme ID.Access
getImplements(int i)
Retrieves the element at indexi
in the Implements list..List<Access>
getImplementsList()
Retrieves the Implements list.List<Access>
getImplementsListNoTransform()
Retrieves the Implements list.List<Access>
getImplementss()
Retrieves the Implements list.List<Access>
getImplementssNoTransform()
Retrieves the Implements list.Modifiers
getModifiers()
Retrieves the Modifiers child.Modifiers
getModifiersNoTransform()
Retrieves the Modifiers child.int
getNumBodyDecl()
Retrieves the number of children in the BodyDecl list.int
getNumBodyDeclNoTransform()
Retrieves the number of children in the BodyDecl list.int
getNumImplements()
Retrieves the number of children in the Implements list.int
getNumImplementsNoTransform()
Retrieves the number of children in the Implements list.Access
getSuperClassAccess()
Retrieves the (optional) SuperClassAccess child.Opt<Access>
getSuperClassAccessOpt()
Opt<Access>
getSuperClassAccessOptNoTransform()
Retrieves the optional node for child SuperClassAccess.boolean
hasAbstract()
boolean
hasSuperclass()
boolean
hasSuperClassAccess()
Check whether the optional SuperClassAccess child exists.HashSet
implementedInterfaces()
void
init$Children()
Initializes the child array to the correct size.boolean
instanceOf(TypeDecl type)
Iterator
interfacesIterator()
Iterator
interfacesMethodsIterator()
SimpleSet
interfacesMethodsSignature(String signature)
HashMap
interfacesMethodsSignatureMap()
boolean
isCircular()
boolean
isClassDecl()
boolean
isInnerClass()
boolean
isObject()
boolean
isString()
boolean
isSupertypeOfArrayDecl(ArrayDecl type)
boolean
isSupertypeOfClassDecl(ClassDecl type)
boolean
isSupertypeOfInterfaceDecl(InterfaceDecl type)
void
jimplify1phase2()
int
lineNumber()
Collection
lookupSuperConstructor()
TypeDecl
makeGeneric(Signatures.ClassSignature s)
boolean
mayHaveRewrite()
SimpleSet
memberFields(String name)
HashMap
memberFieldsMap()
SimpleSet
memberTypes(String name)
HashMap
methodsSignatureMap()
void
nameCheck()
boolean
noConstructor()
protected int
numChildren()
Constant
questionColon(Constant cond, Constant c1, Constant c2)
ASTNode
rewriteTo()
void
setBodyDecl(BodyDecl node, int i)
Replaces the BodyDecl list element at indexi
with the new nodenode
.void
setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.void
setID(Symbol symbol)
JastAdd-internal setter for lexeme ID using the Beaver parser.void
setID(String value)
Replaces the lexeme ID.void
setImplements(Access node, int i)
Replaces the Implements list element at indexi
with the new nodenode
.void
setImplementsList(List<Access> list)
Replaces the Implements list.void
setModifiers(Modifiers node)
Replaces the Modifiers child.void
setSuperClassAccess(Access node)
Replaces the (optional) SuperClassAccess child.void
setSuperClassAccessOpt(Opt<Access> opt)
Replaces the optional node for the SuperClassAccess child.SootClass
sootClass()
ClassDecl
substitutedClassDecl(Parameterization parTypeDecl)
boolean
subtype(TypeDecl type)
ClassDecl
superclass()
TypeDecl
superEnclosing()
boolean
supertypeArrayDecl(ArrayDecl type)
boolean
supertypeClassDecl(ClassDecl type)
boolean
supertypeInterfaceDecl(InterfaceDecl type)
void
toString(StringBuffer s)
String
typeDescriptor()
Collection
unimplementedMethods()
-
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, addAccessor, addAttributes, addConstructor, addEnclosingVariables, addMemberClass, addMemberField, addMemberMethod, addNestedType, addsIndentationLevel, addUsedNestedType, allMethodsAbstract, andBitwise, arrayType, assignableToInt, assignConversionTo, asWildcardExtends, asWildcardSuper, bitNot, boxed, boxingConversionTo, commensurateWith, compilationUnit, componentType, constructors, containedIn, contains, createAssertionsDisabled, createBoundAccess, createEnumArray, createEnumIndex, createEnumMethod, createQualifiedAccess, createStaticClassField, createStaticClassMethod, 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_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, erasure, fieldsIterator, findSingleVariable, fullName, getAccessor, getAccessorSource, getSootClassDecl, getSootField, getSootType, hasAnnotationSafeVarargs, hasAnnotationSuppressWarnings, hasEnclosingTypeDecl, hasField, hasMethod, hasNext, hasPackage, hasType, hostPackage, hostType, identityConversionTo, inExplicitConstructorInvocation, innerClassesAttributeEntries, inStaticContext, involvesTypeParameters, isAbstract, isAnnotationDecl, isAnonymous, isAnonymousInNonStaticContext, isArrayDecl, isByte, isChar, isCheckedException, isDAbefore, isDeprecated, isDouble, isDUbefore, isEmpty, isEnumDecl, isException, isFinal, isFloat, isGenericType, isInnerType, isInnerTypeOf, isInt, isInterfaceDecl, isIterable, isLocalClass, isLong, isMemberType, isNestedType, isNull, isParameterizedType, isPrimitiveType, isPrivate, isProtected, isPublic, isRawType, isReifiable, isShort, isSingleton, isSingleton, isStatic, isStrictfp, isSupertypeOfPrimitiveType, isSupertypeOfVoidType, isSynthetic, isTopLevelType, isTypeVariable, isUnboxedPrimitive, isUncheckedConversionTo, isUncheckedException, isUnknown, isVoid, isWildcard, iterator, jimplify2, jimplify2clinit, leIsTrue, localFields, localFieldsMap, localMethodsIterator, localMethodsSignature, localMethodsSignatureMap, localTypeDecls, 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, original, packageName, plus, ppBodyDecls, primitiveClassName, refined_TypeHierarchyCheck_TypeDecl_typeCheck, remove, rshift, sameSignature, sameStructure, size, sootRef, sootTypeModifiers, sourceNameWithoutPath, sourceTypeDecl, stringConversion, sub, substitute, substitute, substituteParameterType, substituteReturnType, supertypeClassDeclSubstituted, supertypeGenericClassDecl, supertypeGenericClassDeclSubstituted, supertypeGenericInterfaceDecl, supertypeGenericInterfaceDeclSubstituted, supertypeGLBType, supertypeInterfaceDeclSubstituted, supertypeLUBType, supertypeParClassDecl, supertypeParInterfaceDecl, supertypePrimitiveType, supertypeRawClassDecl, supertypeRawInterfaceDecl, supertypeTypeVariable, supertypeVoidType, supertypeWildcard, supertypeWildcardExtends, supertypeWildcardSuper, topLevelType, transformation, typeCheck, typeCloneable, typeError, typeException, typeName, typeObject, typeRuntimeException, typeSerializable, typeVoid, typeWildcard, uniqueIndex, unknownType, unqualifiedLookupMethod, urshift, usedNestedTypes, usesTypeVariable, 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, collectErrors, 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_genericDecl, 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, 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, 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
-
interfacesMethodsSignatureMap_computed
protected boolean interfacesMethodsSignatureMap_computed
-
interfacesMethodsSignatureMap_value
protected HashMap interfacesMethodsSignatureMap_value
-
methodsSignatureMap_computed
protected boolean methodsSignatureMap_computed
-
methodsSignatureMap_value
protected HashMap methodsSignatureMap_value
-
ancestorMethods_String_values
protected Map ancestorMethods_String_values
-
memberTypes_String_values
protected Map memberTypes_String_values
-
memberFieldsMap_computed
protected boolean memberFieldsMap_computed
-
memberFieldsMap_value
protected HashMap memberFieldsMap_value
-
memberFields_String_values
protected Map memberFields_String_values
-
unimplementedMethods_computed
protected boolean unimplementedMethods_computed
-
unimplementedMethods_value
protected Collection unimplementedMethods_value
-
hasAbstract_computed
protected boolean hasAbstract_computed
-
hasAbstract_value
protected boolean hasAbstract_value
-
castingConversionTo_TypeDecl_values
protected Map castingConversionTo_TypeDecl_values
-
isString_computed
protected boolean isString_computed
-
isString_value
protected boolean isString_value
-
isObject_computed
protected boolean isObject_computed
-
isObject_value
protected boolean isObject_value
-
instanceOf_TypeDecl_values
protected Map instanceOf_TypeDecl_values
-
isCircular_visited
protected int isCircular_visited
-
isCircular_computed
protected boolean isCircular_computed
-
isCircular_initialized
protected boolean isCircular_initialized
-
isCircular_value
protected boolean isCircular_value
-
implementedInterfaces_computed
protected boolean implementedInterfaces_computed
-
implementedInterfaces_value
protected HashSet implementedInterfaces_value
-
subtype_TypeDecl_values
protected Map subtype_TypeDecl_values
-
sootClass_computed
protected boolean sootClass_computed
-
sootClass_value
protected SootClass sootClass_value
-
-
Method Detail
-
flushCache
public void flushCache()
- Overrides:
flushCache
in classReferenceType
-
flushCollectionCache
public void flushCollectionCache()
- Overrides:
flushCollectionCache
in classReferenceType
-
clone
public ClassDecl clone() throws CloneNotSupportedException
- Overrides:
clone
in classReferenceType
- Throws:
CloneNotSupportedException
-
fullCopy
public ClassDecl fullCopy()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
-
accessControl
public void accessControl()
- Overrides:
accessControl
in classASTNode<ASTNode>
-
exceptionHandling
public void exceptionHandling()
- Overrides:
exceptionHandling
in classASTNode<ASTNode>
-
interfacesMethodsIterator
public Iterator interfacesMethodsIterator()
-
checkModifiers
public void checkModifiers()
- Overrides:
checkModifiers
in classTypeDecl
-
toString
public void toString(StringBuffer s)
-
hasSuperclass
public boolean hasSuperclass()
-
superclass
public ClassDecl superclass()
-
interfacesIterator
public Iterator interfacesIterator()
-
makeGeneric
public TypeDecl makeGeneric(Signatures.ClassSignature s)
- Overrides:
makeGeneric
in classTypeDecl
-
substitutedClassDecl
public ClassDecl substitutedClassDecl(Parameterization parTypeDecl)
-
jimplify1phase2
public void jimplify1phase2()
- Overrides:
jimplify1phase2
in classTypeDecl
-
init$Children
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.- Overrides:
init$Children
in classReferenceType
-
numChildren
protected int numChildren()
- Overrides:
numChildren
in classReferenceType
-
mayHaveRewrite
public boolean mayHaveRewrite()
- Overrides:
mayHaveRewrite
in classReferenceType
-
setModifiers
public void setModifiers(Modifiers node)
Replaces the Modifiers child.- Overrides:
setModifiers
in classReferenceType
- Parameters:
node
- The new node to replace the Modifiers child.
-
getModifiers
public Modifiers getModifiers()
Retrieves the Modifiers child.- Overrides:
getModifiers
in classReferenceType
- 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:
getModifiersNoTransform
in classReferenceType
- Returns:
- The current node used as the Modifiers child.
-
setID
public void setID(String value)
Replaces the lexeme ID.- Overrides:
setID
in classReferenceType
- 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:
setID
in classReferenceType
-
getID
public String getID()
Retrieves the value for the lexeme ID.- Overrides:
getID
in classReferenceType
- Returns:
- The value for the lexeme ID.
-
setSuperClassAccessOpt
public void setSuperClassAccessOpt(Opt<Access> opt)
Replaces the optional node for the SuperClassAccess child. This is theOpt
node containing the child SuperClassAccess, not the actual child!- Parameters:
opt
- The new node to be used as the optional node for the SuperClassAccess child.
-
hasSuperClassAccess
public boolean hasSuperClassAccess()
Check whether the optional SuperClassAccess child exists.- Returns:
true
if the optional SuperClassAccess child exists,false
if it does not.
-
getSuperClassAccess
public Access getSuperClassAccess()
Retrieves the (optional) SuperClassAccess child.- Returns:
- The SuperClassAccess child, if it exists. Returns
null
otherwise.
-
setSuperClassAccess
public void setSuperClassAccess(Access node)
Replaces the (optional) SuperClassAccess child.- Parameters:
node
- The new node to be used as the SuperClassAccess child.
-
getSuperClassAccessOptNoTransform
public Opt<Access> getSuperClassAccessOptNoTransform()
Retrieves the optional node for child SuperClassAccess. This is theOpt
node containing the child SuperClassAccess, not the actual child!This method does not invoke AST transformations.
- Returns:
- The optional node for child SuperClassAccess.
-
setImplementsList
public void setImplementsList(List<Access> list)
Replaces the Implements list.- Parameters:
list
- The new list node to be used as the Implements list.
-
getNumImplements
public int getNumImplements()
Retrieves the number of children in the Implements list.- Returns:
- Number of children in the Implements list.
-
getNumImplementsNoTransform
public int getNumImplementsNoTransform()
Retrieves the number of children in the Implements list. Calling this method will not trigger rewrites..- Returns:
- Number of children in the Implements list.
-
getImplements
public Access getImplements(int i)
Retrieves the element at indexi
in the Implements list..- Parameters:
i
- Index of the element to return.- Returns:
- The element at position
i
in the Implements list.
-
addImplements
public void addImplements(Access node)
Append an element to the Implements list.- Parameters:
node
- The element to append to the Implements list.
-
addImplementsNoTransform
public void addImplementsNoTransform(Access node)
-
setImplements
public void setImplements(Access node, int i)
Replaces the Implements list element at indexi
with the new nodenode
.- Parameters:
node
- The new node to replace the old list element.i
- The list index of the node to be replaced.
-
getImplementss
public List<Access> getImplementss()
Retrieves the Implements list.- Returns:
- The node representing the Implements list.
-
getImplementssNoTransform
public List<Access> getImplementssNoTransform()
Retrieves the Implements list.This method does not invoke AST transformations.
- Returns:
- The node representing the Implements list.
-
getImplementsList
public List<Access> getImplementsList()
Retrieves the Implements list.- Returns:
- The node representing the Implements list.
-
getImplementsListNoTransform
public List<Access> getImplementsListNoTransform()
Retrieves the Implements list.This method does not invoke AST transformations.
- Returns:
- The node representing the Implements list.
-
setBodyDeclList
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.- Overrides:
setBodyDeclList
in classReferenceType
- 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:
getNumBodyDecl
in classReferenceType
- 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:
getNumBodyDeclNoTransform
in classReferenceType
- Returns:
- Number of children in the BodyDecl list.
-
getBodyDecl
public BodyDecl getBodyDecl(int i)
Retrieves the element at indexi
in the BodyDecl list..- Overrides:
getBodyDecl
in classReferenceType
- Parameters:
i
- Index of the element to return.- Returns:
- The element at position
i
in the BodyDecl list.
-
addBodyDecl
public void addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.- Overrides:
addBodyDecl
in classReferenceType
- Parameters:
node
- The element to append to the BodyDecl list.
-
addBodyDeclNoTransform
public void addBodyDeclNoTransform(BodyDecl node)
- Overrides:
addBodyDeclNoTransform
in classReferenceType
-
setBodyDecl
public void setBodyDecl(BodyDecl node, int i)
Replaces the BodyDecl list element at indexi
with the new nodenode
.- Overrides:
setBodyDecl
in classReferenceType
- 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:
getBodyDecls
in classReferenceType
- Returns:
- The node representing the BodyDecl list.
-
getBodyDeclsNoTransform
public List<BodyDecl> getBodyDeclsNoTransform()
Retrieves the BodyDecl list.This method does not invoke AST transformations.
- Overrides:
getBodyDeclsNoTransform
in classReferenceType
- Returns:
- The node representing the BodyDecl list.
-
getBodyDeclList
public List<BodyDecl> getBodyDeclList()
Retrieves the BodyDecl list.- Overrides:
getBodyDeclList
in classReferenceType
- Returns:
- The node representing the BodyDecl list.
-
getBodyDeclListNoTransform
public List<BodyDecl> getBodyDeclListNoTransform()
Retrieves the BodyDecl list.This method does not invoke AST transformations.
- Overrides:
getBodyDeclListNoTransform
in classReferenceType
- Returns:
- The node representing the BodyDecl list.
-
questionColon
public Constant questionColon(Constant cond, Constant c1, Constant c2)
- Overrides:
questionColon
in classTypeDecl
-
lineNumber
public int lineNumber()
- Overrides:
lineNumber
in classASTNode<ASTNode>
-
lookupSuperConstructor
public Collection lookupSuperConstructor()
- Overrides:
lookupSuperConstructor
in classTypeDecl
-
noConstructor
public boolean noConstructor()
-
interfacesMethodsSignatureMap
public HashMap interfacesMethodsSignatureMap()
-
methodsSignatureMap
public HashMap methodsSignatureMap()
- Overrides:
methodsSignatureMap
in classTypeDecl
-
ancestorMethods
public SimpleSet ancestorMethods(String signature)
- Overrides:
ancestorMethods
in classTypeDecl
-
memberTypes
public SimpleSet memberTypes(String name)
- Overrides:
memberTypes
in classTypeDecl
-
memberFieldsMap
public HashMap memberFieldsMap()
- Overrides:
memberFieldsMap
in classTypeDecl
-
memberFields
public SimpleSet memberFields(String name)
- Overrides:
memberFields
in classTypeDecl
-
unimplementedMethods
public Collection unimplementedMethods()
- Overrides:
unimplementedMethods
in classTypeDecl
-
hasAbstract
public boolean hasAbstract()
- Overrides:
hasAbstract
in classTypeDecl
-
castingConversionTo
public boolean castingConversionTo(TypeDecl type)
- Overrides:
castingConversionTo
in classTypeDecl
-
isClassDecl
public boolean isClassDecl()
- Overrides:
isClassDecl
in classTypeDecl
-
instanceOf
public boolean instanceOf(TypeDecl type)
- Overrides:
instanceOf
in classTypeDecl
-
isSupertypeOfClassDecl
public boolean isSupertypeOfClassDecl(ClassDecl type)
- Overrides:
isSupertypeOfClassDecl
in classTypeDecl
-
isSupertypeOfInterfaceDecl
public boolean isSupertypeOfInterfaceDecl(InterfaceDecl type)
- Overrides:
isSupertypeOfInterfaceDecl
in classTypeDecl
-
isSupertypeOfArrayDecl
public boolean isSupertypeOfArrayDecl(ArrayDecl type)
- Overrides:
isSupertypeOfArrayDecl
in classTypeDecl
-
isInnerClass
public boolean isInnerClass()
- Overrides:
isInnerClass
in classTypeDecl
-
isCircular
public boolean isCircular()
- Overrides:
isCircular
in classTypeDecl
-
annotation
public Annotation annotation(TypeDecl typeDecl)
- Overrides:
annotation
in classTypeDecl
-
implementedInterfaces
public HashSet implementedInterfaces()
- Overrides:
implementedInterfaces
in classTypeDecl
-
supertypeClassDecl
public boolean supertypeClassDecl(ClassDecl type)
- Overrides:
supertypeClassDecl
in classTypeDecl
-
supertypeInterfaceDecl
public boolean supertypeInterfaceDecl(InterfaceDecl type)
- Overrides:
supertypeInterfaceDecl
in classTypeDecl
-
supertypeArrayDecl
public boolean supertypeArrayDecl(ArrayDecl type)
- Overrides:
supertypeArrayDecl
in classTypeDecl
-
superEnclosing
public TypeDecl superEnclosing()
- Overrides:
superEnclosing
in classTypeDecl
-
typeDescriptor
public String typeDescriptor()
- Overrides:
typeDescriptor
in classTypeDecl
-
bridgeCandidates
public SimpleSet bridgeCandidates(String signature)
- Overrides:
bridgeCandidates
in classTypeDecl
-
Define_boolean_mayBeFinal
public boolean Define_boolean_mayBeFinal(ASTNode caller, ASTNode child)
- Overrides:
Define_boolean_mayBeFinal
in classTypeDecl
-
Define_NameType_nameType
public NameType Define_NameType_nameType(ASTNode caller, ASTNode child)
- Overrides:
Define_NameType_nameType
in classTypeDecl
-
Define_TypeDecl_hostType
public TypeDecl Define_TypeDecl_hostType(ASTNode caller, ASTNode child)
- Overrides:
Define_TypeDecl_hostType
in classTypeDecl
-
Define_boolean_withinSuppressWarnings
public boolean Define_boolean_withinSuppressWarnings(ASTNode caller, ASTNode child, String s)
- Overrides:
Define_boolean_withinSuppressWarnings
in classTypeDecl
-
Define_boolean_withinDeprecatedAnnotation
public boolean Define_boolean_withinDeprecatedAnnotation(ASTNode caller, ASTNode child)
- Overrides:
Define_boolean_withinDeprecatedAnnotation
in classTypeDecl
-
Define_boolean_inExtendsOrImplements
public boolean Define_boolean_inExtendsOrImplements(ASTNode caller, ASTNode child)
- Overrides:
Define_boolean_inExtendsOrImplements
in classASTNode<ASTNode>
-
rewriteTo
public ASTNode rewriteTo()
- Overrides:
rewriteTo
in classReferenceType
-
-