diff options
Diffstat (limited to 'languages/java/java.store.g')
-rw-r--r-- | languages/java/java.store.g | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/languages/java/java.store.g b/languages/java/java.store.g index d7e28c22..b69b7323 100644 --- a/languages/java/java.store.g +++ b/languages/java/java.store.g @@ -245,9 +245,9 @@ ctorDef returns [ FunctionDom meth ] { m=modifiers methodHead[meth] slist ) { - if( m.tqcontains("public") ) + if( m.contains("public") ) meth->setAccess( CodeModelItem::Public ); - else if( m.tqcontains("protected") ) + else if( m.contains("protected") ) meth->setAccess( CodeModelItem::Protected ); else meth->setAccess( CodeModelItem::Private ); @@ -263,9 +263,9 @@ methodDecl returns [ FunctionDom meth ] { : #(METHOD_DEF m=modifiers tp=typeSpec methodHead[meth]) { meth->setResultType( tp ); - if( m.tqcontains("public") ) + if( m.contains("public") ) meth->setAccess( CodeModelItem::Public ); - else if( m.tqcontains("protected") ) + else if( m.contains("protected") ) meth->setAccess( CodeModelItem::Protected ); else meth->setAccess( CodeModelItem::Private ); @@ -281,9 +281,9 @@ methodDef returns [ FunctionDom meth ] { : #(METHOD_DEF m=modifiers tp=typeSpec methodHead[meth] (slist)?) { meth->setResultType( tp ); - if( m.tqcontains("public") ) + if( m.contains("public") ) meth->setAccess( CodeModelItem::Public ); - else if( m.tqcontains("protected") ) + else if( m.contains("protected") ) meth->setAccess( CodeModelItem::Protected ); else meth->setAccess( CodeModelItem::Private ); @@ -299,14 +299,14 @@ variableDef returns [ VariableDom attr ] { : #(VARIABLE_DEF m=modifiers tp=typeSpec variableDeclarator[attr] varInitializer) { attr->setType( tp ); - if( m.tqcontains("public") ) + if( m.contains("public") ) attr->setAccess( CodeModelItem::Public ); - else if( m.tqcontains("protected") ) + else if( m.contains("protected") ) attr->setAccess( CodeModelItem::Protected ); else attr->setAccess( CodeModelItem::Private ); - attr->setStatic( m.tqcontains("static") ); + attr->setStatic( m.contains("static") ); } ; |