This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private exportSelf As Boolean | |
Public Const MODULE_NAME_SPACE As String = "VBACodeExporter" | |
Private Enum ComponentType | |
STANDARD_MODULE = 1 | |
CLASS_MODULE = 2 | |
USER_FORM = 3 | |
DOCUMENT_MODULE = 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'A': 'A', 'C': 'C', 'G': 'G', 'T': '[TU]', | |
'R': '[AG]', 'Y': '[CTU]', 'S': '[GC]', | |
'W': '[ATU]', 'K': '[GTU]', 'M': '[AC]', | |
'B': '[CGTU]', 'D': '[AGTU]', | |
'H': '[ACTU]', 'V': '[ACG]', | |
'N': '[ACGTU]' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Invoke method by using reflection. | |
* Require PHP5 (>= 5.3.2) | |
* @param $method_name | |
* @param $obj - An object that invokes the method. | |
* @param mothod_args... Arguments for the method. | |
*/ | |
public static function invoke_method($method_name, $obj) { | |
$class_name = get_class($obj); | |
$class = new ReflectionClass($class_name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creating a instance by using FEST Reflection for testing of Swing Application Framework | |
* require import static org.fest.reflect.core.Reflection.*; | |
*/ | |
protected static <C extends Application> C createApplicationInstance(Class<C> appClass, String[] args) { | |
C application = | |
staticMethod("create") | |
.withReturnType(appClass) | |
.withParameterTypes(Class.class) | |
.in(appClass) |
NewerOlder