Global Function of coref.java.gdl

isBlock

pub fn isBlock(s: Statement) -> bool;

branchingExpression

pub fn branchingExpression(expr: Expression) -> bool;

branchingStatement

pub fn branchingStatement(s: Statement) -> bool;

branchingSwitchCase

pub fn branchingSwitchCase(c: ConstSwitchLabelStatement) -> bool;

isStaticClass

pub fn isStaticClass(c: NestedClass) -> bool;

hasEnumDefaultValue

pub fn hasEnumDefaultValue(f: EnumConstant) -> bool;

hasDefaultValue

  • Parameter f: Field
  • Return bool
pub fn hasDefaultValue(f: Field) -> bool;

lowerToUpper

// util function, convert letters to upper and lower case
  • Parameter m: string
  • Parameter n: string
  • Return bool
pub fn lowerToUpper(m: string, n: string) -> bool;

isDirectCall

pub fn isDirectCall(e: CallExpression) -> bool;

getCallerByMatchingCallsiteName

pub fn getCallerByMatchingCallsiteName(m: MethodAccessExpression, tmp: Method) -> bool;

isAnonymousMethod

pub fn isAnonymousMethod(c: Callable) -> bool;

isArrayInitializer

  • Parameter a: int
  • Return bool
pub fn isArrayInitializer(a: int) -> bool;

branchingPolyadicExpression

pub fn branchingPolyadicExpression(c: ConditionalPolyadicExpression, i: int) -> bool;