@Override public CsmScope getScope() { if (clazz != null) { return clazz.getScope(); } return null; }
@Override public boolean check(CsmType value) { CharSequence clsText = value.getClassifierText(); if (clsText != null) { String lowerClsText = CharSequenceUtilities.toString(clsText).toLowerCase(); for (String stopWord : stopWords) { if (lowerClsText.contains(stopWord)) { return true; // stop word found } } } CsmClassifier classifier = value.getClassifier(); if (classifier != null) { if (CsmKindUtilities.isClass(classifier.getScope())) { return false; } } return true; } }
public CsmNamespace _getClassNamespace(CsmClassifier cls) { CsmScope scope = cls.getScope(); while (scope != null) { if (CsmKindUtilities.isNamespace(scope)) { return (CsmNamespace) scope; } if (CsmKindUtilities.isScopeElement(scope)) { scope = ((CsmScopeElement) scope).getScope(); } else { break; } } return null; }
String toReplace = classifier.getName().toString(); if (type.indexOf(toReplace) == 0) { CsmScope scope = classifier.getScope(); if (CsmKindUtilities.isClass(scope)) { type = ((CsmClass)scope).getName()+"::"+type; //NOI18N CsmScope scope = classifier.getScope(); if (CsmKindUtilities.isClass(scope)) { type = "const "+((CsmClass)scope).getName()+"::"+type.substring(6); //NOI18N
String toReplace = classifier.getName().toString(); if (type.indexOf(toReplace) == 0) { CsmScope scope = classifier.getScope(); if (CsmKindUtilities.isClass(scope)) { type = ((CsmClass)scope).getName()+"::"+type; //NOI18N CsmScope scope = classifier.getScope(); if (CsmKindUtilities.isClass(scope)) { type = "const "+((CsmClass)scope).getName()+"::"+type.substring(6); //NOI18N
CsmScope scope = classifier.getScope(); if( CsmKindUtilities.isClass(scope) ) { CsmClass cls = ((CsmClass) scope);
specParamText, (CsmInstantiation) cls, specParam.getScope() ); } else {