Find java objects in a given string.
am trying to find out, what are the java objects in a given string. Given java source file as an in put to a file reader. i wil read line by line of the given file and list out the java objects in a given line and want to find out the base class of the same.
given a line as :
listenerSocket = new ServerSocket(Integer.parseInt(FilePropertyManager. getProperty("TPIN_LISTENER_PORT","TPINListener.pro perties")));
listenerSocket is instance of java.net.ServerSocket;
= is an operator
new is a key word
ServerSocket is instance of java.net.ServerSocket;
Integer is a instance of java.lang.Integer
parseInt is an instance of java.lang.Integer.parseInt
FilePropertyManager isn an instance of java.io.FilePropertyManager
can i get any sample code ... for this