Class ClassNode

    • Constructor Detail

      • ClassNode

        public ClassNode​(String name)
        Creates a new ClassNode with the given name.
        Parameters:
        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
        Returns:
        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.
        Parameters:
        methodName - the method name
        signature - the signature of the method
        Returns:
        the created and linked package node