Class ClassNode

  • All Implemented Interfaces:
    java.lang.Comparable<ClassNode>, NodeVisitorAcceptor

    public class ClassNode
    extends java.lang.Object
    implements NodeVisitorAcceptor, java.lang.Comparable<ClassNode>
    Represents a Class in a UsageGraph. Contains lists of FieldNodes, ConstructorNodes, and MethodNodes.
    • Constructor Detail

      • ClassNode

        public ClassNode​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getType

        public java.lang.Class<?> getType()
      • defineField

        public FieldNode defineField​(java.lang.String name,
                                     java.lang.String desc)
      • defineConstructor

        public ConstructorNode defineConstructor​(java.lang.String name,
                                                 java.lang.String desc)
      • defineMethod

        public MethodNode defineMethod​(java.lang.String name,
                                       java.lang.String desc)
      • getFieldNodes

        public java.util.List<FieldNode> getFieldNodes()
      • getConstructorNodes

        public java.util.List<ConstructorNode> getConstructorNodes()
      • getMethodNodes

        public java.util.List<MethodNode> getMethodNodes()
      • compareTo

        public int compareTo​(ClassNode that)
        Specified by:
        compareTo in interface java.lang.Comparable<ClassNode>
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object