Class ClassNode

    • Constructor Detail

      • ClassNode

        public ClassNode​(String name)
        Creates a new ClassNode with the given name.
        name - the name of the class
    • Method Detail

      • copy

        public ClassNode copy()
        Description copied from class: Node
        Creates a copy of this instance that has no children and no parent yet. Node properties from the parent class Node must not be copied. All other immutable properties need to be copied one by one.
        Specified by:
        copy in class Node
        the copied node
      • createMethodNode

        public MethodNode createMethodNode​(String methodName,
                                           String signature)
        Create a new method node with the given method name and signature and add it to the list of children.
        methodName - the method name
        signature - the signature of the method
        the created and linked package node