text
stringlengths
30
1.67M
<s> package org . eclipse . jdt . core ; import org . eclipse . core . resources . IStorage ; import org . eclipse . core . runtime . IPath ; public interface IJarEntryResource extends IStorage { IJarEntryResource [ ] getChildren ( ) ; IPath getFullPath ( ) ; Object getParent ( ) ; IPackageFragmentRoot getPackageFragmentRoot ( ) ; boolean isFile ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . resources . IResourceDelta ; import org . eclipse . jdt . core . dom . CompilationUnit ; public interface IJavaElementDelta { public int ADDED = <NUM_LIT:1> ; public int REMOVED = <NUM_LIT:2> ; public int CHANGED = <NUM_LIT:4> ; public int F_CONTENT = <NUM_LIT> ; public int F_MODIFIERS = <NUM_LIT> ; public int F_CHILDREN = <NUM_LIT> ; public int F_MOVED_FROM = <NUM_LIT> ; public int F_MOVED_TO = <NUM_LIT> ; public int F_ADDED_TO_CLASSPATH = <NUM_LIT> ; public int F_REMOVED_FROM_CLASSPATH = <NUM_LIT> ; public int F_CLASSPATH_REORDER = <NUM_LIT> ; public int F_REORDER = <NUM_LIT> ; public int F_OPENED = <NUM_LIT> ; public int F_CLOSED = <NUM_LIT> ; public int F_SUPER_TYPES = <NUM_LIT> ; public int F_SOURCEATTACHED = <NUM_LIT> ; public int F_SOURCEDETACHED = <NUM_LIT> ; public int F_FINE_GRAINED = <NUM_LIT> ; public int F_ARCHIVE_CONTENT_CHANGED = <NUM_LIT> ; public int F_PRIMARY_WORKING_COPY = <NUM_LIT> ; public int F_CLASSPATH_CHANGED = <NUM_LIT> ; public int F_PRIMARY_RESOURCE = <NUM_LIT> ; public int F_AST_AFFECTED = <NUM_LIT> ; public int F_CATEGORIES = <NUM_LIT> ; public int F_RESOLVED_CLASSPATH_CHANGED = <NUM_LIT> ; public int F_ANNOTATIONS = <NUM_LIT> ; public IJavaElementDelta [ ] getAddedChildren ( ) ; public IJavaElementDelta [ ] getAffectedChildren ( ) ; public IJavaElementDelta [ ] getAnnotationDeltas ( ) ; public CompilationUnit getCompilationUnitAST ( ) ; public IJavaElementDelta [ ] getChangedChildren ( ) ; public IJavaElement getElement ( ) ; public int getFlags ( ) ; public int getKind ( ) ; public IJavaElement getMovedFromElement ( ) ; public IJavaElement getMovedToElement ( ) ; public IJavaElementDelta [ ] getRemovedChildren ( ) ; public IResourceDelta [ ] getResourceDeltas ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IProgressMonitor ; public interface IOpenable { public void close ( ) throws JavaModelException ; public String findRecommendedLineSeparator ( ) throws JavaModelException ; public IBuffer getBuffer ( ) throws JavaModelException ; boolean hasUnsavedChanges ( ) throws JavaModelException ; boolean isConsistent ( ) throws JavaModelException ; boolean isOpen ( ) ; void makeConsistent ( IProgressMonitor progress ) throws JavaModelException ; public void open ( IProgressMonitor progress ) throws JavaModelException ; public void save ( IProgressMonitor progress , boolean force ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; public interface IAnnotation extends IJavaElement , ISourceReference { String getElementName ( ) ; IMemberValuePair [ ] getMemberValuePairs ( ) throws JavaModelException ; int getOccurrenceCount ( ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface IImportDeclaration extends IJavaElement , ISourceReference , ISourceManipulation { String getElementName ( ) ; int getFlags ( ) throws JavaModelException ; boolean isOnDemand ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . resources . IWorkspace ; import org . eclipse . core . runtime . IPath ; import org . eclipse . core . runtime . IProgressMonitor ; public interface IJavaModel extends IJavaElement , IOpenable , IParent { boolean contains ( IResource resource ) ; void copy ( IJavaElement [ ] elements , IJavaElement [ ] containers , IJavaElement [ ] siblings , String [ ] renamings , boolean replace , IProgressMonitor monitor ) throws JavaModelException ; void delete ( IJavaElement [ ] elements , boolean force , IProgressMonitor monitor ) throws JavaModelException ; IJavaProject getJavaProject ( String name ) ; IJavaProject [ ] getJavaProjects ( ) throws JavaModelException ; Object [ ] getNonJavaResources ( ) throws JavaModelException ; IWorkspace getWorkspace ( ) ; void move ( IJavaElement [ ] elements , IJavaElement [ ] containers , IJavaElement [ ] siblings , String [ ] renamings , boolean replace , IProgressMonitor monitor ) throws JavaModelException ; void refreshExternalArchives ( IJavaElement [ ] elementsScope , IProgressMonitor monitor ) throws JavaModelException ; void rename ( IJavaElement [ ] elements , IJavaElement [ ] destinations , String [ ] names , boolean replace , IProgressMonitor monitor ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; public interface IClasspathAttribute { String JAVADOC_LOCATION_ATTRIBUTE_NAME = "<STR_LIT>" ; String INDEX_LOCATION_ATTRIBUTE_NAME = "<STR_LIT>" ; String SOURCE_ATTACHMENT_ENCODING = "<STR_LIT>" ; String IGNORE_OPTIONAL_PROBLEMS = "<STR_LIT>" ; String OPTIONAL = "<STR_LIT>" ; String getName ( ) ; String getValue ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . jdt . core . compiler . IProblem ; public abstract class CompletionRequestor { private int ignoreSet = <NUM_LIT:0> ; private String [ ] favoriteReferences ; private int requiredProposalAllowSet [ ] = null ; private boolean requireExtendedContext = false ; public CompletionRequestor ( ) { this ( false ) ; } public CompletionRequestor ( boolean ignoreAll ) { this . ignoreSet = ignoreAll ? <NUM_LIT> : <NUM_LIT> ; } public boolean isIgnored ( int completionProposalKind ) { if ( completionProposalKind < CompletionProposal . FIRST_KIND || completionProposalKind > CompletionProposal . LAST_KIND ) { throw new IllegalArgumentException ( "<STR_LIT>" + completionProposalKind ) ; } return <NUM_LIT:0> != ( this . ignoreSet & ( <NUM_LIT:1> << completionProposalKind ) ) ; } public void setIgnored ( int completionProposalKind , boolean ignore ) { if ( completionProposalKind < CompletionProposal . FIRST_KIND || completionProposalKind > CompletionProposal . LAST_KIND ) { throw new IllegalArgumentException ( "<STR_LIT>" + completionProposalKind ) ; } if ( ignore ) { this . ignoreSet |= ( <NUM_LIT:1> << completionProposalKind ) ; } else { this . ignoreSet &= ~ ( <NUM_LIT:1> << completionProposalKind ) ; } } public boolean isAllowingRequiredProposals ( int proposalKind , int requiredProposalKind ) { if ( proposalKind < CompletionProposal . FIRST_KIND || proposalKind > CompletionProposal . LAST_KIND ) { throw new IllegalArgumentException ( "<STR_LIT>" + requiredProposalKind ) ; } if ( requiredProposalKind < CompletionProposal . FIRST_KIND || requiredProposalKind > CompletionProposal . LAST_KIND ) { throw new IllegalArgumentException ( "<STR_LIT>" + requiredProposalKind ) ; } if ( this . requiredProposalAllowSet == null ) return false ; return <NUM_LIT:0> != ( this . requiredProposalAllowSet [ proposalKind ] & ( <NUM_LIT:1> << requiredProposalKind ) ) ; } public void setAllowsRequiredProposals ( int proposalKind , int requiredProposalKind , boolean allow ) { if ( proposalKind < CompletionProposal . FIRST_KIND || proposalKind > CompletionProposal . LAST_KIND ) { throw new IllegalArgumentException ( "<STR_LIT>" + requiredProposalKind ) ; } if ( requiredProposalKind < CompletionProposal . FIRST_KIND || requiredProposalKind > CompletionProposal . LAST_KIND ) { throw new IllegalArgumentException ( "<STR_LIT>" + requiredProposalKind ) ; } if ( this . requiredProposalAllowSet == null ) { this . requiredProposalAllowSet = new int [ CompletionProposal . LAST_KIND + <NUM_LIT:1> ] ; } if ( allow ) { this . requiredProposalAllowSet [ proposalKind ] |= ( <NUM_LIT:1> << requiredProposalKind ) ; } else { this . requiredProposalAllowSet [ proposalKind ] &= ~ ( <NUM_LIT:1> << requiredProposalKind ) ; } } public String [ ] getFavoriteReferences ( ) { return this . favoriteReferences ; } public void setFavoriteReferences ( String [ ] favoriteImports ) { this . favoriteReferences = favoriteImports ; } public void beginReporting ( ) { } public void endReporting ( ) { } public void completionFailure ( IProblem problem ) { } public abstract void accept ( CompletionProposal proposal ) ; public void acceptContext ( CompletionContext context ) { } public boolean isExtendedContextRequired ( ) { return this . requireExtendedContext ; } public void setRequireExtendedContext ( boolean require ) { this . requireExtendedContext = require ; } } </s>
<s> package org . eclipse . jdt . core ; public interface ICorrectionRequestor { void acceptClass ( char [ ] packageName , char [ ] className , char [ ] correctionName , int modifiers , int correctionStart , int correctionEnd ) ; void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] name , char [ ] typePackageName , char [ ] typeName , char [ ] correctionName , int modifiers , int correctionStart , int correctionEnd ) ; void acceptInterface ( char [ ] packageName , char [ ] interfaceName , char [ ] correctionName , int modifiers , int correctionStart , int correctionEnd ) ; void acceptLocalVariable ( char [ ] name , char [ ] typePackageName , char [ ] typeName , int modifiers , int correctionStart , int correctionEnd ) ; void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] returnTypePackageName , char [ ] returnTypeName , char [ ] correctionName , int modifiers , int correctionStart , int correctionEnd ) ; void acceptPackage ( char [ ] packageName , char [ ] correctionName , int correctionStart , int correctionEnd ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . resources . IMarker ; public interface ICodeCompletionRequestor { void acceptClass ( char [ ] packageName , char [ ] className , char [ ] completionName , int modifiers , int completionStart , int completionEnd ) ; void acceptError ( IMarker marker ) ; void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] name , char [ ] typePackageName , char [ ] typeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd ) ; void acceptInterface ( char [ ] packageName , char [ ] interfaceName , char [ ] completionName , int modifiers , int completionStart , int completionEnd ) ; void acceptKeyword ( char [ ] keywordName , int completionStart , int completionEnd ) ; void acceptLabel ( char [ ] labelName , int completionStart , int completionEnd ) ; void acceptLocalVariable ( char [ ] name , char [ ] typePackageName , char [ ] typeName , int modifiers , int completionStart , int completionEnd ) ; void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] returnTypePackageName , char [ ] returnTypeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd ) ; void acceptModifier ( char [ ] modifierName , int completionStart , int completionEnd ) ; void acceptPackage ( char [ ] packageName , char [ ] completionName , int completionStart , int completionEnd ) ; void acceptType ( char [ ] packageName , char [ ] typeName , char [ ] completionName , int completionStart , int completionEnd ) ; } </s>
<s> package org . eclipse . jdt . core ; import java . io . InputStream ; import org . eclipse . core . runtime . IProgressMonitor ; public interface IType extends IMember , IAnnotatable { void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , ICompletionRequestor requestor ) throws JavaModelException ; void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , ICompletionRequestor requestor , WorkingCopyOwner owner ) throws JavaModelException ; void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor ) throws JavaModelException ; void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor , IProgressMonitor monitor ) throws JavaModelException ; void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor , WorkingCopyOwner owner ) throws JavaModelException ; void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; IField createField ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException ; IInitializer createInitializer ( String contents , IJavaElement sibling , IProgressMonitor monitor ) throws JavaModelException ; IMethod createMethod ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException ; IType createType ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException ; IMethod [ ] findMethods ( IMethod method ) ; IJavaElement [ ] getChildrenForCategory ( String category ) throws JavaModelException ; String getElementName ( ) ; IField getField ( String name ) ; IField [ ] getFields ( ) throws JavaModelException ; String getFullyQualifiedName ( ) ; String getFullyQualifiedName ( char enclosingTypeSeparator ) ; String getFullyQualifiedParameterizedName ( ) throws JavaModelException ; IInitializer getInitializer ( int occurrenceCount ) ; IInitializer [ ] getInitializers ( ) throws JavaModelException ; String getKey ( ) ; IMethod getMethod ( String name , String [ ] parameterTypeSignatures ) ; IMethod [ ] getMethods ( ) throws JavaModelException ; IPackageFragment getPackageFragment ( ) ; String getSuperclassName ( ) throws JavaModelException ; String getSuperclassTypeSignature ( ) throws JavaModelException ; String [ ] getSuperInterfaceTypeSignatures ( ) throws JavaModelException ; String [ ] getSuperInterfaceNames ( ) throws JavaModelException ; String [ ] getTypeParameterSignatures ( ) throws JavaModelException ; ITypeParameter [ ] getTypeParameters ( ) throws JavaModelException ; IType getType ( String name ) ; ITypeParameter getTypeParameter ( String name ) ; String getTypeQualifiedName ( ) ; String getTypeQualifiedName ( char enclosingTypeSeparator ) ; IType [ ] getTypes ( ) throws JavaModelException ; boolean isAnonymous ( ) throws JavaModelException ; boolean isClass ( ) throws JavaModelException ; boolean isEnum ( ) throws JavaModelException ; boolean isInterface ( ) throws JavaModelException ; boolean isAnnotation ( ) throws JavaModelException ; boolean isLocal ( ) throws JavaModelException ; boolean isMember ( ) throws JavaModelException ; boolean isResolved ( ) ; ITypeHierarchy loadTypeHierachy ( InputStream input , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newSupertypeHierarchy ( IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newSupertypeHierarchy ( ICompilationUnit [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newSupertypeHierarchy ( IWorkingCopy [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newSupertypeHierarchy ( WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IJavaProject project , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IJavaProject project , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( ICompilationUnit [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IWorkingCopy [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; String [ ] [ ] resolveType ( String typeName ) throws JavaModelException ; String [ ] [ ] resolveType ( String typeName , WorkingCopyOwner owner ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . runtime . IProgressMonitor ; import org . eclipse . text . edits . TextEdit ; import org . eclipse . text . edits . UndoEdit ; public interface IBuffer { public interface ITextEditCapability { public UndoEdit applyTextEdit ( TextEdit edit , IProgressMonitor monitor ) throws JavaModelException ; } public void addBufferChangedListener ( IBufferChangedListener listener ) ; public void append ( char [ ] text ) ; public void append ( String text ) ; public void close ( ) ; public char getChar ( int position ) ; public char [ ] getCharacters ( ) ; public String getContents ( ) ; public int getLength ( ) ; public IOpenable getOwner ( ) ; public String getText ( int offset , int length ) throws IndexOutOfBoundsException ; public IResource getUnderlyingResource ( ) ; public boolean hasUnsavedChanges ( ) ; public boolean isClosed ( ) ; public boolean isReadOnly ( ) ; public void removeBufferChangedListener ( IBufferChangedListener listener ) ; public void replace ( int position , int length , char [ ] text ) ; public void replace ( int position , int length , String text ) ; public void save ( IProgressMonitor progress , boolean force ) throws JavaModelException ; public void setContents ( char [ ] contents ) ; public void setContents ( String contents ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface IMethod extends IMember , IAnnotatable { IMemberValuePair getDefaultValue ( ) throws JavaModelException ; String getElementName ( ) ; String [ ] getExceptionTypes ( ) throws JavaModelException ; String [ ] getTypeParameterSignatures ( ) throws JavaModelException ; ITypeParameter [ ] getTypeParameters ( ) throws JavaModelException ; int getNumberOfParameters ( ) ; ILocalVariable [ ] getParameters ( ) throws JavaModelException ; String getKey ( ) ; String [ ] getParameterNames ( ) throws JavaModelException ; String [ ] getParameterTypes ( ) ; String [ ] getRawParameterNames ( ) throws JavaModelException ; String getReturnType ( ) throws JavaModelException ; String getSignature ( ) throws JavaModelException ; ITypeParameter getTypeParameter ( String name ) ; boolean isConstructor ( ) throws JavaModelException ; boolean isMainMethod ( ) throws JavaModelException ; boolean isResolved ( ) ; boolean isSimilar ( IMethod method ) ; } </s>
<s> package org . eclipse . jdt . core ; import java . io . File ; import java . io . IOException ; import java . io . InputStream ; import java . util . HashMap ; import java . util . Map ; import java . util . zip . ZipEntry ; import java . util . zip . ZipFile ; import org . eclipse . core . resources . IFile ; import org . eclipse . core . runtime . * ; import org . eclipse . jdt . core . compiler . IScanner ; import org . eclipse . jdt . core . compiler . ITerminalSymbols ; import org . eclipse . jdt . core . formatter . CodeFormatter ; import org . eclipse . jdt . core . formatter . DefaultCodeFormatterConstants ; import org . eclipse . jdt . core . util . ClassFileBytesDisassembler ; import org . eclipse . jdt . core . util . ClassFormatException ; import org . eclipse . jdt . core . util . IClassFileReader ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . util . SuffixConstants ; import org . eclipse . jdt . internal . compiler . util . Util ; import org . eclipse . jdt . internal . core . JarPackageFragmentRoot ; import org . eclipse . jdt . internal . core . JavaElement ; import org . eclipse . jdt . internal . core . JavaModelManager ; import org . eclipse . jdt . internal . core . PackageFragment ; import org . eclipse . jdt . internal . core . util . ClassFileReader ; import org . eclipse . jdt . internal . core . util . Disassembler ; import org . eclipse . jdt . internal . core . util . PublicScanner ; import org . eclipse . jdt . internal . formatter . DefaultCodeFormatter ; public class ToolFactory { public static final int M_FORMAT_NEW = new Integer ( <NUM_LIT:0> ) . intValue ( ) ; public static final int M_FORMAT_EXISTING = new Integer ( <NUM_LIT:1> ) . intValue ( ) ; public static ICodeFormatter createCodeFormatter ( ) { Plugin jdtCorePlugin = JavaCore . getPlugin ( ) ; if ( jdtCorePlugin == null ) return null ; IExtensionPoint extension = jdtCorePlugin . getDescriptor ( ) . getExtensionPoint ( JavaModelManager . FORMATTER_EXTPOINT_ID ) ; if ( extension != null ) { IExtension [ ] extensions = extension . getExtensions ( ) ; for ( int i = <NUM_LIT:0> ; i < extensions . length ; i ++ ) { IConfigurationElement [ ] configElements = extensions [ i ] . getConfigurationElements ( ) ; for ( int j = <NUM_LIT:0> ; j < configElements . length ; j ++ ) { try { Object execExt = configElements [ j ] . createExecutableExtension ( "<STR_LIT:class>" ) ; if ( execExt instanceof ICodeFormatter ) { return ( ICodeFormatter ) execExt ; } } catch ( CoreException e ) { } } } } return createDefaultCodeFormatter ( null ) ; } public static CodeFormatter createCodeFormatter ( Map options ) { return createCodeFormatter ( options , M_FORMAT_NEW ) ; } public static CodeFormatter createCodeFormatter ( Map options , int mode ) { if ( options == null ) options = JavaCore . getOptions ( ) ; Map currentOptions = new HashMap ( options ) ; if ( mode == M_FORMAT_NEW ) { currentOptions . put ( DefaultCodeFormatterConstants . FORMATTER_COMMENT_FORMAT_LINE_COMMENT_STARTING_ON_FIRST_COLUMN , DefaultCodeFormatterConstants . TRUE ) ; currentOptions . put ( DefaultCodeFormatterConstants . FORMATTER_NEVER_INDENT_BLOCK_COMMENTS_ON_FIRST_COLUMN , DefaultCodeFormatterConstants . FALSE ) ; currentOptions . put ( DefaultCodeFormatterConstants . FORMATTER_NEVER_INDENT_LINE_COMMENTS_ON_FIRST_COLUMN , DefaultCodeFormatterConstants . FALSE ) ; } return new DefaultCodeFormatter ( currentOptions ) ; } public static ClassFileBytesDisassembler createDefaultClassFileBytesDisassembler ( ) { return new Disassembler ( ) ; } public static org . eclipse . jdt . core . util . IClassFileDisassembler createDefaultClassFileDisassembler ( ) { class DeprecatedDisassembler extends Disassembler implements org . eclipse . jdt . core . util . IClassFileDisassembler { } return new DeprecatedDisassembler ( ) ; } public static IClassFileReader createDefaultClassFileReader ( IClassFile classfile , int decodingFlag ) { IPackageFragmentRoot root = ( IPackageFragmentRoot ) classfile . getAncestor ( IJavaElement . PACKAGE_FRAGMENT_ROOT ) ; if ( root != null ) { try { if ( root instanceof JarPackageFragmentRoot ) { String archiveName = null ; ZipFile jar = null ; try { jar = ( ( JarPackageFragmentRoot ) root ) . getJar ( ) ; archiveName = jar . getName ( ) ; } finally { JavaModelManager . getJavaModelManager ( ) . closeZipFile ( jar ) ; } PackageFragment packageFragment = ( PackageFragment ) classfile . getParent ( ) ; String classFileName = classfile . getElementName ( ) ; String entryName = org . eclipse . jdt . internal . core . util . Util . concatWith ( packageFragment . names , classFileName , '<CHAR_LIT:/>' ) ; return createDefaultClassFileReader ( archiveName , entryName , decodingFlag ) ; } else { InputStream in = null ; try { in = ( ( IFile ) ( ( JavaElement ) classfile ) . resource ( ) ) . getContents ( ) ; return createDefaultClassFileReader ( in , decodingFlag ) ; } finally { if ( in != null ) try { in . close ( ) ; } catch ( IOException e ) { } } } } catch ( CoreException e ) { } } return null ; } public static IClassFileReader createDefaultClassFileReader ( InputStream stream , int decodingFlag ) { try { return new ClassFileReader ( Util . getInputStreamAsByteArray ( stream , - <NUM_LIT:1> ) , decodingFlag ) ; } catch ( ClassFormatException e ) { return null ; } catch ( IOException e ) { return null ; } } public static IClassFileReader createDefaultClassFileReader ( String fileName , int decodingFlag ) { try { return new ClassFileReader ( Util . getFileByteContent ( new File ( fileName ) ) , decodingFlag ) ; } catch ( ClassFormatException e ) { return null ; } catch ( IOException e ) { return null ; } } public static IClassFileReader createDefaultClassFileReader ( String zipFileName , String zipEntryName , int decodingFlag ) { ZipFile zipFile = null ; try { if ( JavaModelManager . ZIP_ACCESS_VERBOSE ) { System . out . println ( "<STR_LIT:(>" + Thread . currentThread ( ) + "<STR_LIT>" + zipFileName ) ; } zipFile = new ZipFile ( zipFileName ) ; ZipEntry zipEntry = zipFile . getEntry ( zipEntryName ) ; if ( zipEntry == null ) { return null ; } if ( ! zipEntryName . toLowerCase ( ) . endsWith ( SuffixConstants . SUFFIX_STRING_class ) ) { return null ; } byte classFileBytes [ ] = Util . getZipEntryByteContent ( zipEntry , zipFile ) ; return new ClassFileReader ( classFileBytes , decodingFlag ) ; } catch ( ClassFormatException e ) { return null ; } catch ( IOException e ) { return null ; } finally { if ( zipFile != null ) { try { zipFile . close ( ) ; } catch ( IOException e ) { } } } } public static ICodeFormatter createDefaultCodeFormatter ( Map options ) { if ( options == null ) options = JavaCore . getOptions ( ) ; return new org . eclipse . jdt . internal . formatter . old . CodeFormatter ( options ) ; } public static IScanner createScanner ( boolean tokenizeComments , boolean tokenizeWhiteSpace , boolean assertMode , boolean recordLineSeparator ) { long complianceLevelValue = CompilerOptions . versionToJdkLevel ( JavaCore . getOption ( JavaCore . COMPILER_COMPLIANCE ) ) ; if ( complianceLevelValue == <NUM_LIT:0> ) complianceLevelValue = ClassFileConstants . JDK1_4 ; PublicScanner scanner = new PublicScanner ( tokenizeComments , tokenizeWhiteSpace , false , assertMode ? ClassFileConstants . JDK1_4 : ClassFileConstants . JDK1_3 , complianceLevelValue , null , null , true ) ; scanner . recordLineSeparator = recordLineSeparator ; return scanner ; } public static IScanner createScanner ( boolean tokenizeComments , boolean tokenizeWhiteSpace , boolean recordLineSeparator , String sourceLevel ) { long complianceLevelValue = CompilerOptions . versionToJdkLevel ( JavaCore . getOption ( JavaCore . COMPILER_COMPLIANCE ) ) ; if ( complianceLevelValue == <NUM_LIT:0> ) complianceLevelValue = ClassFileConstants . JDK1_4 ; long sourceLevelValue = CompilerOptions . versionToJdkLevel ( sourceLevel ) ; if ( sourceLevelValue == <NUM_LIT:0> ) sourceLevelValue = ClassFileConstants . JDK1_3 ; PublicScanner scanner = new PublicScanner ( tokenizeComments , tokenizeWhiteSpace , false , sourceLevelValue , complianceLevelValue , null , null , true ) ; scanner . recordLineSeparator = recordLineSeparator ; return scanner ; } public static IScanner createScanner ( boolean tokenizeComments , boolean tokenizeWhiteSpace , boolean recordLineSeparator , String sourceLevel , String complianceLevel ) { PublicScanner scanner = null ; long sourceLevelValue = CompilerOptions . versionToJdkLevel ( sourceLevel ) ; if ( sourceLevelValue == <NUM_LIT:0> ) sourceLevelValue = ClassFileConstants . JDK1_3 ; long complianceLevelValue = CompilerOptions . versionToJdkLevel ( complianceLevel ) ; if ( complianceLevelValue == <NUM_LIT:0> ) complianceLevelValue = ClassFileConstants . JDK1_4 ; scanner = new PublicScanner ( tokenizeComments , tokenizeWhiteSpace , false , sourceLevelValue , complianceLevelValue , null , null , true ) ; scanner . recordLineSeparator = recordLineSeparator ; return scanner ; } } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . jdt . core . compiler . IProblem ; public class CompletionRequestorAdapter implements ICompletionRequestor { public void acceptAnonymousType ( char [ ] superTypePackageName , char [ ] superTypeName , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptClass ( char [ ] packageName , char [ ] className , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptError ( IProblem error ) { } public void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] name , char [ ] typePackageName , char [ ] typeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptInterface ( char [ ] packageName , char [ ] interfaceName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptKeyword ( char [ ] keywordName , int completionStart , int completionEnd , int relevance ) { } public void acceptLabel ( char [ ] labelName , int completionStart , int completionEnd , int relevance ) { } public void acceptLocalVariable ( char [ ] name , char [ ] typePackageName , char [ ] typeName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] returnTypePackageName , char [ ] returnTypeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptMethodDeclaration ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] returnTypePackageName , char [ ] returnTypeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) { } public void acceptModifier ( char [ ] modifierName , int completionStart , int completionEnd , int relevance ) { } public void acceptPackage ( char [ ] packageName , char [ ] completionName , int completionStart , int completionEnd , int relevance ) { } public void acceptType ( char [ ] packageName , char [ ] typeName , char [ ] completionName , int completionStart , int completionEnd , int relevance ) { } public void acceptVariableName ( char [ ] typePackageName , char [ ] typeName , char [ ] name , char [ ] completionName , int completionStart , int completionEnd , int relevance ) { } } </s>
<s> package org . eclipse . jdt . core ; import java . util . StringTokenizer ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . resources . IWorkspace ; import org . eclipse . core . resources . ResourcesPlugin ; import org . eclipse . core . runtime . IPath ; import org . eclipse . core . runtime . IStatus ; import org . eclipse . core . runtime . Status ; import org . eclipse . jdt . core . compiler . * ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . lookup . TypeConstants ; import org . eclipse . jdt . internal . compiler . parser . Scanner ; import org . eclipse . jdt . internal . compiler . parser . ScannerHelper ; import org . eclipse . jdt . internal . compiler . parser . TerminalTokens ; import org . eclipse . jdt . internal . core . * ; import org . eclipse . jdt . internal . core . util . Messages ; public final class JavaConventions { private static final char DOT = '<CHAR_LIT:.>' ; private static final String PACKAGE_INFO = new String ( TypeConstants . PACKAGE_INFO_NAME ) ; private static final Scanner SCANNER = new Scanner ( false , true , false , ClassFileConstants . JDK1_3 , null , null , true ) ; private JavaConventions ( ) { } public static boolean isOverlappingRoots ( IPath rootPath1 , IPath rootPath2 ) { if ( rootPath1 == null || rootPath2 == null ) { return false ; } return rootPath1 . isPrefixOf ( rootPath2 ) || rootPath2 . isPrefixOf ( rootPath1 ) ; } private static synchronized char [ ] scannedIdentifier ( String id , String sourceLevel , String complianceLevel ) { if ( id == null ) { return null ; } SCANNER . sourceLevel = sourceLevel == null ? ClassFileConstants . JDK1_3 : CompilerOptions . versionToJdkLevel ( sourceLevel ) ; SCANNER . complianceLevel = complianceLevel == null ? ClassFileConstants . JDK1_3 : CompilerOptions . versionToJdkLevel ( complianceLevel ) ; try { SCANNER . setSource ( id . toCharArray ( ) ) ; int token = SCANNER . scanIdentifier ( ) ; if ( token != TerminalTokens . TokenNameIdentifier ) return null ; if ( SCANNER . currentPosition == SCANNER . eofPosition ) { try { return SCANNER . getCurrentIdentifierSource ( ) ; } catch ( ArrayIndexOutOfBoundsException e ) { return null ; } } else { return null ; } } catch ( InvalidInputException e ) { return null ; } } public static IStatus validateCompilationUnitName ( String name ) { return validateCompilationUnitName ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateCompilationUnitName ( String name , String sourceLevel , String complianceLevel ) { if ( name == null ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_unit_nullName , null ) ; } if ( ! org . eclipse . jdt . internal . core . util . Util . isJavaLikeFileName ( name ) ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_unit_notJavaName , null ) ; } String identifier ; int index ; index = name . lastIndexOf ( '<CHAR_LIT:.>' ) ; if ( index == - <NUM_LIT:1> ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_unit_notJavaName , null ) ; } identifier = name . substring ( <NUM_LIT:0> , index ) ; if ( ! identifier . equals ( PACKAGE_INFO ) ) { IStatus status = validateIdentifier ( identifier , sourceLevel , complianceLevel ) ; if ( ! status . isOK ( ) ) { return status ; } } IStatus status = ResourcesPlugin . getWorkspace ( ) . validateName ( name , IResource . FILE ) ; if ( ! status . isOK ( ) ) { return status ; } return JavaModelStatus . VERIFIED_OK ; } public static IStatus validateClassFileName ( String name ) { return validateClassFileName ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateClassFileName ( String name , String sourceLevel , String complianceLevel ) { if ( name == null ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_classFile_nullName , null ) ; } if ( ! org . eclipse . jdt . internal . compiler . util . Util . isClassFileName ( name ) ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_classFile_notClassFileName , null ) ; } String identifier ; int index ; index = name . lastIndexOf ( '<CHAR_LIT:.>' ) ; if ( index == - <NUM_LIT:1> ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_classFile_notClassFileName , null ) ; } identifier = name . substring ( <NUM_LIT:0> , index ) ; if ( ! identifier . equals ( PACKAGE_INFO ) ) { IStatus status = validateIdentifier ( identifier , sourceLevel , complianceLevel ) ; if ( ! status . isOK ( ) ) { return status ; } } IStatus status = ResourcesPlugin . getWorkspace ( ) . validateName ( name , IResource . FILE ) ; if ( ! status . isOK ( ) ) { return status ; } return JavaModelStatus . VERIFIED_OK ; } public static IStatus validateFieldName ( String name ) { return validateIdentifier ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateFieldName ( String name , String sourceLevel , String complianceLevel ) { return validateIdentifier ( name , sourceLevel , complianceLevel ) ; } public static IStatus validateIdentifier ( String id ) { return validateIdentifier ( id , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateIdentifier ( String id , String sourceLevel , String complianceLevel ) { if ( scannedIdentifier ( id , sourceLevel , complianceLevel ) != null ) { return JavaModelStatus . VERIFIED_OK ; } else { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . bind ( Messages . convention_illegalIdentifier , id ) , null ) ; } } public static IStatus validateImportDeclaration ( String name ) { return validateImportDeclaration ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateImportDeclaration ( String name , String sourceLevel , String complianceLevel ) { if ( name == null || name . length ( ) == <NUM_LIT:0> ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_import_nullImport , null ) ; } if ( name . charAt ( name . length ( ) - <NUM_LIT:1> ) == '<CHAR_LIT>' ) { if ( name . charAt ( name . length ( ) - <NUM_LIT:2> ) == '<CHAR_LIT:.>' ) { return validatePackageName ( name . substring ( <NUM_LIT:0> , name . length ( ) - <NUM_LIT:2> ) , sourceLevel , complianceLevel ) ; } else { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_import_unqualifiedImport , null ) ; } } return validatePackageName ( name , sourceLevel , complianceLevel ) ; } public static IStatus validateJavaTypeName ( String name ) { return validateJavaTypeName ( name , JavaCore . VERSION_1_3 , JavaCore . VERSION_1_3 ) ; } public static IStatus validateJavaTypeName ( String name , String sourceLevel , String complianceLevel ) { if ( name == null ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_type_nullName , null ) ; } String trimmed = name . trim ( ) ; if ( ! name . equals ( trimmed ) ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_type_nameWithBlanks , null ) ; } int index = name . lastIndexOf ( '<CHAR_LIT:.>' ) ; char [ ] scannedID ; if ( index == - <NUM_LIT:1> ) { scannedID = scannedIdentifier ( name , sourceLevel , complianceLevel ) ; } else { String pkg = name . substring ( <NUM_LIT:0> , index ) . trim ( ) ; IStatus status = validatePackageName ( pkg , sourceLevel , complianceLevel ) ; if ( ! status . isOK ( ) ) { return status ; } String type = name . substring ( index + <NUM_LIT:1> ) . trim ( ) ; scannedID = scannedIdentifier ( type , sourceLevel , complianceLevel ) ; } if ( scannedID != null ) { IStatus status = ResourcesPlugin . getWorkspace ( ) . validateName ( new String ( scannedID ) , IResource . FILE ) ; if ( ! status . isOK ( ) ) { return status ; } if ( CharOperation . contains ( '<CHAR_LIT>' , scannedID ) ) { return new Status ( IStatus . WARNING , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_type_dollarName , null ) ; } if ( ( scannedID . length > <NUM_LIT:0> && ScannerHelper . isLowerCase ( scannedID [ <NUM_LIT:0> ] ) ) ) { return new Status ( IStatus . WARNING , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_type_lowercaseName , null ) ; } return JavaModelStatus . VERIFIED_OK ; } else { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . bind ( Messages . convention_type_invalidName , name ) , null ) ; } } public static IStatus validateMethodName ( String name ) { return validateMethodName ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateMethodName ( String name , String sourceLevel , String complianceLevel ) { return validateIdentifier ( name , sourceLevel , complianceLevel ) ; } public static IStatus validatePackageName ( String name ) { return validatePackageName ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validatePackageName ( String name , String sourceLevel , String complianceLevel ) { if ( name == null ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_package_nullName , null ) ; } int length ; if ( ( length = name . length ( ) ) == <NUM_LIT:0> ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_package_emptyName , null ) ; } if ( name . charAt ( <NUM_LIT:0> ) == DOT || name . charAt ( length - <NUM_LIT:1> ) == DOT ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_package_dotName , null ) ; } if ( CharOperation . isWhitespace ( name . charAt ( <NUM_LIT:0> ) ) || CharOperation . isWhitespace ( name . charAt ( name . length ( ) - <NUM_LIT:1> ) ) ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_package_nameWithBlanks , null ) ; } int dot = <NUM_LIT:0> ; while ( dot != - <NUM_LIT:1> && dot < length - <NUM_LIT:1> ) { if ( ( dot = name . indexOf ( DOT , dot + <NUM_LIT:1> ) ) != - <NUM_LIT:1> && dot < length - <NUM_LIT:1> && name . charAt ( dot + <NUM_LIT:1> ) == DOT ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_package_consecutiveDotsName , null ) ; } } IWorkspace workspace = ResourcesPlugin . getWorkspace ( ) ; StringTokenizer st = new StringTokenizer ( name , "<STR_LIT:.>" ) ; boolean firstToken = true ; IStatus warningStatus = null ; while ( st . hasMoreTokens ( ) ) { String typeName = st . nextToken ( ) ; typeName = typeName . trim ( ) ; char [ ] scannedID = scannedIdentifier ( typeName , sourceLevel , complianceLevel ) ; if ( scannedID == null ) { return new Status ( IStatus . ERROR , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . bind ( Messages . convention_illegalIdentifier , typeName ) , null ) ; } IStatus status = workspace . validateName ( new String ( scannedID ) , IResource . FOLDER ) ; if ( ! status . isOK ( ) ) { return status ; } if ( firstToken && scannedID . length > <NUM_LIT:0> && ScannerHelper . isUpperCase ( scannedID [ <NUM_LIT:0> ] ) ) { if ( warningStatus == null ) { warningStatus = new Status ( IStatus . WARNING , JavaCore . PLUGIN_ID , - <NUM_LIT:1> , Messages . convention_package_uppercaseName , null ) ; } } firstToken = false ; } if ( warningStatus != null ) { return warningStatus ; } return JavaModelStatus . VERIFIED_OK ; } public static IJavaModelStatus validateClasspath ( IJavaProject javaProject , IClasspathEntry [ ] rawClasspath , IPath projectOutputLocation ) { return ClasspathEntry . validateClasspath ( javaProject , rawClasspath , projectOutputLocation ) ; } public static IJavaModelStatus validateClasspathEntry ( IJavaProject project , IClasspathEntry entry , boolean checkSourceAttachment ) { return ClasspathEntry . validateClasspathEntry ( project , entry , checkSourceAttachment , false ) ; } public static IStatus validateTypeVariableName ( String name ) { return validateIdentifier ( name , CompilerOptions . VERSION_1_3 , CompilerOptions . VERSION_1_3 ) ; } public static IStatus validateTypeVariableName ( String name , String sourceLevel , String complianceLevel ) { return validateIdentifier ( name , sourceLevel , complianceLevel ) ; } } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IProgressMonitor ; import org . eclipse . jdt . internal . codeassist . InternalCompletionProposal ; public class CompletionProposal { public static final int ANONYMOUS_CLASS_DECLARATION = <NUM_LIT:1> ; public static final int FIELD_REF = <NUM_LIT:2> ; public static final int KEYWORD = <NUM_LIT:3> ; public static final int LABEL_REF = <NUM_LIT:4> ; public static final int LOCAL_VARIABLE_REF = <NUM_LIT:5> ; public static final int METHOD_REF = <NUM_LIT:6> ; public static final int METHOD_DECLARATION = <NUM_LIT:7> ; public static final int PACKAGE_REF = <NUM_LIT:8> ; public static final int TYPE_REF = <NUM_LIT:9> ; public static final int VARIABLE_DECLARATION = <NUM_LIT:10> ; public static final int POTENTIAL_METHOD_DECLARATION = <NUM_LIT:11> ; public static final int METHOD_NAME_REFERENCE = <NUM_LIT:12> ; public static final int ANNOTATION_ATTRIBUTE_REF = <NUM_LIT> ; public static final int JAVADOC_FIELD_REF = <NUM_LIT> ; public static final int JAVADOC_METHOD_REF = <NUM_LIT:15> ; public static final int JAVADOC_TYPE_REF = <NUM_LIT:16> ; public static final int JAVADOC_VALUE_REF = <NUM_LIT> ; public static final int JAVADOC_PARAM_REF = <NUM_LIT> ; public static final int JAVADOC_BLOCK_TAG = <NUM_LIT> ; public static final int JAVADOC_INLINE_TAG = <NUM_LIT:20> ; public static final int FIELD_IMPORT = <NUM_LIT> ; public static final int METHOD_IMPORT = <NUM_LIT> ; public static final int TYPE_IMPORT = <NUM_LIT> ; public static final int METHOD_REF_WITH_CASTED_RECEIVER = <NUM_LIT:24> ; public static final int FIELD_REF_WITH_CASTED_RECEIVER = <NUM_LIT> ; public static final int CONSTRUCTOR_INVOCATION = <NUM_LIT> ; public static final int ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION = <NUM_LIT> ; protected static final int FIRST_KIND = ANONYMOUS_CLASS_DECLARATION ; protected static final int LAST_KIND = ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION ; public static CompletionProposal create ( int kind , int completionOffset ) { return new InternalCompletionProposal ( kind , completionOffset ) ; } public int getAdditionalFlags ( ) { return - <NUM_LIT:1> ; } public void setAdditionalFlags ( int additionalFlags ) { } public int getKind ( ) { return - <NUM_LIT:1> ; } public int getCompletionLocation ( ) { return - <NUM_LIT:1> ; } public int getTokenStart ( ) { return - <NUM_LIT:1> ; } public int getTokenEnd ( ) { return - <NUM_LIT:1> ; } public void setTokenRange ( int startIndex , int endIndex ) { } public char [ ] getCompletion ( ) { return null ; } public void setCompletion ( char [ ] completion ) { } public int getReplaceStart ( ) { return - <NUM_LIT:1> ; } public int getReplaceEnd ( ) { return - <NUM_LIT:1> ; } public void setReplaceRange ( int startIndex , int endIndex ) { } public int getRelevance ( ) { return - <NUM_LIT:1> ; } public void setRelevance ( int rating ) { } public char [ ] getDeclarationSignature ( ) { return null ; } public char [ ] getDeclarationKey ( ) { return null ; } public void setDeclarationSignature ( char [ ] signature ) { } public void setDeclarationKey ( char [ ] key ) { } public char [ ] getName ( ) { return null ; } public void setName ( char [ ] name ) { } public char [ ] getSignature ( ) { return null ; } public char [ ] getKey ( ) { return null ; } public void setSignature ( char [ ] signature ) { } public void setKey ( char [ ] key ) { } public int getFlags ( ) { return - <NUM_LIT:1> ; } public void setFlags ( int flags ) { } public CompletionProposal [ ] getRequiredProposals ( ) { return null ; } public void setRequiredProposals ( CompletionProposal [ ] proposals ) { } public char [ ] [ ] findParameterNames ( IProgressMonitor monitor ) { return null ; } public void setParameterNames ( char [ ] [ ] parameterNames ) { } public int getAccessibility ( ) { return - <NUM_LIT:1> ; } public boolean isConstructor ( ) { return false ; } public char [ ] getReceiverSignature ( ) { return null ; } public int getReceiverStart ( ) { return - <NUM_LIT:1> ; } public int getReceiverEnd ( ) { return - <NUM_LIT:1> ; } public void setReceiverSignature ( char [ ] signature ) { } public void setReceiverRange ( int startIndex , int endIndex ) { } public boolean canUseDiamond ( CompletionContext coreContext ) { return false ; } } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . internal . compiler . parser . ScannerHelper ; import org . eclipse . jdt . internal . core . INamingRequestor ; import org . eclipse . jdt . internal . core . InternalNamingConventions ; public final class NamingConventions { static class NamingRequestor implements INamingRequestor { private final static int SIZE = <NUM_LIT:10> ; private char [ ] [ ] firstPrefixAndFirstSuffixResults = new char [ SIZE ] [ ] ; private int firstPrefixAndFirstSuffixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] firstPrefixAndSuffixResults = new char [ SIZE ] [ ] ; private int firstPrefixAndSuffixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] prefixAndFirstSuffixResults = new char [ SIZE ] [ ] ; private int prefixAndFirstSuffixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] prefixAndSuffixResults = new char [ SIZE ] [ ] ; private int prefixAndSuffixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] firstPrefixResults = new char [ SIZE ] [ ] ; private int firstPrefixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] prefixResults = new char [ SIZE ] [ ] ; private int prefixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] firstSuffixResults = new char [ SIZE ] [ ] ; private int firstSuffixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] suffixResults = new char [ SIZE ] [ ] ; private int suffixResultsCount = <NUM_LIT:0> ; private char [ ] [ ] otherResults = new char [ SIZE ] [ ] ; private int otherResultsCount = <NUM_LIT:0> ; public void acceptNameWithoutPrefixAndSuffix ( char [ ] name , int reusedCharacters ) { int length = this . otherResults . length ; if ( length == this . otherResultsCount ) { System . arraycopy ( this . otherResults , <NUM_LIT:0> , this . otherResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . otherResults [ this . otherResultsCount ++ ] = name ; } public void acceptNameWithPrefix ( char [ ] name , boolean isFirstPrefix , int reusedCharacters ) { if ( isFirstPrefix ) { int length = this . firstPrefixResults . length ; if ( length == this . firstPrefixResultsCount ) { System . arraycopy ( this . firstPrefixResults , <NUM_LIT:0> , this . firstPrefixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . firstPrefixResults [ this . firstPrefixResultsCount ++ ] = name ; } else { int length = this . prefixResults . length ; if ( length == this . prefixResultsCount ) { System . arraycopy ( this . prefixResults , <NUM_LIT:0> , this . prefixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . prefixResults [ this . prefixResultsCount ++ ] = name ; } } public void acceptNameWithPrefixAndSuffix ( char [ ] name , boolean isFirstPrefix , boolean isFirstSuffix , int reusedCharacters ) { if ( isFirstPrefix && isFirstSuffix ) { int length = this . firstPrefixAndFirstSuffixResults . length ; if ( length == this . firstPrefixAndFirstSuffixResultsCount ) { System . arraycopy ( this . firstPrefixAndFirstSuffixResults , <NUM_LIT:0> , this . firstPrefixAndFirstSuffixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . firstPrefixAndFirstSuffixResults [ this . firstPrefixAndFirstSuffixResultsCount ++ ] = name ; } else if ( isFirstPrefix ) { int length = this . firstPrefixAndSuffixResults . length ; if ( length == this . firstPrefixAndSuffixResultsCount ) { System . arraycopy ( this . firstPrefixAndSuffixResults , <NUM_LIT:0> , this . firstPrefixAndSuffixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . firstPrefixAndSuffixResults [ this . firstPrefixAndSuffixResultsCount ++ ] = name ; } else if ( isFirstSuffix ) { int length = this . prefixAndFirstSuffixResults . length ; if ( length == this . prefixAndFirstSuffixResultsCount ) { System . arraycopy ( this . prefixAndFirstSuffixResults , <NUM_LIT:0> , this . prefixAndFirstSuffixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . prefixAndFirstSuffixResults [ this . prefixAndFirstSuffixResultsCount ++ ] = name ; } else { int length = this . prefixAndSuffixResults . length ; if ( length == this . prefixAndSuffixResultsCount ) { System . arraycopy ( this . prefixAndSuffixResults , <NUM_LIT:0> , this . prefixAndSuffixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . prefixAndSuffixResults [ this . prefixAndSuffixResultsCount ++ ] = name ; } } public void acceptNameWithSuffix ( char [ ] name , boolean isFirstSuffix , int reusedCharacters ) { if ( isFirstSuffix ) { int length = this . firstSuffixResults . length ; if ( length == this . firstSuffixResultsCount ) { System . arraycopy ( this . firstSuffixResults , <NUM_LIT:0> , this . firstSuffixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . firstSuffixResults [ this . firstSuffixResultsCount ++ ] = name ; } else { int length = this . suffixResults . length ; if ( length == this . suffixResultsCount ) { System . arraycopy ( this . suffixResults , <NUM_LIT:0> , this . suffixResults = new char [ length * <NUM_LIT:2> ] [ ] , <NUM_LIT:0> , length ) ; } this . suffixResults [ this . suffixResultsCount ++ ] = name ; } } public char [ ] [ ] getResults ( ) { int count = this . firstPrefixAndFirstSuffixResultsCount + this . firstPrefixAndSuffixResultsCount + this . prefixAndFirstSuffixResultsCount + this . prefixAndSuffixResultsCount + this . firstPrefixResultsCount + this . prefixResultsCount + this . firstSuffixResultsCount + this . suffixResultsCount + this . otherResultsCount ; char [ ] [ ] results = new char [ count ] [ ] ; int index = <NUM_LIT:0> ; System . arraycopy ( this . firstPrefixAndFirstSuffixResults , <NUM_LIT:0> , results , index , this . firstPrefixAndFirstSuffixResultsCount ) ; index += this . firstPrefixAndFirstSuffixResultsCount ; System . arraycopy ( this . firstPrefixAndSuffixResults , <NUM_LIT:0> , results , index , this . firstPrefixAndSuffixResultsCount ) ; index += this . firstPrefixAndSuffixResultsCount ; System . arraycopy ( this . prefixAndFirstSuffixResults , <NUM_LIT:0> , results , index , this . prefixAndFirstSuffixResultsCount ) ; index += this . prefixAndFirstSuffixResultsCount ; System . arraycopy ( this . prefixAndSuffixResults , <NUM_LIT:0> , results , index , this . prefixAndSuffixResultsCount ) ; index += this . prefixAndSuffixResultsCount ; System . arraycopy ( this . firstPrefixResults , <NUM_LIT:0> , results , index , this . firstPrefixResultsCount ) ; index += this . firstPrefixResultsCount ; System . arraycopy ( this . prefixResults , <NUM_LIT:0> , results , index , this . prefixResultsCount ) ; index += this . prefixResultsCount ; System . arraycopy ( this . firstSuffixResults , <NUM_LIT:0> , results , index , this . firstSuffixResultsCount ) ; index += this . firstSuffixResultsCount ; System . arraycopy ( this . suffixResults , <NUM_LIT:0> , results , index , this . suffixResultsCount ) ; index += this . suffixResultsCount ; System . arraycopy ( this . otherResults , <NUM_LIT:0> , results , index , this . otherResultsCount ) ; return results ; } } private static final char [ ] GETTER_BOOL_NAME = "<STR_LIT>" . toCharArray ( ) ; private static final char [ ] GETTER_NAME = "<STR_LIT:get>" . toCharArray ( ) ; private static final char [ ] SETTER_NAME = "<STR_LIT>" . toCharArray ( ) ; public static final int VK_STATIC_FIELD = InternalNamingConventions . VK_STATIC_FIELD ; public static final int VK_INSTANCE_FIELD = InternalNamingConventions . VK_INSTANCE_FIELD ; public static final int VK_STATIC_FINAL_FIELD = InternalNamingConventions . VK_STATIC_FINAL_FIELD ; public static final int VK_PARAMETER = InternalNamingConventions . VK_PARAMETER ; public static final int VK_LOCAL = InternalNamingConventions . VK_LOCAL ; public static final int BK_NAME = InternalNamingConventions . BK_SIMPLE_NAME ; public static final int BK_TYPE_NAME = InternalNamingConventions . BK_SIMPLE_TYPE_NAME ; private static String [ ] convertCharsToString ( char [ ] [ ] c ) { int length = c == null ? <NUM_LIT:0> : c . length ; String [ ] s = new String [ length ] ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { s [ i ] = String . valueOf ( c [ i ] ) ; } return s ; } private static char [ ] [ ] convertStringToChars ( String [ ] s ) { int length = s == null ? <NUM_LIT:0> : s . length ; char [ ] [ ] c = new char [ length ] [ ] ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { if ( s [ i ] == null ) { c [ i ] = CharOperation . NO_CHAR ; } else { c [ i ] = s [ i ] . toCharArray ( ) ; } } return c ; } public static char [ ] removePrefixAndSuffixForArgumentName ( IJavaProject javaProject , char [ ] argumentName ) { return InternalNamingConventions . removeVariablePrefixAndSuffix ( VK_PARAMETER , javaProject , argumentName ) ; } public static String removePrefixAndSuffixForArgumentName ( IJavaProject javaProject , String argumentName ) { return String . valueOf ( removePrefixAndSuffixForArgumentName ( javaProject , argumentName . toCharArray ( ) ) ) ; } public static char [ ] removePrefixAndSuffixForFieldName ( IJavaProject javaProject , char [ ] fieldName , int modifiers ) { return InternalNamingConventions . removeVariablePrefixAndSuffix ( Flags . isStatic ( modifiers ) ? VK_STATIC_FIELD : VK_INSTANCE_FIELD , javaProject , fieldName ) ; } public static String removePrefixAndSuffixForFieldName ( IJavaProject javaProject , String fieldName , int modifiers ) { return String . valueOf ( removePrefixAndSuffixForFieldName ( javaProject , fieldName . toCharArray ( ) , modifiers ) ) ; } public static char [ ] removePrefixAndSuffixForLocalVariableName ( IJavaProject javaProject , char [ ] localName ) { return InternalNamingConventions . removeVariablePrefixAndSuffix ( VK_LOCAL , javaProject , localName ) ; } public static String removePrefixAndSuffixForLocalVariableName ( IJavaProject javaProject , String localName ) { return String . valueOf ( removePrefixAndSuffixForLocalVariableName ( javaProject , localName . toCharArray ( ) ) ) ; } public static String getBaseName ( int variableKind , String variableName , IJavaProject javaProject ) { return String . valueOf ( InternalNamingConventions . getBaseName ( variableKind , javaProject , variableName . toCharArray ( ) , true ) ) ; } private static int getFieldVariableKind ( int modifiers ) { if ( Flags . isStatic ( modifiers ) ) { if ( Flags . isFinal ( modifiers ) ) { return VK_STATIC_FINAL_FIELD ; } return VK_STATIC_FIELD ; } return VK_INSTANCE_FIELD ; } private static char [ ] suggestAccessorName ( IJavaProject project , char [ ] fieldName , int modifiers ) { char [ ] name = InternalNamingConventions . getBaseName ( getFieldVariableKind ( modifiers ) , project , fieldName , false ) ; if ( name . length > <NUM_LIT:0> && ScannerHelper . isLowerCase ( name [ <NUM_LIT:0> ] ) ) { if ( name . length == <NUM_LIT:1> || ! ScannerHelper . isUpperCase ( name [ <NUM_LIT:1> ] ) ) { name [ <NUM_LIT:0> ] = ScannerHelper . toUpperCase ( name [ <NUM_LIT:0> ] ) ; } } return name ; } public static char [ ] [ ] suggestArgumentNames ( IJavaProject javaProject , char [ ] packageName , char [ ] qualifiedTypeName , int dim , char [ ] [ ] excludedNames ) { if ( qualifiedTypeName == null || qualifiedTypeName . length == <NUM_LIT:0> ) return CharOperation . NO_CHAR_CHAR ; char [ ] typeName = CharOperation . lastSegment ( qualifiedTypeName , '<CHAR_LIT:.>' ) ; NamingRequestor requestor = new NamingRequestor ( ) ; InternalNamingConventions . suggestVariableNames ( VK_PARAMETER , BK_TYPE_NAME , typeName , javaProject , dim , null , excludedNames , true , requestor ) ; return requestor . getResults ( ) ; } public static String [ ] suggestArgumentNames ( IJavaProject javaProject , String packageName , String qualifiedTypeName , int dim , String [ ] excludedNames ) { return convertCharsToString ( suggestArgumentNames ( javaProject , packageName . toCharArray ( ) , qualifiedTypeName . toCharArray ( ) , dim , convertStringToChars ( excludedNames ) ) ) ; } public static char [ ] [ ] suggestFieldNames ( IJavaProject javaProject , char [ ] packageName , char [ ] qualifiedTypeName , int dim , int modifiers , char [ ] [ ] excludedNames ) { if ( qualifiedTypeName == null || qualifiedTypeName . length == <NUM_LIT:0> ) return CharOperation . NO_CHAR_CHAR ; char [ ] typeName = CharOperation . lastSegment ( qualifiedTypeName , '<CHAR_LIT:.>' ) ; NamingRequestor requestor = new NamingRequestor ( ) ; InternalNamingConventions . suggestVariableNames ( Flags . isStatic ( modifiers ) ? VK_STATIC_FIELD : VK_INSTANCE_FIELD , BK_TYPE_NAME , typeName , javaProject , dim , null , excludedNames , true , requestor ) ; return requestor . getResults ( ) ; } public static String [ ] suggestFieldNames ( IJavaProject javaProject , String packageName , String qualifiedTypeName , int dim , int modifiers , String [ ] excludedNames ) { return convertCharsToString ( suggestFieldNames ( javaProject , packageName . toCharArray ( ) , qualifiedTypeName . toCharArray ( ) , dim , modifiers , convertStringToChars ( excludedNames ) ) ) ; } public static char [ ] suggestGetterName ( IJavaProject project , char [ ] fieldName , int modifiers , boolean isBoolean , char [ ] [ ] excludedNames ) { if ( isBoolean ) { char [ ] name = InternalNamingConventions . getBaseName ( getFieldVariableKind ( modifiers ) , project , fieldName , false ) ; int prefixLen = GETTER_BOOL_NAME . length ; if ( CharOperation . prefixEquals ( GETTER_BOOL_NAME , name ) && name . length > prefixLen && ScannerHelper . isUpperCase ( name [ prefixLen ] ) ) { return suggestNewName ( name , excludedNames ) ; } else { return suggestNewName ( CharOperation . concat ( GETTER_BOOL_NAME , suggestAccessorName ( project , fieldName , modifiers ) ) , excludedNames ) ; } } else { return suggestNewName ( CharOperation . concat ( GETTER_NAME , suggestAccessorName ( project , fieldName , modifiers ) ) , excludedNames ) ; } } public static String suggestGetterName ( IJavaProject project , String fieldName , int modifiers , boolean isBoolean , String [ ] excludedNames ) { return String . valueOf ( suggestGetterName ( project , fieldName . toCharArray ( ) , modifiers , isBoolean , convertStringToChars ( excludedNames ) ) ) ; } public static char [ ] [ ] suggestLocalVariableNames ( IJavaProject javaProject , char [ ] packageName , char [ ] qualifiedTypeName , int dim , char [ ] [ ] excludedNames ) { if ( qualifiedTypeName == null || qualifiedTypeName . length == <NUM_LIT:0> ) return CharOperation . NO_CHAR_CHAR ; char [ ] typeName = CharOperation . lastSegment ( qualifiedTypeName , '<CHAR_LIT:.>' ) ; NamingRequestor requestor = new NamingRequestor ( ) ; InternalNamingConventions . suggestVariableNames ( VK_LOCAL , BK_TYPE_NAME , typeName , javaProject , dim , null , excludedNames , true , requestor ) ; return requestor . getResults ( ) ; } public static String [ ] suggestLocalVariableNames ( IJavaProject javaProject , String packageName , String qualifiedTypeName , int dim , String [ ] excludedNames ) { return convertCharsToString ( suggestLocalVariableNames ( javaProject , packageName . toCharArray ( ) , qualifiedTypeName . toCharArray ( ) , dim , convertStringToChars ( excludedNames ) ) ) ; } private static char [ ] suggestNewName ( char [ ] name , char [ ] [ ] excludedNames ) { if ( excludedNames == null ) { return name ; } char [ ] newName = name ; int count = <NUM_LIT:2> ; int i = <NUM_LIT:0> ; while ( i < excludedNames . length ) { if ( CharOperation . equals ( newName , excludedNames [ i ] , false ) ) { newName = CharOperation . concat ( name , String . valueOf ( count ++ ) . toCharArray ( ) ) ; i = <NUM_LIT:0> ; } else { i ++ ; } } return newName ; } public static char [ ] suggestSetterName ( IJavaProject project , char [ ] fieldName , int modifiers , boolean isBoolean , char [ ] [ ] excludedNames ) { if ( isBoolean ) { char [ ] name = InternalNamingConventions . getBaseName ( getFieldVariableKind ( modifiers ) , project , fieldName , false ) ; int prefixLen = GETTER_BOOL_NAME . length ; if ( CharOperation . prefixEquals ( GETTER_BOOL_NAME , name ) && name . length > prefixLen && ScannerHelper . isUpperCase ( name [ prefixLen ] ) ) { name = CharOperation . subarray ( name , prefixLen , name . length ) ; return suggestNewName ( CharOperation . concat ( SETTER_NAME , suggestAccessorName ( project , name , modifiers ) ) , excludedNames ) ; } else { return suggestNewName ( CharOperation . concat ( SETTER_NAME , suggestAccessorName ( project , fieldName , modifiers ) ) , excludedNames ) ; } } else { return suggestNewName ( CharOperation . concat ( SETTER_NAME , suggestAccessorName ( project , fieldName , modifiers ) ) , excludedNames ) ; } } public static String suggestSetterName ( IJavaProject project , String fieldName , int modifiers , boolean isBoolean , String [ ] excludedNames ) { return String . valueOf ( suggestSetterName ( project , fieldName . toCharArray ( ) , modifiers , isBoolean , convertStringToChars ( excludedNames ) ) ) ; } public static String [ ] suggestVariableNames ( int variableKind , int baseNameKind , String baseName , IJavaProject javaProject , int dim , String [ ] excluded , boolean evaluateDefault ) { NamingRequestor requestor = new NamingRequestor ( ) ; InternalNamingConventions . suggestVariableNames ( variableKind , baseNameKind , baseName . toCharArray ( ) , javaProject , dim , null , convertStringToChars ( excluded ) , evaluateDefault , requestor ) ; return convertCharsToString ( requestor . getResults ( ) ) ; } private NamingConventions ( ) { } } </s>
<s> package org . eclipse . jdt . core . util ; public interface IRuntimeVisibleAnnotationsAttribute extends IClassFileAttribute { int getAnnotationsNumber ( ) ; IAnnotation [ ] getAnnotations ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IConstantPoolConstant { int CONSTANT_Class = <NUM_LIT:7> ; int CONSTANT_Fieldref = <NUM_LIT:9> ; int CONSTANT_Methodref = <NUM_LIT:10> ; int CONSTANT_InterfaceMethodref = <NUM_LIT:11> ; int CONSTANT_String = <NUM_LIT:8> ; int CONSTANT_Integer = <NUM_LIT:3> ; int CONSTANT_Float = <NUM_LIT:4> ; int CONSTANT_Long = <NUM_LIT:5> ; int CONSTANT_Double = <NUM_LIT:6> ; int CONSTANT_NameAndType = <NUM_LIT:12> ; int CONSTANT_Utf8 = <NUM_LIT:1> ; int CONSTANT_MethodHandle = <NUM_LIT:15> ; int CONSTANT_MethodType = <NUM_LIT:16> ; int CONSTANT_InvokeDynamic = <NUM_LIT> ; int CONSTANT_Methodref_SIZE = <NUM_LIT:5> ; int CONSTANT_Class_SIZE = <NUM_LIT:3> ; int CONSTANT_Double_SIZE = <NUM_LIT:9> ; int CONSTANT_Fieldref_SIZE = <NUM_LIT:5> ; int CONSTANT_Float_SIZE = <NUM_LIT:5> ; int CONSTANT_Integer_SIZE = <NUM_LIT:5> ; int CONSTANT_InterfaceMethodref_SIZE = <NUM_LIT:5> ; int CONSTANT_Long_SIZE = <NUM_LIT:9> ; int CONSTANT_String_SIZE = <NUM_LIT:3> ; int CONSTANT_Utf8_SIZE = <NUM_LIT:3> ; int CONSTANT_NameAndType_SIZE = <NUM_LIT:5> ; int CONSTANT_MethodHandle_SIZE = <NUM_LIT:4> ; int CONSTANT_MethodType_SIZE = <NUM_LIT:3> ; int CONSTANT_InvokeDynamic_SIZE = <NUM_LIT:5> ; int METHOD_TYPE_REF_GetField = <NUM_LIT:1> ; int METHOD_TYPE_REF_GetStatic = <NUM_LIT:2> ; int METHOD_TYPE_REF_PutField = <NUM_LIT:3> ; int METHOD_TYPE_REF_PutStatic = <NUM_LIT:4> ; int METHOD_TYPE_REF_InvokeVirtual = <NUM_LIT:5> ; int METHOD_TYPE_REF_InvokeStatic = <NUM_LIT:6> ; int METHOD_TYPE_REF_InvokeSpecial = <NUM_LIT:7> ; int METHOD_TYPE_REF_NewInvokeSpecial = <NUM_LIT:8> ; int METHOD_TYPE_REF_InvokeInterface = <NUM_LIT:9> ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IInnerClassesAttribute extends IClassFileAttribute { int getNumberOfClasses ( ) ; IInnerClassesAttributeEntry [ ] getInnerClassAttributesEntries ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ISignatureAttribute extends IClassFileAttribute { int getSignatureIndex ( ) ; char [ ] getSignature ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IStackMapFrame { int getFrameType ( ) ; int getOffsetDelta ( ) ; int getNumberOfLocals ( ) ; IVerificationTypeInfo [ ] getLocals ( ) ; int getNumberOfStackItems ( ) ; IVerificationTypeInfo [ ] getStackItems ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IAnnotationDefaultAttribute extends IClassFileAttribute { IAnnotationComponentValue getMemberValue ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public class ClassFormatException extends Exception { public static final int ERROR_MALFORMED_UTF8 = <NUM_LIT:1> ; public static final int ERROR_TRUNCATED_INPUT = <NUM_LIT:2> ; public static final int INVALID_CONSTANT_POOL_ENTRY = <NUM_LIT:3> ; public static final int TOO_MANY_BYTES = <NUM_LIT:4> ; public static final int INVALID_ARGUMENTS_FOR_INVOKEINTERFACE = <NUM_LIT:5> ; public static final int INVALID_BYTECODE = <NUM_LIT:6> ; public static final int INVALID_TAG_CONSTANT = <NUM_LIT:7> ; public static final int INVALID_MAGIC_NUMBER = <NUM_LIT:8> ; private static final long serialVersionUID = <NUM_LIT> ; public ClassFormatException ( int errorID ) { } public ClassFormatException ( String message ) { super ( message ) ; } public ClassFormatException ( String message , Throwable cause ) { super ( message , cause ) ; } } </s>
<s> package org . eclipse . jdt . core . util ; public abstract class ClassFileBytesDisassembler { public final static int DETAILED = <NUM_LIT:1> ; public final static int DEFAULT = <NUM_LIT:2> ; public final static int SYSTEM = <NUM_LIT:4> ; public final static int COMPACT = <NUM_LIT:8> ; public final static int WORKING_COPY = <NUM_LIT:16> ; public abstract String disassemble ( byte [ ] classFileBytes , String lineSeparator ) throws ClassFormatException ; public abstract String disassemble ( byte [ ] classFileBytes , String lineSeparator , int mode ) throws ClassFormatException ; public abstract String getDescription ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IConstantPool { int getConstantPoolCount ( ) ; int getEntryKind ( int index ) ; IConstantPoolEntry decodeEntry ( int index ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IAnnotation { int getTypeIndex ( ) ; char [ ] getTypeName ( ) ; int getComponentsNumber ( ) ; IAnnotationComponent [ ] getComponents ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IFieldInfo { IConstantValueAttribute getConstantValueAttribute ( ) ; int getAccessFlags ( ) ; char [ ] getName ( ) ; int getNameIndex ( ) ; char [ ] getDescriptor ( ) ; int getDescriptorIndex ( ) ; boolean hasConstantValueAttribute ( ) ; boolean isSynthetic ( ) ; boolean isDeprecated ( ) ; int getAttributeCount ( ) ; IClassFileAttribute [ ] getAttributes ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IConstantValueAttribute extends IClassFileAttribute { int getConstantValueIndex ( ) ; IConstantPoolEntry getConstantValue ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IBootstrapMethodsEntry { int getBootstrapMethodReference ( ) ; int [ ] getBootstrapArguments ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IAnnotationComponent { int getComponentNameIndex ( ) ; char [ ] getComponentName ( ) ; IAnnotationComponentValue getComponentValue ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IParameterAnnotation { int getAnnotationsNumber ( ) ; IAnnotation [ ] getAnnotations ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IEnclosingMethodAttribute extends IClassFileAttribute { char [ ] getEnclosingClass ( ) ; int getEnclosingClassIndex ( ) ; char [ ] getMethodDescriptor ( ) ; int getMethodDescriptorIndex ( ) ; char [ ] getMethodName ( ) ; int getMethodNameIndex ( ) ; int getMethodNameAndTypeIndex ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IClassFileReader { int ALL = <NUM_LIT> ; int CONSTANT_POOL = <NUM_LIT> ; int METHOD_INFOS = <NUM_LIT> + CONSTANT_POOL ; int FIELD_INFOS = <NUM_LIT> + CONSTANT_POOL ; int SUPER_INTERFACES = <NUM_LIT> + CONSTANT_POOL ; int CLASSFILE_ATTRIBUTES = <NUM_LIT> + CONSTANT_POOL ; int METHOD_BODIES = <NUM_LIT> ; int ALL_BUT_METHOD_BODIES = ALL & ~ METHOD_BODIES ; int getAccessFlags ( ) ; IFieldInfo [ ] getFieldInfos ( ) ; char [ ] [ ] getInterfaceNames ( ) ; int [ ] getInterfaceIndexes ( ) ; IInnerClassesAttribute getInnerClassesAttribute ( ) ; IMethodInfo [ ] getMethodInfos ( ) ; char [ ] getClassName ( ) ; int getClassIndex ( ) ; char [ ] getSuperclassName ( ) ; int getSuperclassIndex ( ) ; boolean isClass ( ) ; boolean isInterface ( ) ; ISourceAttribute getSourceFileAttribute ( ) ; IConstantPool getConstantPool ( ) ; int getMinorVersion ( ) ; int getMajorVersion ( ) ; int getAttributeCount ( ) ; IClassFileAttribute [ ] getAttributes ( ) ; int getMagic ( ) ; int getFieldsCount ( ) ; int getMethodsCount ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IExceptionAttribute extends IClassFileAttribute { int getExceptionsNumber ( ) ; char [ ] [ ] getExceptionNames ( ) ; int [ ] getExceptionIndexes ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ILocalVariableTableEntry { int getStartPC ( ) ; int getLength ( ) ; int getNameIndex ( ) ; int getDescriptorIndex ( ) ; int getIndex ( ) ; char [ ] getName ( ) ; char [ ] getDescriptor ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ILocalVariableTypeTableEntry { int getStartPC ( ) ; int getLength ( ) ; int getNameIndex ( ) ; int getSignatureIndex ( ) ; int getIndex ( ) ; char [ ] getName ( ) ; char [ ] getSignature ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IRuntimeVisibleParameterAnnotationsAttribute extends IClassFileAttribute { int getParametersNumber ( ) ; IParameterAnnotation [ ] getParameterAnnotations ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; import java . util . Comparator ; import org . eclipse . core . runtime . IProgressMonitor ; import org . eclipse . jdt . core . ICompilationUnit ; import org . eclipse . jdt . core . IJavaElement ; import org . eclipse . jdt . core . JavaModelException ; import org . eclipse . jdt . core . dom . AST ; import org . eclipse . jdt . core . dom . CompilationUnit ; import org . eclipse . jdt . internal . core . SortElementsOperation ; import org . eclipse . text . edits . TextEdit ; import org . eclipse . text . edits . TextEditGroup ; public final class CompilationUnitSorter { private CompilationUnitSorter ( ) { } private static void checkASTLevel ( int level ) { switch ( level ) { case AST . JLS2 : case AST . JLS3 : case AST . JLS4 : break ; default : throw new IllegalArgumentException ( ) ; } } public static final String RELATIVE_ORDER = "<STR_LIT>" ; public static void sort ( ICompilationUnit compilationUnit , int [ ] positions , Comparator comparator , int options , IProgressMonitor monitor ) throws JavaModelException { sort ( AST . JLS2 , compilationUnit , positions , comparator , options , monitor ) ; } public static void sort ( int level , ICompilationUnit compilationUnit , int [ ] positions , Comparator comparator , int options , IProgressMonitor monitor ) throws JavaModelException { if ( compilationUnit == null || comparator == null ) { throw new IllegalArgumentException ( ) ; } checkASTLevel ( level ) ; ICompilationUnit [ ] compilationUnits = new ICompilationUnit [ ] { compilationUnit } ; SortElementsOperation operation = new SortElementsOperation ( level , compilationUnits , positions , comparator ) ; operation . runOperation ( monitor ) ; } public static TextEdit sort ( CompilationUnit unit , Comparator comparator , int options , TextEditGroup group , IProgressMonitor monitor ) throws JavaModelException { if ( unit == null || comparator == null ) { throw new IllegalArgumentException ( ) ; } SortElementsOperation operation = new SortElementsOperation ( AST . JLS4 , new IJavaElement [ ] { unit . getJavaElement ( ) } , null , comparator ) ; return operation . calculateEdit ( unit , group ) ; } } </s>
<s> package org . eclipse . jdt . core . util ; public interface ICodeAttribute extends IClassFileAttribute { int getMaxLocals ( ) ; int getMaxStack ( ) ; ILineNumberAttribute getLineNumberAttribute ( ) ; ILocalVariableAttribute getLocalVariableAttribute ( ) ; IExceptionTableEntry [ ] getExceptionTable ( ) ; byte [ ] getBytecodes ( ) ; long getCodeLength ( ) ; int getAttributesCount ( ) ; IClassFileAttribute [ ] getAttributes ( ) ; int getExceptionTableLength ( ) ; void traverse ( IBytecodeVisitor visitor ) throws ClassFormatException ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ILocalVariableAttribute extends IClassFileAttribute { int getLocalVariableTableLength ( ) ; ILocalVariableTableEntry [ ] getLocalVariableTable ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IOpcodeMnemonics { int NOP = <NUM_LIT:0x00> ; int ACONST_NULL = <NUM_LIT> ; int ICONST_M1 = <NUM_LIT> ; int ICONST_0 = <NUM_LIT> ; int ICONST_1 = <NUM_LIT> ; int ICONST_2 = <NUM_LIT> ; int ICONST_3 = <NUM_LIT> ; int ICONST_4 = <NUM_LIT> ; int ICONST_5 = <NUM_LIT> ; int LCONST_0 = <NUM_LIT> ; int LCONST_1 = <NUM_LIT> ; int FCONST_0 = <NUM_LIT> ; int FCONST_1 = <NUM_LIT> ; int FCONST_2 = <NUM_LIT> ; int DCONST_0 = <NUM_LIT> ; int DCONST_1 = <NUM_LIT> ; int BIPUSH = <NUM_LIT> ; int SIPUSH = <NUM_LIT> ; int LDC = <NUM_LIT> ; int LDC_W = <NUM_LIT> ; int LDC2_W = <NUM_LIT> ; int ILOAD = <NUM_LIT> ; int LLOAD = <NUM_LIT> ; int FLOAD = <NUM_LIT> ; int DLOAD = <NUM_LIT> ; int ALOAD = <NUM_LIT> ; int ILOAD_0 = <NUM_LIT> ; int ILOAD_1 = <NUM_LIT> ; int ILOAD_2 = <NUM_LIT> ; int ILOAD_3 = <NUM_LIT> ; int LLOAD_0 = <NUM_LIT> ; int LLOAD_1 = <NUM_LIT> ; int LLOAD_2 = <NUM_LIT> ; int LLOAD_3 = <NUM_LIT> ; int FLOAD_0 = <NUM_LIT> ; int FLOAD_1 = <NUM_LIT> ; int FLOAD_2 = <NUM_LIT> ; int FLOAD_3 = <NUM_LIT> ; int DLOAD_0 = <NUM_LIT> ; int DLOAD_1 = <NUM_LIT> ; int DLOAD_2 = <NUM_LIT> ; int DLOAD_3 = <NUM_LIT> ; int ALOAD_0 = <NUM_LIT> ; int ALOAD_1 = <NUM_LIT> ; int ALOAD_2 = <NUM_LIT> ; int ALOAD_3 = <NUM_LIT> ; int IALOAD = <NUM_LIT> ; int LALOAD = <NUM_LIT> ; int FALOAD = <NUM_LIT> ; int DALOAD = <NUM_LIT> ; int AALOAD = <NUM_LIT> ; int BALOAD = <NUM_LIT> ; int CALOAD = <NUM_LIT> ; int SALOAD = <NUM_LIT> ; int ISTORE = <NUM_LIT> ; int LSTORE = <NUM_LIT> ; int FSTORE = <NUM_LIT> ; int DSTORE = <NUM_LIT> ; int ASTORE = <NUM_LIT> ; int ISTORE_0 = <NUM_LIT> ; int ISTORE_1 = <NUM_LIT> ; int ISTORE_2 = <NUM_LIT> ; int ISTORE_3 = <NUM_LIT> ; int LSTORE_0 = <NUM_LIT> ; int LSTORE_1 = <NUM_LIT> ; int LSTORE_2 = <NUM_LIT> ; int LSTORE_3 = <NUM_LIT> ; int FSTORE_0 = <NUM_LIT> ; int FSTORE_1 = <NUM_LIT> ; int FSTORE_2 = <NUM_LIT> ; int FSTORE_3 = <NUM_LIT> ; int DSTORE_0 = <NUM_LIT> ; int DSTORE_1 = <NUM_LIT> ; int DSTORE_2 = <NUM_LIT> ; int DSTORE_3 = <NUM_LIT> ; int ASTORE_0 = <NUM_LIT> ; int ASTORE_1 = <NUM_LIT> ; int ASTORE_2 = <NUM_LIT> ; int ASTORE_3 = <NUM_LIT> ; int IASTORE = <NUM_LIT> ; int LASTORE = <NUM_LIT> ; int FASTORE = <NUM_LIT> ; int DASTORE = <NUM_LIT> ; int AASTORE = <NUM_LIT> ; int BASTORE = <NUM_LIT> ; int CASTORE = <NUM_LIT> ; int SASTORE = <NUM_LIT> ; int POP = <NUM_LIT> ; int POP2 = <NUM_LIT> ; int DUP = <NUM_LIT> ; int DUP_X1 = <NUM_LIT> ; int DUP_X2 = <NUM_LIT> ; int DUP2 = <NUM_LIT> ; int DUP2_X1 = <NUM_LIT> ; int DUP2_X2 = <NUM_LIT> ; int SWAP = <NUM_LIT> ; int IADD = <NUM_LIT> ; int LADD = <NUM_LIT> ; int FADD = <NUM_LIT> ; int DADD = <NUM_LIT> ; int ISUB = <NUM_LIT> ; int LSUB = <NUM_LIT> ; int FSUB = <NUM_LIT> ; int DSUB = <NUM_LIT> ; int IMUL = <NUM_LIT> ; int LMUL = <NUM_LIT> ; int FMUL = <NUM_LIT> ; int DMUL = <NUM_LIT> ; int IDIV = <NUM_LIT> ; int LDIV = <NUM_LIT> ; int FDIV = <NUM_LIT> ; int DDIV = <NUM_LIT> ; int IREM = <NUM_LIT> ; int LREM = <NUM_LIT> ; int FREM = <NUM_LIT> ; int DREM = <NUM_LIT> ; int INEG = <NUM_LIT> ; int LNEG = <NUM_LIT> ; int FNEG = <NUM_LIT> ; int DNEG = <NUM_LIT> ; int ISHL = <NUM_LIT> ; int LSHL = <NUM_LIT> ; int ISHR = <NUM_LIT> ; int LSHR = <NUM_LIT> ; int IUSHR = <NUM_LIT> ; int LUSHR = <NUM_LIT> ; int IAND = <NUM_LIT> ; int LAND = <NUM_LIT> ; int IOR = <NUM_LIT> ; int LOR = <NUM_LIT> ; int IXOR = <NUM_LIT> ; int LXOR = <NUM_LIT> ; int IINC = <NUM_LIT> ; int I2L = <NUM_LIT> ; int I2F = <NUM_LIT> ; int I2D = <NUM_LIT> ; int L2I = <NUM_LIT> ; int L2F = <NUM_LIT> ; int L2D = <NUM_LIT> ; int F2I = <NUM_LIT> ; int F2L = <NUM_LIT> ; int F2D = <NUM_LIT> ; int D2I = <NUM_LIT> ; int D2L = <NUM_LIT> ; int D2F = <NUM_LIT> ; int I2B = <NUM_LIT> ; int I2C = <NUM_LIT> ; int I2S = <NUM_LIT> ; int LCMP = <NUM_LIT> ; int FCMPL = <NUM_LIT> ; int FCMPG = <NUM_LIT> ; int DCMPL = <NUM_LIT> ; int DCMPG = <NUM_LIT> ; int IFEQ = <NUM_LIT> ; int IFNE = <NUM_LIT> ; int IFLT = <NUM_LIT> ; int IFGE = <NUM_LIT> ; int IFGT = <NUM_LIT> ; int IFLE = <NUM_LIT> ; int IF_ICMPEQ = <NUM_LIT> ; int IF_ICMPNE = <NUM_LIT> ; int IF_ICMPLT = <NUM_LIT> ; int IF_ICMPGE = <NUM_LIT> ; int IF_ICMPGT = <NUM_LIT> ; int IF_ICMPLE = <NUM_LIT> ; int IF_ACMPEQ = <NUM_LIT> ; int IF_ACMPNE = <NUM_LIT> ; int GOTO = <NUM_LIT> ; int JSR = <NUM_LIT> ; int RET = <NUM_LIT> ; int TABLESWITCH = <NUM_LIT> ; int LOOKUPSWITCH = <NUM_LIT> ; int IRETURN = <NUM_LIT> ; int LRETURN = <NUM_LIT> ; int FRETURN = <NUM_LIT> ; int DRETURN = <NUM_LIT> ; int ARETURN = <NUM_LIT> ; int RETURN = <NUM_LIT> ; int GETSTATIC = <NUM_LIT> ; int PUTSTATIC = <NUM_LIT> ; int GETFIELD = <NUM_LIT> ; int PUTFIELD = <NUM_LIT> ; int INVOKEVIRTUAL = <NUM_LIT> ; int INVOKESPECIAL = <NUM_LIT> ; int INVOKESTATIC = <NUM_LIT> ; int INVOKEINTERFACE = <NUM_LIT> ; int INVOKEDYNAMIC = <NUM_LIT> ; int NEW = <NUM_LIT> ; int NEWARRAY = <NUM_LIT> ; int ANEWARRAY = <NUM_LIT> ; int ARRAYLENGTH = <NUM_LIT> ; int ATHROW = <NUM_LIT> ; int CHECKCAST = <NUM_LIT> ; int INSTANCEOF = <NUM_LIT> ; int MONITORENTER = <NUM_LIT> ; int MONITOREXIT = <NUM_LIT> ; int WIDE = <NUM_LIT> ; int MULTIANEWARRAY = <NUM_LIT> ; int IFNULL = <NUM_LIT> ; int IFNONNULL = <NUM_LIT> ; int GOTO_W = <NUM_LIT> ; int JSR_W = <NUM_LIT> ; int BREAKPOINT = <NUM_LIT> ; int IMPDEP1 = <NUM_LIT> ; int IMPDEP2 = <NUM_LIT> ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IBootstrapMethodsAttribute extends IClassFileAttribute { int getBootstrapMethodsLength ( ) ; IBootstrapMethodsEntry [ ] getBootstrapMethods ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IConstantPoolEntry2 extends IConstantPoolEntry { int getDescriptorIndex ( ) ; int getReferenceKind ( ) ; int getReferenceIndex ( ) ; int getBootstrapMethodAttributeIndex ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IBytecodeVisitor { void _aaload ( int pc ) ; void _aastore ( int pc ) ; void _aconst_null ( int pc ) ; void _aload ( int pc , int index ) ; void _aload_0 ( int pc ) ; void _aload_1 ( int pc ) ; void _aload_2 ( int pc ) ; void _aload_3 ( int pc ) ; void _anewarray ( int pc , int index , IConstantPoolEntry constantClass ) ; void _areturn ( int pc ) ; void _arraylength ( int pc ) ; void _astore ( int pc , int index ) ; void _astore_0 ( int pc ) ; void _astore_1 ( int pc ) ; void _astore_2 ( int pc ) ; void _astore_3 ( int pc ) ; void _athrow ( int pc ) ; void _baload ( int pc ) ; void _bastore ( int pc ) ; void _bipush ( int pc , byte _byte ) ; void _caload ( int pc ) ; void _castore ( int pc ) ; void _checkcast ( int pc , int index , IConstantPoolEntry constantClass ) ; void _d2f ( int pc ) ; void _d2i ( int pc ) ; void _d2l ( int pc ) ; void _dadd ( int pc ) ; void _daload ( int pc ) ; void _dastore ( int pc ) ; void _dcmpg ( int pc ) ; void _dcmpl ( int pc ) ; void _dconst_0 ( int pc ) ; void _dconst_1 ( int pc ) ; void _ddiv ( int pc ) ; void _dload ( int pc , int index ) ; void _dload_0 ( int pc ) ; void _dload_1 ( int pc ) ; void _dload_2 ( int pc ) ; void _dload_3 ( int pc ) ; void _dmul ( int pc ) ; void _dneg ( int pc ) ; void _drem ( int pc ) ; void _dreturn ( int pc ) ; void _dstore ( int pc , int index ) ; void _dstore_0 ( int pc ) ; void _dstore_1 ( int pc ) ; void _dstore_2 ( int pc ) ; void _dstore_3 ( int pc ) ; void _dsub ( int pc ) ; void _dup ( int pc ) ; void _dup_x1 ( int pc ) ; void _dup_x2 ( int pc ) ; void _dup2 ( int pc ) ; void _dup2_x1 ( int pc ) ; void _dup2_x2 ( int pc ) ; void _f2d ( int pc ) ; void _f2i ( int pc ) ; void _f2l ( int pc ) ; void _fadd ( int pc ) ; void _faload ( int pc ) ; void _fastore ( int pc ) ; void _fcmpg ( int pc ) ; void _fcmpl ( int pc ) ; void _fconst_0 ( int pc ) ; void _fconst_1 ( int pc ) ; void _fconst_2 ( int pc ) ; void _fdiv ( int pc ) ; void _fload ( int pc , int index ) ; void _fload_0 ( int pc ) ; void _fload_1 ( int pc ) ; void _fload_2 ( int pc ) ; void _fload_3 ( int pc ) ; void _fmul ( int pc ) ; void _fneg ( int pc ) ; void _frem ( int pc ) ; void _freturn ( int pc ) ; void _fstore ( int pc , int index ) ; void _fstore_0 ( int pc ) ; void _fstore_1 ( int pc ) ; void _fstore_2 ( int pc ) ; void _fstore_3 ( int pc ) ; void _fsub ( int pc ) ; void _getfield ( int pc , int index , IConstantPoolEntry constantFieldref ) ; void _getstatic ( int pc , int index , IConstantPoolEntry constantFieldref ) ; void _goto ( int pc , int branchOffset ) ; void _goto_w ( int pc , int branchOffset ) ; void _i2b ( int pc ) ; void _i2c ( int pc ) ; void _i2d ( int pc ) ; void _i2f ( int pc ) ; void _i2l ( int pc ) ; void _i2s ( int pc ) ; void _iadd ( int pc ) ; void _iaload ( int pc ) ; void _iand ( int pc ) ; void _iastore ( int pc ) ; void _iconst_m1 ( int pc ) ; void _iconst_0 ( int pc ) ; void _iconst_1 ( int pc ) ; void _iconst_2 ( int pc ) ; void _iconst_3 ( int pc ) ; void _iconst_4 ( int pc ) ; void _iconst_5 ( int pc ) ; void _idiv ( int pc ) ; void _if_acmpeq ( int pc , int branchOffset ) ; void _if_acmpne ( int pc , int branchOffset ) ; void _if_icmpeq ( int pc , int branchOffset ) ; void _if_icmpne ( int pc , int branchOffset ) ; void _if_icmplt ( int pc , int branchOffset ) ; void _if_icmpge ( int pc , int branchOffset ) ; void _if_icmpgt ( int pc , int branchOffset ) ; void _if_icmple ( int pc , int branchOffset ) ; void _ifeq ( int pc , int branchOffset ) ; void _ifne ( int pc , int branchOffset ) ; void _iflt ( int pc , int branchOffset ) ; void _ifge ( int pc , int branchOffset ) ; void _ifgt ( int pc , int branchOffset ) ; void _ifle ( int pc , int branchOffset ) ; void _ifnonnull ( int pc , int branchOffset ) ; void _ifnull ( int pc , int branchOffset ) ; void _iinc ( int pc , int index , int _const ) ; void _iload ( int pc , int index ) ; void _iload_0 ( int pc ) ; void _iload_1 ( int pc ) ; void _iload_2 ( int pc ) ; void _iload_3 ( int pc ) ; void _imul ( int pc ) ; void _ineg ( int pc ) ; void _instanceof ( int pc , int index , IConstantPoolEntry constantClass ) ; void _invokedynamic ( int pc , int index , IConstantPoolEntry nameEntry , IConstantPoolEntry descriptorEntry ) ; void _invokedynamic ( int pc , int index , IConstantPoolEntry invokeDynamic ) ; void _invokeinterface ( int pc , int index , byte nargs , IConstantPoolEntry constantInterfaceMethodref ) ; void _invokespecial ( int pc , int index , IConstantPoolEntry constantMethodref ) ; void _invokestatic ( int pc , int index , IConstantPoolEntry constantMethodref ) ; void _invokevirtual ( int pc , int index , IConstantPoolEntry constantMethodref ) ; void _ior ( int pc ) ; void _irem ( int pc ) ; void _ireturn ( int pc ) ; void _ishl ( int pc ) ; void _ishr ( int pc ) ; void _istore ( int pc , int index ) ; void _istore_0 ( int pc ) ; void _istore_1 ( int pc ) ; void _istore_2 ( int pc ) ; void _istore_3 ( int pc ) ; void _isub ( int pc ) ; void _iushr ( int pc ) ; void _ixor ( int pc ) ; void _jsr ( int pc , int branchOffset ) ; void _jsr_w ( int pc , int branchOffset ) ; void _l2d ( int pc ) ; void _l2f ( int pc ) ; void _l2i ( int pc ) ; void _ladd ( int pc ) ; void _laload ( int pc ) ; void _land ( int pc ) ; void _lastore ( int pc ) ; void _lcmp ( int pc ) ; void _lconst_0 ( int pc ) ; void _lconst_1 ( int pc ) ; void _ldc ( int pc , int index , IConstantPoolEntry constantPoolEntry ) ; void _ldc_w ( int pc , int index , IConstantPoolEntry constantPoolEntry ) ; void _ldc2_w ( int pc , int index , IConstantPoolEntry constantPoolEntry ) ; void _ldiv ( int pc ) ; void _lload ( int pc , int index ) ; void _lload_0 ( int pc ) ; void _lload_1 ( int pc ) ; void _lload_2 ( int pc ) ; void _lload_3 ( int pc ) ; void _lmul ( int pc ) ; void _lneg ( int pc ) ; void _lookupswitch ( int pc , int defaultoffset , int npairs , int [ ] [ ] offset_pairs ) ; void _lor ( int pc ) ; void _lrem ( int pc ) ; void _lreturn ( int pc ) ; void _lshl ( int pc ) ; void _lshr ( int pc ) ; void _lstore ( int pc , int index ) ; void _lstore_0 ( int pc ) ; void _lstore_1 ( int pc ) ; void _lstore_2 ( int pc ) ; void _lstore_3 ( int pc ) ; void _lsub ( int pc ) ; void _lushr ( int pc ) ; void _lxor ( int pc ) ; void _monitorenter ( int pc ) ; void _monitorexit ( int pc ) ; void _multianewarray ( int pc , int index , int dimensions , IConstantPoolEntry constantClass ) ; void _new ( int pc , int index , IConstantPoolEntry constantClass ) ; void _newarray ( int pc , int atype ) ; void _nop ( int pc ) ; void _pop ( int pc ) ; void _pop2 ( int pc ) ; void _putfield ( int pc , int index , IConstantPoolEntry constantFieldref ) ; void _putstatic ( int pc , int index , IConstantPoolEntry constantFieldref ) ; void _ret ( int pc , int index ) ; void _return ( int pc ) ; void _saload ( int pc ) ; void _sastore ( int pc ) ; void _sipush ( int pc , short value ) ; void _swap ( int pc ) ; void _tableswitch ( int pc , int defaultoffset , int low , int high , int [ ] jump_offsets ) ; void _wide ( int pc , int opcode , int index ) ; void _wide ( int pc , int iincopcode , int index , int _const ) ; void _breakpoint ( int pc ) ; void _impdep1 ( int pc ) ; void _impdep2 ( int pc ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ILocalVariableTypeTableAttribute extends IClassFileAttribute { int getLocalVariableTypeTableLength ( ) ; ILocalVariableTypeTableEntry [ ] getLocalVariableTypeTable ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public class OpcodeStringValues implements IOpcodeMnemonics { public static final String [ ] BYTECODE_NAMES = new String [ <NUM_LIT> ] ; static { BYTECODE_NAMES [ NOP ] = "<STR_LIT>" ; BYTECODE_NAMES [ ACONST_NULL ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_M1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_4 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ICONST_5 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LCONST_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LCONST_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FCONST_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FCONST_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FCONST_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DCONST_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DCONST_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ BIPUSH ] = "<STR_LIT>" ; BYTECODE_NAMES [ SIPUSH ] = "<STR_LIT>" ; BYTECODE_NAMES [ LDC ] = "<STR_LIT>" ; BYTECODE_NAMES [ LDC_W ] = "<STR_LIT>" ; BYTECODE_NAMES [ LDC2_W ] = "<STR_LIT>" ; BYTECODE_NAMES [ ILOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ LLOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ FLOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ DLOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ ALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ ILOAD_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ILOAD_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ILOAD_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ILOAD_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LLOAD_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LLOAD_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LLOAD_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LLOAD_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FLOAD_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FLOAD_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FLOAD_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FLOAD_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DLOAD_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DLOAD_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DLOAD_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DLOAD_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ALOAD_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ALOAD_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ALOAD_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ALOAD_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ IALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ LALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ FALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ DALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ AALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ BALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ CALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ SALOAD ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ FSTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ DSTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ ASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISTORE_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISTORE_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISTORE_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISTORE_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSTORE_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSTORE_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSTORE_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSTORE_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FSTORE_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FSTORE_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FSTORE_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ FSTORE_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DSTORE_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DSTORE_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DSTORE_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DSTORE_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ASTORE_0 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ASTORE_1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ASTORE_2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ ASTORE_3 ] = "<STR_LIT>" ; BYTECODE_NAMES [ IASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ LASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ FASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ DASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ AASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ BASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ CASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ SASTORE ] = "<STR_LIT>" ; BYTECODE_NAMES [ POP ] = "<STR_LIT>" ; BYTECODE_NAMES [ POP2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DUP ] = "<STR_LIT>" ; BYTECODE_NAMES [ DUP_X1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DUP_X2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DUP2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DUP2_X1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ DUP2_X2 ] = "<STR_LIT>" ; BYTECODE_NAMES [ SWAP ] = "<STR_LIT>" ; BYTECODE_NAMES [ IADD ] = "<STR_LIT>" ; BYTECODE_NAMES [ LADD ] = "<STR_LIT>" ; BYTECODE_NAMES [ FADD ] = "<STR_LIT>" ; BYTECODE_NAMES [ DADD ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISUB ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSUB ] = "<STR_LIT>" ; BYTECODE_NAMES [ FSUB ] = "<STR_LIT>" ; BYTECODE_NAMES [ DSUB ] = "<STR_LIT>" ; BYTECODE_NAMES [ IMUL ] = "<STR_LIT>" ; BYTECODE_NAMES [ LMUL ] = "<STR_LIT>" ; BYTECODE_NAMES [ FMUL ] = "<STR_LIT>" ; BYTECODE_NAMES [ DMUL ] = "<STR_LIT>" ; BYTECODE_NAMES [ IDIV ] = "<STR_LIT>" ; BYTECODE_NAMES [ LDIV ] = "<STR_LIT>" ; BYTECODE_NAMES [ FDIV ] = "<STR_LIT>" ; BYTECODE_NAMES [ DDIV ] = "<STR_LIT>" ; BYTECODE_NAMES [ IREM ] = "<STR_LIT>" ; BYTECODE_NAMES [ LREM ] = "<STR_LIT>" ; BYTECODE_NAMES [ FREM ] = "<STR_LIT>" ; BYTECODE_NAMES [ DREM ] = "<STR_LIT>" ; BYTECODE_NAMES [ INEG ] = "<STR_LIT>" ; BYTECODE_NAMES [ LNEG ] = "<STR_LIT>" ; BYTECODE_NAMES [ FNEG ] = "<STR_LIT>" ; BYTECODE_NAMES [ DNEG ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISHL ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSHL ] = "<STR_LIT>" ; BYTECODE_NAMES [ ISHR ] = "<STR_LIT>" ; BYTECODE_NAMES [ LSHR ] = "<STR_LIT>" ; BYTECODE_NAMES [ IUSHR ] = "<STR_LIT>" ; BYTECODE_NAMES [ LUSHR ] = "<STR_LIT>" ; BYTECODE_NAMES [ IAND ] = "<STR_LIT>" ; BYTECODE_NAMES [ LAND ] = "<STR_LIT>" ; BYTECODE_NAMES [ IOR ] = "<STR_LIT>" ; BYTECODE_NAMES [ LOR ] = "<STR_LIT>" ; BYTECODE_NAMES [ IXOR ] = "<STR_LIT>" ; BYTECODE_NAMES [ LXOR ] = "<STR_LIT>" ; BYTECODE_NAMES [ IINC ] = "<STR_LIT>" ; BYTECODE_NAMES [ I2L ] = "<STR_LIT>" ; BYTECODE_NAMES [ I2F ] = "<STR_LIT>" ; BYTECODE_NAMES [ I2D ] = "<STR_LIT>" ; BYTECODE_NAMES [ L2I ] = "<STR_LIT>" ; BYTECODE_NAMES [ L2F ] = "<STR_LIT>" ; BYTECODE_NAMES [ L2D ] = "<STR_LIT>" ; BYTECODE_NAMES [ F2I ] = "<STR_LIT>" ; BYTECODE_NAMES [ F2L ] = "<STR_LIT>" ; BYTECODE_NAMES [ F2D ] = "<STR_LIT>" ; BYTECODE_NAMES [ D2I ] = "<STR_LIT>" ; BYTECODE_NAMES [ D2L ] = "<STR_LIT>" ; BYTECODE_NAMES [ D2F ] = "<STR_LIT>" ; BYTECODE_NAMES [ I2B ] = "<STR_LIT>" ; BYTECODE_NAMES [ I2C ] = "<STR_LIT>" ; BYTECODE_NAMES [ I2S ] = "<STR_LIT>" ; BYTECODE_NAMES [ LCMP ] = "<STR_LIT>" ; BYTECODE_NAMES [ FCMPL ] = "<STR_LIT>" ; BYTECODE_NAMES [ FCMPG ] = "<STR_LIT>" ; BYTECODE_NAMES [ DCMPL ] = "<STR_LIT>" ; BYTECODE_NAMES [ DCMPG ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFEQ ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFNE ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFLT ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFGE ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFGT ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFLE ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ICMPEQ ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ICMPNE ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ICMPLT ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ICMPGE ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ICMPGT ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ICMPLE ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ACMPEQ ] = "<STR_LIT>" ; BYTECODE_NAMES [ IF_ACMPNE ] = "<STR_LIT>" ; BYTECODE_NAMES [ GOTO ] = "<STR_LIT>" ; BYTECODE_NAMES [ JSR ] = "<STR_LIT>" ; BYTECODE_NAMES [ RET ] = "<STR_LIT>" ; BYTECODE_NAMES [ TABLESWITCH ] = "<STR_LIT>" ; BYTECODE_NAMES [ LOOKUPSWITCH ] = "<STR_LIT>" ; BYTECODE_NAMES [ IRETURN ] = "<STR_LIT>" ; BYTECODE_NAMES [ LRETURN ] = "<STR_LIT>" ; BYTECODE_NAMES [ FRETURN ] = "<STR_LIT>" ; BYTECODE_NAMES [ DRETURN ] = "<STR_LIT>" ; BYTECODE_NAMES [ ARETURN ] = "<STR_LIT>" ; BYTECODE_NAMES [ RETURN ] = "<STR_LIT>" ; BYTECODE_NAMES [ GETSTATIC ] = "<STR_LIT>" ; BYTECODE_NAMES [ PUTSTATIC ] = "<STR_LIT>" ; BYTECODE_NAMES [ GETFIELD ] = "<STR_LIT>" ; BYTECODE_NAMES [ PUTFIELD ] = "<STR_LIT>" ; BYTECODE_NAMES [ INVOKEVIRTUAL ] = "<STR_LIT>" ; BYTECODE_NAMES [ INVOKESPECIAL ] = "<STR_LIT>" ; BYTECODE_NAMES [ INVOKESTATIC ] = "<STR_LIT>" ; BYTECODE_NAMES [ INVOKEINTERFACE ] = "<STR_LIT>" ; BYTECODE_NAMES [ INVOKEDYNAMIC ] = "<STR_LIT>" ; BYTECODE_NAMES [ NEW ] = "<STR_LIT>" ; BYTECODE_NAMES [ NEWARRAY ] = "<STR_LIT>" ; BYTECODE_NAMES [ ANEWARRAY ] = "<STR_LIT>" ; BYTECODE_NAMES [ ARRAYLENGTH ] = "<STR_LIT>" ; BYTECODE_NAMES [ ATHROW ] = "<STR_LIT>" ; BYTECODE_NAMES [ CHECKCAST ] = "<STR_LIT>" ; BYTECODE_NAMES [ INSTANCEOF ] = "<STR_LIT>" ; BYTECODE_NAMES [ MONITORENTER ] = "<STR_LIT>" ; BYTECODE_NAMES [ MONITOREXIT ] = "<STR_LIT>" ; BYTECODE_NAMES [ WIDE ] = "<STR_LIT>" ; BYTECODE_NAMES [ MULTIANEWARRAY ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFNULL ] = "<STR_LIT>" ; BYTECODE_NAMES [ IFNONNULL ] = "<STR_LIT>" ; BYTECODE_NAMES [ GOTO_W ] = "<STR_LIT>" ; BYTECODE_NAMES [ JSR_W ] = "<STR_LIT>" ; BYTECODE_NAMES [ BREAKPOINT ] = "<STR_LIT>" ; BYTECODE_NAMES [ IMPDEP1 ] = "<STR_LIT>" ; BYTECODE_NAMES [ IMPDEP2 ] = "<STR_LIT>" ; } } </s>
<s> package org . eclipse . jdt . core . util ; public interface IStackMapTableAttribute extends IClassFileAttribute { int getNumberOfEntries ( ) ; IStackMapFrame [ ] getStackMapFrame ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ILineNumberAttribute extends IClassFileAttribute { int getLineNumberTableLength ( ) ; int [ ] [ ] getLineNumberTable ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface ISourceAttribute extends IClassFileAttribute { int getSourceFileIndex ( ) ; char [ ] getSourceFileName ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IStackMapAttribute extends IClassFileAttribute { int getNumberOfEntries ( ) ; IStackMapFrame [ ] getStackMapFrame ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IAttributeNamesConstants { char [ ] SYNTHETIC = "<STR_LIT>" . toCharArray ( ) ; char [ ] CONSTANT_VALUE = "<STR_LIT>" . toCharArray ( ) ; char [ ] LINE_NUMBER = "<STR_LIT>" . toCharArray ( ) ; char [ ] LOCAL_VARIABLE = "<STR_LIT>" . toCharArray ( ) ; char [ ] INNER_CLASSES = "<STR_LIT>" . toCharArray ( ) ; char [ ] CODE = "<STR_LIT>" . toCharArray ( ) ; char [ ] EXCEPTIONS = "<STR_LIT>" . toCharArray ( ) ; char [ ] SOURCE = "<STR_LIT>" . toCharArray ( ) ; char [ ] DEPRECATED = "<STR_LIT>" . toCharArray ( ) ; char [ ] SIGNATURE = "<STR_LIT>" . toCharArray ( ) ; char [ ] ENCLOSING_METHOD = "<STR_LIT>" . toCharArray ( ) ; char [ ] LOCAL_VARIABLE_TYPE_TABLE = "<STR_LIT>" . toCharArray ( ) ; char [ ] RUNTIME_VISIBLE_ANNOTATIONS = "<STR_LIT>" . toCharArray ( ) ; char [ ] RUNTIME_INVISIBLE_ANNOTATIONS = "<STR_LIT>" . toCharArray ( ) ; char [ ] RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS = "<STR_LIT>" . toCharArray ( ) ; char [ ] RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS = "<STR_LIT>" . toCharArray ( ) ; char [ ] ANNOTATION_DEFAULT = "<STR_LIT>" . toCharArray ( ) ; char [ ] STACK_MAP_TABLE = "<STR_LIT>" . toCharArray ( ) ; char [ ] STACK_MAP = "<STR_LIT>" . toCharArray ( ) ; char [ ] BOOTSTRAP_METHODS = "<STR_LIT>" . toCharArray ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IRuntimeInvisibleParameterAnnotationsAttribute extends IClassFileAttribute { int getParametersNumber ( ) ; IParameterAnnotation [ ] getParameterAnnotations ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IConstantPoolEntry { int getKind ( ) ; int getClassInfoNameIndex ( ) ; int getClassIndex ( ) ; int getNameAndTypeIndex ( ) ; int getStringIndex ( ) ; String getStringValue ( ) ; int getIntegerValue ( ) ; float getFloatValue ( ) ; double getDoubleValue ( ) ; long getLongValue ( ) ; int getNameAndTypeInfoDescriptorIndex ( ) ; int getNameAndTypeInfoNameIndex ( ) ; char [ ] getClassInfoName ( ) ; char [ ] getClassName ( ) ; char [ ] getFieldName ( ) ; char [ ] getMethodName ( ) ; char [ ] getFieldDescriptor ( ) ; char [ ] getMethodDescriptor ( ) ; char [ ] getUtf8Value ( ) ; int getUtf8Length ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IInnerClassesAttributeEntry { int getAccessFlags ( ) ; int getInnerNameIndex ( ) ; int getOuterClassNameIndex ( ) ; int getInnerClassNameIndex ( ) ; char [ ] getInnerName ( ) ; char [ ] getOuterClassName ( ) ; char [ ] getInnerClassName ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IMethodInfo { char [ ] getDescriptor ( ) ; int getDescriptorIndex ( ) ; int getAccessFlags ( ) ; char [ ] getName ( ) ; int getNameIndex ( ) ; boolean isClinit ( ) ; boolean isConstructor ( ) ; boolean isSynthetic ( ) ; boolean isDeprecated ( ) ; ICodeAttribute getCodeAttribute ( ) ; IExceptionAttribute getExceptionAttribute ( ) ; int getAttributeCount ( ) ; IClassFileAttribute [ ] getAttributes ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; import java . io . File ; import java . io . IOException ; import java . util . Enumeration ; import java . util . HashMap ; import java . util . Iterator ; import java . util . LinkedHashSet ; import java . util . Map ; import java . util . PropertyResourceBundle ; import java . util . Set ; import org . eclipse . core . resources . IFile ; import org . eclipse . core . resources . IFolder ; import org . eclipse . core . resources . IProject ; import org . eclipse . core . runtime . CoreException ; import org . eclipse . core . runtime . IPath ; import org . eclipse . jdt . core . IClasspathEntry ; import org . eclipse . jdt . core . IJavaProject ; import org . eclipse . jdt . core . JavaCore ; import org . eclipse . jdt . core . JavaModelException ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class CompilerUtils { public static final int IsGrails = <NUM_LIT> ; public static void configureOptionsBasedOnNature ( CompilerOptions compilerOptions , IJavaProject javaProject ) { if ( javaProject == null ) { compilerOptions . buildGroovyFiles = <NUM_LIT:1> ; compilerOptions . groovyFlags = <NUM_LIT:0> ; return ; } IProject project = javaProject . getProject ( ) ; try { if ( isGroovyNaturedProject ( project ) ) { compilerOptions . storeAnnotations = true ; compilerOptions . buildGroovyFiles = <NUM_LIT:2> ; setGroovyClasspath ( compilerOptions , javaProject ) ; if ( isProbablyGrailsProject ( project ) ) { compilerOptions . groovyFlags = IsGrails ; } else { compilerOptions . groovyFlags = <NUM_LIT:0> ; } } else { compilerOptions . buildGroovyFiles = <NUM_LIT:1> ; compilerOptions . groovyFlags = <NUM_LIT:0> ; } } catch ( CoreException e ) { compilerOptions . buildGroovyFiles = <NUM_LIT:1> ; compilerOptions . groovyFlags = <NUM_LIT:0> ; } } public static void configureOptionsBasedOnNature ( Map optionMap , IJavaProject javaProject ) { IProject project = javaProject . getProject ( ) ; try { if ( isGroovyNaturedProject ( project ) ) { optionMap . put ( CompilerOptions . OPTIONG_BuildGroovyFiles , CompilerOptions . ENABLED ) ; setGroovyClasspath ( optionMap , javaProject ) ; if ( isProbablyGrailsProject ( project ) ) { optionMap . put ( CompilerOptions . OPTIONG_GroovyFlags , Integer . toString ( IsGrails ) ) ; } else { optionMap . put ( CompilerOptions . OPTIONG_GroovyFlags , "<STR_LIT:0>" ) ; } } else { optionMap . put ( CompilerOptions . OPTIONG_BuildGroovyFiles , CompilerOptions . DISABLED ) ; optionMap . put ( CompilerOptions . OPTIONG_GroovyFlags , "<STR_LIT:0>" ) ; } } catch ( CoreException e ) { e . printStackTrace ( ) ; optionMap . put ( CompilerOptions . OPTIONG_BuildGroovyFiles , CompilerOptions . DISABLED ) ; optionMap . put ( CompilerOptions . OPTIONG_GroovyFlags , "<STR_LIT:0>" ) ; } } private static boolean isProbablyGrailsProject ( IProject project ) { try { IFolder folder = project . getFolder ( "<STR_LIT>" ) ; return folder . exists ( ) ; } catch ( Exception e ) { return false ; } } public static void setGroovyClasspath ( CompilerOptions compilerOptions , IJavaProject javaProject ) { Map newOptions = new HashMap ( ) ; setGroovyClasspath ( newOptions , javaProject ) ; compilerOptions . groovyProjectName = javaProject . getProject ( ) . getName ( ) ; if ( ! newOptions . isEmpty ( ) ) { compilerOptions . set ( newOptions ) ; } } public static void setGroovyClasspath ( Map optionMap , IJavaProject javaProject ) { IFile file = javaProject . getProject ( ) . getFile ( "<STR_LIT>" ) ; if ( file . exists ( ) ) { try { PropertyResourceBundle prb = new PropertyResourceBundle ( file . getContents ( ) ) ; Enumeration e = prb . getKeys ( ) ; while ( e . hasMoreElements ( ) ) { String k = ( String ) e . nextElement ( ) ; String v = ( String ) prb . getObject ( k ) ; v = fixup ( v , javaProject ) ; if ( k . equals ( CompilerOptions . OPTIONG_GroovyClassLoaderPath ) ) { optionMap . put ( CompilerOptions . OPTIONG_GroovyClassLoaderPath , v ) ; } } } catch ( IOException ioe ) { System . err . println ( "<STR_LIT>" ) ; ioe . printStackTrace ( ) ; } catch ( CoreException ce ) { System . err . println ( "<STR_LIT>" ) ; ce . printStackTrace ( ) ; } catch ( Throwable t ) { System . err . println ( "<STR_LIT>" ) ; t . printStackTrace ( ) ; } } else { try { String classpath = calculateClasspath ( javaProject ) ; optionMap . put ( CompilerOptions . OPTIONG_GroovyClassLoaderPath , classpath ) ; } catch ( Throwable t ) { System . err . println ( "<STR_LIT>" ) ; t . printStackTrace ( ) ; } } optionMap . put ( CompilerOptions . OPTIONG_GroovyProjectName , javaProject . getProject ( ) . getName ( ) ) ; } private static String fixup ( String someString , IJavaProject javaProject ) { if ( someString . startsWith ( "<STR_LIT>" ) ) { someString = javaProject . getProject ( ) . getLocation ( ) . toOSString ( ) + File . separator + someString . substring ( "<STR_LIT>" . length ( ) ) ; } if ( someString . equals ( "<STR_LIT>" ) ) { someString = calculateClasspath ( javaProject ) ; } return someString ; } private static boolean isGroovyNaturedProject ( IProject project ) throws CoreException { return project . hasNature ( "<STR_LIT>" ) ; } private static String pathToString ( IPath path , IProject project ) { String realLocation = null ; if ( path != null ) { String prefix = path . segment ( <NUM_LIT:0> ) ; if ( prefix . equals ( project . getName ( ) ) ) { if ( path . segmentCount ( ) == <NUM_LIT:1> ) { IPath rawPath = project . getRawLocation ( ) ; if ( rawPath == null ) { System . err . println ( "<STR_LIT>" + project ) ; } else { realLocation = project . getRawLocation ( ) . toOSString ( ) ; } } else { IPath rawLocation = project . getFile ( path . removeFirstSegments ( <NUM_LIT:1> ) ) . getRawLocation ( ) ; if ( rawLocation != null ) { realLocation = rawLocation . toOSString ( ) ; } } } else { realLocation = path . toOSString ( ) ; } } return realLocation ; } public static String calculateClasspath ( IJavaProject javaProject ) { try { Set accumulatedPathEntries = new LinkedHashSet ( ) ; IProject project = javaProject . getProject ( ) ; String projectName = project . getName ( ) ; IPath defaultOutputPath = javaProject . getOutputLocation ( ) ; String defaultOutputLocation = pathToString ( defaultOutputPath , project ) ; IClasspathEntry [ ] cpes = javaProject . getResolvedClasspath ( true ) ; if ( cpes != null ) { for ( int i = <NUM_LIT:0> , max = cpes . length ; i < max ; i ++ ) { IClasspathEntry cpe = cpes [ i ] ; if ( cpe . getEntryKind ( ) == IClasspathEntry . CPE_SOURCE ) { continue ; } IPath cpePath = cpe . getPath ( ) ; String pathElement = null ; String segmentZero = cpePath . segment ( <NUM_LIT:0> ) ; if ( segmentZero . equals ( projectName ) ) { pathElement = project . getFile ( cpePath . removeFirstSegments ( <NUM_LIT:1> ) ) . getRawLocation ( ) . toOSString ( ) ; } else { if ( cpe . getEntryKind ( ) == IClasspathEntry . CPE_LIBRARY ) { try { IProject iproject = project . getWorkspace ( ) . getRoot ( ) . getProject ( segmentZero ) ; if ( iproject != null ) { IFile ifile = iproject . getFile ( cpePath . removeFirstSegments ( <NUM_LIT:1> ) ) ; IPath ipath = ( ifile == null ? null : ifile . getRawLocation ( ) ) ; pathElement = ( ipath == null ? null : ipath . toOSString ( ) ) ; } } catch ( Throwable t ) { t . printStackTrace ( ) ; } } if ( cpe . getEntryKind ( ) == IClasspathEntry . CPE_PROJECT ) { computeDependenciesFromProject ( project , segmentZero , accumulatedPathEntries ) ; } else { if ( pathElement == null ) { pathElement = cpe . getPath ( ) . toOSString ( ) ; } } } if ( pathElement != null ) { accumulatedPathEntries . add ( pathElement ) ; } } accumulatedPathEntries . add ( defaultOutputLocation ) ; StringBuilder sb = new StringBuilder ( ) ; Iterator iter = accumulatedPathEntries . iterator ( ) ; while ( iter . hasNext ( ) ) { sb . append ( ( String ) iter . next ( ) ) ; sb . append ( File . pathSeparator ) ; } String classpath = sb . toString ( ) ; return classpath ; } } catch ( JavaModelException jme ) { System . err . println ( "<STR_LIT>" + javaProject . getProject ( ) . getName ( ) + "<STR_LIT::>" ) ; jme . printStackTrace ( ) ; } return "<STR_LIT>" ; } private static void computeDependenciesFromProject ( IProject baseProject , String otherProject , Set accumulatedPathEntries ) throws JavaModelException { IProject iproject = baseProject . getWorkspace ( ) . getRoot ( ) . getProject ( otherProject ) ; IJavaProject ijp = JavaCore . create ( iproject ) ; accumulatedPathEntries . add ( pathToString ( ijp . getOutputLocation ( ) , iproject ) ) ; IClasspathEntry [ ] cpes = ijp . getResolvedClasspath ( true ) ; if ( cpes != null ) { for ( int j = <NUM_LIT:0> ; j < cpes . length ; j ++ ) { IClasspathEntry cpe = cpes [ j ] ; if ( cpe . getEntryKind ( ) == IClasspathEntry . CPE_SOURCE ) { continue ; } if ( cpe . isExported ( ) ) { IPath cpePath = cpes [ j ] . getPath ( ) ; String segmentZero = cpePath . segment ( <NUM_LIT:0> ) ; if ( segmentZero != null && segmentZero . equals ( otherProject ) ) { accumulatedPathEntries . add ( iproject . getFile ( cpePath . removeFirstSegments ( <NUM_LIT:1> ) ) . getRawLocation ( ) . toOSString ( ) ) ; } else { if ( cpe . getEntryKind ( ) == IClasspathEntry . CPE_PROJECT ) { computeDependenciesFromProject ( baseProject , segmentZero , accumulatedPathEntries ) ; } else { String otherPathElement = null ; if ( segmentZero != null && segmentZero . equals ( iproject . getName ( ) ) ) { otherPathElement = iproject . getFile ( cpePath . removeFirstSegments ( <NUM_LIT:1> ) ) . getRawLocation ( ) . toOSString ( ) ; } else { otherPathElement = cpePath . toOSString ( ) ; } accumulatedPathEntries . add ( otherPathElement ) ; } } } } } } } </s>
<s> package org . eclipse . jdt . core . util ; public interface IClassFileDisassembler { int DETAILED = <NUM_LIT:1> ; int DEFAULT = <NUM_LIT:2> ; String disassemble ( IClassFileReader classFileReader , String lineSeparator ) ; String disassemble ( IClassFileReader classFileReader , String lineSeparator , int mode ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IVerificationTypeInfo { public static final int ITEM_TOP = <NUM_LIT:0> ; public static final int ITEM_INTEGER = <NUM_LIT:1> ; public static final int ITEM_FLOAT = <NUM_LIT:2> ; public static final int ITEM_DOUBLE = <NUM_LIT:3> ; public static final int ITEM_LONG = <NUM_LIT:4> ; public static final int ITEM_NULL = <NUM_LIT:5> ; public static final int ITEM_UNINITIALIZED_THIS = <NUM_LIT:6> ; public static final int ITEM_OBJECT = <NUM_LIT:7> ; public static final int ITEM_UNINITIALIZED = <NUM_LIT:8> ; int getTag ( ) ; int getOffset ( ) ; int getConstantPoolIndex ( ) ; char [ ] getClassTypeName ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IRuntimeInvisibleAnnotationsAttribute extends IClassFileAttribute { int getAnnotationsNumber ( ) ; IAnnotation [ ] getAnnotations ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IModifierConstants { int ACC_PUBLIC = <NUM_LIT> ; int ACC_PRIVATE = <NUM_LIT> ; int ACC_PROTECTED = <NUM_LIT> ; int ACC_STATIC = <NUM_LIT> ; int ACC_FINAL = <NUM_LIT> ; int ACC_SUPER = <NUM_LIT> ; int ACC_SYNCHRONIZED = <NUM_LIT> ; int ACC_VOLATILE = <NUM_LIT> ; int ACC_BRIDGE = <NUM_LIT> ; int ACC_TRANSIENT = <NUM_LIT> ; int ACC_VARARGS = <NUM_LIT> ; int ACC_NATIVE = <NUM_LIT> ; int ACC_INTERFACE = <NUM_LIT> ; int ACC_ABSTRACT = <NUM_LIT> ; int ACC_STRICT = <NUM_LIT> ; int ACC_SYNTHETIC = <NUM_LIT> ; int ACC_ANNOTATION = <NUM_LIT> ; int ACC_ENUM = <NUM_LIT> ; } </s>
<s> package org . eclipse . jdt . core . util ; public class ByteCodeVisitorAdapter implements IBytecodeVisitor { public void _aaload ( int pc ) { } public void _aastore ( int pc ) { } public void _aconst_null ( int pc ) { } public void _aload_0 ( int pc ) { } public void _aload_1 ( int pc ) { } public void _aload_2 ( int pc ) { } public void _aload_3 ( int pc ) { } public void _aload ( int pc , int index ) { } public void _anewarray ( int pc , int index , IConstantPoolEntry constantClass ) { } public void _areturn ( int pc ) { } public void _arraylength ( int pc ) { } public void _astore_0 ( int pc ) { } public void _astore_1 ( int pc ) { } public void _astore_2 ( int pc ) { } public void _astore_3 ( int pc ) { } public void _astore ( int pc , int index ) { } public void _athrow ( int pc ) { } public void _baload ( int pc ) { } public void _bastore ( int pc ) { } public void _bipush ( int pc , byte _byte ) { } public void _caload ( int pc ) { } public void _castore ( int pc ) { } public void _checkcast ( int pc , int index , IConstantPoolEntry constantClass ) { } public void _d2f ( int pc ) { } public void _d2i ( int pc ) { } public void _d2l ( int pc ) { } public void _dadd ( int pc ) { } public void _daload ( int pc ) { } public void _dastore ( int pc ) { } public void _dcmpg ( int pc ) { } public void _dcmpl ( int pc ) { } public void _dconst_0 ( int pc ) { } public void _dconst_1 ( int pc ) { } public void _ddiv ( int pc ) { } public void _dload_0 ( int pc ) { } public void _dload_1 ( int pc ) { } public void _dload_2 ( int pc ) { } public void _dload_3 ( int pc ) { } public void _dload ( int pc , int index ) { } public void _dmul ( int pc ) { } public void _dneg ( int pc ) { } public void _drem ( int pc ) { } public void _dreturn ( int pc ) { } public void _dstore_0 ( int pc ) { } public void _dstore_1 ( int pc ) { } public void _dstore_2 ( int pc ) { } public void _dstore_3 ( int pc ) { } public void _dstore ( int pc , int index ) { } public void _dsub ( int pc ) { } public void _dup_x1 ( int pc ) { } public void _dup_x2 ( int pc ) { } public void _dup ( int pc ) { } public void _dup2_x1 ( int pc ) { } public void _dup2_x2 ( int pc ) { } public void _dup2 ( int pc ) { } public void _f2d ( int pc ) { } public void _f2i ( int pc ) { } public void _f2l ( int pc ) { } public void _fadd ( int pc ) { } public void _faload ( int pc ) { } public void _fastore ( int pc ) { } public void _fcmpg ( int pc ) { } public void _fcmpl ( int pc ) { } public void _fconst_0 ( int pc ) { } public void _fconst_1 ( int pc ) { } public void _fconst_2 ( int pc ) { } public void _fdiv ( int pc ) { } public void _fload_0 ( int pc ) { } public void _fload_1 ( int pc ) { } public void _fload_2 ( int pc ) { } public void _fload_3 ( int pc ) { } public void _fload ( int pc , int index ) { } public void _fmul ( int pc ) { } public void _fneg ( int pc ) { } public void _frem ( int pc ) { } public void _freturn ( int pc ) { } public void _fstore_0 ( int pc ) { } public void _fstore_1 ( int pc ) { } public void _fstore_2 ( int pc ) { } public void _fstore_3 ( int pc ) { } public void _fstore ( int pc , int index ) { } public void _fsub ( int pc ) { } public void _getfield ( int pc , int index , IConstantPoolEntry constantFieldref ) { } public void _getstatic ( int pc , int index , IConstantPoolEntry constantFieldref ) { } public void _goto_w ( int pc , int branchOffset ) { } public void _goto ( int pc , int branchOffset ) { } public void _i2b ( int pc ) { } public void _i2c ( int pc ) { } public void _i2d ( int pc ) { } public void _i2f ( int pc ) { } public void _i2l ( int pc ) { } public void _i2s ( int pc ) { } public void _iadd ( int pc ) { } public void _iaload ( int pc ) { } public void _iand ( int pc ) { } public void _iastore ( int pc ) { } public void _iconst_0 ( int pc ) { } public void _iconst_1 ( int pc ) { } public void _iconst_2 ( int pc ) { } public void _iconst_3 ( int pc ) { } public void _iconst_4 ( int pc ) { } public void _iconst_5 ( int pc ) { } public void _iconst_m1 ( int pc ) { } public void _idiv ( int pc ) { } public void _if_acmpeq ( int pc , int branchOffset ) { } public void _if_acmpne ( int pc , int branchOffset ) { } public void _if_icmpeq ( int pc , int branchOffset ) { } public void _if_icmpge ( int pc , int branchOffset ) { } public void _if_icmpgt ( int pc , int branchOffset ) { } public void _if_icmple ( int pc , int branchOffset ) { } public void _if_icmplt ( int pc , int branchOffset ) { } public void _if_icmpne ( int pc , int branchOffset ) { } public void _ifeq ( int pc , int branchOffset ) { } public void _ifge ( int pc , int branchOffset ) { } public void _ifgt ( int pc , int branchOffset ) { } public void _ifle ( int pc , int branchOffset ) { } public void _iflt ( int pc , int branchOffset ) { } public void _ifne ( int pc , int branchOffset ) { } public void _ifnonnull ( int pc , int branchOffset ) { } public void _ifnull ( int pc , int branchOffset ) { } public void _iinc ( int pc , int index , int _const ) { } public void _iload_0 ( int pc ) { } public void _iload_1 ( int pc ) { } public void _iload_2 ( int pc ) { } public void _iload_3 ( int pc ) { } public void _iload ( int pc , int index ) { } public void _imul ( int pc ) { } public void _ineg ( int pc ) { } public void _instanceof ( int pc , int index , IConstantPoolEntry constantClass ) { } public void _invokedynamic ( int pc , int index , IConstantPoolEntry nameEntry , IConstantPoolEntry descriptorEntry ) { } public void _invokedynamic ( int pc , int index , IConstantPoolEntry invokeDynamicEntry ) { } public void _invokeinterface ( int pc , int index , byte nargs , IConstantPoolEntry constantInterfaceMethodref ) { } public void _invokespecial ( int pc , int index , IConstantPoolEntry constantMethodref ) { } public void _invokestatic ( int pc , int index , IConstantPoolEntry constantMethodref ) { } public void _invokevirtual ( int pc , int index , IConstantPoolEntry constantMethodref ) { } public void _ior ( int pc ) { } public void _irem ( int pc ) { } public void _ireturn ( int pc ) { } public void _ishl ( int pc ) { } public void _ishr ( int pc ) { } public void _istore_0 ( int pc ) { } public void _istore_1 ( int pc ) { } public void _istore_2 ( int pc ) { } public void _istore_3 ( int pc ) { } public void _istore ( int pc , int index ) { } public void _isub ( int pc ) { } public void _iushr ( int pc ) { } public void _ixor ( int pc ) { } public void _jsr_w ( int pc , int branchOffset ) { } public void _jsr ( int pc , int branchOffset ) { } public void _l2d ( int pc ) { } public void _l2f ( int pc ) { } public void _l2i ( int pc ) { } public void _ladd ( int pc ) { } public void _laload ( int pc ) { } public void _land ( int pc ) { } public void _lastore ( int pc ) { } public void _lcmp ( int pc ) { } public void _lconst_0 ( int pc ) { } public void _lconst_1 ( int pc ) { } public void _ldc_w ( int pc , int index , IConstantPoolEntry constantPoolEntry ) { } public void _ldc ( int pc , int index , IConstantPoolEntry constantPoolEntry ) { } public void _ldc2_w ( int pc , int index , IConstantPoolEntry constantPoolEntry ) { } public void _ldiv ( int pc ) { } public void _lload_0 ( int pc ) { } public void _lload_1 ( int pc ) { } public void _lload_2 ( int pc ) { } public void _lload_3 ( int pc ) { } public void _lload ( int pc , int index ) { } public void _lmul ( int pc ) { } public void _lneg ( int pc ) { } public void _lookupswitch ( int pc , int defaultoffset , int npairs , int [ ] [ ] offset_pairs ) { } public void _lor ( int pc ) { } public void _lrem ( int pc ) { } public void _lreturn ( int pc ) { } public void _lshl ( int pc ) { } public void _lshr ( int pc ) { } public void _lstore_0 ( int pc ) { } public void _lstore_1 ( int pc ) { } public void _lstore_2 ( int pc ) { } public void _lstore_3 ( int pc ) { } public void _lstore ( int pc , int index ) { } public void _lsub ( int pc ) { } public void _lushr ( int pc ) { } public void _lxor ( int pc ) { } public void _monitorenter ( int pc ) { } public void _monitorexit ( int pc ) { } public void _multianewarray ( int pc , int index , int dimensions , IConstantPoolEntry constantClass ) { } public void _new ( int pc , int index , IConstantPoolEntry constantClass ) { } public void _newarray ( int pc , int atype ) { } public void _nop ( int pc ) { } public void _pop ( int pc ) { } public void _pop2 ( int pc ) { } public void _putfield ( int pc , int index , IConstantPoolEntry constantFieldref ) { } public void _putstatic ( int pc , int index , IConstantPoolEntry constantFieldref ) { } public void _ret ( int pc , int index ) { } public void _return ( int pc ) { } public void _saload ( int pc ) { } public void _sastore ( int pc ) { } public void _sipush ( int pc , short value ) { } public void _swap ( int pc ) { } public void _tableswitch ( int pc , int defaultoffset , int low , int high , int [ ] jump_offsets ) { } public void _wide ( int pc , int iincopcode , int index , int _const ) { } public void _wide ( int pc , int opcode , int index ) { } public void _breakpoint ( int pc ) { } public void _impdep1 ( int pc ) { } public void _impdep2 ( int pc ) { } } </s>
<s> package org . eclipse . jdt . core . util ; public interface IClassFileAttribute { int getAttributeNameIndex ( ) ; char [ ] getAttributeName ( ) ; long getAttributeLength ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IAnnotationComponentValue { int BYTE_TAG = '<CHAR_LIT>' ; int CHAR_TAG = '<CHAR_LIT>' ; int DOUBLE_TAG = '<CHAR_LIT>' ; int FLOAT_TAG = '<CHAR_LIT>' ; int INTEGER_TAG = '<CHAR_LIT>' ; int LONG_TAG = '<CHAR_LIT>' ; int SHORT_TAG = '<CHAR_LIT>' ; int BOOLEAN_TAG = '<CHAR_LIT:Z>' ; int STRING_TAG = '<CHAR_LIT>' ; int ENUM_TAG = '<CHAR_LIT:e>' ; int CLASS_TAG = '<CHAR_LIT:c>' ; int ANNOTATION_TAG = '<CHAR_LIT>' ; int ARRAY_TAG = '<CHAR_LIT:[>' ; IAnnotationComponentValue [ ] getAnnotationComponentValues ( ) ; IAnnotation getAnnotationValue ( ) ; IConstantPoolEntry getClassInfo ( ) ; int getClassInfoIndex ( ) ; IConstantPoolEntry getConstantValue ( ) ; int getConstantValueIndex ( ) ; char [ ] getEnumConstantName ( ) ; int getEnumConstantNameIndex ( ) ; char [ ] getEnumConstantTypeName ( ) ; int getEnumConstantTypeNameIndex ( ) ; int getTag ( ) ; int getValuesNumber ( ) ; } </s>
<s> package org . eclipse . jdt . core . util ; public interface IExceptionTableEntry { int getStartPC ( ) ; int getEndPC ( ) ; int getHandlerPC ( ) ; int getCatchTypeIndex ( ) ; char [ ] getCatchType ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import java . util . Hashtable ; import java . util . Map ; import org . eclipse . core . resources . * ; import org . eclipse . jdt . core . compiler . * ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . * ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; import org . eclipse . jdt . internal . core . util . Messages ; import org . eclipse . jdt . internal . core . util . Util ; public class CorrectionEngine { protected int correctionStart ; protected int correctionEnd ; protected int prefixLength ; protected ICompilationUnit compilationUnit ; protected ICorrectionRequestor correctionRequestor ; protected static final int CLASSES = <NUM_LIT> ; protected static final int INTERFACES = <NUM_LIT> ; protected static final int IMPORT = <NUM_LIT> ; protected static final int METHOD = <NUM_LIT> ; protected static final int FIELD = <NUM_LIT> ; protected static final int LOCAL = <NUM_LIT> ; protected int filter ; public CorrectionEngine ( Map setting ) { } public void computeCorrections ( IMarker marker , ICompilationUnit targetUnit , int positionOffset , ICorrectionRequestor requestor ) throws JavaModelException { IJavaElement element = targetUnit == null ? JavaCore . create ( marker . getResource ( ) ) : targetUnit ; if ( ! ( element instanceof ICompilationUnit ) ) return ; ICompilationUnit unit = ( ICompilationUnit ) element ; int id = marker . getAttribute ( IJavaModelMarker . ID , - <NUM_LIT:1> ) ; String [ ] args = Util . getProblemArgumentsFromMarker ( marker . getAttribute ( IJavaModelMarker . ARGUMENTS , "<STR_LIT>" ) ) ; int start = marker . getAttribute ( IMarker . CHAR_START , - <NUM_LIT:1> ) ; int end = marker . getAttribute ( IMarker . CHAR_END , - <NUM_LIT:1> ) ; computeCorrections ( unit , id , start + positionOffset , end + positionOffset , args , requestor ) ; } public void computeCorrections ( IProblem problem , ICompilationUnit targetUnit , ICorrectionRequestor requestor ) throws JavaModelException { if ( requestor == null ) { throw new IllegalArgumentException ( Messages . correction_nullUnit ) ; } this . computeCorrections ( targetUnit , problem . getID ( ) , problem . getSourceStart ( ) , problem . getSourceEnd ( ) , problem . getArguments ( ) , requestor ) ; } private void computeCorrections ( ICompilationUnit unit , int id , int start , int end , String [ ] arguments , ICorrectionRequestor requestor ) { if ( id == - <NUM_LIT:1> || arguments == null || start == - <NUM_LIT:1> || end == - <NUM_LIT:1> ) return ; if ( requestor == null ) { throw new IllegalArgumentException ( Messages . correction_nullRequestor ) ; } this . correctionRequestor = requestor ; this . correctionStart = start ; this . correctionEnd = end ; this . compilationUnit = unit ; String argument = null ; try { switch ( id ) { case IProblem . ImportNotFound : this . filter = IMPORT ; argument = arguments [ <NUM_LIT:0> ] ; break ; case IProblem . UndefinedType : this . filter = CLASSES | INTERFACES ; argument = arguments [ <NUM_LIT:0> ] ; break ; case IProblem . UndefinedMethod : this . filter = METHOD ; argument = arguments [ <NUM_LIT:1> ] ; break ; case IProblem . UndefinedField : this . filter = FIELD ; argument = arguments [ <NUM_LIT:0> ] ; break ; case IProblem . UndefinedName : case IProblem . UnresolvedVariable : this . filter = FIELD | LOCAL ; argument = arguments [ <NUM_LIT:0> ] ; break ; } } catch ( ArrayIndexOutOfBoundsException e ) { return ; } if ( argument != null ) { correct ( argument . toCharArray ( ) ) ; } } private void correct ( char [ ] argument ) { try { String source = this . compilationUnit . getSource ( ) ; Map currentProjectOptions = this . compilationUnit . getJavaProject ( ) . getOptions ( true ) ; long sourceLevel = CompilerOptions . versionToJdkLevel ( currentProjectOptions . get ( JavaCore . COMPILER_SOURCE ) ) ; long complianceLevel = CompilerOptions . versionToJdkLevel ( currentProjectOptions . get ( JavaCore . COMPILER_COMPLIANCE ) ) ; Scanner scanner = new Scanner ( false , false , false , sourceLevel , complianceLevel , null , null , true ) ; scanner . setSource ( source . toCharArray ( ) ) ; scanner . resetTo ( this . correctionStart , this . correctionEnd ) ; int token = <NUM_LIT:0> ; char [ ] argumentSource = CharOperation . NO_CHAR ; while ( true ) { token = scanner . getNextToken ( ) ; if ( token == TerminalTokens . TokenNameEOF ) return ; char [ ] tokenSource = scanner . getCurrentTokenSource ( ) ; argumentSource = CharOperation . concat ( argumentSource , tokenSource ) ; if ( ! CharOperation . prefixEquals ( argumentSource , argument ) ) return ; if ( CharOperation . equals ( argument , argumentSource ) ) { this . correctionStart = scanner . startPosition ; this . correctionEnd = scanner . currentPosition ; this . prefixLength = CharOperation . lastIndexOf ( '<CHAR_LIT:.>' , argument ) + <NUM_LIT:1> ; break ; } } int completionPosition = this . correctionStart ; scanner . resetTo ( completionPosition , this . correctionEnd ) ; int position = completionPosition ; for ( int i = <NUM_LIT:0> ; i < <NUM_LIT:4> ; i ++ ) { if ( scanner . getNextCharAsJavaIdentifierPart ( ) ) { completionPosition = position ; position = scanner . currentPosition ; } else { break ; } } Hashtable oldOptions = JavaCore . getOptions ( ) ; try { Hashtable options = new Hashtable ( oldOptions ) ; options . put ( JavaCore . CODEASSIST_CAMEL_CASE_MATCH , JavaCore . DISABLED ) ; JavaCore . setOptions ( options ) ; this . compilationUnit . codeComplete ( completionPosition , this . completionRequestor ) ; } finally { JavaCore . setOptions ( oldOptions ) ; } } catch ( JavaModelException e ) { return ; } catch ( InvalidInputException e ) { return ; } } protected CompletionRequestor completionRequestor = new CompletionRequestor ( ) { public void accept ( CompletionProposal proposal ) { switch ( proposal . getKind ( ) ) { case CompletionProposal . TYPE_REF : int flags = proposal . getFlags ( ) ; if ( ! ( Flags . isEnum ( flags ) || Flags . isAnnotation ( flags ) ) ) { if ( ( CorrectionEngine . this . filter & ( CLASSES | INTERFACES ) ) != <NUM_LIT:0> ) { char [ ] completionName = proposal . getCompletion ( ) ; CorrectionEngine . this . correctionRequestor . acceptClass ( proposal . getDeclarationSignature ( ) , Signature . getSignatureSimpleName ( proposal . getSignature ( ) ) , CharOperation . subarray ( completionName , CorrectionEngine . this . prefixLength , completionName . length ) , proposal . getFlags ( ) , CorrectionEngine . this . correctionStart , CorrectionEngine . this . correctionEnd ) ; } else if ( ( CorrectionEngine . this . filter & IMPORT ) != <NUM_LIT:0> ) { char [ ] packageName = proposal . getDeclarationSignature ( ) ; char [ ] className = Signature . getSignatureSimpleName ( proposal . getSignature ( ) ) ; char [ ] fullName = CharOperation . concat ( packageName , className , '<CHAR_LIT:.>' ) ; CorrectionEngine . this . correctionRequestor . acceptClass ( packageName , className , CharOperation . subarray ( fullName , CorrectionEngine . this . prefixLength , fullName . length ) , proposal . getFlags ( ) , CorrectionEngine . this . correctionStart , CorrectionEngine . this . correctionEnd ) ; } } break ; case CompletionProposal . FIELD_REF : if ( ( CorrectionEngine . this . filter & FIELD ) != <NUM_LIT:0> ) { char [ ] declaringSignature = proposal . getDeclarationSignature ( ) ; char [ ] signature = proposal . getSignature ( ) ; CorrectionEngine . this . correctionRequestor . acceptField ( Signature . getSignatureQualifier ( declaringSignature ) , Signature . getSignatureSimpleName ( declaringSignature ) , proposal . getName ( ) , Signature . getSignatureQualifier ( signature ) , Signature . getSignatureSimpleName ( signature ) , proposal . getName ( ) , proposal . getFlags ( ) , CorrectionEngine . this . correctionStart , CorrectionEngine . this . correctionEnd ) ; } break ; case CompletionProposal . LOCAL_VARIABLE_REF : if ( ( CorrectionEngine . this . filter & LOCAL ) != <NUM_LIT:0> ) { char [ ] signature = proposal . getSignature ( ) ; CorrectionEngine . this . correctionRequestor . acceptLocalVariable ( proposal . getName ( ) , Signature . getSignatureQualifier ( signature ) , Signature . getSignatureSimpleName ( signature ) , proposal . getFlags ( ) , CorrectionEngine . this . correctionStart , CorrectionEngine . this . correctionEnd ) ; } break ; case CompletionProposal . METHOD_REF : if ( ( CorrectionEngine . this . filter & METHOD ) != <NUM_LIT:0> ) { char [ ] declaringSignature = proposal . getDeclarationSignature ( ) ; char [ ] signature = proposal . getSignature ( ) ; char [ ] [ ] parameterTypeSignatures = Signature . getParameterTypes ( signature ) ; int length = parameterTypeSignatures . length ; char [ ] [ ] parameterPackageNames = new char [ length ] [ ] ; char [ ] [ ] parameterTypeNames = new char [ length ] [ ] ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { parameterPackageNames [ i ] = Signature . getSignatureQualifier ( parameterTypeSignatures [ i ] ) ; parameterTypeNames [ i ] = Signature . getSignatureSimpleName ( parameterTypeSignatures [ i ] ) ; } char [ ] returnTypeSignature = Signature . getReturnType ( signature ) ; CorrectionEngine . this . correctionRequestor . acceptMethod ( Signature . getSignatureQualifier ( declaringSignature ) , Signature . getSignatureSimpleName ( declaringSignature ) , proposal . getName ( ) , parameterPackageNames , parameterTypeNames , proposal . findParameterNames ( null ) , Signature . getSignatureQualifier ( returnTypeSignature ) , Signature . getSignatureSimpleName ( returnTypeSignature ) , proposal . getName ( ) , proposal . getFlags ( ) , CorrectionEngine . this . correctionStart , CorrectionEngine . this . correctionEnd ) ; } break ; case CompletionProposal . PACKAGE_REF : if ( ( CorrectionEngine . this . filter & ( CLASSES | INTERFACES | IMPORT ) ) != <NUM_LIT:0> ) { char [ ] packageName = proposal . getDeclarationSignature ( ) ; CorrectionEngine . this . correctionRequestor . acceptPackage ( packageName , CharOperation . subarray ( packageName , CorrectionEngine . this . prefixLength , packageName . length ) , CorrectionEngine . this . correctionStart , CorrectionEngine . this . correctionEnd ) ; } break ; } } } ; public static String [ ] getAllWarningTokens ( ) { return CompilerOptions . warningTokens ; } public static String [ ] getProblemArguments ( IMarker problemMarker ) { String argumentsString = problemMarker . getAttribute ( IJavaModelMarker . ARGUMENTS , null ) ; return Util . getProblemArgumentsFromMarker ( argumentsString ) ; } public static String getWarningToken ( int problemID ) { int irritant = ProblemReporter . getIrritant ( problemID ) ; if ( irritant != <NUM_LIT:0> ) { return CompilerOptions . warningTokenFromIrritant ( irritant ) ; } return null ; } } </s>
<s> package org . eclipse . jdt . core ; public interface ICodeFormatter { String format ( String string , int indentationLevel , int [ ] positions , String lineSeparator ) ; } </s>
<s> package org . eclipse . jdt . core ; import java . util . Map ; import org . eclipse . core . resources . IProject ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . runtime . IProgressMonitor ; import org . eclipse . core . runtime . IPath ; import org . eclipse . jdt . core . dom . IAnnotationBinding ; import org . eclipse . jdt . core . dom . IMethodBinding ; import org . eclipse . jdt . core . dom . IPackageBinding ; import org . eclipse . jdt . core . dom . ITypeBinding ; import org . eclipse . jdt . core . dom . IVariableBinding ; import org . eclipse . jdt . core . eval . IEvaluationContext ; public interface IJavaProject extends IParent , IJavaElement , IOpenable { String CLASSPATH_FILE_NAME = "<STR_LIT>" ; IClasspathEntry decodeClasspathEntry ( String encodedEntry ) ; String encodeClasspathEntry ( IClasspathEntry classpathEntry ) ; IJavaElement findElement ( IPath path ) throws JavaModelException ; IJavaElement findElement ( IPath path , WorkingCopyOwner owner ) throws JavaModelException ; IJavaElement findElement ( String bindingKey , WorkingCopyOwner owner ) throws JavaModelException ; IPackageFragment findPackageFragment ( IPath path ) throws JavaModelException ; IPackageFragmentRoot findPackageFragmentRoot ( IPath path ) throws JavaModelException ; IPackageFragmentRoot [ ] findPackageFragmentRoots ( IClasspathEntry entry ) ; IType findType ( String fullyQualifiedName ) throws JavaModelException ; IType findType ( String fullyQualifiedName , IProgressMonitor progressMonitor ) throws JavaModelException ; IType findType ( String fullyQualifiedName , WorkingCopyOwner owner ) throws JavaModelException ; IType findType ( String fullyQualifiedName , WorkingCopyOwner owner , IProgressMonitor progressMonitor ) throws JavaModelException ; IType findType ( String packageName , String typeQualifiedName ) throws JavaModelException ; IType findType ( String packageName , String typeQualifiedName , IProgressMonitor progressMonitor ) throws JavaModelException ; IType findType ( String packageName , String typeQualifiedName , WorkingCopyOwner owner ) throws JavaModelException ; IType findType ( String packageName , String typeQualifiedName , WorkingCopyOwner owner , IProgressMonitor progressMonitor ) throws JavaModelException ; IPackageFragmentRoot [ ] getAllPackageFragmentRoots ( ) throws JavaModelException ; Object [ ] getNonJavaResources ( ) throws JavaModelException ; String getOption ( String optionName , boolean inheritJavaCoreOptions ) ; Map getOptions ( boolean inheritJavaCoreOptions ) ; IPath getOutputLocation ( ) throws JavaModelException ; IPackageFragmentRoot getPackageFragmentRoot ( String externalLibraryPath ) ; IPackageFragmentRoot getPackageFragmentRoot ( IResource resource ) ; IPackageFragmentRoot [ ] getPackageFragmentRoots ( ) throws JavaModelException ; IPackageFragmentRoot [ ] getPackageFragmentRoots ( IClasspathEntry entry ) ; IPackageFragment [ ] getPackageFragments ( ) throws JavaModelException ; IProject getProject ( ) ; IClasspathEntry [ ] getRawClasspath ( ) throws JavaModelException ; String [ ] getRequiredProjectNames ( ) throws JavaModelException ; IClasspathEntry [ ] getResolvedClasspath ( boolean ignoreUnresolvedEntry ) throws JavaModelException ; boolean hasBuildState ( ) ; boolean hasClasspathCycle ( IClasspathEntry [ ] entries ) ; boolean isOnClasspath ( IJavaElement element ) ; boolean isOnClasspath ( IResource resource ) ; IEvaluationContext newEvaluationContext ( ) ; ITypeHierarchy newTypeHierarchy ( IRegion region , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IRegion region , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IType type , IRegion region , IProgressMonitor monitor ) throws JavaModelException ; ITypeHierarchy newTypeHierarchy ( IType type , IRegion region , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; IPath readOutputLocation ( ) ; IClasspathEntry [ ] readRawClasspath ( ) ; void setOption ( String optionName , String optionValue ) ; void setOptions ( Map newOptions ) ; void setOutputLocation ( IPath path , IProgressMonitor monitor ) throws JavaModelException ; void setRawClasspath ( IClasspathEntry [ ] entries , IPath outputLocation , boolean canModifyResources , IProgressMonitor monitor ) throws JavaModelException ; void setRawClasspath ( IClasspathEntry [ ] entries , boolean canModifyResources , IProgressMonitor monitor ) throws JavaModelException ; void setRawClasspath ( IClasspathEntry [ ] entries , IClasspathEntry [ ] referencedEntries , IPath outputLocation , IProgressMonitor monitor ) throws JavaModelException ; IClasspathEntry [ ] getReferencedClasspathEntries ( ) throws JavaModelException ; void setRawClasspath ( IClasspathEntry [ ] entries , IProgressMonitor monitor ) throws JavaModelException ; void setRawClasspath ( IClasspathEntry [ ] entries , IPath outputLocation , IProgressMonitor monitor ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IPath ; import org . eclipse . core . runtime . IStatus ; public interface IJavaModelStatus extends IStatus { IJavaElement [ ] getElements ( ) ; IPath getPath ( ) ; String getString ( ) ; boolean isDoesNotExist ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IProgressMonitor ; import org . eclipse . jdt . core . dom . ASTParser ; import org . eclipse . jdt . core . dom . CompilationUnit ; import org . eclipse . jdt . core . dom . AST ; import org . eclipse . jdt . core . dom . IBinding ; import org . eclipse . text . edits . TextEdit ; import org . eclipse . text . edits . UndoEdit ; public interface ICompilationUnit extends ITypeRoot , IWorkingCopy , ISourceManipulation { public static final int NO_AST = <NUM_LIT:0> ; public static final int FORCE_PROBLEM_DETECTION = <NUM_LIT> ; public static final int ENABLE_STATEMENTS_RECOVERY = <NUM_LIT> ; public static final int ENABLE_BINDINGS_RECOVERY = <NUM_LIT> ; public static final int IGNORE_METHOD_BODIES = <NUM_LIT> ; public UndoEdit applyTextEdit ( TextEdit edit , IProgressMonitor monitor ) throws JavaModelException ; void becomeWorkingCopy ( IProblemRequestor problemRequestor , IProgressMonitor monitor ) throws JavaModelException ; void becomeWorkingCopy ( IProgressMonitor monitor ) throws JavaModelException ; void commitWorkingCopy ( boolean force , IProgressMonitor monitor ) throws JavaModelException ; IImportDeclaration createImport ( String name , IJavaElement sibling , IProgressMonitor monitor ) throws JavaModelException ; IImportDeclaration createImport ( String name , IJavaElement sibling , int flags , IProgressMonitor monitor ) throws JavaModelException ; IPackageDeclaration createPackageDeclaration ( String name , IProgressMonitor monitor ) throws JavaModelException ; IType createType ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException ; void discardWorkingCopy ( ) throws JavaModelException ; IJavaElement [ ] findElements ( IJavaElement element ) ; ICompilationUnit findWorkingCopy ( WorkingCopyOwner owner ) ; IType [ ] getAllTypes ( ) throws JavaModelException ; IImportDeclaration getImport ( String name ) ; IImportContainer getImportContainer ( ) ; IImportDeclaration [ ] getImports ( ) throws JavaModelException ; ICompilationUnit getPrimary ( ) ; WorkingCopyOwner getOwner ( ) ; IPackageDeclaration getPackageDeclaration ( String name ) ; IPackageDeclaration [ ] getPackageDeclarations ( ) throws JavaModelException ; IType getType ( String name ) ; IType [ ] getTypes ( ) throws JavaModelException ; ICompilationUnit getWorkingCopy ( IProgressMonitor monitor ) throws JavaModelException ; ICompilationUnit getWorkingCopy ( WorkingCopyOwner owner , IProblemRequestor problemRequestor , IProgressMonitor monitor ) throws JavaModelException ; public boolean hasResourceChanged ( ) ; boolean isWorkingCopy ( ) ; CompilationUnit reconcile ( int astLevel , boolean forceProblemDetection , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; CompilationUnit reconcile ( int astLevel , boolean forceProblemDetection , boolean enableStatementsRecovery , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; CompilationUnit reconcile ( int astLevel , int reconcileFlags , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; void restore ( ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; public interface IRegion { void add ( IJavaElement element ) ; boolean contains ( IJavaElement element ) ; IJavaElement [ ] getElements ( ) ; boolean remove ( IJavaElement element ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IPath ; public interface IAccessRule { int K_ACCESSIBLE = <NUM_LIT:0> ; int K_NON_ACCESSIBLE = <NUM_LIT:1> ; int K_DISCOURAGED = <NUM_LIT:2> ; int IGNORE_IF_BETTER = <NUM_LIT> ; IPath getPattern ( ) ; int getKind ( ) ; boolean ignoreIfBetter ( ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface IAnnotatable { IAnnotation getAnnotation ( String name ) ; IAnnotation [ ] getAnnotations ( ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; public interface IMember extends IJavaElement , ISourceReference , ISourceManipulation , IParent { String [ ] getCategories ( ) throws JavaModelException ; IClassFile getClassFile ( ) ; ICompilationUnit getCompilationUnit ( ) ; IType getDeclaringType ( ) ; int getFlags ( ) throws JavaModelException ; ISourceRange getJavadocRange ( ) throws JavaModelException ; int getOccurrenceCount ( ) ; ITypeRoot getTypeRoot ( ) ; IType getType ( String name , int occurrenceCount ) ; boolean isBinary ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import java . io . OutputStream ; import org . eclipse . core . runtime . IProgressMonitor ; public interface ITypeHierarchy { void addTypeHierarchyChangedListener ( ITypeHierarchyChangedListener listener ) ; boolean contains ( IType type ) ; boolean exists ( ) ; IType [ ] getAllClasses ( ) ; IType [ ] getAllInterfaces ( ) ; IType [ ] getAllSubtypes ( IType type ) ; IType [ ] getAllSuperclasses ( IType type ) ; IType [ ] getAllSuperInterfaces ( IType type ) ; IType [ ] getAllSupertypes ( IType type ) ; IType [ ] getAllTypes ( ) ; int getCachedFlags ( IType type ) ; IType [ ] getExtendingInterfaces ( IType type ) ; IType [ ] getImplementingClasses ( IType type ) ; IType [ ] getRootClasses ( ) ; IType [ ] getRootInterfaces ( ) ; IType [ ] getSubclasses ( IType type ) ; IType [ ] getSubtypes ( IType type ) ; IType getSuperclass ( IType type ) ; IType [ ] getSuperInterfaces ( IType type ) ; IType [ ] getSupertypes ( IType type ) ; IType getType ( ) ; void refresh ( IProgressMonitor monitor ) throws JavaModelException ; void removeTypeHierarchyChangedListener ( ITypeHierarchyChangedListener listener ) ; void store ( OutputStream outputStream , IProgressMonitor monitor ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IPath ; public interface IClasspathContainer { int K_APPLICATION = <NUM_LIT:1> ; int K_SYSTEM = <NUM_LIT:2> ; int K_DEFAULT_SYSTEM = <NUM_LIT:3> ; IClasspathEntry [ ] getClasspathEntries ( ) ; String getDescription ( ) ; int getKind ( ) ; IPath getPath ( ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface ILocalVariable extends IJavaElement , ISourceReference , IAnnotatable { String getElementName ( ) ; ISourceRange getNameRange ( ) ; String getTypeSignature ( ) ; boolean isParameter ( ) ; int getFlags ( ) ; IMember getDeclaringMember ( ) ; ITypeRoot getTypeRoot ( ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface IJavaModelStatusConstants { public static final int INVALID_CP_CONTAINER_ENTRY = <NUM_LIT> ; public static final int CP_CONTAINER_PATH_UNBOUND = <NUM_LIT> ; public static final int INVALID_CLASSPATH = <NUM_LIT> ; public static final int CP_VARIABLE_PATH_UNBOUND = <NUM_LIT> ; public static final int CORE_EXCEPTION = <NUM_LIT> ; public static final int INVALID_ELEMENT_TYPES = <NUM_LIT> ; public static final int NO_ELEMENTS_TO_PROCESS = <NUM_LIT> ; public static final int ELEMENT_DOES_NOT_EXIST = <NUM_LIT> ; public static final int NULL_PATH = <NUM_LIT> ; public static final int PATH_OUTSIDE_PROJECT = <NUM_LIT> ; public static final int RELATIVE_PATH = <NUM_LIT> ; public static final int DEVICE_PATH = <NUM_LIT> ; public static final int NULL_STRING = <NUM_LIT> ; public static final int READ_ONLY = <NUM_LIT> ; public static final int NAME_COLLISION = <NUM_LIT> ; public static final int INVALID_DESTINATION = <NUM_LIT> ; public static final int INVALID_PATH = <NUM_LIT> ; public static final int INDEX_OUT_OF_BOUNDS = <NUM_LIT> ; public static final int UPDATE_CONFLICT = <NUM_LIT> ; public static final int NULL_NAME = <NUM_LIT> ; public static final int INVALID_NAME = <NUM_LIT> ; public static final int INVALID_CONTENTS = <NUM_LIT> ; public static final int IO_EXCEPTION = <NUM_LIT> ; public static final int DOM_EXCEPTION = <NUM_LIT> ; public static final int TARGET_EXCEPTION = <NUM_LIT> ; public static final int BUILDER_INITIALIZATION_ERROR = <NUM_LIT> ; public static final int BUILDER_SERIALIZATION_ERROR = <NUM_LIT> ; public static final int EVALUATION_ERROR = <NUM_LIT> ; public static final int INVALID_SIBLING = <NUM_LIT> ; public static final int INVALID_RESOURCE = <NUM_LIT> ; public static final int INVALID_RESOURCE_TYPE = <NUM_LIT> ; public static final int INVALID_PROJECT = <NUM_LIT> ; public static final int INVALID_PACKAGE = <NUM_LIT> ; public static final int NO_LOCAL_CONTENTS = <NUM_LIT> ; public static final int INVALID_CLASSPATH_FILE_FORMAT = <NUM_LIT:1000> ; public static final int CLASSPATH_CYCLE = <NUM_LIT> ; public static final int DISABLED_CP_EXCLUSION_PATTERNS = <NUM_LIT> ; public static final int DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS = <NUM_LIT> ; public static final int INCOMPATIBLE_JDK_LEVEL = <NUM_LIT> ; public static final int COMPILER_FAILURE = <NUM_LIT> ; public static final int ELEMENT_NOT_ON_CLASSPATH = <NUM_LIT> ; public static final int CANNOT_RETRIEVE_ATTACHED_JAVADOC = <NUM_LIT> ; public static final int UNKNOWN_JAVADOC_FORMAT = <NUM_LIT> ; public static final int DEPRECATED_VARIABLE = <NUM_LIT> ; public static final int BAD_TEXT_EDIT_LOCATION = <NUM_LIT> ; public static final int CANNOT_RETRIEVE_ATTACHED_JAVADOC_TIMEOUT = <NUM_LIT> ; public static final int OUTPUT_LOCATION_OVERLAPPING_ANOTHER_SOURCE = <NUM_LIT> ; } </s>
<s> package org . eclipse . jdt . core ; public interface IMemberValuePair { int K_INT = <NUM_LIT:1> ; int K_BYTE = <NUM_LIT:2> ; int K_SHORT = <NUM_LIT:3> ; int K_CHAR = <NUM_LIT:4> ; int K_FLOAT = <NUM_LIT:5> ; int K_DOUBLE = <NUM_LIT:6> ; int K_LONG = <NUM_LIT:7> ; int K_BOOLEAN = <NUM_LIT:8> ; int K_STRING = <NUM_LIT:9> ; int K_ANNOTATION = <NUM_LIT:10> ; int K_CLASS = <NUM_LIT:11> ; int K_QUALIFIED_NAME = <NUM_LIT:12> ; int K_SIMPLE_NAME = <NUM_LIT> ; int K_UNKNOWN = <NUM_LIT> ; String getMemberName ( ) ; Object getValue ( ) ; int getValueKind ( ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IProgressMonitor ; public interface IClassFile extends ITypeRoot { ICompilationUnit becomeWorkingCopy ( IProblemRequestor problemRequestor , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException ; byte [ ] getBytes ( ) throws JavaModelException ; IType getType ( ) ; IJavaElement getWorkingCopy ( IProgressMonitor monitor , IBufferFactory factory ) throws JavaModelException ; boolean isClass ( ) throws JavaModelException ; boolean isInterface ( ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; import java . util . EventObject ; public class ElementChangedEvent extends EventObject { public static final int POST_CHANGE = <NUM_LIT:1> ; public static final int PRE_AUTO_BUILD = <NUM_LIT:2> ; public static final int POST_RECONCILE = <NUM_LIT:4> ; private static final long serialVersionUID = - <NUM_LIT> ; private int type ; public ElementChangedEvent ( IJavaElementDelta delta , int type ) { super ( delta ) ; this . type = type ; } public IJavaElementDelta getDelta ( ) { return ( IJavaElementDelta ) this . source ; } public int getType ( ) { return this . type ; } } </s>
<s> package org . eclipse . jdt . core ; public interface IBufferChangedListener { public void bufferChanged ( BufferChangedEvent event ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface IElementChangedListener { public void elementChanged ( ElementChangedEvent event ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IProgressMonitor ; public interface ISourceManipulation { void copy ( IJavaElement container , IJavaElement sibling , String rename , boolean replace , IProgressMonitor monitor ) throws JavaModelException ; void delete ( boolean force , IProgressMonitor monitor ) throws JavaModelException ; void move ( IJavaElement container , IJavaElement sibling , String rename , boolean replace , IProgressMonitor monitor ) throws JavaModelException ; void rename ( String name , boolean replace , IProgressMonitor monitor ) throws JavaModelException ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . jdt . core . compiler . IProblem ; public interface ICompletionRequestor { void acceptAnonymousType ( char [ ] superTypePackageName , char [ ] superTypeName , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptClass ( char [ ] packageName , char [ ] className , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptError ( IProblem error ) ; void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] name , char [ ] typePackageName , char [ ] typeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptInterface ( char [ ] packageName , char [ ] interfaceName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptKeyword ( char [ ] keywordName , int completionStart , int completionEnd , int relevance ) ; void acceptLabel ( char [ ] labelName , int completionStart , int completionEnd , int relevance ) ; void acceptLocalVariable ( char [ ] name , char [ ] typePackageName , char [ ] typeName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] returnTypePackageName , char [ ] returnTypeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptMethodDeclaration ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , char [ ] [ ] parameterNames , char [ ] returnTypePackageName , char [ ] returnTypeName , char [ ] completionName , int modifiers , int completionStart , int completionEnd , int relevance ) ; void acceptModifier ( char [ ] modifierName , int completionStart , int completionEnd , int relevance ) ; void acceptPackage ( char [ ] packageName , char [ ] completionName , int completionStart , int completionEnd , int relevance ) ; void acceptType ( char [ ] packageName , char [ ] typeName , char [ ] completionName , int completionStart , int completionEnd , int relevance ) ; void acceptVariableName ( char [ ] typePackageName , char [ ] typeName , char [ ] name , char [ ] completionName , int completionStart , int completionEnd , int relevance ) ; } </s>
<s> package org . eclipse . jdt . core ; import org . eclipse . core . runtime . IProgressMonitor ; public interface IPackageFragment extends IParent , IJavaElement , IOpenable , ISourceManipulation { public static final String DEFAULT_PACKAGE_NAME = "<STR_LIT>" ; boolean containsJavaResources ( ) throws JavaModelException ; ICompilationUnit createCompilationUnit ( String name , String contents , boolean force , IProgressMonitor monitor ) throws JavaModelException ; IClassFile getClassFile ( String name ) ; IClassFile [ ] getClassFiles ( ) throws JavaModelException ; ICompilationUnit getCompilationUnit ( String name ) ; ICompilationUnit [ ] getCompilationUnits ( ) throws JavaModelException ; ICompilationUnit [ ] getCompilationUnits ( WorkingCopyOwner owner ) throws JavaModelException ; String getElementName ( ) ; int getKind ( ) throws JavaModelException ; Object [ ] getNonJavaResources ( ) throws JavaModelException ; boolean hasSubpackages ( ) throws JavaModelException ; boolean isDefaultPackage ( ) ; } </s>
<s> package org . eclipse . jdt . core ; public interface IImportContainer extends IJavaElement , IParent , ISourceReference { IImportDeclaration getImport ( String name ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMField extends IDOMMember { public String getInitializer ( ) ; public String getName ( ) ; public String getType ( ) ; public void setInitializer ( String initializer ) ; public void setName ( String name ) throws IllegalArgumentException ; public void setType ( String typeName ) throws IllegalArgumentException ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMPackage extends IDOMNode { public String getName ( ) ; public void setName ( String name ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMMethod extends IDOMMember { public void addException ( String exceptionType ) throws IllegalArgumentException ; public void addParameter ( String type , String name ) throws IllegalArgumentException ; public String getBody ( ) ; public void setDefault ( String defaultValue ) ; public String getDefault ( ) ; public String [ ] getExceptions ( ) ; String [ ] getTypeParameters ( ) ; public String getName ( ) ; public String [ ] getParameterNames ( ) ; public String [ ] getParameterTypes ( ) ; public String getReturnType ( ) ; public boolean isConstructor ( ) ; public void setBody ( String body ) ; public void setConstructor ( boolean b ) ; public void setExceptions ( String [ ] exceptionTypes ) ; void setTypeParameters ( String [ ] typeParameters ) ; public void setName ( String name ) throws IllegalArgumentException ; public void setParameters ( String [ ] types , String [ ] names ) throws IllegalArgumentException ; public void setReturnType ( String type ) throws IllegalArgumentException ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public class DOMException extends RuntimeException { private static final long serialVersionUID = <NUM_LIT> ; public DOMException ( ) { } public DOMException ( String message ) { super ( message ) ; } } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMCompilationUnit extends IDOMNode { public String getHeader ( ) ; public String getName ( ) ; public void setHeader ( String comment ) ; public void setName ( String name ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMFactory { public IDOMCompilationUnit createCompilationUnit ( ) ; public IDOMCompilationUnit createCompilationUnit ( char [ ] sourceCode , String name ) ; public IDOMCompilationUnit createCompilationUnit ( String sourceCode , String name ) ; public IDOMField createField ( ) ; public IDOMField createField ( String sourceCode ) ; public IDOMImport createImport ( ) ; public IDOMImport createImport ( String sourceCode ) ; public IDOMInitializer createInitializer ( ) ; public IDOMInitializer createInitializer ( String sourceCode ) ; public IDOMMethod createMethod ( ) ; public IDOMMethod createMethod ( String sourceCode ) ; public IDOMPackage createPackage ( ) ; public IDOMPackage createPackage ( String sourceCode ) ; public IDOMType createType ( ) ; public IDOMType createClass ( ) ; public IDOMType createInterface ( ) ; public IDOMType createType ( String sourceCode ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMMember extends IDOMNode { public String getComment ( ) ; public int getFlags ( ) ; public void setComment ( String comment ) ; public void setFlags ( int flags ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMType extends IDOMMember { public void addSuperInterface ( String interfaceName ) throws IllegalArgumentException ; String [ ] getTypeParameters ( ) ; public String getName ( ) ; public String getSuperclass ( ) ; public String [ ] getSuperInterfaces ( ) ; public boolean isClass ( ) ; boolean isEnum ( ) ; boolean isAnnotation ( ) ; public void setClass ( boolean b ) ; public void setEnum ( boolean b ) ; public void setAnnotation ( boolean b ) ; void setTypeParameters ( String [ ] typeParameters ) ; public void setName ( String name ) throws IllegalArgumentException ; public void setSuperclass ( String superclassName ) ; public void setSuperInterfaces ( String [ ] interfaceNames ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMInitializer extends IDOMMember { public String getBody ( ) ; public String getName ( ) ; public void setBody ( String body ) ; public void setName ( String name ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; public interface IDOMImport extends IDOMNode { public String getName ( ) ; public boolean isOnDemand ( ) ; int getFlags ( ) ; void setFlags ( int flags ) ; public void setName ( String name ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; import java . util . Enumeration ; import org . eclipse . jdt . core . IJavaElement ; public interface IDOMNode extends Cloneable { public static int COMPILATION_UNIT = <NUM_LIT:1> ; public static int PACKAGE = <NUM_LIT:2> ; public static int IMPORT = <NUM_LIT:3> ; public static int TYPE = <NUM_LIT:4> ; public static int FIELD = <NUM_LIT:5> ; public static int METHOD = <NUM_LIT:6> ; public static int INITIALIZER = <NUM_LIT:7> ; public void addChild ( IDOMNode child ) throws DOMException , IllegalArgumentException ; public boolean canHaveChildren ( ) ; public Object clone ( ) ; public char [ ] getCharacters ( ) ; public IDOMNode getChild ( String name ) ; public Enumeration getChildren ( ) ; public String getContents ( ) ; public IDOMNode getFirstChild ( ) ; public IJavaElement getJavaElement ( IJavaElement parent ) throws IllegalArgumentException ; public String getName ( ) ; public IDOMNode getNextNode ( ) ; public int getNodeType ( ) ; public IDOMNode getParent ( ) ; public IDOMNode getPreviousNode ( ) ; public void insertSibling ( IDOMNode sibling ) throws DOMException , IllegalArgumentException ; public boolean isAllowableChild ( IDOMNode node ) ; public boolean isSignatureEqual ( IDOMNode node ) ; public void remove ( ) ; public void setName ( String name ) ; } </s>
<s> package org . eclipse . jdt . core . jdom ; import org . eclipse . jdt . internal . core . jdom . * ; public class DOMFactory implements IDOMFactory { String lineSeparator ; public DOMFactory ( ) { this . lineSeparator = org . eclipse . jdt . internal . core . util . Util . getLineSeparator ( null , null ) ; } public IDOMCompilationUnit createCompilationUnit ( ) { return ( new DOMBuilder ( ) ) . createCompilationUnit ( ) ; } public IDOMCompilationUnit createCompilationUnit ( char [ ] sourceCode , String name ) { if ( sourceCode == null ) { return null ; } return ( new SimpleDOMBuilder ( ) ) . createCompilationUnit ( sourceCode , name . toCharArray ( ) ) ; } public IDOMCompilationUnit createCompilationUnit ( String sourceCode , String name ) { if ( sourceCode == null ) { return null ; } return ( new SimpleDOMBuilder ( ) ) . createCompilationUnit ( sourceCode . toCharArray ( ) , name . toCharArray ( ) ) ; } public IDOMField createField ( ) { return createField ( "<STR_LIT>" + this . lineSeparator ) ; } public IDOMField createField ( String sourceCode ) { if ( sourceCode == null ) { return null ; } return ( new DOMBuilder ( ) ) . createField ( sourceCode . toCharArray ( ) ) ; } public IDOMImport createImport ( ) { return ( new DOMBuilder ( ) ) . createImport ( ) ; } public IDOMImport createImport ( String sourceCode ) { if ( sourceCode == null ) { return null ; } return ( new DOMBuilder ( ) ) . createImport ( sourceCode . toCharArray ( ) ) ; } public IDOMInitializer createInitializer ( ) { return createInitializer ( "<STR_LIT>" + this . lineSeparator ) ; } public IDOMInitializer createInitializer ( String sourceCode ) { if ( sourceCode == null ) { return null ; } return ( new DOMBuilder ( ) ) . createInitializer ( sourceCode . toCharArray ( ) ) ; } public IDOMMethod createMethod ( ) { return createMethod ( "<STR_LIT>" + this . lineSeparator + "<STR_LIT:}>" + this . lineSeparator ) ; } public IDOMMethod createMethod ( String sourceCode ) { if ( sourceCode == null ) { return null ; } return ( new DOMBuilder ( ) ) . createMethod ( sourceCode . toCharArray ( ) ) ; } public IDOMPackage createPackage ( ) { return ( new DOMBuilder ( ) ) . createPackage ( ) ; } public IDOMPackage createPackage ( String sourceCode ) { if ( sourceCode == null ) { return null ; } return ( new DOMBuilder ( ) ) . createPackage ( sourceCode . toCharArray ( ) ) ; } public IDOMType createType ( ) { return createType ( "<STR_LIT>" + this . lineSeparator + "<STR_LIT:}>" + this . lineSeparator ) ; } public IDOMType createClass ( ) { return createType ( "<STR_LIT>" + this . lineSeparator + "<STR_LIT:}>" + this . lineSeparator ) ; } public IDOMType createInterface ( ) { return createType ( "<STR_LIT>" + this . lineSeparator + "<STR_LIT:}>" + this . lineSeparator ) ; } public IDOMType createType ( String sourceCode ) { if ( sourceCode == null ) { return null ; } return ( new DOMBuilder ( ) ) . createType ( sourceCode . toCharArray ( ) ) ; } } </s>