hep.io.root.core
Class NameMangler
java.lang.Object
hep.io.root.core.NameMangler
public class NameMangler
- extends Object
Controls name mangling when building Java classes corresponding to Root classes.
- Version:
- $Id: NameMangler.java 13618 2009-04-10 00:02:54Z tonyj $
- Author:
- tonyj
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameMangler
public NameMangler()
instance
public static NameMangler instance()
mangleInterfaceName
public String mangleInterfaceName(String rootClassName)
- Given a root class name, returns the name of the corresponding java interface.
mangleMember
public String mangleMember(String in)
- Name mangling applied to root member variables.
By default:
- If the name begins with f followed by an uppercase letter, we remove the f
- If the variable begins with m_ we remove it
- We uppercase the initial letter
- Prepend get
Copyright © 2000-2013 FreeHEP. All Rights Reserved.