Regular Expressions in Java and Perl
The two main classes of the java.util.regex API are Pattern and Matcher. In the tutorial, you start by creating a java file, RegexTestHarness.java, that can be used to read in different regular expressions from the file regex.txt. The regular expression read from regex.txt is compiled into a pattern using the compile method of the Pattern class; the pattern is used to find instances that match the regular expression using the matcher method of the same class.
Read more
Java bytecode engineering library
Program analysis, generation and transformation are useful techniques that can be used in many situations:
• Program analysis, which can range from a simple syntaxic parsing to a full semantic analysis, can be used to find potential bugs in applications, to detect unused code, to reverse engineer code, etc.
• Program generation is used in compilers. This include traditional compilers, but also stub or skeleton compilers used for distributed programming, Just in Time compilers, etc.
• Program transformation can be used to optimize or obfuscate programs, to insert debugging or performance monitoring code into applications, for aspect oriented programming, etc.
Read more
A new Approach for Implementing stand-alone and web-based Interpreters for Java
Compared to imperative programming languages like Pascal or Basic, or functional programming languages like ML or Haskell learning Java is hampered by the fact that to get even the simplest running program the learner has to define a public class and a method with a certain signature. We present both a stand-alone and a web-based interpreter which execute Java fragments and relieve the learner from programming all the extra code. The implementation of these interpreters extremely differs from other Java interpreters and exploits the Java compiler as much as possible to preserve the original semantics of Java and allow access to all features and APIs of Java. By virtue of these interpreters the learner can explore primitive values, variables, expressions, assignments, and control-flow statements before even knowing about classes and methods. The web-based interpreter has been integrated into an online tutorial for learning Java programming from basic principles.
Read more
BEA WebLogic Tutorial IBM VisualAge for Java
IBM VisualAge for Java Version 3.5 (Professional or Enterprise Edition) is an integrated, visual environment that supports the complete cycle of Java program development. BEA WebLogic Server is an award-winning Java application server for developing, deploying, and managing Web applications. It simplifies development of portable and scalable applications, and it provides interoperability with other applications and systems. BEA WebLogic Server also offers the most complete implementation of the Java 2 Enterprise Edition standard.
Read more
Java Inherited Annotations Tutorial
The open-source library of inherited annotations is for Java-developers solving the annotation inheritance task. The annotations being inherited are of classes, interfaces, or their methods. It uses the consistent inheritance model: inheritance proceeds only if the same annotation is not present on the same element (class, interface or method) within superclasses or superinterfaces. Annotations can be overridden within descendants. The library is open-source and free, with no restriction for commercial application.
Read more