public static ISourceCodeTokenizer createSourceCodeTokenizer( CharSequence code ) { return CommonServices.getGosuIndustrialPark().createSourceCodeTokenizer( code ); } public static ISourceCodeTokenizer createSourceCodeTokenizer( CharSequence code, boolean bTemplate )
public static ISourceCodeTokenizer createSourceCodeTokenizer( Reader reader ) { return CommonServices.getGosuIndustrialPark().createSourceCodeTokenizer( reader ); } public static ITokenizerInstructor createTemplateInstructor( ISourceCodeTokenizer tokenizer )
public static IGosuProgram createProgram( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable ) { return CommonServices.getGosuIndustrialPark().createProgram( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap, symTable ); } public static IGosuProgram createProgramForEval( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable )
public static IGosuEnhancement createEnhancement( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap ) { return CommonServices.getGosuIndustrialPark().createEnhancement( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap ); } public static ITemplateType createTemplate( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable )
public static IPropertyInfo getPropertyInfo( IType classBean, String strProperty, IFeatureFilter filter, IParserPart parserBase, IScriptabilityModifier scriptabilityConstraint) throws ParseException { return CommonServices.getGosuIndustrialPark().getPropertyInfo(classBean, strProperty, filter, parserBase, scriptabilityConstraint); } public static List<? extends IPropertyInfo> getProperties( ITypeInfo beanInfo, IType classSource )
public static ISymbol createSymbol( CharSequence name, IType type, Object value ) { return CommonServices.getGosuIndustrialPark().createSymbol( name, type, value ); } public static ISymbol createSymbol( CharSequence name, IType type, IStackProvider stackProvider )
public static ISourceCodeTokenizer createSourceCodeTokenizer( CharSequence code, boolean bTemplate ) { return CommonServices.getGosuIndustrialPark().createSourceCodeTokenizer( code, bTemplate ); } public static ISourceCodeTokenizer createSourceCodeTokenizer( Reader reader )
public static IGosuClass createClass( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap ) { return CommonServices.getGosuIndustrialPark().createClass( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap ); } public static IGosuProgram createProgram( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable )
public static IGosuProgram createProgramForEval( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable ) { return CommonServices.getGosuIndustrialPark().createProgramForEval( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap, symTable ); } public static IGosuEnhancement createEnhancement( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap )
public static IFileSystemGosuClassRepository createFileSystemGosuClassRepository(IModule module, IDirectory[] files) { return CommonServices.getGosuIndustrialPark().createFileSystemGosuClassRepository(module, files); } public static IFileSystemGosuClassRepository createFileSystemGosuClassRepository(IModule module, IDirectory[] files, String[] extensions)
public static List<? extends IPropertyInfo> getProperties( ITypeInfo beanInfo, IType classSource ) { return CommonServices.getGosuIndustrialPark().getProperties(beanInfo, classSource); } public static List<? extends IMethodInfo> getMethods( ITypeInfo beanInfo, IType ownersIntrinsicType )
@Override protected IForceThrower init() { return CommonServices.getGosuIndustrialPark().getForceThrower(); } };
public static ISourceCodeTokenizer createSourceCodeTokenizer( CharSequence code ) { return CommonServices.getGosuIndustrialPark().createSourceCodeTokenizer( code ); } public static ISourceCodeTokenizer createSourceCodeTokenizer( CharSequence code, boolean bTemplate )
public static IGosuProgram createProgramForEval( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable ) { return CommonServices.getGosuIndustrialPark().createProgramForEval( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap, symTable ); } public static IGosuEnhancement createEnhancement( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap )
public static IGosuEnhancement createEnhancement( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap ) { return CommonServices.getGosuIndustrialPark().createEnhancement( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap ); } public static ITemplateType createTemplate( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable )
public boolean shouldAddInheritedAnnotation( IFeatureInfo fi, List<IAnnotationInfo> annotations, IAnnotationInfo annotationInfo ) { for( IAnnotationInfo annotation : annotations ) { if( annotation.getType().equals( annotationInfo.getType() ) ) { return CommonServices.getGosuIndustrialPark().isAnnotationAllowedMultipleTimes( fi, annotationInfo ); } } return true; } }
public InteractiveShell( boolean logOutput ) { _interactiveTypeUsesMap = CommonServices.getGosuIndustrialPark().createTypeUsesMap( Collections.<String>emptyList() ); _interactiveSymbolTable = new StandardSymbolTable( true ); _completionHandler = new CompletionHandler( _interactiveSymbolTable, _interactiveTypeUsesMap ); _logOutput = logOutput; }
@Override public IRType getType() { IRElement irElement = _elements.get(_elements.size() - 1); if (irElement instanceof IRExpression) { IRExpression expr = (IRExpression) irElement; return expr.getType(); } else { return CommonServices.getGosuIndustrialPark().getIRTypeResolver().getDescriptor(JavaTypes.pVOID()); } } }
private boolean eatMore( String s ) { ISourceCodeTokenizer tokenizer = CommonServices.getGosuIndustrialPark().createSourceCodeTokenizer(s); int openParens = tokenizer.countMatches("("); int closedParens = tokenizer.countMatches(")"); if (openParens != closedParens) { return true; } int openBraces = tokenizer.countMatches("{"); int closeBraces = tokenizer.countMatches("}"); return openBraces != closeBraces; }
private boolean eatMore( String s ) { ISourceCodeTokenizer tokenizer = CommonServices.getGosuIndustrialPark().createSourceCodeTokenizer(s); int openParens = tokenizer.countMatches("("); int closedParens = tokenizer.countMatches(")"); if (openParens != closedParens) { return true; } int openBraces = tokenizer.countMatches("{"); int closeBraces = tokenizer.countMatches("}"); return openBraces != closeBraces; }