Search in sources :

Example 41 with EntryMessage

use of org.apache.logging.log4j.message.EntryMessage in project meghanada-server by mopemope.

the class FieldSignatureVisitor method visitEnd.

@Override
public void visitEnd() {
    final EntryMessage em = log.traceEntry("name={} typeInfo={} currentType={} ", this.name, this.typeInfo, this.currentType);
    if (this.currentType.size() > 1) {
        this.currentType.pop();
    }
    log.traceExit(em);
}
Also used : EntryMessage(org.apache.logging.log4j.message.EntryMessage)

Example 42 with EntryMessage

use of org.apache.logging.log4j.message.EntryMessage in project meghanada-server by mopemope.

the class MethodAnalyzeVisitor method visitCode.

@Override
public void visitCode() {
    final EntryMessage entryMessage = log.traceEntry("name={}", this.name);
    if (this.interfaceMethod) {
        this.hasDefault = true;
    }
    super.visitCode();
    log.traceExit(entryMessage);
}
Also used : EntryMessage(org.apache.logging.log4j.message.EntryMessage)

Example 43 with EntryMessage

use of org.apache.logging.log4j.message.EntryMessage in project meghanada-server by mopemope.

the class MethodSignatureVisitor method visitTypeArgument.

@Override
public SignatureVisitor visitTypeArgument(char c) {
    final EntryMessage message = log.traceEntry("params={} current={} c={}", this.parameterTypes, this.current, c);
    final MethodSignatureVisitor visitor = new MethodSignatureVisitor(this.name, this);
    visitor.hasTypes = true;
    visitor.isParameter = this.isParameter;
    visitor.isReturn = this.isReturn;
    visitor.current = this.current;
    switch(c) {
        case SignatureVisitor.INSTANCEOF:
            break;
        case SignatureVisitor.SUPER:
            visitor.isSuper = true;
            break;
        case SignatureVisitor.EXTENDS:
            visitor.isExtends = true;
            break;
    }
    log.traceExit(message);
    return visitor;
}
Also used : EntryMessage(org.apache.logging.log4j.message.EntryMessage)

Example 44 with EntryMessage

use of org.apache.logging.log4j.message.EntryMessage in project meghanada-server by mopemope.

the class MethodSignatureVisitor method visitFormalTypeParameter.

@Override
public void visitFormalTypeParameter(final String s) {
    final EntryMessage message = log.traceEntry("s={} current={}", s, this.current);
    if (this.formalType == null) {
        this.formalType = new TypeInfo("", "");
        this.formalType.typeParameters = new ArrayList<>(4);
        this.formalType.typeParameters.add(new TypeInfo(s, s));
    } else {
        this.formalType.typeParameters.add(new TypeInfo(s, s));
    }
    log.traceExit(message);
}
Also used : EntryMessage(org.apache.logging.log4j.message.EntryMessage)

Example 45 with EntryMessage

use of org.apache.logging.log4j.message.EntryMessage in project meghanada-server by mopemope.

the class MethodSignatureVisitor method visitReturnType.

@Override
public SignatureVisitor visitReturnType() {
    final EntryMessage message = log.traceEntry("name={} parameterTypes={}", this.name, this.parameterTypes);
    MethodSignatureVisitor visitor = new MethodSignatureVisitor(this.name, this);
    visitor.isReturn = true;
    log.traceExit(message);
    return visitor;
}
Also used : EntryMessage(org.apache.logging.log4j.message.EntryMessage)

Aggregations

EntryMessage (org.apache.logging.log4j.message.EntryMessage)64 ArrayList (java.util.ArrayList)9 CachedASMReflector (meghanada.reflect.asm.CachedASMReflector)8 Test (org.junit.jupiter.api.Test)8 ClassScope (meghanada.analyze.ClassScope)5 MethodCall (meghanada.analyze.MethodCall)5 IOException (java.io.IOException)3 InputStream (java.io.InputStream)3 HashSet (java.util.HashSet)3 List (java.util.List)3 Map (java.util.Map)3 Set (java.util.Set)3 ExecutionException (java.util.concurrent.ExecutionException)3 Variable (meghanada.analyze.Variable)3 Project (meghanada.project.Project)3 ClassIndex (meghanada.reflect.ClassIndex)3 ClassNameUtils (meghanada.utils.ClassNameUtils)3 LogManager (org.apache.logging.log4j.LogManager)3 Logger (org.apache.logging.log4j.Logger)3 SignatureReader (org.objectweb.asm.signature.SignatureReader)3