GrammarScope  4.0.0
Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes | List of all members
grammarscope.tweak.Tweak Class Reference

Static Public Member Functions

static CtClass tweakMark () throws Exception
 
static void tweak (final Output thisMode, final String thisDir, final String thisJarName, final String thisVersion) throws Exception
 
static void tweakToClass () throws Exception
 
static void test ()
 
static void main (final String[] args) throws Exception
 

Static Public Attributes

static final String theTweakMarkClassName = "edu.stanford.nlp.trees.TweakMark"
 

Static Private Member Functions

static CtClass tweakClass () throws NotFoundException, CannotCompileException
 
static String ensureDirExists (final String thisDir)
 

Static Private Attributes

static final String theStamp = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new Date())
 
static final String theGRClassName = "edu.stanford.nlp.trees.GrammaticalRelation"
 
static final String[] theMethodDefs
 
static final String[] theConstructorDefs
 
static final String[] theMarkMethodDefs
 
static final String[] theImports
 

Member Function Documentation

◆ ensureDirExists()

static String grammarscope.tweak.Tweak.ensureDirExists ( final String  thisDir)
staticprivate

◆ main()

static void grammarscope.tweak.Tweak.main ( final String[]  args) throws Exception
static

◆ test()

static void grammarscope.tweak.Tweak.test ( )
static

◆ tweak()

static void grammarscope.tweak.Tweak.tweak ( final Output  thisMode,
final String  thisDir,
final String  thisJarName,
final String  thisVersion 
) throws Exception
static

Tweak

Parameters
thisModeoutput node NONE, JAR, FILE, JVM, JVMTEST
thisDirdirector for JAR, FILE
thisJarNamefor JAR
thisVersionfor JAR
Exceptions
Exceptionexception

◆ tweakClass()

static CtClass grammarscope.tweak.Tweak.tweakClass ( ) throws NotFoundException, CannotCompileException
staticprivate

◆ tweakMark()

static CtClass grammarscope.tweak.Tweak.tweakMark ( ) throws Exception
static

Tweak from model

Returns
ctclass
Exceptions
Exceptionexception

◆ tweakToClass()

static void grammarscope.tweak.Tweak.tweakToClass ( ) throws Exception
static

Member Data Documentation

◆ theConstructorDefs

final String [] grammarscope.tweak.Tweak.theConstructorDefs
staticprivate
Initial value:
= new String[] {
}

◆ theGRClassName

final String grammarscope.tweak.Tweak.theGRClassName = "edu.stanford.nlp.trees.GrammaticalRelation"
staticprivate

◆ theImports

final String [] grammarscope.tweak.Tweak.theImports
staticprivate
Initial value:
= new String[] {
"java.util.List",
"java.util.Map",
"java.util.regex.Pattern",
"edu.stanford.nlp.trees.tregex.TregexPattern",
"edu.stanford.nlp.trees.GrammaticalRelation",
}

◆ theMarkMethodDefs

final String [] grammarscope.tweak.Tweak.theMarkMethodDefs
staticprivate
Initial value:
= new String[] {
String.format("static public String tweakedWhen() { return \"%s\"; }", Tweak.theStamp),
}

◆ theMethodDefs

final String [] grammarscope.tweak.Tweak.theMethodDefs
staticprivate
Initial value:
= new String[] {
"public List getChildren() { return children; }",
"public Pattern getSourcePattern() { return sourcePattern;}",
"public List getTargetPatterns() { return targetPatterns;}",
"public void setSourcePattern(Pattern sp) { sourcePattern = sp; }",
"public void setTargetPatterns(List tp) { targetPatterns = tp; }",
"public void setSpecific(String s) { specific = s;}",
"static public Map getStringsToRelations() { return stringsToRelations;}",
"static public boolean tweaked() { return true;}",
String.format("static public String tweakedWhen() { return \"%s\"; }", Tweak.theStamp),
}

◆ theStamp

final String grammarscope.tweak.Tweak.theStamp = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new Date())
staticprivate

◆ theTweakMarkClassName

final String grammarscope.tweak.Tweak.theTweakMarkClassName = "edu.stanford.nlp.trees.TweakMark"
static

The documentation for this class was generated from the following file: