Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.jet.compiler
Class JET2CompilationUnit

java.lang.Object
  extended by 

org.eclipse.jet.compiler.JET2ASTElement
      extended by 
org.eclipse.jet.compiler.JET2CompilationUnit

Deprecated. Since 0.8.0, use JETCompilationUnit

public final class JET2CompilationUnit
extends JET2ASTElement

Represent a compilation unit (a template) in the JET2 AST.


Constructor Summary
JET2CompilationUnit ()
          Deprecated.  
JET2CompilationUnit (org.eclipse.core.resources.IFile file)
          Deprecated.  
JET2CompilationUnit (org.eclipse.jet.compiler.JET2AST jet2ast, JETCompilationUnit unit)
          Deprecated.  
 
Method Summary
 void accept ( JET2ASTVisitor visitor)
          Deprecated. Visit the AST and its contained elements.
 void addImports (java.util.List list)
          Deprecated.  
 void createProblem ( ProblemSeverity error, int problemId, java.lang.String message, java.lang.Object[] messageArgs, int start, int end, int line, int colOffset)
          Deprecated. Create a new problem on the compilation unit
 java.util.List getBodyElements ()
          Deprecated. Return a List of JET2 AST element (@link JETASTElement} instances.
  JETCompilationUnit getDelegateCU ()
          Deprecated. Return the underlying JETCompilationUnit to which this instance delegates.
 java.util.Set getImports ()
          Deprecated.  
 java.lang.String getOutputJavaClassName ()
          Deprecated. Return the unqualified name of the Java class into which the compilation unit will be compiled.
 java.lang.String getOutputJavaPackage ()
          Deprecated. Return the name of the Java package to which the compilation unit will be compiled.
 java.util.List getProblems ()
          Deprecated. Return a list of problems discovered in the compilation unit
  TagLibraryReference[] getTagLibraryReferences ()
          Deprecated. Return an array of tag libraries referenced by this template.
 boolean hasErrors ()
          Deprecated. Test if the compilation unit has any errors
 boolean hasWarnings ()
          Deprecated. Test if the compilation unit has any warnings
 void parse ()
          Deprecated.   
 void parse (java.io.InputStream contents, java.lang.String charset)
          Deprecated.   
 void parse (java.lang.String document)
          Deprecated.   
 void setOutputJavaClassName (java.lang.String outputJavaClassName)
          Deprecated. Set the unqualifeid name of the Java class into which the compilation unit will be compiled.
 void setOutputJavaPackage (java.lang.String outputJavaPackage)
          Deprecated. Set the Java package into which the compilation unit will be compiled.
 void setPredefinedTagLibraries (java.util.Map predefinedLibraryMap)
          Deprecated. Define tag library prefixes (and associated tag library ids) that are automatically available to the transform.
 
Methods inherited from class org.eclipse.jet.compiler. JET2ASTElement
getAst, getColumn, getEnd, getLine, getNextElement, getParent, getPrevElement, getStart, removeLineWhenOtherwiseEmpty, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JET2CompilationUnit

public JET2CompilationUnit()
Deprecated. 

JET2CompilationUnit

public JET2CompilationUnit(org.eclipse.core.resources.IFile file)
Deprecated. 
Parameters:
file -

JET2CompilationUnit

public JET2CompilationUnit(org.eclipse.jet.compiler.JET2AST jet2ast,
                           
JETCompilationUnit unit)
Deprecated. 
Method Detail

setPredefinedTagLibraries

public void setPredefinedTagLibraries(java.util.Map predefinedLibraryMap)
Deprecated. 
Define tag library prefixes (and associated tag library ids) that are automatically available to the transform.

Parameters:
predefinedLibraryMap - a map from prefix to tag library id.

parse

public void parse(java.lang.String document)
Deprecated. 

Parameters:
document -

parse

public void parse()
           throws org.eclipse.core.runtime.CoreException
Deprecated. 

Throws:
org.eclipse.core.runtime.CoreException

parse

public void parse(java.io.InputStream contents,
                  java.lang.String charset)
Deprecated. 

Parameters:
contents -
charset -

getBodyElements

public final java.util.List getBodyElements()
Deprecated. 
Return a List of JET2 AST element (@link JETASTElement} instances.

Returns:
a List. The empty list of there are no body elements.

accept

public void accept(
JET2ASTVisitor visitor)
Deprecated. 
Description copied from class: JET2ASTElement
Visit the AST and its contained elements.

Specified by:
accept in class JET2ASTElement
See Also:
JET2ASTElement.accept(org.eclipse.jet.compiler.JET2ASTVisitor)

getProblems

public java.util.List getProblems()
Deprecated. 
Return a list of problems discovered in the compilation unit

Returns:
a List of Problem objects. The empty list is returned if no problems were found.

hasErrors

public boolean hasErrors()
Deprecated. 
Test if the compilation unit has any errors

Returns:
true if the compilation unit had errors, false otherwise.

hasWarnings

public boolean hasWarnings()
Deprecated. 
Test if the compilation unit has any warnings

Returns:
true if the compilation unit had warnings, false otherwise.

createProblem

public void createProblem(
ProblemSeverity error,
                          int problemId,
                          java.lang.String message,
                          java.lang.Object[] messageArgs,
                          int start,
                          int end,
                          int line,
                          int colOffset)
Deprecated. 
Create a new problem on the compilation unit

Parameters:
error - the severity of the problem
problemId - the problem id. A value from Problem static files
message - an error message, with optional replacement tokens
messageArgs - the error message arguments
start - the start offset of the problem (doc relative)
end - the end offset of the problem (doc relative)
line - the line number of the problem (1 based)
colOffset - TODO

getOutputJavaPackage

public java.lang.String getOutputJavaPackage()
Deprecated. 
Return the name of the Java package to which the compilation unit will be compiled.

Returns:
a string

getOutputJavaClassName

public java.lang.String getOutputJavaClassName()
Deprecated. 
Return the unqualified name of the Java class into which the compilation unit will be compiled.

Returns:
Returns the outputJavaClassName.

setOutputJavaClassName

public void setOutputJavaClassName(java.lang.String outputJavaClassName)
Deprecated. 
Set the unqualifeid name of the Java class into which the compilation unit will be compiled.

Parameters:
outputJavaClassName - The outputJavaClassName to set.

setOutputJavaPackage

public void setOutputJavaPackage(java.lang.String outputJavaPackage)
Deprecated. 
Set the Java package into which the compilation unit will be compiled.

Parameters:
outputJavaPackage - The outputJavaPackage to set.

getTagLibraryReferences

public 
TagLibraryReference[] getTagLibraryReferences()
Deprecated. 
Return an array of tag libraries referenced by this template.

Returns:
a possibly empty array of tag library references.

addImports

public void addImports(java.util.List list)
Deprecated. 

getImports

public java.util.Set getImports()
Deprecated. 

getDelegateCU

public 
JETCompilationUnit getDelegateCU()
Deprecated. 
Return the underlying JETCompilationUnit to which this instance delegates. Useful for calling mashing only 0.7.x code with later code.

Returns:
the underlying JETCompilationUnit
Since:
0.8.0

Copyright 2006 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire