org.apache.aries.versioning.utils
Class ClassDeclaration

java.lang.Object
  extended by org.apache.aries.versioning.utils.GenericDeclaration
      extended by org.apache.aries.versioning.utils.ClassDeclaration

public class ClassDeclaration
extends GenericDeclaration


Constructor Summary
ClassDeclaration(int access, String name, String signature, String superName, String[] interfaces, URLClassLoader loader, SerialVersionClassVisitor cv)
           
 
Method Summary
 void addFields(FieldDeclaration fd)
           
 void addMethods(MethodDeclaration md)
           
 Map<String,FieldDeclaration> getAllFields()
           
 Map<String,Set<MethodDeclaration>> getAllMethods()
          Get the methods in the current class plus the methods in the upper chain
 Collection<String> getAllSupers()
           
 BinaryCompatibilityStatus getBinaryCompatibleStatus(ClassDeclaration old)
           
 Collection<FieldDeclaration> getExtraFields(ClassDeclaration old)
          Return the newly added fields
 Collection<MethodDeclaration> getExtraMethods(ClassDeclaration old)
          Return the extra non-private methods
 Map<String,FieldDeclaration> getFields()
           
 Map<String,FieldDeclaration> getFieldsInUpperChain()
           
 String[] getInterfaces()
           
 Map<String,Set<MethodDeclaration>> getMethods()
           
 Map<String,Set<MethodDeclaration>> getMethodsInUpperChain()
           
 SerialVersionClassVisitor getSerialVisitor()
           
 String getSuperName()
           
 Collection<String> getUpperChainRecursively(String className)
           
 boolean isAbstract()
           
 boolean isMethodInSuperClass(MethodDeclaration md)
           
 
Methods inherited from class org.apache.aries.versioning.utils.GenericDeclaration
equals, getAccess, getName, getSignature, hashCode, isFinal, isPrivate, isProtected, isPublic, isStatic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDeclaration

public ClassDeclaration(int access,
                        String name,
                        String signature,
                        String superName,
                        String[] interfaces,
                        URLClassLoader loader,
                        SerialVersionClassVisitor cv)
Method Detail

getFields

public Map<String,FieldDeclaration> getFields()

getAllFields

public Map<String,FieldDeclaration> getAllFields()

getAllMethods

public Map<String,Set<MethodDeclaration>> getAllMethods()
Get the methods in the current class plus the methods in the upper chain

Returns:
map of method name to set of method declarations

getMethods

public Map<String,Set<MethodDeclaration>> getMethods()

getFieldsInUpperChain

public Map<String,FieldDeclaration> getFieldsInUpperChain()

getMethodsInUpperChain

public Map<String,Set<MethodDeclaration>> getMethodsInUpperChain()

getUpperChainRecursively

public Collection<String> getUpperChainRecursively(String className)

getAllSupers

public Collection<String> getAllSupers()

getSuperName

public String getSuperName()

getInterfaces

public String[] getInterfaces()

addFields

public void addFields(FieldDeclaration fd)

addMethods

public void addMethods(MethodDeclaration md)

getBinaryCompatibleStatus

public BinaryCompatibilityStatus getBinaryCompatibleStatus(ClassDeclaration old)

isAbstract

public boolean isAbstract()

getExtraFields

public Collection<FieldDeclaration> getExtraFields(ClassDeclaration old)
Return the newly added fields

Parameters:
old - old class declaration
Returns:
FieldDeclarations for fields added to new class

getExtraMethods

public Collection<MethodDeclaration> getExtraMethods(ClassDeclaration old)
Return the extra non-private methods

Parameters:
old - old class declaration
Returns:
method declarations for methods added to new class

isMethodInSuperClass

public boolean isMethodInSuperClass(MethodDeclaration md)

getSerialVisitor

public SerialVersionClassVisitor getSerialVisitor()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.