Clones replacing the symbol type name.
@param name the symbol type name
@return Returns a copy of this symbol type replacing the name
547910
public SymbolType withName(String name) {
        return clone(marker, name, arrayCount, typeVariable, null, null);
    }
614823
private String makePropertyName(String name) {
        if (name.startsWith(beanParser.getFieldPrefix())) {
            return name.substring(beanParser.getFieldPrefix().length());
        }
        return name;
    }
1327287
private PTypeList convertGeneric(String name)
	{
		String nameNoLessOrGreater = name.substring(name.indexOf("<") + 1, name.length() - 1);

		String[] typeStrings = nameNoLessOrGreater.split(",");

		// decide if the split is valid or if the type is a single generic type
		boolean notSingleGenericType = true;
		for (String part : typeStrings)
		{
			if (part.replaceAll("[^<]", "").length() != part.replaceAll("[^>]", "").length())
			{
				notSingleGenericType = false;
			}
		}

		PTypeList types = new PTypeList();
		if (notSingleGenericType)
		{
			for (String t : typeStrings)
			{
				types.add(convert(t, null));
			}
		} else
		{
			types.add(convert(nameNoLessOrGreater, null));
		}
		return types;
	}
1089577
public static String formatNameForClassLoading(String name) {
        if (name == null) {
            return "java.lang.Object;";
        }

        if (TypeUtil.isPrimitiveType(name)) {
            return name;
        }

        if (name.startsWith("[")) {
            return name.replace('/', '.');
        }

        if (name.startsWith("L")) {
            name = name.substring(1);
            if (name.endsWith(";")) {
                name = name.substring(0, name.length() - 1);
            }
            return name.replace('/', '.');
        }

        String prefix = "";
        if (name.endsWith("[]")) { // todo need process multi
            prefix = "[";
            name = name.substring(0, name.length() - 2);

            return prefix + TypeUtil.getDescriptionByName(name);
        }

        return name.replace('/', '.');
    }
245126
public Name setName(String name) {
		Name property = (name == null) ? null : new Name(name);
		setName(property);
		return property;
	}
108925
def copy(self, name=None):
        
        if name is None:
            return Attribute(
                javabridge.call(self.jobject, "copy", "()Ljava/lang/Object;"))
        else:
            return Attribute(
                javabridge.call(self.jobject, "copy", "(Ljava/lang/String;)Lweka/core/Attribute;", name))
756782
private static String extractPropertyName(final String name) {
        final int size = name.startsWith("is") ? 2 : 3;
        final char chars[] = name.substring(size).toCharArray();
        chars[0] = Character.toLowerCase(chars[0]);
        return new String(chars);
    }
155657
public static Specification newInstance(String name)
    {
        Specification specification = new Specification();
        specification.setName(name);
        return specification;
    }
284330
public static UUID fromString( String name ) {
        UUID newUUID = new UUID();
        newUUID.uuidValue = name;
        return newUUID;
    }
701831
public static int valueFromName(String name) {
        if (name.equals(TYPENAME_SIMPLE_REFERENCE)) {
            return SIMPLE_REFERENCE;
        }
        return javax.jcr.PropertyType.valueFromName(name);
    }
146530
private static String utf8Name(final String name) {
    final Matcher matcher = pattern.matcher(name);
    if (!matcher.matches())
      return name;
    if (matcher.group(2).isEmpty())
      return matcher.group(1);
    return matcher.group(1) + getSubscript(matcher.group(2));
  }
768622
private Header newHeader(AsciiString name){
        Header header = new Header(name);
        if(first==null)
            first = header;
        else{
            header.prev = first.prev;
            first.prev.next = header;
            first.prev = header;
        }
        return header;
    }
1209327
private String replaceCharacters(String name) {
        name = name.replaceAll("&gt;", ">");
        name = name.replaceAll("&lt;", "<");
        name = name.replaceAll("&amp;", "&");
        name = name.replaceAll("<\\%", "<%");
        name = name.replaceAll("%\\>", "%>"); 
        return name;
    }
378810
public String map(String name) {
		String mapped = super.get(name);
		if (mapped == null) {
			mapped = String.format("%s%03d", BASENAME, count.incrementAndGet());
			super.put(name, mapped);
		}
		return mapped;
	}
237991
public Class<?> lookupType(String name) throws ClassNotFoundException {
        if (name == null) {
            throw new IllegalArgumentException("name must not be null");
        }
        Class<?> type = typeRenames.get(name);
        if (type == null) {
            type = StringConvert.loadType(name);
        }
        return type;
    }
970898
public static <T extends NamedElement> ElementMatcher.Junction<T> named(String name) {
        return new NameMatcher<T>(new StringMatcher(name, StringMatcher.Mode.EQUALS_FULLY));
    }
1131051
public PropertyBuilder string(final String name) {
        name(name);
        type(Property.Type.String);
        return this;
    }