ClRef.java :  » Development » RetroGuard » COM » rl » obf » Java Open Source

Java Open Source » Development » RetroGuard 
RetroGuard » COM » rl » obf » ClRef.java
/* ===========================================================================
 * $RCSfile: ClRef.java,v $
 * ===========================================================================
 *
 * RetroGuard -- an obfuscation package for Java classfiles.
 *
 * Copyright (c) 1998-2006 Mark Welsh (markw@retrologic.com)
 *
 * This program can be redistributed and/or modified under the terms of the 
 * Version 2 of the GNU General Public License as published by the Free 
 * Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 * GNU General Public License for more details.
 *
 */

package COM.rl.obf;

import java.io.*;
import java.util.*;
import COM.rl.util.*;

/**
 * Reference to a class that may or may not currently exist in ClassTree.
 *
 * @author      Mark Welsh
 */
public class ClRef extends TreeItemRef
{
    // Constants -------------------------------------------------------------


    // Fields ----------------------------------------------------------------


    // Class Methods ---------------------------------------------------------


    // Instance Methods ------------------------------------------------------
    /** Ctor. */
    public ClRef(String name)
    {
  super(name, null, null);
    }

    /** Convert ref to item using ClassTree, or null if not present. */
    public TreeItem toTreeItem(ClassTree classTree) throws Exception
    {
  return classTree.getCl(className);
    }
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.