org.codehaus.modello.plugin.java.javasource
Class JMapType
java.lang.Object
org.codehaus.modello.plugin.java.javasource.JType
org.codehaus.modello.plugin.java.javasource.JComponentizedType
org.codehaus.modello.plugin.java.javasource.JMapType
public final class JMapType
- extends JComponentizedType
JType sub-class for maps.
- Since:
- 1.8
- Author:
- Simone Tripodi
|
Constructor Summary |
JMapType(String typeName,
JType componentType,
boolean useJava50)
Creates an instance of a map type, of type 'mapName'. |
JMapType(String typeName,
String instanceName,
JType componentType,
boolean useJava50)
Creates an instance of a map type, of type 'mapName'. |
|
Method Summary |
String |
getInstanceName()
Returns the instance name of this map type. |
String |
toString()
Returns the String representation of this JType, which is
simply the name of this type.
Returns the String representation of this JType. |
JMapType
public JMapType(String typeName,
JType componentType,
boolean useJava50)
- Creates an instance of a map type, of type 'mapName'.
- Parameters:
typeName - Name of the map type interface.componentType - Component type.useJava50 - True if Java 5.0 should be used.
JMapType
public JMapType(String typeName,
String instanceName,
JType componentType,
boolean useJava50)
- Creates an instance of a map type, of type 'mapName'.
- Parameters:
typeName - Name of the map type interface.instanceName - Name of the actual map type instance.componentType - Component type.useJava50 - True if Java 5.0 should be used.
getInstanceName
public String getInstanceName()
- Returns the instance name of this map type.
- Returns:
- The instance name of this map type.
toString
public String toString()
- Returns the String representation of this JType, which is
simply the name of this type.
Returns the String representation of this JType.
- Overrides:
toString in class JType
- Returns:
- the String representation of this JType
Copyright © 2001-2013 Codehaus. All Rights Reserved.