Java full Language wrapper 11-19-2012, 07:17 PM
#1
Hi All,
Ive been working on a wrapper for the entire Java language (to make programming easier for beginners). Here is my current documentation:
CURRENT FUNCTIONS: 30
CURRENCT FILES: 4 -- {file.java, Sys.java, graphics.java, Network.java)
FORMAT: function -- name -- what it takes(name)
Here Is an Example Program:
Here is the output:
Documentation.DoC
Ive been working on a wrapper for the entire Java language (to make programming easier for beginners). Here is my current documentation:
CURRENT FUNCTIONS: 30
CURRENCT FILES: 4 -- {file.java, Sys.java, graphics.java, Network.java)
FORMAT: function -- name -- what it takes(name)
Code:
1. print -- Pout -- String(string)
2. print line -- PLout -- String(string)
3. print format -- PFout -- String(string)
4. print error -- Perr -- String(string)
5. print error line -- PLerr -- String(string)
6. print error format -- PFerr -- String(string)
7. current time mills -- MTime -- NOTHING
8. current time nanos -- NTime -- NOTHING
9. system properties -- Prop -- NOTHING
10. program shutdown -- exit -- Integer(register)
11. program pause -- pause -- Integer(time)
12. random number -- random -- Integer(time)
13. new file -- nFile -- String(FileName), String(FileType)
14. new folder -- nFolder -- String(FolderName)
15. new directory -- nDirectory -- String(Directory)
16. new screenshot -- ScreenShot -- String(PictureName)
17. write to file -- nFileWrite -- String(FileName),String(FileType),String(Text)
18. read from file -- nFileReader -- String(FileName), String(FileType)
19. file to url -- FiletoURL -- String(FileName), String(FileType)
20. new JFrame -- Frame -- String(Title),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation),boolean(SetVisible)
21. new JButton -- Button -- String(Text),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation)
22. new JTextField -- TextField -- String(Text),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation)
23. new JTextArea -- TextArea -- String(Text),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation),boolean(TextWrap)
24. new JLabel -- Label -- String(Text),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation)
25. new JRadioButton -- RadioButton -- String(Text),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation)
26. new JCheckBox -- CheckBox -- String(Text),Integer(Width),Integer(Height),Integer(XLocation),Integer(YLocation)
27. new JFileChooser -- FileChooser -- String(Text),Integer(Width),Integer(Height),Integer(xLocation),Integer(YLocation)
28. new ChatServer -- Server -- Integer(port)
29. new ChatClient -- Client -- Integer(ip),Integer(port)
30. ping -- Ping -- String(ip)
Here Is an Example Program:
Code:
import java.io.IOException;
import lang.src.Network;
import lang.src.Sys;
import lang.src.file;
import lang.src.graphics;
public class TestStuff {
static file f = new file();
static graphics g = new graphics();
static Network n = new Network();
static Sys s = new Sys();
public static void main(String[] args) throws IOException {
f.nFile("Documentation", "DoC");//creates a new file called "Documentation.DoC"
int amount = s.random(20);//creates a new random number between 0 and 20
s.PLerr("Writing " + amount + " lines to File");
for(int i = 0; i < amount; i++){
int write = s.random(500);//creates a new random number between 0 and 500
f.nFileWrite("Documentation", "DoC", ( "" +write));//writes the random number (the "" part is to make it a string)
s.pause(1);//pauses program for 1 second
}
s.PLout(" ");//just for new line
s.PLout("Please wait as I read the file...");//same thing as System.out.println
s.pause(2);//pauses for 2 seconds
f.nFileReader("Documentation", "DoC");//reads file and prints out contents
s.pause(1);//pauses for 1 second
s.PLerr("FUNCTION FINISHED");
s.exit(0);//shuts down program
}
}
Here is the output:
Code:
Writing 10 lines to File
'228' was added to file: Documentation.DoC
'473' was added to file: Documentation.DoC
'430' was added to file: Documentation.DoC
'204' was added to file: Documentation.DoC
'270' was added to file: Documentation.DoC
'311' was added to file: Documentation.DoC
'106' was added to file: Documentation.DoC
'461' was added to file: Documentation.DoC
'92' was added to file: Documentation.DoC
'358' was added to file: Documentation.DoC
Please wait as I read the file...
228
473
430
204
270
311
106
461
92
358
FUNCTION FINISHED
Documentation.DoC
Code:
228
473
430
204
270
311
106
461
92
358
(This post was last modified: 11-19-2012, 07:18 PM by Frankie.)