Frag Home
|
Frag SF Project
index
|
contents
|
next
Frag Documentation
This is the documentation of the Frag language. It contains the following contents:
Frag Documentation
About Frag
Installing and Running Frag
Installation
Using Frag interactively
Using Frag with Source
Loading Scripts via the Shell
Frag Eclipse Editor Plugins
Frag Unit Test Suite
Ant File
Basics
Overview
Invocation Syntax
Basic IO
puts
gets
Variable Slots
Variable Substitution
Code Substitution
Backslash Substitution
Quotes and Braces
Continuing Lines
Expressions and Expression Substitution
Unparsed Regions
Control Structures
If-Statement
Switch-Statement
While-Loop
For-Loop
Foreach-Loop
Break-Statement
Continue-Statement
Expressions and Mathematical Functions
Expression Evaluation
Expression Operators
Substitutions in Expressions
Usable Data Types in Expressions
Mathematical Functions: The Math Command
math abs
math acos
math asBoolean
math asDouble
math asInt
math asLong
math asin
math atan
math atan2
math ceil
math cos
math exp
math floor
math format
math log
math pow
math random
math round
math sin
math sqrt
math tan
Frag Object System
Objects and Classes
Object and Class Concept
Defining Objects
The Classes Relationship
The Superclasses Relationship
Making an Object its own Class
Introspection Options
Reflection on Class and Superclass Relationships
Mixins
Object: Method Reference
Object
append
classes
configure
create
defaults
deleteMethod
get
getArgs
getBody
getClass
getClasses
getConfigureArg
getDefaults
getInstances
getMethods
getMethodType
getMixinOf
getMixins
getNextPath
getObjectID
getRefCount
getSubclasses
getSubtypes
getSuperclasses
getSupertypes
getVars
isType
method
mixins
rename
renameMethod
set
superclasses
unname
unset
varExists
Commands
Predefined Commands
User-defined Commands
Variables
Object Variables
Variable Slots: Setter, Getter, Unset
Defaults
Reflection on Object Variables
Local and Global Variables
Variable Manipulation Commands
get
set
unset
subst
Methods
Methods
Defining Methods
The "args" Parameter
The "self" Command
The "return" command
Variable Access in Methods
Constructor
Dynamic Methods
Configure Arguments
Reflection on Methods
Callstack Information
callstack class
callstack level
callstack method
callstack self
callstack trace
Dispatcher Methods: * and ?
Method "?"
Method "*"
Bypassing Dispatchers
Namespaces
Namespaces: Overview
Namespace: Method Reference
Namespace evalGlobalInScope
Namespace evalInScope
Namespace getMembers
Namespace isMember
Namespace unnameMembers
Namespace::NamespaceClass
Namespace::NamespaceClass evalGlobal
Namespace::NamespaceClass getNamespace
Class Hierarchy and Class Path Linearizing
Dispatch Order
The "next" Command
Strings
Strings as Data Structures
String Matching
Exact Matching
Pattern Matching
Regular Expression Matching
String Manipulation
string append
string build
string compare
string index
string indexOf
string lastIndexOf
string length
string match
string regex
string replace
string subString
string toLower
string toUpper
string trim
string trimLeft
string trimRight
Lists
Lists as Data Structures
Expand Syntax
List Manipulation
append
list build
list delete
list index
list insert
list join
list length
list replace
list search
list sort
list split
list subList
Exception Handling
Exceptions
Throwing Exceptions
Catching Exceptions
Exception Objects: Method Reference
getInfo
getMsg
msg
Evaluating Code Using "eval"
Accessing the Interpreter
interp exit
interp getImportPath
interp getObjects
interp getVars
interp getEnv
interp isObject
interp setImportPath
interp stopEval
interp time
interp memory
interp varExists
Loading and Importing Frag Files and Java Classes
Overview
source
load
import
Garbage Collector
Object References
Object Names and Unnamed Objects
Duals
Extending Frag from Java
Hashtable
Hashtable clear
Hashtable containsKey
Hashtable getList
Hashtable keys
Hashtable setList
Hashtable size
Hashtable values
File Handling
Overview
File: class object methods
constructFileName
getSeparator
getUserDir
File: instance methods
append
copyDirTo
copyTo
createNewFile
delete
deleteDir
exists
getAbsoluteFile
getCanonicalFile
getParent
isDirectory
length
listDir
mkdir
mkdirs
name
read
renameTo
write
index
|
contents
|
next