|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hyper9.simdk.codegen.impls.MetaTypeImpl
public abstract class MetaTypeImpl
Constructor Summary | |
---|---|
protected |
MetaTypeImpl(Class<?> inType,
String inTypeSourceFilePath)
Creates a new instance of the MetaTypeImpl class. |
Method Summary | |
---|---|
protected void |
addOutImportType(String typeName)
|
protected void |
addXmlTypeName()
|
void |
build()
Builds the type to be written. |
List<String> |
getAnnotations()
Gets a list of this out type's annotations. |
Class<?> |
getInType()
Gets the In type. |
String |
getInTypeSourceFilePath()
Gets the path to the source file of the In type. |
List<MetaMethod> |
getMethods()
Get this meta type's methods. |
List<String> |
getOutImports()
Gets a list of the types to import for the out type. |
OutType |
getOutType()
Gets the Out type. |
protected String |
getPathToOutFile(String rootPath)
|
List<MetaProperty> |
getProperties()
Get this meta type's properties. |
protected boolean |
isTypeObject(OutType outType)
|
protected static String |
upCaseFirstChar(String toUpCase)
|
void |
writeToFile(String path)
Writes the meta type to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hyper9.simdk.codegen.types.MetaType |
---|
getCompilationType, writeCompilationTypeContent |
Constructor Detail |
---|
protected MetaTypeImpl(Class<?> inType, String inTypeSourceFilePath)
inType
- The VMware type the MetaType is based on.inTypeSourceFilePath
- The full path to the In type's source file.Method Detail |
---|
public Class<?> getInType()
MetaType
getInType
in interface MetaType
public String getInTypeSourceFilePath()
MetaType
getInTypeSourceFilePath
in interface MetaType
public void build() throws Exception
MetaType
build
in interface MetaType
Exception
protected void addXmlTypeName()
protected void addOutImportType(String typeName)
public OutType getOutType()
MetaType
getOutType
in interface MetaType
public List<MetaProperty> getProperties()
MetaType
getProperties
in interface MetaType
public List<MetaMethod> getMethods()
MetaType
getMethods
in interface MetaType
protected static String upCaseFirstChar(String toUpCase)
protected String getPathToOutFile(String rootPath)
protected boolean isTypeObject(OutType outType)
public List<String> getOutImports()
MetaType
getOutImports
in interface MetaType
public List<String> getAnnotations()
MetaType
getAnnotations
in interface MetaType
public void writeToFile(String path) throws Exception
MetaType
writeToFile
in interface MetaType
path
- The path of the root directory to write the file.
Exception
- When an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |